title: What's the best way to include graphics in an enumerated list?

text: I'm currently putting together an installation document for some software at work, and I decided that now was as good a time as any to try to ditch the endless frustration that is Microsoft Word, and try and do it using TeX/XeLaTeX. I'm trying to keep the same feel of previous documents that my team has produced for similar installations, and this means the document is going to be largely composed sections which are basic "1) Do this", "2) now do this" sections. Not terribly enthralling, but it's sort of the standard. The standard also calls for lots of frequent screen shots of the installer, which I've been trying to include directly into an enumerate list, which is how I approached the "1), 2)" format described above. The problem with LaTeX's usual approach to including figures means that they can end up some way away from the text which is referencing them. This might be fine in an academic paper, but it might be a bridge too far for my colleagues - so I've been trying to include the graphics directly into the list. My results thus far are not perfect. Here's a snippet of the XeLaTeX:               \begin{enumerate}         \item Navigate to ``d:\textbackslash boringwindowspath''         \item Run Setupee.exe         \begin{figure}[h]             \item                  \caption*{Click ``Yes'' to install MS Visual C++ 2008 redistributables.}                                 \adjustbox{scale=0.6,valign=t,center=10cm}{                     \includegraphics{./Images/screenshot01.png}             }         \end{figure}     \end{enumerate}      This produces something like this : ![Sample PDF output](http://i.stack.imgur.com/uOFrG.png) As you can see, the 3rd item is shoved a ways out to the left, and I can't work out why. I've scaled the image itself so it doesn't take up the whole page width - so what's going on here? Or is my whole approach wrong, and there's some dead easy way to do what I'm trying to achieve? Answers gratefully received ;)


title: How to get right a bibliography not in English using biblatex in tufte book?

text: I'm editing some notes in `LaTeX` using the `Tufte-book` class. I know I can use the `natbib` package with that class, but I've never used. I used `bibtex` recently. I like to use `biblatex` in this case as my document and references hence are in Spanish and not in English and also because I have references in German. I know that `bibtex` is not as easy to use and customize without programming and be an advanced user if I require cite something in another language than English. But I don't know if it's possible to use `biblatex` with this class and how it would be, if I have to add some lines or load packages before `\documentclass`. I was searching on the internet but I found nothing conclusive or give me any certainty. Another issue is that as this document is of Humanities, I require do citations using Latin expressions such as _op. cit._ and others. I have seen that this is possible with `biblatex`. This is my MWE but I have not included the bibliography yet. I'm building it with `JabRef`, but my other question is, if I download references from Internet such as Google Scholar I can get the references in `bibtex` format, but I'm not sure if I can use it right in `biblatex`. Until now the only type of reference I have is `@book`.               \documentclass[10pt]{tufte-book}     \usepackage[utf8]{inputenx}     \usepackage[T1]{fontenc}     \usepackage[spanish,mexico]{babel}     \usepackage{mwe}          \setcounter{secnumdepth}{1}          \title{My Book}     \author{John Doe}     \date{\today}          \begin{document}     \maketitle     \frontmatter          \blindtext          \mainmatter          \blindtext          \backmatter          % Here should be the bibliography          \end{document}      The idea is to can get something like this:               Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod     tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,     quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo     consequat.~\cite{Engels1894}. Duis aute irure dolor in reprehenderit in      voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur      sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt      mollit anim id est laborum~\cite{Engels1894}.      This should display a cite for the first time, and _Op. cit._ in the second one. One of my references (in the example above):               @Book{Engels1894,       Title                    = {Der Ursprung der Familie, des Privateigenthums und des Staats: im Anschluss an Lewis H. Morgans Forschungen},       Author                   = {Engels, Friedrich},       Publisher                = {J. H. W. Dietz},       Year                     = {1894},       Address                  = {Stuttgart},       Edition                  = {6},       Pages                    = {177,178}     }      Any suggestions?


title: How to check if a macro expands to something greater than a constant?

text: Suppose I have a loop:               \begin{tikzpicture}       \foreach \frm \in {1,...,6}{ \only<\frm>{         % if \frm > 4: set \x to 1, 0 otherwise         \node (foo) at (10+5*\x,7) {hello};       }}     \end{tikzpicture}      I want to "move" the node at a given slide, but I'm struggling to find a suitable way to express the conditional in the comment in TeX. * * * Edit: I tried `\ifthenelse` to no avail:               \node (foo) at (10+5*\ifthenelse{\frm<5}{0}{1},7) {hello};      Gives me this error, which I cannot parse at all               ! Use of \beamer@only doesn't match its definition.     \new@ifnextchar ...served@d = #1\def \reserved@a {                                                       #2}\def \reserved@b {#3}\f...


title: How can I fix the path to LaTeX fonts?

text: I'm using LaTeX on osx via TexLive 2011 and the TextMate bundle. Currently I'm trying to list some code in a document (using `verbatim`), but I get this error:               ! I can't find file `pcrr7t'.          ! Emergency stop.      I've googled a bit and it turns out it's a font. I've searched file via `locate` and found it (in `/usr/local/texlive/2008basic/texmf- dist/fonts/tfm/public/pslatex`), but have no clue how to tell LaTeX to look there for fonts. Did anyone run into this before ? Any hints/ideas ?


title: pgfplots dollar sign in node, adjust space between bars

text: I'd like to format the nodes in this bar chart with $ signs (e.g $275). (The sets of bars could also be closer together; perhaps that should be another question.) The answer is probably out there somewhere but my searches haven't found it. ![enter image description here](http://i.stack.imgur.com/oQrah.png) Here's my MWE:               %http://tex.stackexchange.com/questions/88892/pgfplots-bar-plot-spacing-inbetween-bars     %http://tex.stackexchange.com/questions/113241/pgfplots-grouped-bar-chart-from-file     %http://tex.stackexchange.com/questions/35872/multiline-coords          \documentclass{standalone}     \usepackage{tikz,pgfplots}     \usepackage{pgfplotstable}          \usetikzlibrary{calc,decorations.pathmorphing}          %deal with warning message in log     \pgfplotsset{compat=1.8}          \usepackage{helvet}     \usepackage[eulergreek]{sansmath}          \begin{document}     \newcommand{\mywidth}{12cm}     \newcommand{\myheight}{5cm}          \pgfplotstableread[col sep=comma]{     seats, 2003, 2008     ordinary, 42.26, 52.16     premium, 275, 325     }\ticketprices          \begin{tikzpicture}[font=\sffamily\sansmath]          \begin{axis}[            ybar=10pt,           bar width=20pt,           ymin=0,           tick style={draw=none},           width=\mywidth, height=\myheight,            title={Tickets at Fenway Park},            hide y axis,           axis x line*=bottom,           xtick=data,           xticklabel style={align=center},           xticklabels={             2003 2008\\             ordinary seats,             2003 2008\\             premium seats           },           nodes near coords,         ]         \addplot [fill=gray] table[x expr=\coordindex, y=2003]  {\ticketprices};         \addplot [fill=black] table[x expr=\coordindex, y=2008] {\ticketprices};     \end{axis}      \end{tikzpicture}     \end{document}


title: Beamer + PGF produces "invalid" PDF / crashes acroread

text: I've got a complex presentation in pdflatex/beamer using lots of TikZ graphics and included images. It works perfectly under linux/evince but not in acroread: some of the graphics do not display and during a presentation, a dialog box pops up with "An error exists on this page ..." I'm still trying to isolate a minimal instance that causes this problem but has anyone had anything similar and/or any pointers to how I could debug this? Versions involved (from logfile):   * pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian)   * LaTeX2e <2009/09/24>   * Document Class: beamer 2007/03/11 cvs version 3.07   * pgfcore 2010/04/11 v2.10 (rcs-revision 1.7)   * acroread 9 for linux (but does the same on Windows) EDIT: minimal example (minus image files)               \documentclass{beamer}          \providecommand\thispdfpagelabel[1]{} % Not sure what this does myself.     \usepackage{tikz}          \pgfdeclaremask{mask}{mask.png}     \pgfdeclareimage[height=24pt,interpolate=true,mask=mask]{tick}{tick.png}          \begin{document}          \begin{frame}     \begin{tikzpicture}       \node[shape=circle,minimum size=2cm,color=gray,draw,fill] at (0, 0) {};       \node at (0, 0) {\pgfuseimage{tick}};     \end{tikzpicture}     \end{frame}          \end{document}      EDIT2:   * example.pdf: http://www.2shared.com/document/ZK_Crjou/example.html   * example.tex: http://www.2shared.com/file/HO9xY4Cm/example.html   * mask.png: http://www.2shared.com/photo/x6M0ghuX/mask.html   * tick.png: http://www.2shared.com/photo/Eg51PBe6/tick.html


title: Changing footnote spacing for biblatex-chicago citations

text: I'm trying to get the spacing for footnotes generated by biblatex-chicago to become double-spaced. I've set up double spacing the main part of the text using the following in the preamble:               \usepackage[doublespacing]{setspace}      And to try to get it in the footnotes, I've tried the following               \setlength{\footnotesep}{0.5cm}      as well as               \setlength{\bibitemsep}{24pt}      as well as               \newcommand{\note}[1]{\footnote{\begin{doublespace}#1\end{doublespace}}}      but none of these seems to do the trick for the footnotes. Any suggestions would be much appreciated!


title: Text alignment in a minipage

text: I have a little problematic in LaTeX, and I have not found any solution. I have a minipage like this :               \begin{minipage}[t]{\textwidth}         \raggedleft         {\bfseries Some text}\\[.35ex]         \small         Text again\\         And again\\\[.35ex]     \end{minipage}      This code permit me to put my minipage in the right of my page, but the text in the minipage have a right alignment, and I need it left center (no center in the page but center in the minipage). So, if someone had a solution... Maybe use a minipage is not the right solution ? Thanks !


title: Which section in the header with twocolumn book?

text: I'm wondering about the logic behind which section name is displayed in the header with a twocolumn book. My MWE:               \documentclass[twocolumn]{book}          \usepackage{lipsum}          \begin{document}          \chapter{Foo}          \section{Bar}     \lipsum[1-15]          \section{Baz}     \lipsum[6]          \section{Qux}     \lipsum[7]          \section{Quux}     \lipsum[8]          \section{Quuux}     \lipsum[9]          \end{document}      ![enter image description here](http://i.stack.imgur.com/0ZYS6.png) As you can see, the first section `Bar` spans pages 1 and 2 and parts of page 3. Then, on page 3, there are three sections `Baz`, `Qux`, and `Quux`. The header of page 3 contains the header `QUX` which is the title of _the first section in the second column_. I didn't expect this. Why not one of the other section titles? What is the logic behind this? How could I make the title of the _last_ section be displayed in the header?


title: What does \@car do?

text: The title says it all. I'd like to know what `\@car` does. I came across it reading through the source of the `hyperref` package, but it doesn't seem it's defined as part of the package. I tried Google, but there is the sub-string "car" ...


title: enumitem - labels fine - but references defined empty

text: Folks - the various hints as how to get to an enumeration/description listing elsewhere (e.g. Enumerated description list, Automatically number a description list) work splendidly. However - somehow I cannot get the references to work. A most trivial version is depicted below.               \documentclass[11pt]{amsart}          % Version 3.5.2 -- 2011-09-28     \usepackage{enumitem}          \newcounter{descriptcount}     \newcounter{descriptcount2}     \newlist{enumdescript}{description}{2}          \setlist[enumdescript,1]{%       ref=\arabic{descriptcount},%       before={%         \setcounter{descriptcount}{0}%         \renewcommand*\thedescriptcount{\arabic{descriptcount}}       },%       font=\bfseries\refstepcounter{descriptcount}\thedescriptcount~,%     }          \setlist[enumdescript,2]{%       ref=\arabic{descriptcount}.\arabic{descriptcount2},%       before={%         \setcounter{descriptcount2}{0}%         \renewcommand*\thedescriptcount{\arabic{descriptcount}.\arabic{descriptcount2}}       },%       font=\bfseries\refstepcounter{descriptcount2}\thedescriptcount~,%     }          \begin{document}          \begin{enumdescript}     \item[Tada] Foo \label{foo}     \item[Taba] Bar          \begin{enumdescript}         \item[Dro] Boo         \item[Dra] Zoo \label{zoo}         \end{enumdescript}     \item Lets talk about \ref{zoo} and \ref{foo}.     \end{enumdescript}          \end{document}      The result of this is depicted below: ![image with out the refs](http://i.stack.imgur.com/VSiFS.png) and of specific note is that the refs are empty (i.e. not even ??). No info on the console. Would appreciate suggestions as where to look.


title: Changing the format to a plot ticks (using pgfplots)

text: Dera all: I'm using `pgfplots` to plot the data from the table below (forst vs. fourth column),               3000              1.2970e+00    0.198956 0.258046     3100              8.6050e-01    0.18747 0.161318     3200              5.7970e-01    0.172414 0.0999484     3300              3.9770e-01    0.147098 0.0585009     3400              2.7720e-01    0.128355 0.03558     3500              1.9700e-01    0.139395 0.0274608     3600              1.4310e-01    0.0867237 0.0124102     3700              1.0600e-01    0.0865613 0.0091755     3800              7.9990e-02    0.0509629 0.00407652     3900              6.1560e-02    0.0501454 0.00308695     4000              4.8010e-02    0.0249455 0.00119763      It's almost perfect, the only thing that is bothering me is that the `x`-axis ticks are written as `3,000`, `3,100` and so on. **QUESTION:** How could I avoid the comma in the ticks? **My code** Here it is!               \documentclass{report}     \usepackage{amsmath,units,xcolor}     \usepackage{pgfplots}     \usepackage{lipsum}     \allowdisplaybreaks          \begin{document}          \begin{figure}[!H]       \centering       \begin{tikzpicture}         \begin{axis}[             axis background/.style={               shade,top color=gray,bottom color=white},             legend style={fill=white},xlabel=Mass $\Omega$,ylabel=$\sigma*\mathcal{A}(\unit{pb})$]           \addplot+[only marks] table[x index=0,y index=3,header=false] {Table.dat};           \legend{$\sigma_{\text{MC}}$}         \end{axis}       \end{tikzpicture}       \caption{plot with data}     \end{figure}               \end{document}      **And the result** ![Resulting plot from the code](http://i.stack.imgur.com/ZcAUb.png) Cheers.


title: problem with urlstyle being overriden by apacite

text: I am using `\usepackage{hyperref}` and `\urlstyle{rm}` to produce urls in roman font in my documents. However, when I also include `\usepackage{apacite}` the font is no longer roman, but typewriter for the urls. This code works correctly and displays the url in roman font:               \documentclass[12pt]{article}          \usepackage{hyperref}          \urlstyle{rm}          \begin{document}          \url{http://en.wikipedia.org/wiki/Function_(mathematics)}          \end{document}      Which generates this: ![url in roman font](http://i.stack.imgur.com/XK0hU.png) However, when I add the package apacite, it no longer displays in roman, but rather in typewriter font:               \documentclass[12pt]{article}     \usepackage{apacite}          \usepackage{hyperref}          \urlstyle{rm}          \begin{document}          \url{http://en.wikipedia.org/wiki/Function_(mathematics)}          \end{document}      Which generates this: ![url in tt font](http://i.stack.imgur.com/FoR2u.png) I have tried it with the `\usepackage{apacite}` coming after the `\urlstyle{rm}` but it doesn't make a difference.


title: TikZ -The pretty boxes to frame the theorems-lemma-proposition-etc

text: I came across a website which provides examples of pretty boxes to frame theorems in LaTeX with extension bioboite and not with TikZ. ![enter image description here](http://i.stack.imgur.com/2K2Fa.png) Here is code with:               \documentclass{article}     \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage{amsmath}     \usepackage{boiboites}          \newboxedtheorem[boxcolor=orange, background=blue!5, titlebackground=blue!20,        titleboxcolor = black]{theo}{Théorème}{test}          \begin{document}     \begin{theo}[Loi des grands nombres]       Soit $(X_n)_{n\in \mathbb{N}}$ une suite de variables aléatoires réelles       indépendantes identiquement distribuées telles que $X_1 \in L^1$. Alors :       $$\frac{1}{n} \sum_{i=1}^n X_i \overset{\textnormal{p.s.}}{\longrightarrow}       \mathbb{E} (X_1) .$$     \end{theo}     \end{document}      Please, if someone could make it in TikZ code with counters independent from theorems, propositions. Also, if possible with different style and color, for example the style of theorems different from propositions or lemmas.


title: Trouble with sub figures

text: I just started using a big template for a paper. With this template, if I `\usepackage{subfig}`, I get : `Unsupported document class (or package) detected, (caption) usage of the caption package is not recommended`. After some googling, it looked like I should instead do `\usepackage[caption=false]{subfig}`. However, when I do that, my figures that use `\subfloat` produce `Undefined control sequence }`. Any suggestions? The error is produced with this :               \begin{figure}[H]     \centering     \subfloat[Correct position]{     \fbox{\rule{0pt}{2in} \rule{0.9\linewidth}{0pt}}     \label{fig:CatExperiments:Correct}     }     \caption{Cat sculpture in varying positions.}     \label{fig:CatExperiments}     \end{figure}      but is not produced if I comment that out. After more Googling, it sounds like `subfig` is deprecated, and I should use subcaption instead. So I tried               \usepackage{caption}     \usepackage{subcaption}          \begin{figure}[H]     \begin{center}     \fbox{\rule{0pt}{2in} \rule{0.9\linewidth}{0pt}}     \end{center}     \caption{Diagram of consistency function}     \label{fig:ConsistencyFunction}     \end{figure}      but now I get `Undefined control sequence \caption`. Here is a minimal example (note it uses this style:   rpi.edu/dept/arc/docs/latex-thesis/thesis.cls ):               \documentclass[chap]{thesis}          %\usepackage{subfig} % Error: Unsupported document class (or package) detected, (caption) usage of the caption package is not recommended. Fixed by caption=false below:     \usepackage[caption=false]{subfig} % Error: Undefined control sequence }          \begin{document}          \begin{figure}[H]     \centering     \subfloat[Correct position]{     \fbox{\rule{0pt}{2in} \rule{0.9\linewidth}{0pt}}     \label{fig:CatExperiments:Correct}     }     \caption{Cat sculpture in varying positions.}     \label{fig:CatExperiments}     \end{figure}          \end{document}      Any suggestions of what I should do to fix this?


title: How can i remove the header on the first page of my sections, but keep the footer?

text: i need some support with my headers and footers. Actually my expectation was that Latex was good right at these type of things, but i'm very confused that i don't get it sorted out. I have the article class, twosided. I define my own header and footer. Now on the first page of my sections i would like to have no header. I could live with writing \thispagestyle{something} just after the \section command. But when i use "plain" or "empty" i loose my footer that i have styled in the way i need it. In particular, plain page style puts the page number in the middle, empty completely removes the footer. I need my page numbers on the left or right, as it is a twosided document. My MWE is a bit verbose, it creates 5 pages with blindtext and a couple of sections. On the pages where the sections start, i somehow need my custom footer, but no header. Unfortunatelly i cannot switch to another class than article. Hope you can help me. Cheers Janos               \documentclass[a4paper,twoside]{article}          \usepackage{lipsum}     \usepackage{fancyhdr}          \fancyhf{}% Clear header/footer     \fancyhead[OR]{\textbf{\rightmark}}     \fancyhead[EL]{\textbf{\leftmark}}     \fancyfoot[OR]{\textbf{\thepage}}     \fancyfoot[EL]{\textbf{\thepage}}          \pagestyle{fancy}          \renewcommand{\sectionmark}[1]{\markboth{\thesection\quad#1}{}} % set the \leftmark          \begin{document}              \section{First Section}         \thispagestyle{plain}              \subsection{Subsection One}         \lipsum[1]         \subsection{Subsection Two}         \lipsum[1]         \lipsum[1]         \lipsum[1]         \lipsum[1]         \subsection{Subsection Three}         \lipsum[1]         \subsection{Subsection Four}         \lipsum[1]         \lipsum[1]         \lipsum[1]         \lipsum[1]         \lipsum[1]         \lipsum[1]              \newpage         \section{Second Section - I don't want a header here}         \thispagestyle{plain}         \thispagestyle{empty}              \subsection{I don't want a different footer though}         \lipsum[1]         \subsection{Nor can i live without my footer}         \lipsum[1]         \lipsum[1]     \end{document}


title: multiple minipages in document give indentation

text: I'm trying to create my CV using latex. To do this I am trying to divide parts of my document into 3 columns and an arbitrary amount of rows. I've been using the `minipage` environment, but I'm given an indent in the lower rows of the document. My question is how I should get around this challenge, or if I should use another of LaTeX's environments for my cause? Thank you in advance.               \documentclass[draft]{article}     \title{JOHN JOHNSON}     \author{CITY\\     BORN\\     TELEPHONE\\     E-MAIL}          \begin{document}     \maketitle     \footnotesize          \section*{\flushleft{EDUCATION}}     \hrule     \vspace{0.5cm}          \begin{minipage}[c]{0.15\textwidth}     2013 -- d.d     \end{minipage}     \begin{minipage}[c]{0.5\textwidth}     Masters degree in fluid mechanics     Analytical and numerical methods for a wave generated from an underwater     earthquake.     \end{minipage}     \begin{minipage}[c]{0.25\textwidth}     University of butt     \end{minipage}          \vspace{1cm}          \begin{minipage}[c]{0.15\textwidth}     2008 -- 2012     \end{minipage}     \begin{minipage}[c]{0.5\textwidth}     Bachelors degree in science, from the program physics, astronomy and      meteorology. Specialization in physics with an emphasis on mechanics.       analytical and numerical methods, and some lab work     \end{minipage}     \begin{minipage}[c]{0.25\textwidth}     University of butt     \end{minipage}          \vspace{1cm}          \begin{minipage}[c]{0.15\textwidth}     2005 -- 2008     \end{minipage}     \begin{minipage}[c]{0.5\textwidth}     Secondary school. A levels in mathematics, physics and computer systems     \end{minipage}     \begin{minipage}[c]{0.25\textwidth}     Silly school     \end{minipage}          \section*{\flushleft{WORK EXPERIENCE}}     \hrule     \vspace{0.5cm}          \end{document}      An image of the result: ![enter image description here](http://i.stack.imgur.com/pQ1by.png)


title: gensym for TeX?

text: In other macro systems (notably Lisp's), one often needs to store results into "temporary" variables which shouldn't clash with any variables in the environment where the macro is called. In Lisp, the mechanism for declaring such variables is "gensym"---basically it is a function that returns a fresh variable name that is guaranteed to be unused anywhere else. It does this essentially by appending an increasing integer onto a variable name prefix. [This is essentially correct, but slightly a lie. Lisp has to do some symbol magic to ensure the variable can't be referred to anywhere else.] Is there such a capability in Plain TeX?


title: Algining the Author Name in the title page in the Book

text: I am preparing report for my mini project. I have my name and register number and my supervisor. But These are not aligned. I mean, The supervisor name should appear in line with my author title. How do I do that? ![enter image description here](http://i.stack.imgur.com/9FFtp.png) Here is the MWE:               \documentclass[12pt,a4paper]{book}     \usepackage{graphicx}     \usepackage[a4paper,margin=1in,bindingoffset=0.2in,centering,headheight=0.3in,heightrounded]{geometry}  %% Can also use centering, or hcentering     \usepackage{fancyhdr}     \usepackage{libertine}     \begin{document}     \frontmatter     \newgeometry{margin=1in,bindingoffset=0in,centering,headheight=0.3in,heightrounded}     \begin{titlepage}     \newcommand{\HRule}{\rule{\linewidth}{0.5mm}}     \centering     {\LARGE\scshape\textbf{DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING}\\[1cm]}     {\Large\scshape\textbf{PONDICHERRY ENGINEERING COLLEGE\\PUDUCHERRY$-$605 014}\\[1cm]}     {\Large\scshape\textbf{DATABASE MANAGEMENT SYSTEMS LABORATORY}\\[0.5cm]}     {\large\scshape\textbf{MINI PROJECT REPORT}\\[0.5cm]}          \HRule \\[0.4cm]     %{ \huge \bfseries WEB BLOG}\\[0.4cm]     {\huge\bfseries PROJECT - FACULTY MANAGEMENT SYSTEM\\[0.4cm]}     \HRule \\[1.5cm]          \begin{minipage}{0.4\textwidth}     \begin{flushleft} \large      \emph{Author:}\\      \textsc{Subham Soni\\11TD0049}     \end{flushleft}     \end{minipage}     ~     \begin{minipage}{0.4\textwidth}     \begin{flushright} \large     \emph{Supervisor:}\\     \textsc{Dr. L. Charuladha}     \end{flushright}     \end{minipage}\\[3cm]     \includegraphics[scale=.50]{pecemblem}%\\[0.5cm]     \vfill     \Large \today     \end{titlepage}     \restoregeometry     \end{document}


title: LaTeX/Sweave - How to reproduce code blocks in an appendix?

text: I hope this is in the right place. For my statistics assignments, I do the computation inline with Sweave, like so:               \begin{itemize}      \item[Problem 1]       <<label=block1,eval=T,echo=F>>        varA <- 2+2       @            The answer to the problem is \Sexpr{varA}     \end{itemize}      I'd like to be able to reproduce the code in full in an appendix, but this doesn't work:               \subsection*{Code}      <<block1>>      @      There must be a clean way to do this that I'm missing.


title: Overlay images and block in beamer

text: I found this slides on Internet with a very nice style.   http://www.eecs.harvard.edu/~tov/pubs/alms/alms-popl2011-slides.pdf How can I overlay blocks and image as in this slides? Specially this effect: ![\(Overlayed boxes\)](http://i.stack.imgur.com/jSnc1.png)


title: Modify xcolor package for light and dark

text: Can anyone write a macro that will modify the `xcolor` package so that using `!x` will darken colors when x < 100 and lighten colors when x is between 100 and 200? e.g., I would like to be able to do `red!50` and `red!150` to get a dark and light red color respectively instead of having to do `red!50!black`.


title: How can I include the logo in some slides and remove in others, using beamer?

text: I want to include a logo in my slides. I am using this:               \logo{\includegraphics[scale=0.05]{../../Logos/CMS_logo_black.png}}      but, due to some graphics are big, in some slides the main graphic overlays the logo. How can I remove the logo from some slides but keep it in others? Thanks,


title: Different styles for \citet and \citep in regards of the "and" or "&" between authors using natbib

text: Is it possible to use both "and" and "&" using `natbib`? I've been trying to work it out for a long time now and I just can't seem to figure this one out. All I can manage is to either have "and" or "&" on both. What I want to achieve: `\citet`: "Given_a and Given_b (2013)" `\citep`: "(Given_a & Given_b, 2013)"


title: Math environments in tables with > and < preamble

text: I'm trying to put a `\begin{align*}` and `\end{align*}` for every entry at columns 2 and 3 of my table. But I'm getting errors that seem to say my environment markers are mismatched. I'm sure I've got my braces properly matched for the `>` and `<` table preambles. What could be the problem? Here's a minimal working example http://pastebin.tlhiv.org/wPmuJulo I'll quote it here:               \documentclass{memoir}          \usepackage{amsmath}     \usepackage{array}     \usepackage{longtable}     \usepackage{booktabs}     \newcounter{rowno}     \setcounter{rowno}{0}          \begin{document}       \begin{longtable}[l]{%         >{\stepcounter{rowno}\therowno.}c%         >{\begin{align*}}%           m{0.5\textwidth}%           <{\end{align*}}%         >{\begin{align*}}%           m{0.5\textwidth}%           <{\end{align*}}%         }         %m{0.5\textwidth}%         %m{0.5\textwidth}%         %\multicolumn{1}{r}{\textbf{No.}} & \textbf{Question} & \textbf{Answer} \\\hline         & E=mc^2 & E=mc^2       \end{longtable}     \end{document}      This results in the error:               error| \begin{align*} on input line 23 ended by \end{longtable}      ## What I expect from the `>` and `<` table preamble For example, I have a table preamble that looks like this. This is a one- column table:               \begin{longtable}{>{\begin{foobar}} l <{\end{foobar}}}       foo \\       bar \\       baz \\       quux     \end{longtable}      I expect that LaTeX would interpret it as though I've typed:               \begin{longtable}{l}       \begin{foobar}         foo       \end{foobar} \\       \begin{foobar}         bar       \end{foobar} \\       \begin{foobar}         baz       \end{foobar} \\       \begin{foobar}         quux       \end{foobar}     \end{longtable}      But it isn't quite the case. How do I make LaTeX work that way?


title: Using Lettrine or equivalent inside Verse environment

text: I am trying to use a drop cap in a verse environment. I was more or less successful doing it manually in the following:               \documentclass{book}          \usepackage{verse,anyfontsize}          \begin{document}          \begin{verse}     \hspace{22pt}his is line 1 of the verse.\\     \vspace{-8pt}{\fontsize{28}{30}\selectfont T}\hspace{2pt}This is line 2 of the verse.\\     Here is the third line.\\     And the fourth and final.          This is line 1 of the verse.\\     This is line 2 of the verse.\\     Here is the third line.\\     And the fourth and final.     \end{verse}          \end{document}       ![manual drop cap in verse environment](http://i.stack.imgur.com/HczA7.png) However, if I use a different letter for the drop cap, all the horizontal spacings would need to be changed by eye. And if I change the font size in the document, which would change the leading, then the vertical spacing in the above would need to be changed by eyeballing it as well. Is there a better way of doing this? Such that a different letter as drop cap or a different font size wouldn't throw it all out of whack? Appreciate any suggestions.


title: Image creation align* environment in htlatex

text: I have using `htlatex` for converting LaTeX to HTML. Everything is working fine except `\begin{align*}` environment is not converting to Image. Please find the MWE below:               \documentclass{book}     \usepackage{amsmath}     \begin{document}     \begin{align*}      3x+4&=16 \\      3x&=16-4\ \hbox{Subtract 4 from both sides.} \\      &=12 \\      x&=\frac{12}{3}\ \hbox{Divide both sides by 3.} \\      &=4     \end{align*}     \end{document}      `\frac{12}{13}` is only converted to Image remaining is not converting to Image format. How to get all the `\begin{align*}...\end{align*}` in Image format?


title: What to mention for editor if one isn't available for a book

text: When using **Bibtex - InBook option** , what do write for the **ALTeditor** if one isn't available for a book. The relevant fields are stated below. That means, I have to write something for the ALTeditor. I have two questions actually, for any book, where to locate the editor? In the event no editor is mentioned, what would I write for this field?               @InBook{•,     ALTauthor = {•},     ALTeditor = {•},     title = {•},     chapter = {•},     publisher = {•},     year = {•},     OPTkey = {•},     OPTvolume = {•},     OPTnumber = {•},     OPTseries = {•},     OPTtype = {•},     OPTaddress = {•},     OPTedition = {•},     OPTmonth = {•},     OPTpages = {•},     OPTnote = {•},     OPTannote = {•}     }


title: Typesetting furigana above and below original text

text: I have followed Japanese Problem using MacTeX 2011 to set up Ruby Furigana with TeX. I'm wondering if it is possible to set up Furigana both above and below the original character?


title: longtable width expands at random

text: I am using the longtable package to generate tables that may extend past a single page, and I am coming up with a strange format on particular tables. The table itself looks like this: ![Picture of table generated](http://i.stack.imgur.com/LtF1z.png) And here is the code I used to generate it:               \begin{longtable}{| l | l || r |}      \hline     \emph{Tag} & \emph{Name} & \emph{Percent Complete} \\     \hline          aaaaaaaaaaaaaaaaaaa & bbbbbbbbbbbbbbbbbbb & 100.0\% \\      aaaaaaaaa & bbbbbbbbb & 100.0\% \\      aaaaaaaaaa & bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb & 100.0\% \\      aaaaaaaaa & bbbbbbbbbbbbbbbbbbb & 100.0\% \\      aaaaaaaa & bbbbbbbbbbbbbbbbbbbb & 100.0\% \\      aaaaaaaa & bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb & 100.0\% \\      aaaaaaaaaa & bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb & 100.0\% \\      aaaaaaaaa & bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb & 100.0\% \\      aaaaaaaaa & bbbbbbbbbbbbbbbbbbbbbbbbbbb & 100.0\% \\      aaaaaaaaaa & bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb & 100.0\% \\      aaaaaaaaaa & bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb & 100.0\% \\      aaaaaaaaa & bbbbbbbbbbbbbbbbbbbbbbbbbbbbb & 100.0\% \\      aaaaaaaaa & bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb & 100.0\% \\      aaaaaaaaaa & bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb & 100.0\% \\      aaaaaaaaaa & bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb & 100.0\% \\      aaaaaaaaa & bbbbbbbbbbbbbbbbbbbbbbbbbb & 100.0\% \\      aaaaaaaaaa & bbbbbbbbbbbbbbbbbbbbbbb & 100.0\% \\      aaaaaaaaaa & bbbbbbbbbbbbbbbbbbbbbbbbb & 100.0\% \\      aaaaaaaaaa & bbbbbbbbbbbbbbbbbbbbbbbbb & 100.0\% \\      aaaaaaaaaa & bbbbbbbbbbbbbbbbbbbbbbbbbbb & 100.0\% \\      aaaaaaaaaa & bbbbbbbbbbbbbbbbb & 100.0\% \\      aaaaaaaaaa & bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb & 100.0\% \\      aaaaaaaaaa & bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb & 100.0\% \\      aaaaaa & bbbbbbb & 50.0\% \\      aaaaaa & bbbbbbb & 50.0\% \\      aaaaaaaaaa & bbbbbbbbbbbbbbbbbbbbbbbbbbb & 0.0\% \\      \hline     \end{longtable}       So why is the width of the table suddenly expanded to the right about 3/4 of the way down? Am I missing something, or is there something that isn't being formatted correctly?


title: Memoir Class, \sidebar formatting

text: In the `memoir` class, is there a way to get the `\sidebar` notes to be in paragraph style? I am looking for a similar effect that `fnpara` provides to footnotes. I have included an image of what I would like my sidenote column to look like. ![Image of what I desire my sidenote column to look like.](http://i.stack.imgur.com/glUwY.png)


title: How to display an underscore literal in math mode?

text: I want to display the literal underscore character `_` in math mode because it is used in defining a variable name. I'm using the LaTeX parser that the Python Sphinx documentation generator uses, and in trying to parse a `\\_` in math mode it gives this error:               System Message: ERROR/3 (/home/svc_citest/.hudson/jobs/build_doc/workspace/Research/Projects/doc/factors/crspAccruals/AccrualsImplementor.rst, line 83)          Syntax error: "\_"          Accruals = PreAccruals/AVG\_ASSETS      I would have thought that `\\_` would work in math mode as it does in text mode, but I'm getting the error... Here is the relevant doc page for Sphinx math mode: http://sphinx.pocoo.org/ext/math.html. It is mirroring AMS LaTeX, so if you need minimal working examples in which to insert the underscores, try there.


`$\mathbf{\omega}$`, for example, does not respond the font switch. Why do only capital Latin letters respond all font switches in math mode? Note: To bold the `\omega`, we **have to** use `\boldsymbol{\omega}`.               \documentclass{article}     \usepackage{amsmath}     \usepackage{bm}     \begin{document}     Need \verb|\boldsymbol| to bold the \verb|\omega|: $\boldsymbol{\omega}$          No need \verb|\boldsymbol| to bold A: $\mathbf{A}$     \end{document}


title: Mysterious overfull \hbox

text: I want each section title to be underlined, with the section number on the right. Furthermore I want to use `parskip`. This is what I did to get that:               \documentclass[12pt,a4paper]{article}          \usepackage[explicit]{titlesec}     \titleformat{name=\section}[block]{\normalfont\Large}{}{0pt}{\makebox[\textwidth]{#1 \hfill \thesection}}[\vspace{1ex}\titlerule]          \usepackage[parfill]{parskip}          \begin{document}     \section{Introduction}     \end{document}      However, now I get an error:               Overfull \hbox (30.0pt too wide) in paragraph at lines 9--9     |[]|      I turned on `\usepackage{showframe}`, but visually everything is within the borders. How can I fix this, or hide the warning?


title: How to set the chapter style in report class

text: When a chapter starts, it appears as, e.g., > Chapter 1   >  Introduction and it then in upper left corner of each page in the chapter the name appears as > CHAPTER 1 INTRODUCTION But I want that only the name of the chapter (i.e. just “INTRODUCTION”) appears there. I have no problem with page numbering.


title: Styling tikz-timing signal lines

text: I'm using the `tikz-timing` package and would like to apply either `snakes` type of styling, or say the `double` for double lines to signal lines. Consider the example below:               \documentclass{article}          \usepackage{tikz}     \usetikzlibrary{arrows,chains,matrix,positioning,scopes,snakes,decorations.markings}     \usepackage{tikz-timing}     \usetikztiminglibrary[rising arrows]{clockarrows}      \usetikztiminglibrary{advnodes}          \usepackage[graphics,tightpage,active]{preview}     \PreviewEnvironment{tikzpicture}     \newlength{\imagewidth}     \newlength{\imagescale}          \begin{document}          \begin{tikztimingtable}[timing/nodes/advanced,]       %       % start timing diagram       %       \textcolor{green}{ClockA} & [green] H N(ca01)          C N(ca02) C N(ca03) C N(ca04) C N(ca05) C N(ca06) C N(ca07) C N(ca08) \\ %       \textcolor{orange}{ClockB} & [orange,snake=zigzag,double] L N(cb01)          C N(cb02) C N(cb03) C N(cb04) C N(cb05) C N(cb06) C N(cb07) C N(cb08)  \\ %       %       % end timing diagram       %       % there must NOT be an uncommented line before \extracode!       %     \extracode       \tablerules       %\tablegrid       \begin{background}[line width=0.35pt]         \draw[snake=zigzag,double] (ca01) -- (cb01) ;        \end{background}     \end{tikztimingtable}          \end{document}      which results in the following timing diagram: ![Sample image](http://i.stack.imgur.com/biBWg.png) Obviously, the `snakes` and `double` work for normal lines, but not for signals. Is there a possibility to also 'style' the signal diagram lines in this way?


title: Problem using twocell in xypic

text: I tried using the `\rtwocell` command to produce twocells in a commutative diagram and my LaTeX installation (TeX Live on a Mac) does not recognize it. It seems to recognize everything else I have tried with `xypic`. Are there are known issues with `xypic` on TeX Live? This is the example I tried:               \documentclass[11pt]{article}     \usepackage[all,2cell]{xy}     \begin{document}     \[ \xymatrix{A\rtwocell^f_g{\eta}& B} \]     \end{document}       This is the error that is produced               ! Undefined control sequence.     <argument> \xyeatall@ \everyentry@ A\rtwocell                                                    ^f_g{\eta }     l.4 \[ \xymatrix{A\rtwocell^f_g{\eta}& B}                                               \]


title: Font substitution with XeLaTeX

text: I have an automatically generated document (using Doxygen) that has many different Unicode characters for many languages: Hebrew, Japanese, Greek, Arabic and more. Some parts of text displayed using monospace fonts. I've tried to use the DejaVu Sans font, which includes most of glyphs but I still miss some Japanese characters and some characters in the monospace fonts. Is there any way to tell XeLaTeX to make automatic substitutions if the font is missing glyphs? So it would for example use one font as main and if something is missing would fall back to another font or at least to a non-monospace font that has the correct glyphs?


Firstly, I would like to add additional line before the beginning of the document, I added a red cross where I would like to do this. ![enter image description here](http://i.stack.imgur.com/Fsna0.jpg) And secondly,I would like to change the police of the right side of my document where you found some informations like my telephone number, etc... And finally, how can I add a photo of me? for exemple in the left side by reducing the size of "mehmet demir" & "etudiant en ..." elements... You can find my code here:               \documentclass[11pt,a4paper]{moderncv}     \moderncvtheme[blue]{classic}                     \usepackage[utf8]{inputenc}     \usepackage[top=1.1cm, bottom=1.1cm, left=2cm, right=2cm]{geometry}     % Largeur de la colonne pour les dates     \setlength{\hintscolumnwidth}{2.5cm}          %\usepackage{palatino}     \firstname{Mehmet}     \familyname{Demir}     \title{Étudiant en réseaux et télécommunications}                   \address{50, rue de la Paix}{77270 Villeparisis}         \email{demir.mehmet90@gmail.com}                           %\homepage{www.madrzejewski.com}     \mobile{06 52 42 28 65}      \extrainfo{23 ans -- Permis B / Véhiculé}      If anyone can help me, please :)


title: How would I trace a pixelated graphic for my thesis?

text: I am writing a thesis with MS Word about drug delivery and I have a graphic that is a bit pixelated (so says the professor). I heard that TeX is a good thing to learn for this and I was wondering if anybody knows how I could improve my image. ![enter image description here](http://i.stack.imgur.com/vBBro.png)


title: g-brief2 resize address window

text: I want to send a `g-brief2` based letter with a very long address that does not fit the address window. The address is automatically hyphenated, which looks strange in this particular case. Does anybody know how I can make the address window bigger without changing the rest of the structure of `g-brief2`? MWE:               %% LyX 2.0.0 created this file.  For more info, see http://www.lyx.org/.     %% Do not edit unless you really know what you are doing.     \documentclass[12pt,german]{g-brief2}     \usepackage{mathpazo}     \usepackage[T1]{fontenc}     \usepackage[latin9]{inputenc}     \pagestyle{empty}     \setlength{\parskip}{\medskipamount}     \setlength{\parindent}{0pt}          \makeatletter     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.      \newcommand{\LyxGruss}[1]        { \Gruss{#1}{0.5cm} }          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.     \fenstermarken % prints address window marks     \faltmarken % prints folding marks     %\lochermarke % prints puncher marks      \trennlinien % prints striplines     %\unserzeichen % prints "our ref" instead of "my ref"                    \makeatother          \usepackage{babel}     \begin{document}               \Adresse{     {\large Prof. Dr. X Y}\\     {\large Humongously long address. Seriously, it's that long!}\\     }               \Datum{\today}               \Betreff{Address shortening}               \Anrede{Dear Prof Y,}               \LyxGruss{Best regards,}               \Unterschrift{j}          \begin{g-brief}     Please shorten your address!     \end{g-brief}          \end{document}


title: How to exclude or remove weekends from ganttchart

text: Hi there and sorry for the incomplete question which only a psychic could answer :-) My problem is that I want to have my nice ganttchart or time schedule, but without including weekends. As my problem is, that if I set the dates for a project part for eg. 3 days and the next one too, than it occurs that the second one is longer as it includes the weekend. Easiest to see on AP1100 and AP1200 which should be equal in length. I would really appreciate help, thanks.               \documentclass[a4paper,oneside,11pt]{scrreprt}  %Definition der Dokumentenklasse          %------------------------------------     \usepackage[ngerman, english]{babel}        % Englisches sprachpacket          \usepackage{pdfpages}           % Einbinden von PDF-Seiten     \usepackage{subfig}             % Teilabbildungen in einer Abbildung     \usepackage{tabularx}           % Um Tabellen auf die breite der Seite zu bekommen, werden mit "X" markierte  Spalten gestaucht, die anderen nicht     \usepackage{courier}            % Laden der Schriftart Courier     \usepackage{ulem}           % Erlaubt Unterstreichen mit \uline, \uuline \uwave usw.     \usepackage{lscape}         % Querformatiges Beschreiben einzelner Abschnitte mit \begin{landscape} Text \end{landscape}     \usepackage{tikz}               % TikZ - ein geniales Zeichentool vor allem für Skizzen oder Schemata, Programmabläufe,      \usepackage{pgf}            % Für Tikz     \usepackage{pgfgantt}           % Zum Erstellen eines Gantt-Charts          \normalem         \oddsidemargin   0.0cm         \topmargin      -1.0cm                  \textheight     24.0cm         \textwidth      16.0cm         \fboxsep         2.0ex         \setlength{\jot}{0.5\baselineskip}         \setlength{\captionmargin}{20pt}          %############################################################################################################     % Relevant for question from here i guess     %#############################################################################################################     \begin{document}          \begin{landscape}     %\noindent\resizebox{\textwidth}{!}{    % Einfügen, falls zu groß, siehe auch ganttchart ende     \noindent\resizebox{\linewidth}{!}{ % Einfügen, falls zu groß, siehe auch ganttchart ende     \begin{ganttchart}[hgrid,                        time slot format = isodate,                         x unit=0.25cm,   % Zum komprimieren des Charts in x-Richtung                        %y unit chart=0.6cm,                        %compress calendar,  % Komprimiert den Chart in der Breite                        calendar week text = {W~\currentweek},                        chart element start border = right,                        bar/.append style={fill=blue!40, rounded corners=2pt},                        bar incomplete/.append style={fill=blue!10},                        bar label node/.append style={align=left, text width=8.8cm},                        group label node/.append style={align=left, text width=9.0cm},                        milestone label node/.append style={align=left, text width=9.0cm},                        bar progress label node/.style={right=2mm},                        progress label text = {\pgfmathprintnumber[precision=0, verbatim]{#1}\%},                       ]{2014-05-12}{2014-09-14}            \gantttitlecalendar{year, month=shortname, week}\\          %if(weekend) [shape=coordinate];       \ganttgroup[progress=00]     {AP 1000: test eee}{2014-05-12}{2014-05-23}\\    %       \ganttbar[progress=00]       {AP 1100: test eee}{2014-05-12}{2014-05-14}\\       \ganttlinkedbar[progress=00] {AP 1200: test eee}{2014-05-15}{2014-05-19}\\         \ganttlinkedbar[progress=00] {AP 1300: test eee}{2014-05-20}{2014-05-23}\\            \ganttgroup{AP 2000: test eee}{2014-05-26}{2014-06-11}\\       \ganttbar  {AP 2100: test eee}{2014-05-26}{2014-05-28}\\       \ganttbar  {AP 2200: test eee}{2014-05-29}{2014-05-30}\\       \ganttbar  {AP 2300: test eee}{2014-06-02}{2014-06-06}\\         \ganttbar  {AP 2400: test eee}{2014-06-09}{2014-06-11}\\              \ganttgroup{AP 3000: test eee}{2014-06-12}{2014-08-13}\\       \ganttbar  {AP 3100: test eee}{2014-06-12}{2014-07-17}\\       \ganttbar  {AP 3200: test eee}{2014-07-18}{2014-07-21}\\         \ganttbar  {AP 3300: test eee}{2014-07-22}{2014-08-05}\\         \ganttbar  {AP 3300: test eee}{2014-08-06}{2014-08-13}\\              \ganttgroup{AP 4000: test eee}{2014-08-14}{2014-08-29}\\       \ganttbar  {AP 4100: test eee}{2014-08-14}{2014-08-20}\\       \ganttbar  {AP 4200: test eee}{2014-08-21}{2014-08-27}\\         \ganttbar  {AP 4300: test eee}{2014-08-28}{2014-08-29}\\            \ganttgroup{AP 5000: test eee}{2014-09-01}{2014-09-12}\\       \ganttbar  {AP 5100: test eee}{2014-09-01}{2014-09-05}\\       \ganttbar  {AP 5200: test eee}{2014-09-08}{2014-09-10}\\       \ganttbar  {AP 5300: test eee}{2014-09-11}{2014-09-12}\\            \ganttmilestone{Status}{2014-05-12}\\           \end{ganttchart}     } % bei noindent ebenfalls einfügen oder entfernen     \end{landscape}     \end{document}     %#####################################################################################################


title: How can I set RefTex default reference format?

text: I'm using RefTex and cleveref. When I want to add a cross-reference I need to enter `C-c ) C <SPC>` to select the uppercase (\Cref) reference format and show all label types. I use this method to search 99% of the time, so I would like to bind it to a key sequence or just set it as the default. ## EDIT In the end I bound it to a fresh key, and do not override the standard behaviour. Instead I use a `let` of `reftex-refstyle`.               (eval-after-load "reftex"       '(progn          (define-key reftex-mode-map (kbd "C-c c")            (lambda ()          (interactive)          (let ((reftex-refstyle "\\Cref"))            (reftex-reference " "))))))


title: tikz code for frame dragging

text: I'll appreciate suggestions for a code that create the following nice visualization of frame-dragging (or anything alike): ![enter image description here](http://i.stack.imgur.com/RmnWS.gif)


title: biblatex-apa -- biber

text: I'm using LaTeX for four days now and I have a problem with the `biblatex-apa` style. Here is the important part of my header:               \documentclass[         a4paper,         12pt,         %twocolumn,         headings=normal     % big,small     ]{scrreprt}      \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage[english,ngerman]{babel}      \usepackage{geometry}     \geometry{         a4paper,         top=3.5cm,         left=2.3cm,         right=4.5cm,         bottom=4.5cm,}          \usepackage[babel]{csquotes}     \usepackage[style=apa,backend=biber]{biblatex}     \bibliography{literatur}             \DeclareLanguageMapping{ngerman}{ngerman-apa}          \begin{document}          \cite{example}          \end{document}      I'm using Texmaker and BibTeX. And it doesn't work. :( There are undefinded references and I should rerun Biber on the file (`biblatex`) apa (`biblatex`) and rerun LaTeX afterwards. I already tried to run `bibtex`, `latex`, `bibtex`, `latex`, but nothing changed. Can somebody please help me!


title: How to use decimal HTML characters

text: How do I use decimal based HTML characters such as these: `ﭑﭒﭓﭔﭕﭖﭗﭘﭙ` with a special truetype font that assigns a different symbol for each of the above characters? For simplicity, let's say I want to apply Times New Roman font to obtain following: ﭑﭒﭓﭔﭕﭖﭗﭘﭙ Is it possible with LaTeX?


title: Metapost labels do not work with MiKTeX 2.9

text: I have upgraded from MiKTeX 2.8 to 2.9. All the label commands that earlier worked in Metapost are not working anymore. I am using MiKTeX in conjunction with TeXnicCenter. The MetaPost version apparently is 1.803 (MiKTeX 2.9). I am compiling the MP file separately using `mpost.exe`, the build process used for compiling MP files is highlighted below. ![The way mpost.exe is called from TeXnicCenter](http://i.stack.imgur.com/JlK2Y.png) Example code for MP file is               beginfig(1);          draw (0,0)--(2cm,3cm);     draw thelabel.lft(btex $m$ etex,(0,0));          endfig;     end;      The output status from compilation is as follows:               --------------------Output Profile: Metapost--------------------     Metapost> This is MetaPost, version 1.803 (MiKTeX 2.9)     Metapost> (mpost.mp (C:/Program Files (x86)/MiKTeX 2.9/metapost/base/plain.mp     Metapost> Preloading the plain mem file, version 1.004) )     Metapost> (C:/Vishnu/Miscellaneous/Metapost/Label problem/trial1.mp      Further each time compilation is carried out new files are created like `mp880129.tex`, `mp80530.tex` with the following content               \gdef\mpxshipout{\shipout\hbox\bgroup     \setbox0=\hbox\bgroup}     \gdef\stopmpxshipout{\egroup  \dimen0=\ht0 \advance\dimen0\dp0     \dimen1=\ht0 \dimen2=\dp0     \setbox0=\hbox\bgroup     \box0     \ifnum\dimen0>0 \vrule width1sp height\dimen1 depth\dimen2      \else \vrule width1sp height1sp depth0sp\relax     \fi\egroup     \ht0=0pt \dp0=0pt \box0 \egroup}     \mpxshipout% line 4 C:/Vishnu/Miscellaneous/Metapost/Label problem/trial1.mp     $m$%     \stopmpxshipout     \end{document}      I request some help to resolve this issue. I have been unable to find a solution for too long now.


title: How to print name of month as string?

text: I know I can print the current month (or day) as an integer with `month` (or `day`). How can I make use of the localisation information to print it as a string?               03 -> March      EDIT: Added a MWE .bib file:               @ONLINE{IPAustraliaStandardPatentApplication,         author = {{IP Australia}},         title = {Standard patent application process | IP Australia},         year = 2013,            note = {http://www.ipaustralia.gov.au/get-the-right-ip/patents/patent-application-process/standard-patent-application-process/},          urldate = {2013-05-21},     }      macro:               % URL Dates     \renewbibmacro*{urldate}{%         \printtext[parens]{%           \printfield{urlday}%           \setunit*{\addspace}%           \printfield{urlmonth}%           \setunit*{\addspace}%           \printfield{urlyear}%         }%         \newunit%     }         I want `urlmonth` to be printed as, eg, `May`.


title: Remove bold from Table of Contents

text: I don't want the bold font in the Table of Contents. I am using the `memoir` class (and the `dash` chapter style). Any suggestions?


title: How do I Make a Three-Column Title?

text: I'm trying to format a title for my document. Normally, I write `<Title> \hfill \today`, to have a title nicely split into two columns, each aligned at the left and right margin, respectively. Now I want to add my name into the middle, i.e. I want to split the title into three columns: aligned left, center, and right. How do I do this? I tried `tabbing`, but I don't know how to configure the `hspace{}` correctly to get three columns of equal length.


title: 80 column rule for tex

text: In many other computing language, we still have reasons to stick into 80 column rule. e.g., easy to print out for checking, convenient for debugging etc. I am not sure if you also use 80 column rule for `LaTeX` editing. If so, please give some reasons why it is convinent. PS: I am using `AUCtex` for editing.


title: Fancy code environment

text: I'm writing a small tutorial about LaTeX. So I'd like to insert some code and obtain the result on the right. I'm almost there. I got the desired output but I'd like something more clear, that is, an easier to type the code. **Consider the following MWE:**               \documentclass[draft,11pt,a4paper]{article}     \usepackage{showexpl}          \usepackage[section]{minted}          \newminted{tex}{         bgcolor=bg,         gobble=1,         linenos=true,         firstline=1,         firstnumber=1,         fontfamily=courier,         fontsize=\footnotesize,         numberblanklines=false,         numbersep=3mm,         xleftmargin=6mm,         xrightmargin=5mm,     }          \definecolor{bg}{rgb}{0.95,0.95,0.95}               \usepackage{lipsum}          \newlength\ideal     \setlength{\ideal}{.5\linewidth - 2\fboxsep -2\fboxrule}          \begin{document}          \lipsum[4]     \begin{listing}     \begin{texcode}      \begin{equation}       \frac{3}{2}=\frac{a}{b}      \end{equation}     \end{texcode}     \end{listing}     \lipsum[4]     \begin{listing}     \begin{minipage}{\ideal}     \begin{texcode}      \begin{equation}       \frac{3}{2}=\frac{a}{b}      \end{equation}     \end{texcode}     \end{minipage}     \hfill     \begin{minipage}{\ideal}      \begin{equation}       \frac{3}{2}=\frac{a}{b}      \end{equation}     \end{minipage}     \caption{title}     \end{listing}     \lipsum[4]          \end{document}      The output is: ![enter image description here](http://i.stack.imgur.com/CYH6l.png) I'd like to know if this is the right way or if is possible to avoid typing code twice. I'd like to define an environment `myenv` and then obtain the same as Listing 0.1 simply using               \begin{myenv}      \begin{equation}       \frac{3}{2}=\frac{a}{b}      \end{equation}     \end{myenv}      And also the caption would be optional. I tried to use `showexpl` but no success until now. **Edit** I've just found this topic but the result there does not produce the output on the right.


title: Conflict between TikZ and *.cls file

text: I am attempting to convert a document from one class to another. In the original class, I am able to use TikZ and PGFPlots for my graphics. However, in the new class, I receive the following error:               ! Missing number, treated as zero.     <to be read again>                         }     l.51 \section{Introduction}      If I remove all of the `\section{}` commands, the document compiles fine. Furthermore, the `\section*{}` commands do not cause an error. The class `.cls` file for which I am experiencing the errors can be found at: https://bitbucket.org/lgriffiths/lyx- classes/src/df41b5298566/_miktex_tex_latex/ifasd/ifasd.cls # MWE               \documentclass{ifasd}     \usepackage{lipsum}     \usepackage{tikz}     \begin{document}          \section*{Testing One}     \lipsum[1]          \section*{Testing Two}     \lipsum[2]          \section{Testing Three}     \lipsum[1]          \end{document}


title: Texmaker does not compile but indicates success

text: I am using a Texmaker-Miktex setup. Usually everything is working fine. My code is okay, I know that. But sometimes, if I click on compile, in the log file window, the success-indicating blue lines appear immediately. This means, my document is not really being compiled. There are no errors, no warnings. I may be working for hours and it is okay, then it suddenly appears and I can't trace the reason. Does anyone have same experience and knows a solution? If I delete the logfile, trying to "reset" Texmaker this way, it throws an error "can't find logfile".


title: can't find tfm sometimes

text: I'm trying to use this Garamond package to use its Garamond font, and I can't use it if I try to tidy the files into their own subdirectory. Contrary to the instructions, if I unpack the zip in the same directory as my document (giving me a `package` directory with many .tfm and other files) and add `package` to my TEXINPUTS path, compiling fails with:               [1] (input/package/t1ggm.fd)     kpathsea: Running mktextfm ggmr8t     mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input ggmr8t     This is METAFONT, Version 2.718281 (TeX Live 2012/Debian)               kpathsea: Running mktexmf ggmr8t     ! I can't find file `ggmr8t'.     <*> ...:=ljfour; mag:=1; nonstopmode; input ggmr8t          Please type another input file name     ! Emergency stop.     <*> ...:=ljfour; mag:=1; nonstopmode; input ggmr8t          Transcript written on mfput.log.     grep: ggmr8t.log: No such file or directory     mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input ggmr8t' failed to make ggmr8t.tfm.     kpathsea: Appending font creation commands to missfont.log.          ! Font T1/ggm/m/n/7=ggmr8t at 7.0pt not loadable: Metric (TFM) file not found.     <to be read again>                        relax      l.72 \garamond          ?      However, if I extract all of the files from the `package` directory into the same directory as my document, it compiles fine and my text is in Garamond as desired. I'd really prefer to keep all these files in a subdirectory, whether that's named `package` or (preferably) `garamond`. Is there some extra environment variable to set for the tfm files, so it doesn't try to compile them again from scratch?


title: Bold Captions in figure and tables but not on the list of tables and figures

text: I am using "normal" table, sidewaystable and sideways figures. In my code I put per \renewcommand the captions of the tables (inclusive table numbering) in bold. But this does not work for the sideways tables and figures. So I tried to to "bold" the captions directly with \textbf{}. But then the problem appears that the entries for these specific figures and tables are bold as well. I try to reduce my code a little bit. (Note that I am using dcolumn as well as siunitx for my tables.)               %General Layout     \documentclass[a4paper, 12pt]{article}     \usepackage[left=3cm, right=2cm, top=3cm, bottom=4cm]{geometry}          %Font encoding     \usepackage[T1]{fontenc}          %Font     \usepackage[utf8]{inputenc}          %Language     \usepackage[english]{babel}          %Mathematics     \usepackage{amsmath}     \usepackage{amssymb}     \usepackage{textgreek}          \usepackage{rotating}     \usepackage{tikz}     \usepackage[outdir=./]{epstopdf}     \usepackage{graphicx}     \usepackage{float}     \usepackage{pdfpages}               %Tables     \usepackage{multirow}     \usepackage{longtable}     \usepackage{booktabs}     \usepackage{tabulary}     \usepackage{tabularx}     \usepackage{fixltx2e}     \usepackage{threeparttable}     \usepackage{threeparttablex}     \usepackage{pdflscape, longtable}          \usepackage[labelsep=newline,% line break after label        justification=centering,        singlelinecheck=off, labelfont=bf]{caption}          \usepackage{subcaption}     \usepackage{siunitx}     \usepackage{etoolbox}     \robustify\bfseries      \sisetup{detect-weight=true,detect-inline-weight=math}     \usepackage{fancybox}     \usepackage{array}               \usepackage{dcolumn}     \newcolumntype{d}[1]{D{.}{.}{#1}}     \newcommand\mc[1]{\multicolumn{1}{c}{#1}}     \usepackage{colortbl}     \makeatletter% Set distance from top of page to first float     \setlength{\@fptop}{5pt}     \makeatother          %Writing     \usepackage{txfonts}     \usepackage[doublespacing]{setspace}               %% Some Conventions I have to use      \renewcommand{\thesection}{\Roman{section}}      \renewcommand{\thesubsection}{\Alph{subsection}}      \renewcommand{\thetable}{\Roman{table}}      \renewcommand{\abstractname}{\textsc{ABSTRACT}}     \makeatletter     % we need a period (.) after sectioning numbers, but not in cites thereto.     \renewcommand{\@seccntformat}[1]{{\csname the#1\endcsname}.\hspace{0.5em}}          \long\def\@makefigcaption#1#2{%      \vskip\abovecaptionskip      %#1\\\footnotesize#2      %\sbox\@tempboxa{\footnotesize\bf#1.\footnotesize#2}%      %\sbox\@tempboxa{\footnotesize{\textbf{#1.}} footnotesize#2}%      %\sbox\@tempboxa{\textbf{#1.} footnotesize#2}%      %\sbox\@tempboxa      \footnotesize\textbf{#1.} \footnotesize#2      \ifdim \wd\@tempboxa >\hsize      \textbf{#1.} #2\par      \else       \global \@minipagefalse       \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%      \fi      \vskip\belowcaptionskip}           \renewcommand{\figure}{\let\@makecaption\@makefigcaption\@float{figure}}          \long\def\@maketblcaption#1#2{%      \vskip\abovecaptionskip %Same size for Numbering and Caption of Tables      \begin{center}\normalsize\bf#1\\\normalsize#2\end{center}     % \sbox\@tempboxa{\textbf{#1.} #2}%     % \global \@minipagefalse     % \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%      \vskip\belowcaptionskip}           \renewcommand{\table}{\let\@makecaption\@maketblcaption\@float{table}}     %\renewcommand{\sidewaystable}{\let\@makecaption\@maketblcaption\@float{sidewaystable}}      note the renewcommand for \sidewaystable is not working (it causes an error, therefore I put it as a comment               \makeatother               \begin{document}          \listoffigures     \listoftables          \begin{table}[ht!]     \setlength\tabcolsep{0.1pt}  % default value: 6.0pt          \begin{threeparttable}     \caption{Summary Statistics}     \label{tab:SummaryStatistics}     \footnotesize     \begin{tabular*}{\textwidth}%       { @{\extracolsep{\fill}} l d{5.0} *{7}{d{2.3}} }     \toprule     Variables\tnote{a}      & \mc{\hphantom{$-$}N$\hphantom{^{**}}$} & \mc{\hphantom{$-$}Mean$\hphantom{^{**}}$} & \mc{\hphantom{$-$}St.\,Dev.$\hphantom{^{**}}$} & \mc{\hphantom{$-$}Min.$\hphantom{^{**}}$} & \mc{\hphantom{$-$}Q1$\hphantom{^{**}}$} & \mc{\hphantom{$-$}Median$\hphantom{^{**}}$} & \mc{\hphantom{$-$}Q3$\hphantom{^{**}}$} & \mc{\hphantom{$-$}Max.} \\ [0.5ex]     \midrule     \multicolumn{9}{l}{\itshape Earnings Surprise} \\ [0.5ex]     SUE1      & \mc{\hphantom{$-$}14070$\hphantom{^{**}}$} & \mc{$-$0.001$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.182$\hphantom{^{**}}$} & \mc{$-$7.450$\hphantom{^{**}}$} &\mc{$-$0.003$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.001$\hphantom{^{**}}$} & \mc{\hphantom{$-$}0.005$\hphantom{^{**}}$} & \mc{\hphantom{$-$}6.240} \\     \bottomrule     \end{tabular*}     \begin{tablenotes}     \footnotesize     \item[a] A table-specific footnote     test test test test test test test test test test test test test test test test      \end{tablenotes}     \end{threeparttable}     \end{table}          \begin{sidewaystable}[htp!]     \robustify\bfseries     \robustify\itshape     \footnotesize     \sisetup{group-separator={}}     \caption{Pearson and Spearman Rank Correlation Matrix}     \begin{threeparttable}     \begin{minipage}{\textwidth}     test test test test test test test test test test test test test test test test      \\     \end{minipage}     \begin{tabular*}{\textwidth}     {        @{\extracolsep{\fill}}        l        *{11}{S[table-format=-1.3]}        @{}       }     \toprule     & {(1)} & {(2)} & {(3)} & {(4)} & {(5)} & {(6)} & {(7)} & {(8)} & {(9)} & {(10)} & {(11)}\\     \midrule     (1) (D)SUE1      & & \textbf{\hphantom{$-$}0.877} & \textbf{\hphantom{$-$}0.257} & -0.005 & \textbf{$-$0.095} & \textbf{$-$0.101} & \textbf{$-$0.093} & 0.000 & \textbf{$-$0.061} & \textbf{\hphantom{$-$}0.089} & -0.001 \\     (2) (D)SUE2      & \textbf{\hphantom{$-$}0.858} &  & \textbf{\hphantom{$-$}0.286} & -0.008 & \textbf{$-$0.093} & \textbf{$-$0.101} & \textbf{$-$0.088} & -0.004 & \textbf{$-$0.062} & \textbf{\hphantom{$-$}0.095} & -0.005 \\     (3) (D)SUE3      & \textbf{\hphantom{$-$}0.256} & \textbf{\hphantom{$-$}0.295} &  & 0.010 & 0.008 & \textbf{$-$0.144} & \textbf{$-$0.076} & 0.006 & \textbf{$-$0.043} & \textbf{\hphantom{$-$}0.165} & \textbf{$-$0.083} \\ [1ex]     \bottomrule     \end{tabular*}     \begin{tablenotes}     \item[a] A subtable-specific footnote          \end{tablenotes}          \end{threeparttable}     \end{sidewaystable}          \centering     \begin{sidewaysfigure}     \caption{\textbf{Cumulated Average Index-Adjusted CDS Return for Extreme Earnings Decile Portfolios} \label{fig:CASC}}     \begin{minipage}{\textheight}     \footnotesize test test test testtest test test testtest test test testtest test      \bigskip     \end{minipage}     \subfloat[DSUE1 $-$ Full Sample]{\includegraphics[width=0.31\textheight]{aasc_full_dsue1.eps}\label{fig:fullDSUE1}} \quad \bigskip     \subfloat[DSUE2 $-$ Full Sample]{\includegraphics[width=0.31\textheight]{aasc_full_dsue2.eps}\label{fig:fullDSUE2}}\quad      \subfloat[DSUE3 $-$ Full Sample]{\includegraphics[width=0.31\textheight]{aasc_full_dsue3.eps}\label{fig:fullDSUE3}} \quad      \end{sidewaysfigure}          \end{document}      thank you very much EDIT: this is how the figure looks like: ![figure bold subcaptions](http://i.stack.imgur.com/S1ijW.png)


title: float main tables/figures after main text THEN add appendix and appendix tables

text: I'm struggling with `\usepackage{endfloat}`, `\documentclass[12pt]{elsarticle}`, and the appendix. **What I want:** I want the main text, followed by tables and figures inserted/cited in the main text (floated to the _end of the main document only_ ), and then I want the appendix with its tables exactly where specified. I want the main text tables to be numbered 1, 2, ..., T. I want the appendix tables to be numbered A1, A2, ..., A. I'd also like the main document through the end floated tables to be numbered 1, 2, ..., P. Then I want the appendix to start over with roman numerals. **Here's what I tried:**               \documentclass[12pt]{elsarticle}     \usepackage[notablist]{endfloat}     \usepackage{threeparttable}     \usepackage[toc,page]{appendix}     \usepackage{booktabs}     \usepackage{caption}     \usepackage{fancyhdr}     \pagestyle{fancy}     \lhead{}     \chead{}     \fancyfoot[C]{}     \rhead{My short title \thepage}     \renewcommand{\headrulewidth}{0pt}          % get rid of footer included in elsarticle     \makeatletter     \def\ps@pprintTitle{%      \let\@oddhead\@empty      \let\@evenhead\@empty      \def\@oddfoot{}%      \let\@evenfoot\@oddfoot}     \makeatother          % appendix page numbering     \let\origappendix\appendix % save the existing appendix command     \renewcommand\appendix{\clearpage\pagenumbering{roman}\origappendix}               \begin{document}\thispagestyle{empty}          \begin{frontmatter}     \title{My long title}          \author[add1]{Me\corref{cor1}}     \ead{me@email.com}     \author[add1]{You}     \ead{you@email.com}          \cortext[cor1]{Please address correspondence to me}     \address[add1]{Address}          \begin{abstract}     Abstract       \end{abstract}       \begin{keyword}         Keywords       \end{keyword}          \end{frontmatter}          My text page 1          \newpage     My text page 2 and Table \ref{tab}.          \newpage     My page 3          \newpage          \begin{table}     \centerline{\begin{threeparttable}       \caption{My table}       \label{tab}       \centering       \begin{tabular}{lrr}       \toprule      Col1 & Col2 & Col3 \\       \midrule       1 & 2 & 3 \\       4 & 5 & 6 \\       \bottomrule       \end{tabular}       \begin{tablenotes}       \small       \item My note       \end{tablenotes}       \end{threeparttable}}     \end{table}          \thispagestyle{plain}          \makeatletter     \efloat@restorefloats     \makeatother     \setcounter{figure}{0} % Start again     \renewcommand\thefigure{\arabic{figure}}     \setcounter{table}{0} % Start again     \renewcommand\thefigure{\arabic{table}}          \appendix          My appendix and Table \ref{apptab}. I want the appendix to appear after Table \ref{tab} which should be floated to the end of the main document.           In other words, I want the main text, followed by tables and figures inserted in the main text (floated to the end), and then I want the appendix with its tables exactly where specified.           \begin{table}[H]     \centerline{\begin{threeparttable}       \caption{Table should be in appendix}       \label{apptab}       \centering       \begin{tabular}{lrr}       \toprule      Col1 & Col2 & Col3 \\       \midrule       7 & 8 & 9 \\       10 & 11 & 12 \\       \bottomrule       \end{tabular}       \begin{tablenotes}       \small       \item My note       \end{tablenotes}       \end{threeparttable}}     \end{table}          \end{document}


title: How to wrap content after \item[] in parenthesis?

text: I want to redefine `\item[]` to make it work like:               \documentclass[fontsize=22pt]{scrreprt}          \UsePackage[inline]{enumitem}     \newlist{notes}{description}{1}     \setlist[notes]{       leftmargin=0.3\linewidth,labelsep=2em,       itemsep=1.5ex,style=multiline,font=\normalfont     }          \def\removespecial{       \catcode`\_=12       \catcode`\^=12       \catcode`\$=12       \catcode`\%=12       \catcode`\#=12       \catcode`\&=12       \catcode`\~=12     }          \begin{document}     \begin{notes}          \item[something]     {\removespecial\obeylines\obeyspaces       ...some content...     }          \end{notes}     \end{document}      That is, to wrap the content after `\item[]` in parentheses so that I can use `\obeylines` etc inside. Without the parentheses, macros like `\obeylines` would affect the rest of the document and break some other commands. However, while manully adding the parentheses works, I can't figure out how to do it in macro (by redefining `\item[]` or some other ways). Can anyone show me how to do it?


title: The chapters appear twice in the bookmark

text: First of all sorry for my bad English. I am designing a book and I have problems with the `bookmark` when I compile the file.tex in file.pdf. The chapters appear twice. In my code I don't want to list the chapters, but I want them to appear in the `tableofcontents` so I had to use `\addcontentsline{toc}{chapter}{chapter name}` to add them to the index, but this causes re-add the chapters in the `bookmark` Additionally I'm using the package `bookmark` to link the chapters in the page that I desire. **What can I do to display the chapters in the tableofcontents and in the bookmark of file.pdf once?** This is my code:               \documentclass{book}      ...       \usepackage{bookmark}          \begin{document}          \chapter*{Presentación}   % Presentation of the book     \bookmark[page=2,level=0]{Presentación}            \tableofcontents          \chapter*{Aspectos téncicos} % From here they appear in the index      \bookmark[page=4,level=0]{Aspectos téncicos}     \addcontentsline{toc}{chapter}{Aspectos téncicos}          \end{document}


title: Reduce the spacing of the Table of Contents

text: How do I reduce the line spacing in my Table of Contents? I tried with `\renewcommand{\baselinestretch}{1}` but it doesn't...


title: Table with rounded corners?

text: ![enter image description here](http://i.stack.imgur.com/zqjTe.png) This table I can create with this code:               \begin{tabular}{|l|l|}       \hline       \multicolumn{2}{|c|}{Team sheet} \\       \hline       GK & Paul Robinson \\       LB & Lucus Radebe \\       DC & Michael Duberry \\       DC & Dominic Matteo \\       RB & Didier Domi \\       MC & David Batty \\       MC & Eirik Bakke \\       MC & Jody Morris \\       FW & Jamie McMaster \\       ST & Alan Smith \\       ST & Mark Viduka \\       \hline     \end{tabular}      But is there a possibility to use rounded corners? I'm talking about the 4 main corners and not the corners of each cell.


title: Classical encyclopedia or dictionary index reference style

text: In classical encyclopedias and dictionaries you can often find a reference to the first entry (and sometimes the last) entry of that page. E.g., in the header of the page (alpha - bravo) means that alpha is the first index entry on the page and bravo is the last one. I would like to create such a style for my index by placing this information in either the header or the footer. Currently, I use the standard LaTeX indexing mechanism (with `makeindex` and a style file in combination with the `memoir` class) to generate the index, however I could not find an easy way to implement this. Does anyone know which packages or custom code support this?


title: Paretheses should match same height on single line in multiple arrays

text: Given is following formula:               \[     a^{(k)}=\left(\begin{array}{c}     a_1^{(k)}\\     \vdots\\     a_n^{(k)}     \end{array}\right)\to\left(\begin{array}{c}     a_1\\     \vdots\\     a_n     \end{array}\right)=a     \]      ![formula](http://i.stack.imgur.com/7LA2w.png) The first vector is a little bit more height than the second one. Is it possible to have the same height for all four parentheses?


title: LaTeX Error: "cmap.sty" not found

text: Could anybody help me with my situation. When I try to see my Lyx document in pdf Lyx write this Error note               "LaTeX Error: "cmap.sty" not found"      and in description               "*** (cannot \read from terminal in nonstop modes)".       What could I do with it?


title: Maximizing page usage for a table

text: I'm printing a table enclosing 4 other data tables, one per page, and would like to maximize the space available by reducing the margins as much as possible. I still need the page number, but wonder if it can be made to take minimal space. My table contains `resizebox`'ed cells, so I wonder what surrounding mechanics can be employed to get rid of most of the margins specifically for those pages with such tables?


title: longtabu problem: what have I missed?

text: Can someone check the reproducibility of this non-compilation? Here is the LaTeX file:               \documentclass{revtex4}     \usepackage{longtable,tabu}          \include{defs}          \begin{document}          \begin{table}     \underline{Directives}\\[5mm]     \begin{longtabu}to \linewidth{X|XXX}     {\em Type} & {\em Form}      & {\em Example} & Function \\     \hline     \endfirsthead     {\em Type} & {\em Form}      & {\em Example} & Function \\     \hline     \endhead     {\em Type} & {\em Form}      & {\em Example} & Function \\     \hline     \endfoot     {\em Type} & {\em Form}      & {\em Example} & Function \\     \hline     \endlastfoot     reaction   & millibarns      & {\tt millibarns}      & All total cross                  sections for the reaction are in millibarns.\\                & sigma(n1,n2)    & {\tt sigma(.5,1)}     & \\     \hline     energy     & fractional error& {\tt fractional error}& The error for the                  total cross section is multiplied by the total cross               section. \\                & per cent error  & {\tt per cent error}  & The error for the              total cross section is multiplied by $0.01\sigma$. \\                & shift           & {\tt shift smith77}   & The blank delimited              characters comprise the energy shift identifier.\\            & variable energy\newline free energy & {\tt variable energy               = engy7} & The blank delimited characters identify the energy               as free to vary. \\            & reverse particles & {\tt reverse particles} & The order              of the initial particles is reversed. \\            & points & {\tt 5 points} & The data is energy-averaged              over 5 points. \\            & resolution & {\tt resolution = .05} & Resolution is              half the width in MeV of the experimental energy resolution              for the energy-averaged.{\bf [CHECK!]} \\            & Gaussian & {\tt gaussian} & Data is energy-averaged              assuming Gaussian energy distribution. \\     \hline     observable & label\newline header & {\tt label = Smith Ayy} & This is                   the label printed with the observable. Only 56 characters are              printed. No directive is allowed on the line after the              label. \\            & reference & {\tt reference = np(1963)} & If a reference              is given it is printed on the output after label. No              directive is allowed on the line after reference.\\            & operators & {\tt operators xy 1 1 lz} & Listed in order              of particles. The character `1' is necessary to denote the              unit matrix. The literal `l' denotes lab angle              dependence. \\            &           & {\tt operators (xy,1)lz} & Listed in order              2(1,3)4. The character `1' is not necessary to denote the              unit matrix. \\            & constant multiplier factor & {\tt factor = 2.0} &              Multiplies operator. \\            & squared multiplier & {\tt squared = 3.0} & Square root of              the number multiplies the operator. \\            & type\newline denominator & {\tt type = 2} & {\tt type =            0} for cross sections \newline {\tt type = 1} for            obs = $\frac{\tr AO_iA^\dag O_f}{\tr AA^\dag}$            \newline {\tt type = 2} for obs = $\frac{\tr AO_i A^\dag            O_f}{\tr AO_iA^\dag}$ \newline For cross sections default            {\tt type = 0} \newline For other obs default {\tt type =            1}. \\     \end{longtabu}     \end{table}     \end{document}      And here is the attempted compilation:               $ latex test-longtabu.tex      This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian)     entering extended mode     (./test-longtabu.tex     LaTeX2e <2009/09/24>     Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh     yphenation, loaded.     (/usr/share/texmf-texlive/tex/latex/revtex4/revtex4.cls     Document Class: revtex4 2001/08/02 v4.0 (http://publish.aps.org/revtex4/ for do     cumentation)     ltxutil: portions licensed from W. E. Baxter (web@superscript.com)     ltxgrid: portions licensed from W. E. Baxter (web@superscript.com)     (/usr/share/texmf-texlive/tex/latex/ltxmisc/url.sty)     (/usr/share/texmf-texlive/tex/latex/natbib/natbib.sty)     (/usr/share/texmf-texlive/tex/latex/revtex4/revsymb.sty))          Class revtex4 Warning: No Society specified, using generic APS style.          (/usr/share/texmf-texlive/tex/latex/revtex4/aps.rtx)     (/usr/share/texmf-texlive/tex/latex/revtex4/10pt.rtx)     (/usr/share/texmf-texlive/tex/latex/tools/longtable.sty)     (/usr/share/texmf-texlive/tex/latex/tabu/tabu.sty     (/usr/share/texmf-texlive/tex/latex/tools/array.sty)     (/usr/share/texmf-texlive/tex/latex/varwidth/varwidth.sty))     \@input{defs.aux}     (./defs.tex) (./test-longtabu.aux)     Underfull \hbox (badness 10000) in paragraph at lines 72--72     []\OT1/cmr/m/n/9 Data is energy-averaged          Underfull \hbox (badness 10000) in paragraph at lines 72--72     \OT1/cmr/m/n/9 as-sum-ing Gaus-sian en-ergy          Underfull \hbox (badness 1019) in paragraph at lines 72--72     []\OT1/cmr/m/n/9 Listed in or-der of par-ti-cles.          Underfull \hbox (badness 1715) in paragraph at lines 72--72     \OT1/cmr/m/n/9 lit-eral `l' de-notes lab an-gle          Underfull \hbox (badness 1715) in paragraph at lines 72--72     []\OT1/cmr/m/n/9 Square root of the num-ber          Underfull \hbox (badness 10000) in paragraph at lines 72--72     \OT1/cmtt/m/n/9 type = 1 \OT1/cmr/m/n/9 for obs =          Underfull \hbox (badness 10000) in paragraph at lines 72--72     \OT1/cmtt/m/n/9 type = 2 \OT1/cmr/m/n/9 for obs =          Package longtable Warning: Column widths have changed     (longtable)                in table I on input line 72.          ! Undefined control sequence.     \tabu@cleanup ...bu@naturalX =\tabu@naturalX@save                                                        \let \tabu@naturalXmax \ta...     l.72 \end{longtabu}      Here is the `.log` file:               This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian) (format=latex 2012.1.12)  28 MAR 2012 12:01     entering extended mode      %&-line parsing enabled.     **test-longtabu.tex     (./test-longtabu.tex     LaTeX2e <2009/09/24>     Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh     yphenation, loaded.     (/usr/share/texmf-texlive/tex/latex/revtex4/revtex4.cls     Document Class: revtex4 2001/08/02 v4.0 (http://publish.aps.org/revtex4/ for do     cumentation)      Copyright (c) 2001 The American Physical Society.      mailto:revtex@aps.org      Licensed under the LPPL:     http://www.ctan.org/tex-archive/macros/latex/base/lppl.txt      Arthur Ogawa <ogawa@teleport.com>      Based on work by David Carlisle <david@dcarlisle.demon.co.uk>.     ltxutil: portions licensed from W. E. Baxter (web@superscript.com)     Class revtex4 Info: Repairing broken LateX \@sect on input line 596.     \intertabularlinepenalty=\count79     \@tbpen=\count80     \@arstrutbox@hline=\box26     Class revtex4 Info: Repairing broken LaTeX \@xbitor on input line 1610.     ltxgrid: portions licensed from W. E. Baxter (web@superscript.com)     \c@linecount=\count81     \output=\toks14     \@protection@box=\box27     \@topmark@saved=\toks15     \footins@saved=\box28     \pagesofar=\box29     \footbox=\box30     \pagegrid@col=\count82     Class revtex4 Info: Incorporating package {textcase}  [1998/11/12 v0.06 Text on     ly upper/lower case changing (DPC)]. on input line 3682.     (/usr/share/texmf-texlive/tex/latex/ltxmisc/url.sty     \Urlmuskip=\muskip10     Package: url 2006/04/12  ver 3.3  Verb mode for urls, etc.     )     \c@affil=\count83     \absbox=\box31     \c@part=\count84     \c@section=\count85     \c@subsection=\count86     \c@subsubsection=\count87     \c@paragraph=\count88     \c@subparagraph=\count89     \abovecaptionskip=\skip41     \belowcaptionskip=\skip42     \c@figure=\count90     \c@table=\count91          (/usr/share/texmf-texlive/tex/latex/natbib/natbib.sty     Package: natbib 2009/07/16 8.31 (PWD, AO)     \bibhang=\skip43     \bibsep=\skip44     LaTeX Info: Redefining \cite on input line 694.     \c@NAT@ctr=\count92     )     \widetext@top=\box32     \widetext@bot=\box33          (/usr/share/texmf-texlive/tex/latex/revtex4/revsymb.sty     Package: revsymb 2001/08/02 v4.0 (http://publish.aps.org/revtex4/ for documenta     tion)     LaTeX Info: Redefining \REV@mathfrak on input line 118.     ))          Class revtex4 Warning: No Society specified, using generic APS style.          (/usr/share/texmf-texlive/tex/latex/revtex4/aps.rtx     File: aps.rtx 2001/08/02 v4.0 (http://publish.aps.org/revtex4/ for documentatio     n)     )     (/usr/share/texmf-texlive/tex/latex/revtex4/10pt.rtx     File: 10pt.rtx 2001/08/02 v4.0 (http://publish.aps.org/revtex4/ for documentati     on)     )     (/usr/share/texmf-texlive/tex/latex/tools/longtable.sty     Package: longtable 2004/02/01 v4.11 Multi-page Table package (DPC)     \LTleft=\skip45     \LTright=\skip46     \LTpre=\skip47     \LTpost=\skip48     \LTchunksize=\count93     \LTcapwidth=\dimen102     \LT@head=\box34     \LT@firsthead=\box35     \LT@foot=\box36     \LT@lastfoot=\box37     \LT@cols=\count94     \LT@rows=\count95     \c@LT@tables=\count96     \c@LT@chunks=\count97     \LT@p@ftn=\toks16     )     (/usr/share/texmf-texlive/tex/latex/tabu/tabu.sty     Package: tabu 2011/02/26 v2.8 - flexible LaTeX tabulars (FC)          (/usr/share/texmf-texlive/tex/latex/tools/array.sty     Package: array 2008/09/09 v2.4c Tabular extension package (FMi)     \col@sep=\dimen103     \extrarowheight=\dimen104     \NC@list=\toks17     \extratabsurround=\skip49     \backup@length=\skip50     )     (/usr/share/texmf-texlive/tex/latex/varwidth/varwidth.sty     Package: varwidth 2009/03/30 ver 0.92;  Variable-width minipages     \@vwid@box=\box38     \sift@deathcycles=\count98     \@vwid@loff=\dimen105     \@vwid@roff=\dimen106     )     \c@taburow=\count99     \tabu@nbcols=\count100     \tabu@cnt=\count101     \tabu@Xcol=\count102     \tabu@alloc=\count103     \tabu@nested=\count104     \tabu@target=\dimen107     \tabu@spreadtarget=\dimen108     \tabu@naturalX=\dimen109     \tabucolX=\dimen110     \tabu@Xsum=\dimen111     \extrarowdepth=\dimen112     \abovetabulinesep=\dimen113     \belowtabulinesep=\dimen114     \tabustrutrule=\dimen115     \tabu@thebody=\toks18     \tabu@footnotes=\toks19     \tabu@box=\box39     \tabu@arstrutbox=\box40     \tabu@hleads=\box41     \tabu@vleads=\box42     \tabu@cellskip=\skip51     )     \@input{defs.aux}     \openout2 = `defs.aux'.          (./defs.tex     \wdo=\skip52     ) (./test-longtabu.aux)     \openout1 = `test-longtabu.aux'.          LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 6.     LaTeX Font Info:    ... okay on input line 6.     LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 6.     LaTeX Font Info:    ... okay on input line 6.     LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 6.     LaTeX Font Info:    ... okay on input line 6.     LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 6.     LaTeX Font Info:    ... okay on input line 6.     LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 6.     LaTeX Font Info:    ... okay on input line 6.     LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 6.     LaTeX Font Info:    ... okay on input line 6.     Class revtex4 Info: Patching array package. on input line 6.     Class revtex4 Info: Patching unrecognized longtable package. (Proceeding with f     ingers crossed) on input line 6.     Class revtex4 Info: cite was not loaded (OK!) on input line 6.     Class revtex4 Info: multicol was not loaded (OK!) on input line 6.     LaTeX Font Info:    External font `cmex10' loaded for size     (Font)              <9> on input line 9.     LaTeX Font Info:    External font `cmex10' loaded for size     (Font)              <6> on input line 9.     LaTeX Font Info:    External font `cmex10' loaded for size     (Font)              <5> on input line 9.          Underfull \hbox (badness 10000) in paragraph at lines 72--72     []\OT1/cmr/m/n/9 Data is energy-averaged      []               Underfull \hbox (badness 10000) in paragraph at lines 72--72     \OT1/cmr/m/n/9 as-sum-ing Gaus-sian en-ergy      []               Underfull \hbox (badness 1019) in paragraph at lines 72--72     []\OT1/cmr/m/n/9 Listed in or-der of par-ti-cles.      []               Underfull \hbox (badness 1715) in paragraph at lines 72--72     \OT1/cmr/m/n/9 lit-eral `l' de-notes lab an-gle      []               Underfull \hbox (badness 1715) in paragraph at lines 72--72     []\OT1/cmr/m/n/9 Square root of the num-ber      []               Underfull \hbox (badness 10000) in paragraph at lines 72--72     \OT1/cmtt/m/n/9 type = 1 \OT1/cmr/m/n/9 for obs =      []               Underfull \hbox (badness 10000) in paragraph at lines 72--72     \OT1/cmtt/m/n/9 type = 2 \OT1/cmr/m/n/9 for obs =      []               Package longtable Warning: Column widths have changed     (longtable)                in table I on input line 72.          ! Undefined control sequence.     \tabu@cleanup ...bu@naturalX =\tabu@naturalX@save                                                        \let \tabu@naturalXmax \ta...     l.72 \end{longtabu}          ? x          Here is how much of TeX's memory you used:      3216 strings out of 495062      35700 string characters out of 1182644      111360 words of memory out of 3000000      6441 multiletter control sequences out of 15000+50000      6283 words of font info for 23 fonts, out of 3000000 for 9000      28 hyphenation exceptions out of 8191      25i,13n,23p,208b,506s stack positions out of 5000i,500n,10000p,200000b,50000s     No pages of output.      EDIT: I don't think it's relevant but here is the content of the `defs.tex` file:               \newcommand{\tr}{\mbox{Tr }}


title: How to insert a listing inside a definition in LyX

text: My problem is that when I want to insert a list after having inserted a definition, LyX seems to end the `\begin{defn}` block and start the `\begin{itemize}` block. What I want is to have the `\begin{itemize}` block inside the `\begin{defn}` one. How can I do this whithout having to modify tex code?


title: Why isn't a command defined by \newcommand with an optional argument expandable?

text: In trying to fix a problem with a nested macro repeatedly calling itself, I tried expanding the inner call before passing it as an argument to the outer one. This failed miserably because the macro was defined using `\newcommand` with optional arguments. So my questions: Why isn't something defined as `\newcommand{\test}[2][]{}` expandable? Is there an expandable alternative? Here's a simple example:               \documentclass{article}          \newcommand{\test}[2]{got #1 and #2}     \newcommand{\testopt}[2][nothing]{got #1 and #2}          \begin{document}          \edef\result{\test{one}{two}}     \result          \edef\result{\testopt{two}}     \result          \end{document}


title: Biblatex Harvard style ommit author in some citations

text: # Problem I am writting a paper where I mostly analize 2 papers written by different authors on different years and I am using a couple of other sources. Citations are done via `\textcite` or `\parencite` commands using biblatex. I want to ommit the author in these in text citations for the main papers, but not affect the rest of the bibliographic entries. # Example Instead of > The author mentions, that it is hard to find an example (Author, 2009, > p.83). However, another mentions, that it can be even more difficult > (Author2, 2008, p.77). I want > The author mentions, that it is hard to find an example (2009, p.83). > However, another mentions, that it can be even more difficult (2008, p.77). I think as long as I do not include more papers in this naming scheme, it might be okay? What others have to say about it? However, in the bibliography list, I want the author fields to be present (i.e. unchanged). # Question Does anybody know if there is an elegant way of doing it? Maybe there is some general way of customizing particular entries using biblatex?


title: Missing footer on first Beamer slide of TikZ example

text: I'm having problems with this particular TikZ example: http://www.texample.net/tikz/examples/prims-algorithm/ When I change the theme, for instance:               \usetheme{Madrid}      the footer is not working on the first slide, but it is on the rest of them. Any idea how to solve this particular problem?


title: Question regarding piecewise syntax with pgfplot?

text: The piece function is defined as following: ![enter image description here](http://i.stack.imgur.com/Cf2kW.png) Here is the code snippet:               \pgfmathdeclarefunction{func}{1}{%       \pgfmathparse{%         (and(#1>=0 , #1<=500)   * (300 + #1*(12/10))   +%         (and(#1>500, #1<=1000)  *  (600 + #1*(12/10))    %        }%     }      What does the asterisk "*" right after the `(and..` actually do? and the "+" sign at the end. I reused some the examples that I found in this site, but the syntax is not really intuitive. Could anyone explain this syntax? Thanks in advance. **Edit** (Add complete example)               \documentclass[10pt,letterpaper]{article}          \usepackage[left=1in,right=1in,top=1in,bottom=1in]{geometry}      \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amsthm}     \usepackage{amssymb}     \usepackage{polynomial}     \usepackage{layouts}     \usepackage{enumerate}     \usepackage{syntax}     \usepackage{gensymb}     \usepackage{cancel}     \usepackage{calc}     \usepackage{xcolor}          \usepackage[version=0.96]{pgf}     \usepackage{tikz}     \usetikzlibrary{arrows,shapes,automata,backgrounds,petri,positioning}     \usetikzlibrary{decorations.pathmorphing}     \usetikzlibrary{decorations.shapes}     \usetikzlibrary{decorations.text}     \usetikzlibrary{decorations.fractals}     \usetikzlibrary{decorations.footprints}     \usetikzlibrary{shadows}     \usetikzlibrary{calc}     \usetikzlibrary{spy}     \usetikzlibrary{matrix}          \usepackage{tikz-qtree}     \usepackage{pgfplots}          \begin{document}     \pgfmathdeclarefunction{func}{1}{%       \pgfmathparse{%         (and(#1>=0    ,#1<=500)  * (300 + #1*(12/10))   +%         (and(#1>=500  ,#1<=1000) * (600 + #1*(12/10))   %        }%     }          \begin{tikzpicture}[scale=0.8]         \begin{axis}             [title={$C(x)$},                 ylabel=$y$,                 xlabel=$x$,                 grid=both,                 minor xtick={0,100,...,1000},                 xtick={0,200,...,1000},                 ytick={0,400,...,3200}]                  \addplot[blue,domain=0:1000]{func(x)};         \end{axis}     \end{tikzpicture}        \end{document}


title: tcolorbox on a node

text: I have a `tcolorbox` with the following settings:               \tcbset{         noparskip,         colback=yellow!10,         colframe=yellow,         coltext=black,         coltitle=white,         boxrule=0.3mm,         fonttitle=\bfseries,     }      How can I add this `tcolorbox` at a `node` and give it a specific width and height. In other words, be able to do something like (or whichever syntax is simple):               \node [tcolorbox, title=foo, text width=Xmm, minimum height=Ymm] at (x,y) {blah blah}      * * * A minimal example is as follows (note that the block with `tikzpicture` might not run... it's an example of what I want to do. The rest will run).               \documentclass{beamer}     \usepackage{tikz,tcolorbox}     \tcbset{         noparskip,         colback=yellow!10,         colframe=yellow,         coltext=black,         coltitle=white,         boxrule=0.3mm,         fonttitle=\bfseries,     }     \begin{document}     \begin{frame}{}         %Normal tcolorbox         \begin{tcolorbox}             Lorem ipsum         \end{tcolorbox}              %Desired functionality         \begin{tikzpicture}[remember picture, overlay]             \node [tcolorbox, title=foo, text width=Xmm, minimum height=Ymm] at (x,y) {dolor sit amet}         \end{tikzpicture}     \end{frame}     \end{document}