title: How do I get the margin note to appear on the left?

text: I'm trying to make a left-sided margin note. As per the LaTeX wiki, I tried using `\reversemarginpar` but that didn't solve anything--it didn't make a margin note at all. I also tried `\marginpar[left text/right text]{%my text}` to no avail. I tried using two other packages, `marginnote` and `mparhack`, but again, those didn't solve my problem. I'd post my code, but since I'm having issues with my laptop's internet, I'm using my iPad to access the internet. Maybe there are some pre-reqs that I'm not incorporating (perhaps I have to further define something in the preamble...), but I would appreciate any help and also an example of how to use the margin command successfully in LaTeX. Thanks in advance! EDIT: I managed to connect to the ethernet, so here's my code:               \documentclass{article}          \usepackage{amssymb}     \usepackage{wasysym}     \usepackage[top=2cm, bottom=1.3cm, left=2.5cm, right=2.5cm]{geometry}     \usepackage{tensor}     \usepackage{enumitem}     \usepackage{outlines}     \usepackage{ulem}          \begin{document}       \title{\vspace{-0.9in}\uline{Chapter 13 - Chromosomal Rearrangements and Changes in Chromosome Number}}       \author{A. Uthor}       \date{}         \maketitle       \thispagestyle{empty}       \pagestyle{empty}       \vspace*{-1.5cm}          \section*{\Large Types:}     \begin{outline}[enumerate]     \1 Duplications     \1 Deletions     \1 Inversions     \1 Translocations     \end{outline}          %some text I deleted just to keep this short          \textbf{semisterility} $\rightarrow$ diminished fertility of translocation heterozygotes by at least 50\%     \reversemarginpar{Why does Mendel's 2$\mathrm{^{nd}}$ require viability of offspring?}          \end{document}


title: Create rotated prime symbol

text: I would prefer to work with a prime symbol that is less rotated. I tried the following               \usepackage[figuresright]{rotating}     \newcommand*{\p}{\turnbox{12}{$\,'$}\;}      which is visually what I desire. If I now write something like               $a+b\p$      things work fine, but when I use `\p` in subscript contexts               $a_{c\p,d}+b\p$      the symbol is not scaled and not placed right. Of course one can always work with hacks such as               $a_c\turnbox{12}{${}_{'}$}_{,d}+b\p$      but perhaps anyone knows of a simple solution?


title: Grab the new list label

text: My question is very simple: when I define a new list using `enumitem` how can I get the label that is used? I now that I can do that with `\label` ... `\ref` (as it is in the MWE), but I need a descriptor similar to `\@itemlabel` for the new list, because I want to use it in other command.               \documentclass{article}     \usepackage{enumitem}     \newlist{lista}{enumerate}{1}     \setlist[lista]{label=(\arabic*)}          \begin{document}          \begin{lista}         \item AAAA         \item BBBB\label{i:test}         \item CCCC     \end{lista}          Just a test~\ref{i:test}.          \end{document}


title: Adding background color to table cells in LyX

text: I'm doing some tables using LyX and I tried to set a color background in the cells , but I got this error:               Undefined control sequence          \rowcolor              {cyan} &     The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spelling (e.g., `I\hbox'). Otherwise just continue,     and I'll forget about whatever was undefined.      I added this code in the cell: `\rowcolor{cyan}`, and I tried almost with this: `\cellcolor{cyan}`, but it doesn't work. I searched on the Internet some help about of how to set the color background in the cells, and some pages mentioned the package `colortbl` (but how can I use it, how does it works or what configuration in LyX do I need to change?) I'll appreciate any help.


title: Ledmac - suppressing page numbers in a series of endnotes

text: I am using `ledmac` to prepare an edition with the variant reading appearing as a series of endnotes keyed to line numbers. Could you tell me how to suppress all the page numbers in this (one) series of endnotes. Most grateful for any help!


title: change bibtex referencing

text: How would I alter the bibtex referencing format in the references section from:               Author. Journal. volume. Year      to be:               Author. Year. Journal...      I cannot seem to find a command that changes the referencing format of such citations.


title: How to express PSTricks point in terms of a shifted variable and function?

text: For a trivial example, suppose that `\f(x)` is a quadratic curve defined as follows               \def\f(#1){-#1*(#1-8)/4}      For each element `\ix` in `{0,1,2,3,4,5,6,7,8}` there is a point `(\ix,\f(\ix))` that will be the center of a square of 1 cm square. How to express the bottom-left & top-right points of `\psframe` in terms of `\ix` and `\f(\ix)`? NOTE: Please don't suggest other simpler solutions such as using `\rput` to put the squares because I am interested in PSTricks point expression. RPN notation should be avoided if it is possible. I give you the skeleton (not working) as below to save your time.               \documentclass[pstricks,border=12pt]{standalone}     \usepackage{pst-plot}%loads multido automatically          \begin{document}          \def\f(#1){-#1*(#1-8)/4}          \begin{pspicture}     \multido{\ix=0+1}{9}{     % the following expression is wrong!     \psframe[dimen=middle](*\ix-0.5 {\f(x)-0.5})(*\ix+0.5 {\f(x)+0.5})     }     \psplot[algebraic]{0}{8}{\f(x)}     \end{pspicture}          \end{document}      The output I want to get is as follows: ![enter image description here](http://i.stack.imgur.com/sYlX7.png)


title: Why does pdflatex produce bigger output files than latex+dvipdfm?

text: Consider this sample code:               \documentclass{article}     \usepackage{lipsum}          \begin{document}     \lipsum[1-4]     \end{document}      When I compile this with `latex` and then use `dvipdfm`, the output file is 7893 bytes. When I use `pdflatex`, the output PDF is a whopping 20696 bytes. Naturally, the outputs are visually indistinguishable one from another. Why does this happen? What does `pdflatex` put in there that takes so much space? For reference, I have used the latest MikTeX 2.9 on Windows 7, and ran the commands without any extra switches.


title: Crop off-page vertices in vector graphic PDF

text: I have a PDF that contains one page, with a vector image on it. I want to use the left half of the image on the backside of the front cover- page of my work, and the right half on the front of the back cover-page (since the back of the back cover-page will be on the "outside" of my work). In other words: If my work were just the front and back cover-pages (nothing in between), you'd see the entire image on the inside of both covers. I used `pdfinfo` from xpdf (as per this answer) to get the dimensions of the original image pdf (163 * 77 pts). Using `pdfcrop` (as per this question) I managed to create both halves, with dimensions 81.5 * 77 pts. **However** , inspecting the cropped images with Inkscape, I see that the cropped-out part of the image is still contained in the pdf. **Is there a way to crop out-of-view vertices of a vector graphic?** Right now, when they both exist in the same document, the entire image will be included in the final document twice, which makes the file big, and my computer slow when viewing it.


title: Removing double entries from hyperref's pagebackref

text: When using `hyperref`'s `pagebackref`, the same page is listed multiple times, if the reference appears on that particular page more than once. e.g.: > A. Hindle, M. Godfrey, and R. Holt. Software process recovery using > recovered unified process views. In Software Maintenance (ICSM), 2010 IEEE > International Conference on, pages 1–10. IEEE, 2010. doi: > 10.1109/ICSM.2010.5609670. (pages 3, 3, 6, 6, 6, 6). How do I remove double entries from the list? **SIDENOTE:** As you might have spotted, I applied a "page"/"pages" addition (from here) which comes down to:               \renewcommand*{\backreflastsep}{, }     \renewcommand*{\backreftwosep}{, }     \renewcommand*{\backref}[1]{}     \renewcommand*{\backrefalt}[4]{%       \ifcase #1 %         No citations.% use \relax if you do not want the "No citations" message       \or         (page #4).%       \else         (pages #4).%       \fi%     }      Without this addition, citations also appear multiple times.


title: sorting refrences in latex with last name

text: I am using the `natbib` package for `authoryear` style. `\citep` command for reference and `planet` as bibliography style. Everything is working as desired, except an author's name in the reference appears in (first-last) name format, but the desired one is (last-first). Sorting is occurring according to last name that is desirable.


title: Cancel the loading of mathpazo after classicthesis

text: Is there a way to cancel the loading of this line, in `classicthesis`, after `classicthesis`? To have all the fonts in `CM` like default?               \PassOptionsToPackage{osf,sc}{mathpazo}     \RequirePackage{mathpazo}     \linespread{1.05}      * * * I have tried this way:               \usepackage{lmodern}     \usepackage{hfoldsty}% I also would the oldstyle numbers that in standard CM there aren't     \linespread{1}      but for example `\mathbb` and `!` still remain in palatino... ## Update:               \renewcommand\graffito@setup{%        \itshape\footnotesize%   \slshape --> \itshape        \parindent=0pt \lineskip=0pt \lineskiplimit=0pt %        \tolerance=2000 \hyphenpenalty=300 \exhyphenpenalty=300%        \doublehyphendemerits=100000%        \finalhyphendemerits=\doublehyphendemerits}


title: About the features of LaTeX3

text: Can someone please provide me the features available in LaTeX3. The reason for me to post this question is that I have not started to learn about KOMA- Script. I am aware of how powerful it is. But now should I go for KOMA-Script or LaTeX3?


title: Drawing lines in tables?

text: I use the following code to draw a table:               \makebox[\textwidth]{%     \begin{tabularx}{\textwidth}{|X|S|S|S|S|S|X|}       \hline       & $--$ & $-$ & $-/+$ & $+$ & $++$ &\\       \hline       The necessary information was easy to find & $\square$ & $\square$ & $\square$ & $\square$ & $\square$ & The necessary information was hard to find\\       \hline       Information retrieval requires redundant user input  & $\square$ & $\square$ & $\square$ & $\square$ & $\square$ & Information retrieval does not require redundant user input\\     \\\hline     \end{tabularx}%     }      Now the table looks like this: ![enter image description here](http://i.stack.imgur.com/jURs8.jpg) If I dont use the last `\\\\\hline`:               \makebox[\textwidth]{%     \begin{tabularx}{\textwidth}{|X|S|S|S|S|S|X|}       \hline       & $--$ & $-$ & $-/+$ & $+$ & $++$ &\\       \hline       The necessary information was easy to find & $\square$ & $\square$ & $\square$ & $\square$ & $\square$ & The necessary information was hard to find\\       \hline       Information retrieval requires redundant user input  & $\square$ & $\square$ & $\square$ & $\square$ & $\square$ & Information retrieval does not require redundant user input\\     \end{tabularx}%     }      It looks like this: ![enter image description here](http://i.stack.imgur.com/PouEz.jpg) So how can I make the last line correctly?


title: Doing maths with distance values in LaTeX source code

text: I have a `sty` file with the command               \newcommand{\foo}[1]{\noindent\kern#1}      but I'd actually like to have something like               \newcommand{\foo}[1]{\noindent\kern{#1 *0.5}}      meaning that I'd like to have half of the distance the user puts on command `\foo` to be passed to `\kern`. This obviously doesn't work. Do you have any suggestions on how to do this? (You may ask "why the hell would you want to do that??". Fair question. I'm using someone else's program which generates tex files and I don't have control over the values that come up on the command `\foo`. I just know that I'd like to have half of what that program chooses.)


title: xskak & chessboard & count of pieces

text: Within used packages `xskak` and `chessboard` and an initialized game, how can I determine the count of white and black pieces of a given `\newgame` and how I can output the actual position of these pieces on the corresponding chessboard? I know that there is an argument of `\getpieceslist` for `\chessboard`, but how I can summarize with the help of TeX commands the pieces for white and black and how I can output these lists with the help of `figure`?


title: Visualization backend for simple diagrams

text: **Could someone recommend a solution for coding this kind of diagram into a TeX document?** ![example of simple diagram](http://i.stack.imgur.com/3J1iG.png) **Background:** Looking for further ways to make everything in my papers replicable or at least communicable in an open format, I am trying to stop using OmniGraffle for simple diagrams like the one above, which are common in sociology, political science and probably other disciplines. From a previous question, I understand that Graphviz and igraph might fit, but I do not understand exactly how more integrated to my TeX documents they would make my diagrams. The best for me would probably be to understand how to replicate these graphs with TikZ, but I am not sure that this would work out easily, as I have been unable to locate a tutorial on the topic (trying to adapt commutative diagrams with TikZ to that kind of diagrams did not work out well).


title: Common glossary between multiple documents

text: I am wondering if it is possible, and, what are the best practices for keeping a common glossary file in a similar manner to using a common bibliographic database. For instance, could I put it somewhere in the 'texmf' folder, where it can be picked up by any document that I choose to use it in? My work, like probably everyones, uses many acronyms, nomenclatures etc, and I am inclined to keeping one single 'common' glossary file so that there is some uniformity between all of my documents, be it presentations, papers, publications and other submissions.


title: How do I right-align the last line of a justified paragraph?

text: I want to wrap around text in a table cell; therefore I use the `p` option in the definition of `tabular`. However, I'm writing in Hebrew, so it aligns the last line to the left, instead of to the right. Can it be solved?


title: How do you define your environment such as to use [...] for some parameter(s)?

text: In an environment, say               \newenvironment{whatever}[3]{...}{...}      you instantiante it (if that's the word for it in LaTeX) by               \begin{whatever}{first}{second}{third}        ...     \end{whatever}      But how do you define an environment such that you instantiate it by               \begin{whatever}[some_optional]{first}{second}{third}        ...     \end{whatever}      I'm not talking about default values for the parameters `first`, `second` or `third`, but an entirely optional parameter, such as in               \begin{figure}[htb]         ...         ^--- THIS!     \end{figure}


title: PDF Metadata - Macro to extract (typeset) 'plain text' from a command?

text: I apologize in advance as I am yet to accept some answers to my previous questions; but I'll dare ask this one, as it is somewhat of a showstopper - consider this example:               \documentclass{article}           \usepackage[fixpdftex,cmyk,svgnames]{xcolor}     \usepackage[breaklinks]{hyperref}          \newcommand{\myauthors}{Author 1 \\ Author 2 \\ {\color{lightgray}Author 3}}          \hypersetup{pdftitle=My Title, pdfauthor=\myauthors, pdfsubject=My Subject, pdfkeywords=}           \begin{document}          \noindent\myauthors          \end{document}      Here I get the `\myauthors` typeset exactly as I want them (the "Author 3" is lightgray) - however, in the PDF properties, the Author metadata shows: "`Author 1 Author 2 lightgrayAuthor 3`" - that is, the "lightgray" in `\color{lightgray}` of `\myauthors` ends up as text for the `pdfauthor` attribute. I was wandering - is there some sort of a macro, that would "extract" the typeset "plain text" (that is, only those characters that are typeset) - so I could write, say:               \hypersetup{... pdfauthor=\getPlainText{\myauthors}, pdfsubject=...}      ... and get "`Author 1 Author 2 Author 3`" as PDF author metadata? * * * _Alternatively, I was thinking something along the approach inMacro to convert 'multi-line' text to 'single-line' (remove line breaks?) - that is, use macros like:               \def\pastauth#1{\color{lightgray}#1}     \def\npastauth#1{#1}     \newcommand{\myauthors}{Author 1 \\ Author 2 \\ \pastauth{Author 3}}      ... and then somehow define a `\getPlainText`, where the `\pastauth` would be temporarily `\let` to `\npastauth` (thus avoiding `\color{lightgray}` altogether) - but I cannot get anything with this... I also tried redefining `\color` with `\@gobbleone`, but that doesn't work either_


title: PGF align plain TeX

text: I don't get the excepted result with the following code               \input tikz     \tikzpicture       \node[draw,align=center] {Hello \hfil\break World};     \endtikzpicture     \bye      There is no break after `Hello`. I don't want to use text width and specify the width manually.


title: hyphenation next to a parenthesis

text: I have some very special hyphenation puzzles involving optional hyphens next to parentheses.   * `(semi)group` should be hyphenated as `(semi-)`/`group`   * `di[rected ]graph` should be hyphenated as `di-`/`[rected ]graph` _or_ `di[rec-`/`ted ]graph` _or_ <`di[rected]`/`graph` or `di[rected]-`/`graph` - I can't make up my mind> (whichever hyphenation leads to the most even inter-word spacing, with LaTeX choosing among all three possibilities) How can I achieve such hyphenation? **Note:** Anyone tackling this problem in the most general form (esp for the details mentioned in the @egreg answer) might want to set `\righthyphenmin=2`.


title: Trend line with pgfplots and dateplots

text: Is there an easy way to avoid the following pretty straightforward error message at compile time: `Could not parse input '2010-01-01' as a floating point number, sorry. The unreadable part was near '-01-01'` when trying to compile:               \documentclass{minimal}     \usepackage{pgfplots}     \usepgfplotslibrary{dateplot}     \begin{filecontents}{data.dat}     date            value1     2010-01-01      2     2010-01-02      10     2010-01-03      8     2010-01-04      15     \end{filecontents}     \usepackage{pgfplotstable}     \begin{document}     \begin{tikzpicture}          \begin{axis}[     date coordinates in=x,     xticklabel={\day.\month.\year},     xmin={2010-01-01},     xmax={2010-01-05},x tick label style={yshift=-3pt,xshift=-4pt,rotate=-30,anchor=west}]     \addplot table [x=date,y=value1] {data.dat};     \addplot table [x=date, y={create col/linear regression={y=value1}}] {data.dat};     \end{axis}          \end{tikzpicture}     \end{document}      I tried `x=\ticknum`, but that is not working (plus it is not very safe in case I'm skipping some dates in `data.dat`).


title: Lyx Templates site

text: Does anyone know of a site which collates Lyx templates and provides previews of how they look? I don't just mean thesis layouts but also letters, essays and all sorts. Many thanks in advance.


title: Logo position of title page

text: I working on the presentation slides. I want to put my university logo on right top corner of only title page. I am using theme `Madrid`.               \titlegraphic{\includegraphics[width=2cm]{UA}\hspace*{8.75cm}~%       This command works, but the logo is below the `\title`, `\author`, `\institute`.               \logo{\includegraphics[height=1.8cm]{UA}\vspace{195pt}}       this command also works, but the logo shows on all pages, which is not I want.


title: why is Tex so dang hard to install.

text: I'm very new to LaTeX and even though I do understand the power of the system, why is there no single downloadable installer that I can run and install like any other application?


title: How to delete a locally installed version of pgf?

text: I have a locally installed `pgf` in my local texmf tree. Now my tex distribution finally caught up and the version of pfg in the package manager is newer than my locally installed version. How can I delete the local version?


title: Save tikz picture to disk

text: I need to save the result of a `tikzpicture` to disk in code. Basically I have written some optimization routines for other things that only create the image if it does not exist on disk. I want to apply the same thing to tikzpictures. I do not want to use externalize(mine is faster and more useful to me). So, given a tikzpicture:               \begin{tikspicture}[...]          ...     \end{tikzpicture}      I need some way to save it to disk as a png or jpg or whatever(png is preferable). Something like:               \begin{tikspicture}[save=filename,...]          ...     \end{tikzpicture}      or               \begin{tikspicture}[...]          ...     \end{tikzpicture}     \savelasttikzpicture{filename}      (tikz externalize does not work because it doesn't seem to play nice with lualatex. I have code essentially like this:               \directlua{ drawTikzFig(arg); }      in lua:               function drawTikzFig(arg)          tex.print('\\begin{tikzpicture} ... \\directlua{getValue(arg);} ... \\end{tikzpicture}')     end      In fact, I don't know if this is exactly what is breaking tikz externalize or not but it gives errors at \directlua{} Thanks


title: Small space (indent) after `strip` environment

text: I use the `strip` environment of the `cuted` package to add one column material (equations etc...) in a onecolumn box embedded in twocolumn text. Well to be exact, I'd like to use it for that but there's a small bug that annoys me. When I use the environment just like any other environment there's a small space added in the beginning of the line _after_ the `strip` environment. Let me show you my MWE and the result (long line is just the rest of `lorem ipsum` no need to scroll right):               \documentclass[twocolumn]{article}          \usepackage{cuted}          \setlength{\parindent}{0pt}          \begin{document}     Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec hendrerit tempor tellus. Donec pretium posuere tellus. Proin quam nisl, tincidunt et, mattis eget, convallis nec, purus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus     mus. Nulla posuere. Donec vitae dolor. Nullam tristique diam non turpis. Cras placerat accumsan nulla. Nullam rutrum. Nam vestibulum accumsan nisl.          Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec hendrerit tempor tellus. Donec pretium posuere tellus. Proin quam nisl, tincidunt et, mattis eget, convallis nec, purus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus     mus. Nulla posuere. Donec vitae dolor. Nullam tristique diam non turpis. Cras placerat accumsan nulla. Nullam rutrum. Nam vestibulum accumsan nisl.          Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec hendrerit tempor tellus. Donec pretium posuere tellus. Proin quam nisl, tincidunt et, mattis eget, convallis nec, purus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus     mus. Nulla posuere. Donec vitae dolor. Nullam tristique diam non turpis. Cras placerat accumsan nulla. Nullam rutrum. Nam vestibulum accumsan nisl.     \begin{strip}         \textbf{The quick brown fox...}     \end{strip}     Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec hendrerit tempor tellus. Donec pretium posuere tellus. Proin quam nisl, tincidunt et, mattis eget, convallis nec, purus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus     mus. Nulla posuere. Donec vitae dolor. Nullam tristique diam non turpis. Cras placerat accumsan nulla. Nullam rutrum. Nam vestibulum accumsan nisl.          Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec hendrerit tempor tellus. Donec pretium posuere tellus. Proin quam nisl, tincidunt et, mattis eget, convallis nec, purus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus     mus. Nulla posuere. Donec vitae dolor. Nullam tristique diam non turpis. Cras placerat accumsan nulla. Nullam rutrum. Nam vestibulum accumsan nisl.          Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec hendrerit tempor tellus. Donec pretium posuere tellus. Proin quam nisl, tincidunt et, mattis eget, convallis nec, purus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus     mus. Nulla posuere. Donec vitae dolor. Nullam tristique diam non turpis. Cras placerat accumsan nulla. Nullam rutrum. Nam vestibulum accumsan nisl.          Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec hendrerit tempor tellus. Donec pretium posuere tellus. Proin quam nisl, tincidunt et, mattis eget, convallis nec, purus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus     mus. Nulla posuere. Donec vitae dolor. Nullam tristique diam non turpis. Cras placerat accumsan nulla. Nullam rutrum. Nam vestibulum accumsan nisl.          Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec hendrerit tempor tellus. Donec pretium posuere tellus. Proin quam nisl, tincidunt et, mattis eget, convallis nec, purus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus     mus. Nulla posuere. Donec vitae dolor. Nullam tristique diam non turpis. Cras placerat accumsan nulla. Nullam rutrum. Nam vestibulum accumsan nisl.          Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec hendrerit tempor tellus. Donec pretium posuere tellus. Proin quam nisl, tincidunt et, mattis eget, convallis nec, purus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus     mus. Nulla posuere. Donec vitae dolor. Nullam tristique diam non turpis. Cras placerat accumsan nulla. Nullam rutrum. Nam vestibulum accumsan nisl.          \end{document}        With the result: ![ResultWithIndent](http://i.stack.imgur.com/zH0Rh.png) Note the small space before the "Lorem" just after the `strip` environment. If I add a comment sign right after `\end{strip}` or move the `Lorem` just after `\end{strip}`, i.e. if I do either the replacement               \end{strip}%       Lorem [...]        or               \end{strip}Lorem [...]        suddenly the space vanishes, i.e. compilation yields: ![ResultNoSpace](http://i.stack.imgur.com/Ju1Ui.png) I have set `\parindent` to zero to ensure that it isn't involved but for now I all out of possible solutions... Do you have any suggestions/solutions? Thanks for helping!


title: Arrows with Text (Using Unicode Devanagari fonts)

text: \documentclass[fleqn,12pt,a4paper]{article} % normal     \usepackage[utf8x]{inputenc}     \usepackage{fontspec,xltxtra,xunicode}     \usepackage{fontenc}     \usepackage{fancyhdr}     \pagestyle{fancy}     \usepackage{color}     \usepackage{setspace}     \usepackage{hyperref}     \usepackage{microtype}     \usepackage{cmll}     \usepackage{tabularx}     \usepackage{pifont}     \usepackage{amstext, amsmath}     \usepackage{unicode-math}          \setmathfont{Sanskrit2003}          \setmainfont[Script=Devanagari]{Sanskrit2003}          \begin{document}      $ A\xleftarrow{n+\mu-1}B \xrightarrow[T]{n\pm i-1}C $  \\     $ आज\xleftarrow{कल}अ \xrightarrow{पर्सो}तलवार $          \end{document}        * I tried to use this, the text above written in English works fine, however when I try Unicode devanagari font then I get arrows but no text. Your help would be greatly appreciated.


title: Problem with installing current version of TikZ.

text: I have installed Texlive 2010 on Ubuntu 10.10 from .iso image. now I want to upgrade my pgf. After following these steps, I receive this error:               ! I can't find file `pgfmathfunctions.code.tex'.     l.16 \input pgfmathfunctions.code.tex     (Press Enter to retry, or Control-D to exit)      I searched that file and found it in pgf's directories. When I copy it beside of my tex file, another error is occurred: the program is unable to find another file; that exists in pgf directories... **Note:** I do `sudo texhash` after replacing new directories.


title: Using crop and creating duplicate a5 pages on one a4

text: I often create programmes for events, and I've just been reading about the `crop` package, and was wondering, is there any way to create two identical pages from one source, and then to have the crop lines surround them? What I have so far:               \documentclass[landscape]{article}     \usepackage[margin=1cm]{geometry}     \usepackage{blindtext}          \newcommand{\dual}[1]{\begin{minipage}[c][\textheight][c]{0.45\linewidth}\centering #1\end{minipage}\hspace{0.05\linewidth}\begin{minipage}[c][\textheight][c]{0.45\linewidth}\centering #1\end{minipage}}     \begin{document}          \dual{     \blindtext[2]     }          \end{document}      The ideal would be for each programme (the minipages defined in `dual` in this case) to have crop marks to make it easy to guillotine the separate programmes, without the need to compile a separate file (e.g. to have to use `pdfpages`).


title: Loop for includegraphics

text: I try to make multiple slides in beamer with 3 figures on each slide and the title. I would like to loop through the list/array of figures and set the frame title. The name of the figure files and the name of the frame should be different. Here is the attempt:               \def\fnames{red, green, blue}          \foreach \name in \fnames {%          \begin{frame}{\name}       \begin{columns}             \column{0.33\textwidth}         \includegraphics[width=4.cm]{./plots/tot\name _log.eps}          \column{0.33\textwidth}         \includegraphics[width=4.cm]{./plots/tot\name _log.eps}          \column{0.33\textwidth}         \includegraphics[width=4.cm]{./plots/tot\name _log.eps}       \end{columns}      \end{frame}%          }      The question: is it possible to set the title of the frame from a separate list or array. So instead of fnames, I would like to get it from: `\def\tnames{white, gray, black}`


title: extern lemma declaration

text: Is it possible to something like this:               \begin{theorm}     foo equal bar     \end{theorem}     \begin{proof}       \extern{lemma-fu}       With this, we will do … % A lot of text     \end{proof}          \begin{lemma}     \label{lemma-fu}     some statement     \end{lemma}     \begin{proof}     proof-of-lemma     \end{proof}      I want imagine command `\extern` to insert lemma into proof of theorem. With `verbdef` I can do reverse -- write formulation of lemma in proof of theorem and refer to it later, but It is less readable in source code.


I'm trying to create a sideways column type based on column type c. At the moment it looks like this: ![graphical example](http://i.stack.imgur.com/tzdTq.png) I want to put the expression "long word" in the vertical middle of the column and remove the error droping my text text text ... field. I searched and tried but I didn't succed. This is my minmal working example:               \documentclass[11pt, a4paper]{article}     \usepackage{lmodern}     \usepackage{array}     \usepackage{graphicx}     \usepackage{multirow}     \usepackage{tabularx}     \usepackage{rotating}          \newcolumntype{R}{>{\begin{sideways}}c<{\end{sideways}}}     \begin{document}     \begin{tabularx}{\textwidth}{|R|X|}     \hline     \rotatebox{270}{1234} & text\\     \hline     long word & text text text text text text text text text text text text text     text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text \\     \hline     \end{tabularx}     \end{document}


title: Memoir header for article

text: I am writing an `article` with `memoir` and the `\pagestyle{ruled}` is very nice but it keeps displaying _CONTENTS_ every even (left) page (which I believe is a `Chapter`, but being my paper an `article` there are no chapters at all!).   What I would like to achieve is having the `Section` title (not in capitals) with its number on every page (with left/right alignment respectively), and the number centred at the bottom.   I know that the documentation is exhaustive, but the deadline is closer then ever and, unfortunately, I cannot dig into it right now. Moreover I couldn't find other questions with related purpose.


title: Two consecutive spaces

text: When using some other editors, when you type two spaces with your space bar, two spaces are effectively displayed. This is not the case in LaTeX (btw, that's not the case on these websites ;) ). My question is barely simple I guess, but I didn't found some information about it on Google. How to display two consecutive spaces in LaTeX (I mean two spaces horizontally, with the space bar).


title: How to make the title centered with respect to the header line?

text: I have the following code for some document:               \documentclass{article}     \usepackage{fancyhdr}     \pagestyle{fancy}     \lhead{..}     \rhead{..}          \begin{document}          \begin{center}          \Large{..}          \newline          \newline          \large{..}          \end{center}          \section{}     ..          \end{document}      My question is: When I compile the code, it looks as if the text is centered with respect to the paper, but not to the header line, so it is does not look right. Is there a way to fix this? If so, what changes should I make to my code? Also, apologies for the way I wrote the code above. If someome could edit it and also tell me how to write it properly (for this site) that would be great.


title: How can I reorder elements of title when using `titling`

text: By default, it seems that* `\maketitle` processes first the title, then the author, then the date. So what do I do if I want to put the author and date on the top of the page (on opposite sides of the same line), and the title below them? *: This is what I understand from the documentation of the `titling` package. I may have misunderstood. Currently, I accomplish the desired effect with:               \newcommand{\addtitle}[4]{      John Smith \hfill \formatdate{#2}{#1}{#3} \\[0.8cm]           \textbf{\LARGE #4} % text of my title goes here     }      I use this command to add the title for a series of homework assignments, which all have the same author (me), but different dates and titles.


title: How to get big \{ and \} braces for an equation

text: How to type big `\\{` and `\\}` braces in this sentence:               $$P_{n,k}=\{\{x,y\}\in [X]^2: n=\min \{m\in     \omega: B_m(x)\cap B_m(y)=\emptyset\}; (x,y)\notin G_k\}$$      Could somebody help me?


title: How do I typeset units like MB, GB (megabytes, gigabytes)?

text: Is there a simple way to typeset byte units like MB, GB, TB in latex in math mode? How do you typeset `1GB` for example?


title: Roman page numbering for the Abstract, Acknowledgements and ToC, arabic for the rest in the article environment doesn't work

text: I've searched for this answer but every time, the answer was given for the report/memoir/book environment and for the article environment, which I am using, it doesn't work properly. As said in the title, I want my abstract, my acknowledgements and ToC to be numbered in roman numbers and the rest of the text in arabic.               \documentclass[titlepage]{article}     \begin{document}     \maketitle          \pagenumbering{roman}          \begin{abstract}        Here is the abstract     \end{abstract}          \newpage     \renewcommand{\abstractname}{Acknowledgements}          \begin{abstract}         I would like to thank blablabla     \end{abstract}          \newpage     \tableofcontents          \pagebreak     \section{Introduction}     \pagenumbering{arabic}              Blabla          \end{document}      Basically, the abstract is numbered as i, the acknowledgements are not numbered and the Toc is also numbered as i... If now I do               \documentclass[titlepage]{article}     \begin{document}     \maketitle          \pagenumbering{roman}          \begin{abstract}        Here is the abstract     \end{abstract}          \newpage     \setcounter{page}{2} % This has been added     \renewcommand{\abstractname}{Acknowledgements}          \begin{abstract}         I would like to thank blablabla     \end{abstract}          \newpage     \setcounter{page}{3} % This has been added     \tableofcontents          \pagebreak     \section{Introduction}     \pagenumbering{arabic}              Blabla          \end{document}      The abstract is i, the ToC is iii... But the acknowledgements are still nothing and I don't understand why. For the arabic numbering, everything goes fine.


title: Vertical spacing below block quote should be retained even if footnote follows

text: In my text, block quotes have noticeable vertical spacing from the text above and below. When there is a footnote, this property is violated; I would like to restore it. (And I think this formatting option makes sense from an aesthetic point of view.) In other words: If a block quote ends a page (and doesn't continue onto the next page) but a footnote follows on the same page, I would like that footnote to be spaced further apart than it would otherwise be, to preserve the property that below a block quote there is always a certain amount of space. Here is sample code illustrating the issue:               \documentclass[12pt]{memoir} % the issue is clearly visible for a font size of 12pt     \usepackage{lipsum}          % quotes with twice the standard \parindent as indentation from both sides     % (the example works the same if you prefer the "quote" environment instead)     \newenvironment{myquote}%       {\par\setSpacing{1}\list{}{\leftmargin=2\parindent \rightmargin\leftmargin}%        \item[]%        \small%        \fontfamily{ppl}\selectfont}%       {\endlist}               \begin{document}          \begin{myquote}     This is a block quote. This is a block quote. This is a block quote. This is a block quote. This is a block quote. This is a block quote. This is a block quote. This is a block quote. This is a block quote. This is a block quote. This is a block quote. This is a block quote. This is a block quote. This is a block quote. This is a block quote. This is a block quote. This is a block quote. This is a block quote. This is a block quote. This is a block quote. This is a block quote. This is a block quote.     \end{myquote}          \noindent Text after the block quote.\footnote{A footnote. The vertical spacing is as it should be, as the block quote continues onto the next page.}          \vspace*{10\baselineskip}          \lipsum[1]          \begin{myquote}     This is a block quote. This is a block quote. This is a block quote. This is a block quote. This is a block quote. This is a block quote. This is a block quote. This is a block quote. This is a block quote. This is a block quote. This is a block quote. This is a block quote. This is a block quote. This is a block quote. This is a block quote. This is a block quote. This is a block quote. This is a block quote. This is a block quote. This is a block quote. This is a block quote. This is a block quote.     \end{myquote}          \noindent Text after the block quote. Text after the block quote. Text after the block quote. Text after the block quote. Text after the block quote. Text after the block quote.\footnote{A footnote. It should have more vertical distance from the block quote, as that block quote terminates here.}          \vspace*{6\baselineskip}          \lipsum[1]          \begin{myquote}     This is a block quote. This is a block quote. This is a block quote. This is a block quote. This is a block quote. This is a block quote. This is a block quote. This is a block quote. This is a block quote. This is a block quote. This is a block quote. This is a block quote. This is a block quote. This is a block quote. This is a block quote. This is a block quote. This is a block quote. This is a block quote. This is a block quote. This is a block quote. This is a block quote. This is a block quote.     \end{myquote}          \noindent Text after the block quote. Text after the block quote. Text after the block quote. Text after the block quote. Text after the block quote. Text after the block quote.          \end{document}        * The first page displays the desired spacing below (and above) a block quote.   * The footnote at the bottom of page 1 has close vertical spacing to the preceding body text, as the block quote at the bottom of page 1 continues onto page 2.   * The footnote at the bottom of page 2 _should_ (in my preference) have wider vertical spacing (ideally the same as if text were to follow), to indicate that the block quote ends at the bottom of page 2. Notes on the generality of the solution:   * The example works equally well if the three occurrences of `\begin{myquote}` and `\end{myquote}` are replaced by `\begin{quote}` and `\end{quote}`. I figured that since there is a chance that the environment needs modification anyways, I might as well expose the internals of a self-defined environment. Nonetheless it's now occurring to me that a solution that tells the user how to perform such a modification for the standard `quote` environment might be more useful to others. But I am also assuming that the fix is essentially the same.   * I normally use `\raggedbottom` in my preamble; it will be good if a solution is compatible with that.   * The vertical spacing for block quotes at the top of a page is okay and doesn't require amending, as their distance from a header (if there is one) is already large (and larger than the distance between a block quote and text above it would be).


title: TikZ: \foreach in macro with argument as list

text: The code below generates: ![enter image description here](http://i.stack.imgur.com/eLJH2.png) What I expect is: ![enter image description here](http://i.stack.imgur.com/B3Rbr.png) Why does the \foreach seem to treat the entire list as one value? How do I fix it?               \documentclass{article}     \usepackage{xparse}     \usepackage{xstring}     \usepackage{etoolbox}     \usepackage{expl3}     \usepackage{tikz}          \begin{document}          \ExplSyntaxOn          \DeclareDocumentCommand{\separate}{m}     {       \StrLeft{#1}{1}[\head]       \StrBehind[1]{#1}{\head}[\tail]       \IfInteger{\tail}{\head,\separate{\tail}}{\head}     }          \DeclareDocumentCommand{\map}{m}     {       \def\list{#1}       \foreach \i in \list       {         [\i]       }     }          \ExplSyntaxOff          \def\arg{3669887}          \arg          \separate{\arg}          \map{\separate{\arg}}          \end{document}


title: a,b Designation for a lead author with different co-authors in the same year

text: Biblatex/biber citation sorting: `ynt` bibliography sorting: `nyt` Citation1 - Appeared first in 2010 Darwin et al (2010): Citation2 - Appeared second in 2010 Darwin et al (2010) When cited, the first one appears as: `Darwin et al (2010b)` and the second one as `Darwin et al (2010a)`. Is this happening because the sorting is also being done on second and third authors? Is there any way to swap the a,b designations?


title: Counters and macros?

text: Not sure how I should post my question but here it is: I've seen that in plain TeX, `\newcount` is illegal inside a macro `\def`inition. Is there a way to allocate a register inside a macro? Also, if I know that I will use a register only once or twice, can I free it after and leave the space for a future `\newcount`?


title: Implementing page break in tabularx environment

text: Please consider the following example for better understanding. I would like LaTex to use page breaks within the tabularx environment, so that one part of the contains of `\LongText` will be displayed on the first and the rest on the second page. Maybe there is another useful package for page breaks within long tables or a complete other package for my purpose: a glossary within the main text.               \documentclass{article}     \usepackage[ngerman]{babel}     \usepackage{tabularx}          \usepackage{lipsum}          \begin{document}          \newenvironment{foo}{\tabularx{\textwidth}{p{2cm}X}}{\endtabularx}          \newcommand{\LongText}{This is a long text. This is a long text. This is a long text. This is a long text. This is a long text. This is a long text. This is a long text. This is a long text. This is a long text. This is a long text. This is a long text. This is a long text. This is a long text. This is a long text. This is a long text. This is a long text. This is a long text. This is a long text. This is a long text. This is a long text. This is a long text. This is a long text. This is a long text. This is a long text. This is a long text. This is a long text. This is a long text. This is a long text. This is a long text. This is a long text. This is a long text. This is a long text. This is a long text.}          \lipsum[1-3]          \begin{foo}     Whatever & \LongText \\     Something else & \LongText \LongText     \end{foo}          \end{document}


title: How to set single line spacing in TeXmacs?

text: I only saw options with fn unit. How much fn has identical effect as single line spacing.


title: TOC Spacing in Memoir

text: I am using memoir, and I would like to change the vertical space between entries in my toc. This seems like a simple thing that should have been answered elsewhere, but I can't find anything that answers this directly.


title: Can not externalize a tikz graph with two legend entries

text: I have a tikz file that contains a matlab scatter plot. It is created by matlab2tikz. The tikz file (sample.tikz) looks as follows and compiles fine in the document without the externalization.               \begin{tikzpicture}          \begin{axis}[%     width=\figurewidth,     height=\figureheight,     scale only axis,     xmin=1, xmax=8,     xtick={1,2,3,4,5,6,7,8},     legend style={at={(1.03,1)},anchor=north west,draw=black,fill=white,legend cell align=left}     ]     \addplot [     color=blue,     solid,     line width=1.5pt     ]     table{     0 1.15086549555392     8 1.15086549555392     };     \addlegendentry{baseline};          \addplot[only marks,mark=o,color=green!50!black] plot coordinates{     (1,1.14776993023436)     (2,1.14877635969775)     (3,1.15086549555392)     (4,1.15104679449109)     (5,1.13229950771559)     (6,1.14459533891626)     (7,1.13874295199852)     (8,1.14110592572754)     };     \addlegendentry{$\text{C}_\text{D}$};          \end{axis}     \end{tikzpicture}%      My tex files looks like this:               \documentclass{article}     \usepackage{tikz}     \usepackage{pgfplots}               % needed to import .tikz graphics     \usetikzlibrary{plotmarks}          % needed for tikz scatter plot     \usetikzlibrary{external}     \tikzexternalize[prefix=tikz/]     \newlength\figureheight                 %Tikz plot setup      \newlength\figurewidth                  %Tikz plot setup          \begin{document}     \begin{figure}[htpb]         \centering         \setlength\figureheight{0.45\linewidth}          \setlength\figurewidth{0.6\linewidth}         \input{./images/sample.tikz}         \caption{Caption}         \label{fig:}     \end{figure}     \end{document}      Compiling it and checking the `./tikz` directory I find an empty `.dpth` file and a `.log` file with the following error:               Missing character: There is no ; in font nullfont!     Missing character: There is no ; in font nullfont!     LaTeX Font Info:    External font `cmex10' loaded for size     (Font)              <7> on input line 34.     LaTeX Font Info:    External font `cmex10' loaded for size     (Font)              <5> on input line 34.     ! Undefined control sequence.     <recently read> \text           l.34 \end{axis}      If I comment out the second `\addlegendentry` in my tikz file it compiles fine and externalizes to the tikz directory. But naturally without the second legend entry. **Why can't I externalize a tikz file with two legend entries?**


title: Only one equation number with math-vfill-tombstone symbol

text: Maybe what I want is sinful, but let me explain: I use `aligned*` environments, because I usually don't need equation numbers. When I need one, I use `\addtocounter{equation}{1}\tag{\theequation}` from align* but show one equation number at the end. Furthermore, I don't use the `proof` environment, but just set my own tombstones at the end of equations. In `align*` this works nicely with `\tag*{\qedsymbol}`. Now I need one equation number for a whole set of equations, like in How to get only one vertically centered equation number in align environment with two equations, but still want my self-made tombstone. I like the `split` solution, but all solutions clash with either my tombstone or my equation numbering. Here is an MWE (or rather not, since the tombstone is missing):               \documentclass{article}     \usepackage{amsmath}     \newcommand\numberthis{\addtocounter{equation}{1}\tag{\theequation}}     \def\tombstone{\tag*{\qedsymbol}}     \begin{document}          \begin{align*}     \begin{split}     T(n)              = {} & 2T(n/2) + 3n/2  \\                         {} & \vdots \\                       = {} & 3n/2 \cdot \log_2n .   %\tombstone     \end{split} \label{fftcost} \numberthis      \end{align*}          \end{document}      Can anybody tell me how to get one equation number for all equations and still have my tombstone?


title: Enumerate content and reference the numbers

text: I'm looking for a solution to enumerate paragraphs in my appendix and reference the numbers. I don't want to use sections for it and the `enumerate` environment seems unfeasible. In my case I have around 40 statements that I want to enumerate and each statement has some describing text and formulas.


title: Emacs and latexmk setup for --shell-escape

text: If I want `\--shell-escape`, do I just need to add it to my `.latexmkrc` file as               $pdf_mode = 1;     $pdflatex = 'pdflatex --shell-escape -interaction=nonstopmode %O %S               -file-line-error -synctex=1';      or should it be added in my `.emacs` file (where would it go here if this is the case?)               (defun run-latexmk ()       (interactive)       (let ((TeX-save-query nil)             (TeX-process-asynchronous nil)             (master-file (TeX-master-file)))         (TeX-save-document "")         (TeX-run-TeX "latexmk"                      (TeX-command-expand "latexmk -pdflatex='pdflatex -file-line-error                                          -synctex=1' -pdf %O %S" 'TeX-master-file)                      master-file))         (if (plist-get TeX-error-report-switches (intern master-file))             (TeX-next-error t)           (progn             (demolish-tex-help)             (minibuffer-message "latexmk: done."))))      or does it need to be in both the `.emacs` and `.latexmkrc`?


title: About the internals of ConTeXt

text: It appears that ConTeXt is more structured than LaTeX2e in terms of naming scheme, key-value naming, macros, etc. However I haven't seen any guide or so that explains how this structure works. ## Where should I look? How do I start learning? What does `!` used in macros mean? E.g., `\v!foo`, `\v!bar`.   What does `_` used in macros mean? (I suppose this is just to add clarity)   And `@`? And `?`?   What is the meaning of `\unexpanded\def\foo…`?   Where do all of those `\setupfoo` come from? I don't see where they are defined.   How are all of those `key=value` defined? This is just what came to my mind after reading a few lines of a small .mkiv file. I don't need the answer to all of this, I'm just trying to understand conventions rather than explicit problems. That's just an example of what might come to your mind after reading a little bit about the core of ConTeXt… and I'm not sure the answer to that is easily reachable on the web. Most important, is there a way to learn that? Is it written somewhere?


title: Cannot use custom styled nodes with matrix using Pgf 3.0.0

text: I've been doing some diagrams using TikZ with matrix as the layout. While using Pgf version 2.10, everything went well, but now I'm using Pgf version 3.0.0 (TexLive2013) and there's a problem I'm almost sure is related to using custom styled nodes as elements of the table. The problem is that I cannot use the normal reference `((matrixName)-(rowNum)-(colNum))`, because it's not available. I've reduced my document to a MWE:               \documentclass[12pt]{standalone}          \usepackage{tikz}     \usetikzlibrary{shapes.geometric, matrix}          \tikzset{newIdea/.style={rectangle, fill=blue!90},              newPlan/.style={rectangle, rounded corners=2mm, text=white, fill=blue!90}     }          \begin{document}              \begin{tikzpicture}             \matrix (magic) [matrix of nodes, column sep=10mm]             {                        \node[newIdea] {8}; & \node[newPlan] {1}; & \node[newIdea] {6}; \\             };                     \draw[thick,red,->] (magic-1-1) |- (magic-1-2);         \end{tikzpicture}           \end{document}      Using Pgf 2.10, everything works; using Pgf 3.0.0 I get the following error message: > Package pgf Error: No shape named magic-1-1 is known.


title: Creating math symbol by stacking and superimposing symbols

text: I'd like to have the usual symbol for the infimal convolution. I've tried `\stackrel{+}{\vee}`, but it scales down the plus, which I don't want. I also tried `\atop`, but the symbol gets really big and ugly. I'd like something more like `\pm`... But unfortunately I'm having a hard time finding its code.


title: footnote hyperlink goes at the end of footnote text

text: I'm using the below coding to get the footnote style. After creating the PDF, if I click the footnote number it goes at the second line of "first footnote text" and not the first line. Also, the second footnote contains a just a single line of text. If I click the second footnote, it goes to the third footnote text. Kindly suggest how to go the first line of each footnote instead of the second line.               \documentclass{article}          \usepackage[hyperfootnotes,raiselinks]{hyperref}     \hypersetup{         colorlinks,%         citecolor=blue,%         filecolor=blue,%         linkcolor=blue,%         urlcolor=blue     }          \usepackage{footnote}          \begin{document}          This is a sample text. This is a sample text. This is a sample text. This is a sample text.     This is a sample text. This is a sample text. This is a sample text. This is a sample text.     This is a sample text.\footnote{Footnote text Footnote text Footnote text Footnote text Footnote text Footnote text     Footnote text Footnote text Footnote text Footnote text Footnote text} This is a sample text. This is a sample text. This is a sample text.     This is a sample text. This is a sample text. This is a sample text. This is a sample text.          This is a sample text. This is a sample text. This is a sample text. This is a sample text.     This is a sample text. This is a sample text. This is a sample text. This is a sample text.     This is a sample text.\footnote{Footnote text Footnote text Footnote text Footnote text Footnote} This is a sample text. This is a sample text. This is a sample text.     This is a sample text. This is a sample text. This is a sample text. This is a sample text.          This is a sample text. This is a sample text. This is a sample text. This is a sample text.     This is a sample text. This is a sample text. This is a sample text. This is a sample text.     This is a sample text.\footnote{Footnote text Footnote text Footnote text Footnote text Footnote text Footnote text     Footnote text Footnote text Footnote text Footnote text Footnote text} This is a sample text. This is a sample text. This is a sample text.     This is a sample text. This is a sample text. This is a sample text. This is a sample text.          .....     .....     .....          \end{document}


title: How replace beamer graphics by itemize?

text: In a Beamer frame with two "pages" (the second one appearing after mouse click) I have:   * On first page an `itemize` environment with 3 `\item` followed by a picture added with `includegraphics`   * On second page the same `itemize` environment with the same 3 `\item` and I want to replace the picture by a 4th `\item` My problem is about how keep the same position and size of all elements in the two pages. I am able to replace my graphics by a 4th `item` using `<1>` on the include graphics and `<2>` on the 4th itemize but the layout of the frame changes between the two pages. How can I avoid that ?


title: \eqref inside \section

text: Consider the following example:               \documentclass{article}          \usepackage{amsmath}     \usepackage{hyperref}          \begin{document}          \begin{align}      \label{func1a}       U(X,Y)       &= 2X + 5Y,\\      \label{func1b}       U(X,Y)       &= (XY)^{0.5},\\      \label{func1c}       U(X,Y)       &= \min(X,Y).     \end{align}          \section{The function~\eqref{func1a}}          \end{document}      This produces the following warnings:               Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):     (hyperref)                removing `\hbox' on input line 20.               Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):     (hyperref)                removing `\mathsurround' on input line 20.               Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):     (hyperref)                removing `\z@' on input line 20.               Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):     (hyperref)                removing `\unskip' on input line 20.               Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):     (hyperref)                removing `\@@italiccorr' on input line 20.      How do I fix this? P.S. The warnings are caused by `hyperref`.


title: \ref* with Beamer

text: When I use `\ref*{xx}` in `beamer`, it gives me an error: "`pdfTeX warning (dest): name{*} has been referenced but does not exist`." Does `beamer` fool with it, or what am I missing? If I run a regular MWE it works great.               \documentclass{article}     \usepackage{hyperref}     \usepackage{lipsum}          \begin{document}     \section{First}     \lipsum[1-3]          \section{Second}     \lipsum[4-5]     Label \label{jh}          \section{Third}     \lipsum[6-9]          Reference: \ref*{jh}     \end{document}      It prints a "2" there, without a hyper-reference. But in `beamer`, my mwe gives me the error I mentioned at the start.               \documentclass{beamer}          \begin{document}     \section{test section}     \begin{frame}       Label: \label{jh}     \end{frame}          \begin{frame}       Reference: \ref*{jh}     \end{frame}     \end{document}      A regular `\ref` (no star) works fine. It prints the reference, and makes it hyper also. I have downloaded `beamer` from CTAN today, and I downloaded `oberdiek` also, because I was getting warnings about the date of some loaded packages, which I have resolved. Beyond that, I have the TeXLive 2009 that comes with Ubuntu 10.04's package manager. (FWIW, I want `\ref*` because the references come from another document courtesy of `xr.sty`.)


title: Spacing text in table cells

text: How do I to space these two cells on this way? ![enter image description here](http://i.stack.imgur.com/8HPZA.png) And not on this way: ![enter image description here](http://i.stack.imgur.com/zkbCp.png) Code:               \begingroup     \setlength{\LTleft}{-20cm plus -1fill}     \setlength{\LTright}{\LTleft}     \begin{longtable}{|>{\centering\arraybackslash}p{5cm}|>{\centering\arraybackslash}p{3cm}|p{8cm}|}     \hline     \textbf{Classe} & \textbf{Stéréotype} & \multicolumn{1}{|c|}{\textbf{R\^ole}} \tabularnewline     \hline     \raisebox{-0.35cm}{Les classes de dialogues} \og Boundary \fg & \raisebox{-0.95cm}{\includegraphics[scale=0.7]{images/st_boundary}} & Elles permettent l'interaction entre l'IHM et les utilisateurs. Ces classes sont directement issues de l'analyse de maquette. \tabularnewline     \hline     \raisebox{-0.95cm}{Les classes de contr\^oles} \og Control \fg & \raisebox{-1.72cm}{\includegraphics[scale=0.7]{images/st_control}} & Ces classes modélisent la cinématique de l'application. Elles font la jonction entre les dilogues et les classes métiers en permettant aux différentes  vues de l'application de manipuler les informations détenues par un ou plusieurs objets métiers.\tabularnewline     \hline     \raisebox{-0.7cm}{Les classes entités} \og Entity \fg & \raisebox{-1.2cm}{\includegraphics[scale=0.7]{images/st_entity}} & Ces classes sont fénéralement persistantes, elles proviennent directement du mod\`ele du domaine et permettent \`a des données et des relations d'\^etre stockées dans des fichiers ou des bases de données. \tabularnewline     \hline     \multicolumn{3}{l}{} \\[-7pt]      \caption[]{Description des classes d'analyse.}     \end{longtable}     \endgroup      This is what I'm trying to make at final: ![enter image description here](http://i.stack.imgur.com/3rMEz.png) Thanks a lot !!


title: Draw sphere pgfplots with axis at center

text: I want to draw a plot that illustrates the ration pattern of an isotropic antenna. I thought about `pgfplots` to do the job. I grabbed the code from `pgfplots` manual and did some changes; but it doesn't satisfies me. As I said in the title, I want the axis to be drawn in the center, but I also want to be able to see the (0,0,0) point. So to be able to look inside, the sphere surface opacity shall be lower. Moreover, the code is not optimized, I need to specify the min and max for all axis just to see the arrow of the axis outside the surface. Is there a better way?               \documentclass{article}          \usepackage{pgfplots}          \pgfplotsset{%         compat=1.8,         compat/show suggested version=false,     }          \begin{document}          \begin{tikzpicture}     \begin{axis}[%         footnotesize,         axis equal,         axis lines=center,         xlabel=$x$,         ylabel=$y$,         zlabel=$z$,         xmax=2,xmin=-2,         ymax=2,ymin=-2,         zmax=2,zmin=-2,         xtick=\empty,         ytick=\empty,         ztick=\empty,         ]         \addplot3[%           surf,           z buffer=sort,           samples=15,           variable=\u,           variable y=\v,           domain=0:180,           y domain=0:360         ]         ({cos(u)*sin(v)}, {sin(u)*sin(v)}, {cos(v)});         \end{axis}     \end{tikzpicture}          \end{document}


title: Definining a new enviroment depending on a parameter

text: I want to create a new environment which depend if a parameter exists or not. The basic definition, which works fine, is:               \newrgbcolor{bcolor}{1. 1. 1.}%     \newenvironment{pbox}     {\begin{lrbox}{\dummybox}%     \begin{minipage}{0.95\linewidth}     }     {\end{minipage}\end{lrbox}%     {\setlength{\fboxsep}{0.02\linewidth}%     \colorbox{bcolor}{\usebox{\dummybox}}}\vskip1.2em}      In some cases I need to specify the height of the minipage, there for I tried               \usepackage{ifthen}     \newrgbcolor{bcolor}{1. 1. 1.}%     \newenvironment{pbox}[1][0]     {\begin{lrbox}{\dummybox}%     \ifthenelse{\value{#1}=0}      {\begin{minipage}{0.95\linewidth}}      {\begin{minipage}[c][#1][c]{0.95\linewidth}}     }     {\end{minipage}\end{lrbox}%     {\setlength{\fboxsep}{0.02\linewidth}%     \colorbox{bcolor}{\usebox{\dummybox}}}\vskip1.2em}      which does not. In most cases I want to use the pbox without the extra argument to detect the right size automatilly. Only when I specifiy the additional parameter the box should be fixed to this size. Example:               \begin{pbox}      This is a normal pbox which height is depending on the content.      \end{pbox}     \begin{pbox}[10cm]      This is a pbox which is at least 10cm height     \end{pbox}      How can this be done in a correct way?


title: is the lppl license suitable also for templates or use lgpl

text: I have almost no knowledge about licences and there differences. I use the standard LaTeX licence (lppl) for my sty files. Now I wonder if this licence is also suitable for a template. Previously I had not put any licence to my template and that resulting in two annoying things:   1. it was changed and put online under a different name. This happened to a very early version and I found this code in a forum, where I could only give the advise to use my updated version instead.   2. I got asked several times if I allow people to publish the pdf when my template was used. (Sure) If lppl would have too many restrictions, would lgpl be suitable? If so, how would I put the project under that licence. I can not put every file under a licence. I could add a single file called licence.txt. But what would that contain? The text from gnu.org? Note that I had asked this more or less before how-to-put-a-latex-project- template-under-a-license, but with no useful answer.


title: Aligning numbering in a system of equation so it's centered

text: In the following code ...               $\begin{cases}          2y+4x=9 & \text{(I)}  \\ 3x-2x=10  & \text{(II)}           \end{cases}$      ... I want the `(I)` to be centered above `(II)`. Right now they are aligned above each other but to the left. How do I do this?


title: Copyright of LaTex Templates?

text: I have a LaTeX template produced by Elsevier, "elsarticle-template-3-num.tex", which I have used to typeset a document. I want to distribute the compiled .pdf that I have typeset. Does the copyright of the template place any restrictions on my distribution of the compiled .pdf? Or does Elsevier have any say regarding the distribution of my typeset document? To be explicit, here is the copyright statement in the header of the template:               %% This is file `elsarticle-template-3-num.tex',     %%     %% Copyright 2009 Elsevier Ltd     %%     %% This file is part of the 'Elsarticle Bundle'.     %% ---------------------------------------------     %%     %% It may be distributed under the conditions of the LaTeX Project Public     %% License, either version 1.2 of this license or (at your option) any     %% later version.  The latest version of this license is in     %%    http://www.latex-project.org/lppl.txt     %% and version 1.2 or later is part of all distributions of LaTeX     %% version 1999/12/01 or later.     %%     %% The list of all files belonging to the 'Elsarticle Bundle' is     %% given in the file `manifest.txt'.     %%     %% Template article for Elsevier's document class `elsarticle'     %% with numbered style bibliographic references     %%     %% $Id: elsarticle-template-3-num.tex 165 2009-10-08 07:58:10Z rishi $     %% $URL: http://lenova.river-valley.com/svn/elsbst/trunk/elsarticle-template-3-num.tex $     %%      I'm not sure if this is the appropriate place to ask this, but thought that the TeX community might have some experience or could point me to a resource/documentation that could answer the question.


title: How do I remove tick labels in latex using pstricks?

text: On my old Mac running OS 10.4.11, using TeXShop 2.26 I would use the pstricks package to draw figures. In those figures I had neither tick marks nor tick labels. I have recently switched to a new Macbook running OS 10.82 and have downloaded the latest TeXShop 3.11. When I try to compile my old files in the new LaTeX everything works fine, except that my figures now show up with tick labels (not tick marks). When I rerun the same files in my old Macbook the tick marks do not show up. Can anyone please tell me what is going on? Is there a way I can remove the tick labels in pstricks? Also, should I be switching to a different graphics package?


title: How to set Times New Roman font in TeXmacs?

text: I only saw times and roman. How can I get times new roman font and add it to TexMacs.


title: Appendix trouble

text: I am in trouble with my appendix. I include               \appendix<br>     \chapter{Appendix Title 1}     \section{Section 1}     \section{Section 2}      but in the TOC does not show the letters. The TOC is just this...               Appendix Title 1     .1 Section 1     .2 Section 2      without the letters. May someone help? I am using Lyx and I believe I need to include something in the preamble.


title: Headline next to page number overtaken to next chapter

text: I have one chapter for my listings               %%% Document Class     \documentclass[ngerman,bt]{dbvdoc}          \phantomsection     \addcontentsline{toc}{chapter}{Listings}     \lstlistoflistings      \cleardoublepage      and the next one for the acronyms               \chapter*{Acronyms}     \addcontentsline{toc}{chapter}{Acronyms}     \begin{acronym}         ....     \end{acronym}      The problem is that the headline which reads next to the page number (I don't know how to call it) on the second page of the acronyms chapter is still "Listings", I dont know how to change it. I'm using pdfLaTeX.


title: Equivalent of \@afterheading for LaTeX3

text: I want to define an environment with LaTeX3 where I can supress the indention in the first line. For LaTeX2e you can use `\@afterindentfalse\@afterheading`. The example use this combination. But I want to avoid this combination.               \documentclass{scrartcl}     \usepackage{lipsum}     \usepackage{expl3,xparse}     \makeatletter     \def\tempaaaa{\@afterindentfalse\@afterheading}     \makeatother     \ExplSyntaxOn     \box_new:N \l_fullwidth_store_contents_one_box          \DeclareDocumentEnvironment { fullwidth } { }       {        \par\noindent Starting~savebox        \vbox_set_inline_begin:N \l_fullwidth_store_contents_one_box        \tempaaaa       }       {        \vbox_set_inline_end:        \par The~Output:\par         \fbox{ \box_use_clear:N \l_fullwidth_store_contents_one_box }       }     \ExplSyntaxOff     \begin{document}     \begin{fullwidth}          FOO bar          \lipsum[1]     \end{fullwidth}     \end{document}      ![enter image description here](http://i.stack.imgur.com/4pi6S.png)


title: scrreprt  – How to adjust distance between caption and table?

text: I am new to LaTeX, tentatively using it to prepare a complicated industrial document (laboratory test report). I had selected the `report` class. After numerous experiments, I have just found that just switching to the KOMA-Script class `scrreprt` provides numerous visual changes that suit me, because they give the document a more "industrial" appearance that suits me well. My previous efforts in that direction involved a number of complicated settings concerning the headings of chapters, departing from the `report` class. While most areas look fine, I am facing a problem with the distance between the captions and the upper limit of the tables, that is very small after the change of class. I used to use the code               \usepackage[margin=10pt, font=bf]{caption}      and I have replaced this line with:               \renewcommand{\capfont}{\bfseries}     \renewcommand{\caplabelfont}{\bfseries}       as indicated in the KOMA-Script documentation. However I cannot find a way to adjust the distance. Surprisingly, the distance between the bottom of a figure and the caption looks OK, but higher than with the previous `report` class, and for reasons I do not understand. How can I fix this?               \documentclass[a4paper, oneside,11pt, english]{scrreprt} % Mode production     \usepackage[utf8]{inputenc} % UTF-8 encoding for code editing     \usepackage[T1]{fontenc} % Usual fonts     \usepackage[draft]{graphicx} % Graphics-mode draft.     \usepackage{tabularx}     %\usepackage[margin=10pt, font=bf]{caption} % Setting options for captions          \renewcommand{\capfont}{\bfseries}     \renewcommand{\caplabelfont}{\bfseries}          \begin{document}          \begin{table}[H]     \noindent     \begin{center}     \caption {Test sequence group 2}     \begin{tabularx}{\textwidth}{|l|c|X|}     \hline     Description&Test per EN2591-&Remark\\     \hline\hline     Visual examination  &1511       &\\     Shock           &4200       &\\     Visual examination  &15111      &\\     \hline     \end {tabularx}     \end{center}     \end{table}               \centering     \begin{figure}[H]     \centering     \begin{minipage}[b]{.46\textwidth}     \centering     \includegraphics[width=\linewidth]{test.jpg}     \end{minipage}     \begin{minipage}[b]{.46\textwidth}     \centering     \includegraphics[width=\linewidth]{test2.jpg}     \end{minipage}     \caption {Sample caption}     \end{figure}     \raggedright          \end{document}


title: Defining a custom environment with per-section numbering

text: I have an `enumerate` environment that I want to refer to later in my document using `\ref` and `\label`, but `enumerate` doesn't get numbered by section (the way, say, `figure` would). How can I add section numbers to `enumerate`? I do not want individual, enumerated items to be numbered. Rather, I want the enumeration as a whole to be numbered. What I am really looking for is something like this: * * * Algorithm 1.2   * 1. Walk to store.   2. Buy Milk    3. Walk Home    ... / _snip_ / ... As described in Algorithm 1.2, it's easy to buy milk. * * * I don't want to use a figure because I can't have it moving around the document. I don't want to use the theorem/definition/proof environments because of all the styling. The algorithm environments use a lot of styling too. I'm basically looking for a way to slap a title on my enumerate environment and give it a number that I can refer to. **Edit:** This is what I finally ended up with, based on Mico's post:               \usepackage{amsmath}     \newcounter{algcounter}     \newenvironment{alg}{     \bigskip\noindent     \refstepcounter{algcounter}     \textbf{Algorithm \thealgcounter}     \newline     \begin{enumerate}       \setlength{\itemsep}{1pt}       \setlength{\parskip}{0pt}       \setlength{\parsep}{0pt}     }{\end{enumerate}}     \numberwithin{algcounter}{section}


title: How to align across ordinary text;  as in breaking matrices, sets of equations, tables

text: In my case I need to break a multi-line object, as in a matrix, aligned equations, or table, and enter them one row/line at a time. There will be plain text between such rows. There should be NO carriage/line return (no `\cr`, `\\\`). The original alignment is to be preserved (or something close to it) so that if the interspersed text lines were not there the object would look as it is normally typeset. An example: Suppose M is a 3 by 3 matrix I want to be broken to three individual rows so that > Row 1 > > a lengthy text segment > > Row 2 > > a lengthy text segment > > Row 3 will come out with Rows 1,2,3 aligned as they normally would in the original matrix. To restate 1: Can I "pre-type set" a matrix M (which has just entries on a line and no connected elements such as matrix delimiters, parentheses, etc, across lines) and then do "a verbatim copy-paste" of the individual rows of the output where I need them? To restate 2: Should I use some sort of home-made tabbing template? Just space certain elements by a certain distance. Any suggestions? To restate 3: How would I a make the scrolling text program in How to simulate terminal output accept a multi-line aligned structure such as a matrix?


title: Left-align column and row matrices and right-align the dimensions

text: I have some vectors, one of which is written as column and others as rows. I would like to have them so, that the vectors are left-aligned and the corresponding dimensions right-aligned, as I tried to indicate in my plot below. The code I used is also supplied. Can anyone help me with that? Preferably within one equation environment...               \documentclass[a4paper,12pt]{report}     \usepackage{amsmath}     \usepackage{amsthm}     \usepackage{amsfonts}     \begin{document}          \begin{equation}     \begin{split}     Y &=(y_1,\dots,y_T) \hspace{2,3cm} \\     B &=(\nu,A_1,\dots,A_p) \hspace{2cm}      \end{split}     \quad     \begin{split}     (K\times T) \\     (K\times (Kp+1))     \end{split}     \end{equation}          \begin{equation}     \begin{split}     Z_t &=     \begin{bmatrix}     1 \\     y_t \\     \vdots \\     y_{t-p+1}     \end{bmatrix}     \end{split}     \qquad     \begin{split}     ((Kp+1)\times 1)     \end{split}     \end{equation}          \begin{equation}\label{schaetzer-matrizen}     \begin{split}     Z &=(Z_0,\dots,Z_{T-1}) \\     \textbf{y} &=vec((Y)) \\     \boldsymbol{\beta} &=vec(B) \\     \end{split}     \qquad     \begin{split}     ((Kp+1)\times T) \\     (KT\times 1) \\     ((K^2p+K)\times 1) \\     \end{split}     \end{equation}               \end{document}      ![enter image description here](http://i.stack.imgur.com/Oa8uO.png)


title: Add a rule after chapter title using titlesec

text: I've been experimenting with chapter title formatting using `titlesec` but I can't seem to find the proper way to add a rule just below the chapter title. After reading the doc, I found that `\titleline` does that, but I'm not sure where in the `\titleformat` syntax to place it.


title: Strange error when unicode-math and hyperref are combined in xelatex

text: The following is an MWE for a problem that I'm facing:               \documentclass{article}          \usepackage{hyperref}     \usepackage{unicode-math}     \setmathfont{Asana Math}     \begin{document}     \section{$2\times 2$}     $2 \times 2$     \end{document}      When compiling this with xelatex, I get the following error:               ! Improper alphabetic constant.     <to be read again>                         \times      l.7 \section{$2\times 2$}      But the error goes away if I remove the inclusion of the hyperref package. Now obviously I'd like to be able to use math in a section header, and with pdflatex the compilation is fine (except for hyperref grumbling about math in bookmarks, which can be fixed by other means). So is there something I'm doing wrong with xelatex ?


title: Subfloat with subcaption package: Missing number, treated as zero

text: I want to make a figure consisting of two subfigures. Having read the Wikipedia subentry on subfloats, I tried to follow it exactly, so I did not use the `subfig` or `subfigure` package, only the `caption` and `subcaption` packages. Nevertheless, I am getting a `Missing number, treated as zero` error, pointing to the line with `\begin{subfigure}`. What am I doing wrong? Below is my code:               % In preamble:     \usepackage{url}     \usepackage{graphicx}     \usepackage{caption}     \usepackage{subcaption}     \usepackage{rotating}     \usepackage[table]{xcolor}     \usepackage{multirow}     \usepackage{amsfonts}               % In document:     \begin{figure}[htpb]     \begin{subfigure}[b]{width=0.45\textwidth}     \centering     \includegraphics[width=\textwidth]{img_a}     \end{subfigure}     \begin{subfigure}[b]{width=0.45\textwidth}     \centering     \includegraphics[width=\textwidth]{img_b}     \end{subfigure}     \caption{A caption.}     \label{fig:my-figure}     \end{figure}      I am using TeXShop 2.47 on Mac OS X 10.8.1 (x86_64). Thanks!


title: Selective lining figures with KPFonts

text: I'm writing a document that uses OSF with KPFonts. However, they look a bit awkward within tables. Is there a way of switching to lining figures locally with KPFonts?


title: Creating biblatex category based on Journal name

text: I have used the following code to create cited/non-cited bibliographies.               \DeclareBibliographyCategory{cited}     \AtEveryCitekey{\addtocategory{cited}{\thefield{entrykey}}}      I want to further subdivide the 'Cited' bibliography called by               \printbibliography[category=cited, prenote={JoPE}]      into two sections. The first section is every cited reference except those for the journal named 'Foobar'. The next section is for cited references in the journal 'Foobar'. Both sections need to have prenotes.


title: How would I draw, in Tikz, the following diagram of a path of particles through different media?

text: ![path of particles through different media](http://i.stack.imgur.com/pK8Xp.jpg)


title: Babel + Hebrew + lipsum incompatibility

text: With:               \documentclass{article}     \usepackage[hebrew,english]{babel}     \usepackage{lipsum}     \begin{document}     \lipsum     \end{document}      You get:               ! Missing \endcsname inserted.     <to be read again>                         \protect      l.6 \end             {document}     ?       The suggestions here do not work around the problem.


title: thesis won't compile anymore!

text: I opened up my thesis this morning to compile and nothing happens! It worked fine Saturday. LyX hangs and when I exported to .tex and tried to compile with TeX Shop it also hangs. here is the console output:               `This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010)      \write18 enabled.     entering extended mode     (./thesis_schneider_book-ucb.16.tex     LaTeX2e <2009/09/24>     Babel <v3.8l> and hyphenation patterns for english, dumylang, nohyphenation, ge     rman-x-2009-06-19, ngerman-x-2009-06-19, afrikaans, ancientgreek, ibycus, arabi     c, armenian, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danis     h, dutch, ukenglish, usenglishmax, esperanto, estonian, ethiopic, farsi, finnis     h, french, galician, german, ngerman, swissgerman, monogreek, greek, hungarian,      icelandic, assamese, bengali, gujarati, hindi, kannada, malayalam, marathi, or     iya, panjabi, tamil, telugu, indonesian, interlingua, irish, italian, kurmanji,      lao, latin, latvian, lithuanian, mongolian, mongolianlmc, bokmal, nynorsk, pol     ish, portuguese, romanian, russian, sanskrit, serbian, slovak, slovenian, spani     sh, swedish, turkish, turkmen, ukrainian, uppersorbian, welsh, loaded.     (/Users/dschneid/Library/texmf/tex/latex/vnovathesis_hyperref.cls          LaTeX Warning: You have requested document class `vnovathesis_hyperref',                    but the document class provides `thesis'.          Document Class: thesis 2003/01/07          --------------------------------------------------------------      +---+ Thesis Style (thesis.cls) version 1.10, January 2003      +---+ for Villanova theses/dissertations.      * Conforms to the Villanova Graduate      * School "SPECIFICATIONS for Preparation of Master's Thesis     --------------------------------------------------------------      based on URL: http://www.Colorado.EDU/ITS/docs/latex/ThesisClass               Class thesis Warning: Option 'letterpaper' superfluous. Ignored. on input line      156.          (/usr/local/texlive/2010/texmf-dist/tex/latex/base/report.cls     Document Class: report 2007/10/19 v1.4h Standard LaTeX document class     (/usr/local/texlive/2010/texmf-dist/tex/latex/base/size10.clo))     (/usr/local/texlive/2010/texmf-dist/tex/latex/tools/indentfirst.sty)     (/usr/local/texlive/2010/texmf-dist/tex/latex/base/ifthen.sty)     (/usr/local/texlive/2010/texmf-dist/tex/generic/ulem/ulem.sty))     (/usr/local/texlive/2010/texmf-dist/tex/latex/psnfss/mathpazo.sty)     (/usr/local/texlive/2010/texmf-dist/tex/latex/base/fontenc.sty     (/usr/local/texlive/2010/texmf-dist/tex/latex/base/t1enc.def))     (/usr/local/texlive/2010/texmf-dist/tex/latex/base/inputenc.sty     (/usr/local/texlive/2010/texmf-dist/tex/latex/base/latin9.def))     (/usr/local/texlive/2010/texmf-dist/tex/latex/fancyhdr/fancyhdr.sty)     (/usr/local/texlive/2010/texmf-dist/tex/generic/babel/babel.sty     (/usr/local/texlive/2010/texmf-dist/tex/generic/babel/english.ldf     (/usr/local/texlive/2010/texmf-dist/tex/generic/babel/babel.def)))     (/usr/local/texlive/2010/texmf-dist/tex/latex/tools/array.sty)     (/usr/local/texlive/2010/texmf-dist/tex/latex/prettyref/prettyref.sty)     (/usr/local/texlive/2010/texmf-dist/tex/latex/float/float.sty)     (/usr/local/texlive/2010/texmf-dist/tex/latex/rotfloat/rotfloat.sty     (/usr/local/texlive/2010/texmf-dist/tex/latex/rotating/rotating.sty     (/usr/local/texlive/2010/texmf-dist/tex/latex/graphics/graphicx.sty     (/usr/local/texlive/2010/texmf-dist/tex/latex/graphics/keyval.sty)     (/usr/local/texlive/2010/texmf-dist/tex/latex/graphics/graphics.sty     (/usr/local/texlive/2010/texmf-dist/tex/latex/graphics/trig.sty)     (/usr/local/texlive/2010/texmf-dist/tex/latex/latexconfig/graphics.cfg)     (/usr/local/texlive/2010/texmf-dist/tex/latex/pdftex-def/pdftex.def)))))     (/usr/local/texlive/2010/texmf-dist/tex/latex/wrapfig/wrapfig.sty)     (/usr/local/texlive/2010/texmf-dist/tex/latex/units/units.sty     (/usr/local/texlive/2010/texmf-dist/tex/latex/units/nicefrac.sty))     (/usr/local/texlive/2010/texmf-dist/tex/latex/base/textcomp.sty     (/usr/local/texlive/2010/texmf-dist/tex/latex/base/ts1enc.def))     (/usr/local/texlive/2010/texmf-dist/tex/latex/multirow/multirow.sty)     (/usr/local/texlive/2010/texmf-dist/tex/latex/amscls/amsthm.sty)     (/usr/local/texlive/2010/texmf-dist/tex/latex/amsmath/amsmath.sty     For additional information on amsmath, use the `?' option.     (/usr/local/texlive/2010/texmf-dist/tex/latex/amsmath/amstext.sty     (/usr/local/texlive/2010/texmf-dist/tex/latex/amsmath/amsgen.sty))     (/usr/local/texlive/2010/texmf-dist/tex/latex/amsmath/amsbsy.sty)     (/usr/local/texlive/2010/texmf-dist/tex/latex/amsmath/amsopn.sty))     (/usr/local/texlive/2010/texmf-dist/tex/latex/hyperref/hyperref.sty     (/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)     (/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/ifpdf.sty)     (/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty     (/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/infwarerr.sty)     (/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/ifluatex.sty))     (/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty     (/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/etexcmds.sty))     (/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/pdfescape.sty)     (/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/ifvtex.sty)     (/usr/local/texlive/2010/texmf-dist/tex/generic/ifxetex/ifxetex.sty)     (/usr/local/texlive/2010/texmf-dist/tex/latex/oberdiek/hycolor.sty     (/usr/local/texlive/2010/texmf-dist/tex/latex/oberdiek/xcolor-patch.sty))     (/usr/local/texlive/2010/texmf-dist/tex/latex/oberdiek/letltxmacro.sty)     (/usr/local/texlive/2010/texmf-dist/tex/latex/oberdiek/kvoptions.sty)     (/usr/local/texlive/2010/texmf-dist/tex/latex/hyperref/pd1enc.def)     (/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/intcalc.sty)     (/usr/local/texlive/2010/texmf-dist/tex/latex/latexconfig/hyperref.cfg)     (/usr/local/texlive/2010/texmf-dist/tex/latex/hyperref/puenc.def)     (/usr/local/texlive/2010/texmf-dist/tex/latex/url/url.sty)     (/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/bitset.sty     (/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/bigintcalc.sty))     (/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/atbegshi.sty))          Package hyperref Message: Driver (autodetected): hpdftex.          (/usr/local/texlive/2010/texmf-dist/tex/latex/hyperref/hpdftex.def     (/usr/local/texlive/2010/texmf-dist/tex/latex/oberdiek/atveryend.sty)     (/usr/local/texlive/2010/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty     (/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/uniquecounter.sty)))     (/usr/local/texlive/2010/texmf-dist/tex/latex/tools/calc.sty)     (/usr/local/texlive/2010/texmf-dist/tex/latex/caption/caption.sty     (/usr/local/texlive/2010/texmf-dist/tex/latex/caption/caption3.sty))     (/usr/local/texlive/2010/texmf-dist/tex/latex/subfig/subfig.sty)     No file thesis_schneider_book-ucb.16.aux.     (/usr/local/texlive/2010/texmf-dist/tex/latex/base/ts1cmr.fd)     (/usr/local/texlive/2010/texmf-dist/tex/generic/babel/lgrcmr.fd)     (/usr/local/texlive/2010/texmf-dist/tex/latex/psnfss/t1ppl.fd)     (/usr/local/texlive/2010/texmf-dist/tex/context/base/supp-pdf.mkii     [Loading MPS to PDF converter (version 2006.09.02).]     ) (/usr/local/texlive/2010/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty     (/usr/local/texlive/2010/texmf-dist/tex/latex/oberdiek/grfext.sty)     (/usr/local/texlive/2010/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))     (/usr/local/texlive/2010/texmf-dist/tex/latex/hyperref/nameref.sty     (/usr/local/texlive/2010/texmf-dist/tex/latex/oberdiek/refcount.sty)     (/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))`      please help if you have any suggestions. Thanks


title: About reference in appendix

text: After adding an additional reference section in the appendix part, I want to the number of each reference item is after the number of reference in the main body of the paper. So that it should be like this: > Main Part > > Reference > > [1] > > [2] > > Appendix > > Reference > > [3] > > [4] Not the following: > Main Part > > Reference > > [1] > > [2] > > Appendix > > Reference > > [1] > > [2] How to do the job? Part of my latex file is:               \documentclass{vldb}       \begin{document}            ............          \begin{thebibliography}       \bibitem{anh2005inverted}       V.~N. Anh and A.~Moffat.       \newblock {Inverted index compression using word-aligned binary codes}.       \newblock {\em Information Retrieval}, 8(1):151--166, 2005.            \bibitem{baeza-fast}       R.~Baeza-Yates.       \newblock {A fast set intersection algorithm for sorted sequences}.       \newblock In {\em Combinatorial Pattern Matching}, pages 400--408, 2004.       \end{thebibliography}            \begin{appendix}        \begin{thebibliography}       \bibitem{buttcher2006trec}       S.~B{\"u}ttcher, C.~L.~A. Clarke, and I.~Soboroff.       \newblock {The TREC 2006 terabyte track}.       \newblock In {\em Proc.\ 15th Text Retrieval Conference (TREC)}, 2006.            \bibitem{fisher1963statistical}       R.~Fisher and F.~Yates.       \newblock {\em {Statistical tables for biological, agricultural and medical       research}}.       \newblock Oliver and Boyd, 1963.       \end{thebibliography}       \end{appendix}       \end{document}


title: rotating and positioning of repeating parts in tikz

text: This is related to my question: using tikz to draw a flattened polyhedron and is similar, but in my interpretation not the same as the question:Rotate a path around a point. The following MWE shows what I want as an output, but I was hoping there was an easier way, something like: draw the second trapezium by y-shifting it up so that cordinate A1 is at B2 and then rotating so that C2 is at D1. Do such elegant transformations exist? My aim is to then be able to repeat this many times to get an arch of such trapeziums.               \documentclass{article}          \usepackage{tikz}          \newcommand{\trapezium}[1]{%     \coordinate[label=A#1] (A#1) at (0,0);     \path (A#1)--++(-90:2) coordinate[label=B#1] (B#1);     \path (B#1)--++({-10}:1) coordinate[label=C#1] (C#1);     \path (A#1)--++({10}:1) coordinate[label=D#1] (D#1);     \draw (A#1)--(B#1)--(C#1)--(D#1)--cycle;     }               \begin{document}          \begin{tikzpicture}     \trapezium{1}          \begin{scope}[yshift=57,rotate around={20:(A1)}]     \trapezium{2}     \end{scope}          \end{tikzpicture}          \end{document}


title: Itemize equation with bullets

text: I am trying to place an equation ''inside'' itemize environment. Basically I would like to avoid using `\begin{cases}` and just represent the equation by using itemize (one bullet for each case) Moreover I think it might look better if the text after ''if'' would be aligned with one another. Does anyone know how to approach the problem?               $\begin{equation}     \begin{cases}     \bullet\Bigl\{1,\theta,\frac{\theta^2}{k}\Bigr\}\;\;\text{if}\;\;m^2\not\equiv 1 \pmod 9 \vspace{3mm}\\     \bullet\Bigl\{1,\theta,\frac{k^2\pm k^2 \theta+\theta^2}{3k}\Bigr\}\;\;\text{if}\;\;m\pm \equiv 1 \pmod 9     \end{cases}     \end{equation}$      and the output looks like this ![enter image description here](http://i.stack.imgur.com/5G13U.jpg) Thank you


title: strange behavior with \centering

text: Based on what I had read here, I had expected that the use of `\centering` would be the right tool for the what I am doing in this code:               \begin{equation*}      \left( \frac{1}{1 \cdot 2} + \frac{1}{2 \cdot 3} + \frac{1}{3 \cdot 4} \dots + \frac{1}{(n-2) \cdot (n-1)} + \frac{1}{(n-1)(n)} = 1 - \frac{1}{n} \right)      \end{equation*}           \\ {\centering implies}          \begin{equation*}     \left( \frac{1}{1 \cdot 2} + \frac{1}{2 \cdot 3} + \frac{1}{3 \cdot 4} \dots + \frac{1}{(n-2) \cdot (n-1)} + \frac{1}{(n-1)(n)} + \frac{1}{(n)(n+1)} = 1 - \frac{1}{n+1} \right);      \end{equation*}     that is, we will prove that if our rule holds good for $n$, then it holds good for $n+1$.      However, when I put the braces about `\centering`, the result is not centered; when I do, subsequent text is centered as well, which isn't what I want. How can I get just a single centered line here, evenly spaced between equations?


title: Suppress page number till table of contents in latex scrreprt and avoid that “contents” appears in ToC

text: I'm writing my bachelor thesis in the documentclass `scrreprt`. Unfortunately I can't suppress the page numbering, till the table of contents begins. The first two pages are empty. But then LaTeX starts numerating the pages in roman from 3 to 5, such that on the table of contents page there appears a small v. In addition to that the word contents appears itself in the ToC. I want to avoid this as well. I was of course experimenting with `\pagestyle{empty}` and a lot of other things I found via googling but no result was appropriate to solve my problem. This what I have so far.               \documentclass[12pt,a4paper,twoside]{scrreprt}       \usepackage[onehalfspacing]{setspace}       \usepackage{tocbibind}        \begin{document}       \pagestyle{empty}       %%%% Title page       \begin{titlepage}     titlepage       \begin{center}       \end{center}       \pagenumbering{roman}       \vspace*{75mm}       \end{titlepage}       blabla       \newpage       \thispagestyle{empty}       \pagestyle{empty}       \chapter*{Acknowledgement}       blabla     \newpage       \pagestyle{empty}       %%%% summary in mother tongue       \chapter*{summary}       \tableofcontents       \newpage       \thispagestyle{empty}       \mbox{}       \newpage     %%%% Page numbering restarts here       \pagenumbering{arabic}       \pagestyle{headings}         \chapter{introduction}      I hope I stated the problem clearly. Edit: I found a very simple solution to the problem that the content appears in itself. The command `\usepackage[nottoc]{tocbibind}` suppresses that the toc appears.


title: What could cause repeated NULL characters in an .aux file?

text: I have a LaTeX document that was compiling fine until this evening. I was playing around with `synctex` and `latexmk` when I noticed the error, but I'm not sure what is causing it. There are over 100 of the following errors when `pdflatex` gives up:               ! Text line contains an invalid character.     l.18 ...^^@^^@^^@^^@^^@^^@^^@^^@^^@^^@^^@^^@^^@^^@                                                       ^^@^^@^^@^^@^^@^^@^^@^^@^^...      Wasn't sure what those were. I noticed line 18 was blank in TextMate. But in Editra, I see that it is full of NULL characters. Weirdest thing I've seen. Plus, I can't delete these characters. Anyone know where to start debugging?


title: Choosing location of legend entries in Pgfplots

text: I am fairly new to using `pgfplots` and have been combing the manual for a couple hours now and I can't find an elegant solution to my problem. I would like to have two columns of legend entries and then one "label" underneath them all and centered. I managed to get it by playing with the `[text width= ]` settings, but I was wondering if there was a better way. MWE:               \documentclass[11pt,titlepage]{article}     \usepackage{pgfplots}     \pgfplotsset{compat=1.10,                     height=0.5\textwidth,                     width=0.8\textwidth,                     every axis/.append style={thick}}     \begin{document}          \begin{figure}     \centering     \begin{tikzpicture}     \begin{axis}[             legend pos=north west,             legend columns=2,             scaled y ticks = false,             xlabel={Months},             ylabel={Profit},             yticklabel={\$ \pgfmathprintnumber{\tick} },             ymin={-5500},             xmin={0},             xmax={5.5},             ytick={-5500, 0, 5000, 10000, 15000},             xtick={1,2,...,5},             grid=major,             ]         \addplot[mark=none, color=red, domain=0:5.5] {900*x -5200};         \addlegendentry{120}         \addplot[mark=none, color=green, domain=0:5.5] {1900*x -5200};         \addlegendentry{130}         \addplot[mark=none, color=blue, domain=0:5.5] {2900*x -5200};         \addlegendentry{140}         \addplot[mark=none, color=orange, domain=0:5.5] {3900*x -5200};         \addlegendentry{150}         \addlegendimage{empty legend}         \addlegendentry[text width=30pt]{Drinks/Day}     \end{axis}     \end{tikzpicture}     \end{figure}     \end{document}


title: List of appendices with tocloft and memoir

text: I found a very nice example showing how to create a list of appendices here: How to get a list of appendices? but it doesn't seem to work with the `memoir` document class. I get the error message "Command `\appendices` already defined." How can I create the same list of appendices with the `memoir` class?