title: To write Latvian in Babel

text: I know this thread about Changing language in babel, but I do not see any aux file generated in my case. So cannot delete them. My file               \documentclass{letter}     \usepackage{hyperref}     \usepackage[latvian]{babel}     % \usepackage[T1]{fontenc} % not sure about this, so comment     % \usepackage[utf8]{inputenc} % not sure about this, so comment          \signature{Masi}     \address{123 ABC}     \begin{document}        \begin{letter}{Skolotājs}          \opening{Dear Ms,}     ...     \closing{Ar cieņu,}          \end{letter}     \end{document}      I get               l.298 \ProcessOptions*               /usr/local/texlive/2013/texmf-dist/tex/generic/babel/babel.sty:331: Package bab     el Error: You haven't specified a language option.          See the babel package documentation for explanation.     Type  H <return>  for immediate help.      **How can you have Latvian language in Babel?**


title: Is there a combined plain+bold+italic+bolditalic TeX font available as one TTF file?

text: I am using a GUI control that supports only 1 font. I'd like to find a single font file that combines TeX's main font's plain, bold, italic, and bold-italic font in one font file for use with that GUI control. So for instance, characters 32-127 are plain, 128-191 are bold, etc. Does such a thing exist anywhere? (Note, this is for English-only text, and not Unicode obviously.)


title: How to remove the footer of the toc?

text: How to make toc of a report has no footer, please? I'm using this code:               \documentclass[12pt,english,french]{report}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{babel}     \makeatletter     \def\@makeschapterhead#1{%     \vspace*{10\p@}%     {\parindent \z@     {\raggedleft \reset@font     \scshape \vphantom{\@chapapp{} \thechapter}     \par\nobreak}%     \par\nobreak     \vspace*{30\p@}     \interlinepenalty\@M     \usefont{OT1}{ptm}{b}{n}     {\raggedright \Huge #1}%     \par\nobreak     \par\nobreak     \vskip 45\p@     }}       \begin{document}     \chapter*{Introduction}     \end{document}      This code displays the number of the current page. How to delete it please? Thanks a lot!!


title: Nested indentation with xparse

text: this is my first question, so any help is appreciated. I want to achieve an indentation effect as shown in the image: ![itemize approach](http://i.stack.imgur.com/BwQnJ.png) Which can be obtained as follows:               \begin{itemize}       \item $a$       \begin{itemize}         \item $b1$         \item $b2$       \end{itemize}       \item $c$     \end{itemize}      The point is that I want to create an `xparse` `\DocumentCommand` that receives the item arguments without `$` signs and separated by the `.` character and recreates the previous itemize structure. For example, lets say the named function is called `\tab`. Then, `\tab{a.\tab{b1.b2}.c}` should give the same result as above. Hope you understand what I'm looking for. * * * Edit: Finally got it thanks to `\@ifnextchar`:               \usepackage{xparse}     \NewDocumentCommand{\tab}{>{\SplitList{.}}m}     {\begin{itemize}\ProcessList{#1}{\entry}\end{itemize}}     \makeatletter     \def\test{\@ifnextchar\tab{\relax}{\item $}}     \makeatother     \newcommand{\entry}[1]{\test#1 \ifmmode $ \fi } Thanks for your help.


title: Caption and reference of a figure in the introduction chapter

text: I have an introduction chapter defined with the command:               \chapter*{Introduction}      The captions of the figures within this chapter, that doesn't have a number like the others, are named: > "Figure 1", "Figure 2", etc. then when I reference a figure with `\ref{labelname}` I see a number like 1,2 etc. I don't like this way to reference a figure, because isn't like the other chapters. The captions of the first chapter for example are: > "Figure 1.1", "Figure 1.2" etc. I'd like that the captions of the figures in the introduction to be: > "Figure I.1", "Figure I.2" etc. then when I reference a figure with `\ref{labelname}` I see a number like I.1, I.2 etc. How can I do that? Here an example code:               \documentclass[a4paper]{book}          \usepackage[english]{babel}     \usepackage[utf8]{inputenc}     \usepackage{lipsum}               \begin{document}     \chapter*{Introduction}     \lipsum[1]     \begin{figure}[h!]     \vspace{2cm}     \label{fig:intro}     \caption{Figure in the introduction}     \end{figure}          Look at the Fig.~\ref{fig:intro}.      I want it referenced as Fig.~I.1.          \chapter{A sample chapter}     \lipsum[1]          \begin{figure}[h!]     \vspace{2cm}     \label{fig:chap1}     \caption{Figure in chapter 1}     \end{figure}          Look at the Fig.~\ref{fig:chap1}.           \chapter*{Conclusion}     \lipsum[1]     \begin{figure}[h!]     \vspace{2cm}     \caption{Figure in the conclusion}     \label{fig:conc}     \end{figure}          Look at the Fig.~\ref{fig:conc}.     I want it referenced as Fig.~C.1.          \end{document}


title: How to hide URL from bibliography by using a harvard style?

text: I want my bibliography without URL fields. After modifying `natbib` here:               \newcommand\harvardurl[1]{\textbf{URL:} \textit{#1}}      to               \newcommand\harvardurl[1]{}      I noticed a blank line where the URL used to be. Modifying the `.bib` file is not an option.


title: Making outlines / review packets for lecture?

text: so I'm wondering of a way to make review packets similar to a style like this. I can do something similar to that using regular LaTex, but for more nontechnical classes like psychology, I need a way to keep up with the powerpoint. Normally I go after class and type it up, but that takes up a lot of time. I installed Lyx as recommendation, but it cannot nest as many bullet points as I would like. Is there a way to increase the amount nested? Or an alternate plug-in to use? Thanks for the help!


title: How to draw a dashed line with *-mark + error marks + a line in foreground in the same plot with pgfplots?

text: I create a plot with pgfplots with the following code:               \documentclass{standalone}     \usepackage{tikz}      \usepackage{pgfplots}     \pgfplotsset{compat=1.6}          \begin{filecontents}{ExampleData.txt}     xValue1 yValue1 Deltay1     -0.405  0       0     -0.355  0       0     -0.305  1       1     -0.245  2       1.41     -0.195  117     10.82     -0.155  111     10.54     -0.105  132     11.49     -0.055  142     11.92     -0.005  122     11.05     0.045   109     10.44     0.095   135     11.62     0.145   131     11.45     0.195   110     10.49     0.245   42      6.48     0.295   0       0     0.345   0       0     0.395   0       0     0.445   0       0     0.495   0       0     \end{filecontents}          \begin{document}          \begin{tikzpicture}     \begin{axis}[     %clip mode=individual,     xmin=-0.5,xmax=0.5,ymin=0,ymax=150,      enlargelimits=false,     axis on top=true,     xlabel=$x$, ylabel=$y$]     \addplot[dashed,     color=blue,     thick,     %only marks,     mark=*,     /pgfplots/error bars/.cd,         x dir=none,         y dir=both,         y explicit,         error bar style={color=blue,solid}]      table [     x=xValue1,     y=yValue1,     y error=Deltay1] {ExampleData.txt};     \draw[thick, <->] (axis cs:-0.195,117) -- (axis cs:0.195,117);     \end{axis}     \end{tikzpicture}     \end{document}      The output ![Plot with marked problems](http://i.stack.imgur.com/RD3WI.png) is almost what I want to have, but there are some things I am not able to improve by myself: If I use a dashed line instead of a solid one, the markers are not a round disk anymore. How can I avoid this? I want to have the arrow in the foreground. I thought I can use `clip mode=individual` for that. But then sometimes my error bars are being plotted outside of my axes. How can I have my arrow in the foreground without creating such an effect? I would be very happy about some help!


title: Error: "Dimension too large..." when plotting EXPONENTIALS with TikZ

text: Despite having read answers to 4-5 relate questions, I still can't get why my code does not compile. Here it is:               \documentclass[11pt,twoside]{book}     \usepackage[paperheight=24cm, paperwidth=35cm, margin=0pt, %     voffset=-50cm, hoffset=-1.4cm]{geometry}     \usepackage{tikz}          \usetikzlibrary{calc}          \begin{document}          \pagestyle{empty}          \begin{figure}[!h]     \centering\begin{tikzpicture}[xscale=1,yscale=1]     \draw[very thick,yellow,samples=500,domain=-6*pi:6*pi]     plot (\x, {cos((3*\x r)+pi/2)+\x*sin(3*\x r)});     \draw[very thick,orange,samples=500,domain=-6*pi:6*pi]     plot (\x, {-0.25*(pow(\x,2)*cos(\x r)-\x*sin(\x r))});     \draw[very thick,green,samples=500,domain=-6*pi:6*pi]     plot (\x, {cos(\x r)+\x});     \draw[very thick,magenta,samples=500,domain=-6*pi:6*pi]%%          error!     plot (\x, {0.5*(pow(10,-11)*exp(-3*\x)-cos(\x r)+3*sin(\x r))});%% error!     \draw[very thick,blue,samples=500,domain=-6*pi:6*pi]%%             error!     plot (\x, {pow(10,-15)*exp(3*\x)});%%                              error!     \end{tikzpicture}     \end{figure}          \end{document}      The latest two of five plots - as I showed in comments - are driving me mad. Please notice the massive voffset too...is it related? Obviously I tried several local modifications (e.g. radiants, etc.). This was just a test but now I'm seriously curious. Thank you very much!


title: rectangle in 3d plane

text: I am trying to plot a 3d axis with a rectangle perpendicular to the x-plane using the following code:               \documentclass[tikz]{standalone}     \usepackage{pgfplots,pgfplotstable}     \usetikzlibrary{calc}     \usepackage{tikz-3dplot}              \begin{document}     \begin{tikzpicture}         \begin{axis}[                view = {-40}{20},                 zmin=10^5,                 ymax=305,                 area plot/.style={                     fill opacity=0.75,                     draw=black!50!black,                     fill=blue!50,                     mark=none,                 },                 xlabel={x},                 ylabel={t },                 zlabel={y}             ]                    \draw [red, thick,rounded corners] (axis cs:6.3,1,10^5) rectangle (axis cs:6.3,100,1.2*10^5);         \end{axis}     \end{tikzpicture}               \end{document}      ![output](http://i.stack.imgur.com/bk890.jpg) All I get is a 2d axis! I am plotting other data as well; everything is working just fine, except the 3D rectangle. So I posted the code without the other plots. I am not getting any errors. It is true that the coordinates are a bit large, but he then can scale the axis simply.


title: RRC state machine with tikz

text: i would like to reproduce the RRC State Machine of the UMTS system, as the image in annex with Tikz. Can someone help me? ![RRC state machine](http://i.stack.imgur.com/Iuy4q.jpg)


title: What transformation do I have to apply to a node before passing it to \uput as a direction angle?

text: Consider the following code               \documentclass[pstricks,12pt]{standalone}     \usepackage{pst-node}     \usepackage{pgfmath}% don't forget this line!     \psset{saveNodeCoors}     \degrees[13]     \begin{document}     \makeatletter     \begin{pspicture}(-4,-4)(4,4)     \foreach \i [count=\j from 0] in {A,2,3,4,5,6,7,8,9,T,J,Q,K}     {         \pnodes(!3 \j\space neg \pst@angleunit 90 add PtoC){X\i}         \qdisk(X\i){2pt}         \uput[!N-X\i.y N-X\i.x atan 1 \pst@angleunit div](X\i){\i}         %\uput[(X\i)](X\i){\i}         %\uput[!\psGetNodeCenter{X\i} X\i.y X\i.x atan 1 \pst@angleunit div](X\i){\i}     }     \end{pspicture}     \makeatother     \end{document}      with the following output. ![enter image description here](http://i.stack.imgur.com/RXIZV.png) But if I use either               \uput[(X\i)](X\i){\i}     \uput[!\psGetNodeCenter{X\i} X\i.y X\i.x atan 1 \pst@angleunit div](X\i){\i}      I got the following incorrect output. ![enter image description here](http://i.stack.imgur.com/2qPMd.png) According to Herbert's response several decades ago (I don't know exactly where in this site), the pairs (`N-<node>.x` and `N-<node>.y`) and (`<node>.x` and `<node>.y`) have different transformation matrices. The question is what transformation matrix do I have to apply to `X\i` node before passing it to `\uput` as the direction angle such that I get the same correct result? ## Update When the center of the circle is not at the origin, unfortunately `\uput[(NODE)](>NODE){contents}` no longer works.               \documentclass[pstricks,border=20pt]{standalone}     \usepackage{pst-node,pst-plot}       \pstVerb{/XX 3 def /YY 4 def}          \degrees[12]          \makeatletter     \def\object#1{%     \begin{pspicture}[saveNodeCoors,showgrid](0,1)(6,7)         \pnode(!XX YY){P}         \pscircle(!XX YY){2}         \curvepnodes[plotpoints=13]{0}{12}{2 t \pst@angleunit PtoC YY add exch XX add exch}{R}         \multido{\i=0+1}{\Rnodecount}         {%             \pstVerb             {                 /ALPHA {\i\space} def                 %/ALPHA {N-R\i.y N-P.y sub N-R\i.x N-P.x sub atan 1 \pst@angleunit div} def                 %/ALPHA {\psGetNodeCenter{R\i}\psGetNodeCenter{P} R\i.y P.y sub R\i.x P.x sub atan 1 \pst@angleunit div} def % IT CANNOT BE USED!                 %/BETA {ALPHA 90 1 \pst@angleunit div sub} def                 /BETA {\i\space 90 1 \pst@angleunit div sub} def             }%             \ifcase#1                 \psset{linecolor=red}                 \uput[\i]{!BETA}(R\i){$R_{\i}$}             \or                 \psset{linecolor=green}                 \uput[!ALPHA]{!BETA}(R\i){$R_{\i}$}             \or                 \psset{linecolor=blue}                 \uput[(R\i)]{!BETA}(>R\i){$R_{\i}$}             \fi             \psline(!XX YY)(R\i)         }     \end{pspicture}}     \makeatother          \begin{document}     \foreach \x in {0,...,2}{\object{\x}}     \end{document}      **case 0** ![enter image description here](http://i.stack.imgur.com/8H9He.png) **case 1** ![enter image description here](http://i.stack.imgur.com/tMBSO.png) **case 2** ![enter image description here](http://i.stack.imgur.com/BXZOG.png)


title: \underbrace symbol is wrong

text: Hey guys, I tried to google the solution, but I didn't find any solution to this. I am using beamer,xelatex to prepare a slide. When I use \underbrace, the brace doesn't show, instead, a crappy symbol is out there. As I am a new user, the image is here: ![http://i.stack.imgur.com/8Vl2a.png](http://i.stack.imgur.com/NJeBv.png) the package I used here is               \usepackage{lastpage}     \usepackage{graphicx,graphics}     \usepackage{hyperref}     \usepackage{amssymb}     \usepackage{url}     \usepackage{fancyhdr}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}     \usepackage{fontspec,xltxtra,xunicode}     \usepackage{unicode-math}     \usepackage{algorithm}     \usepackage{algorithmic}     \usepackage{mathtools}     %\defaultfontfeatures{Mapping=tex-text}     \setromanfont[Mapping=tex-text]{Hoefler Text}     \setsansfont[Scale=MatchLowercase,Mapping=tex-text]{Gill Sans}     \setmonofont[Scale=MatchLowercase]{Andale Mono}     \setmathfont{Cambria Math}      Thank you in advance. I think the problem might be the font. @Matthew, The minimal file is here: The buggy page The version of XeLaTeX is,               XeTeX 3.1415926-2.2-0.9997.4 (TeX Live 2010)     kpathsea version 6.0.0     Copyright 2010 SIL International and Jonathan Kew.     There is NO warranty.  Redistribution of this software is     covered by the terms of both the XeTeX copyright and     the Lesser GNU General Public License.     For more information about these matters, see the file     named COPYING and the XeTeX source.     Primary author of XeTeX: Jonathan Kew.     Compiled with ICU version 4.4 [with modifications for XeTeX]     Compiled with zlib version 1.2.3; using 1.2.3     Compiled with FreeType2 version 2.3.11; using 2.3.11     Using Mac OS X Carbon, Cocoa & QuickTime frameworks


title: How to install the algorithms package?

text: According to my ubuntu 11.04 my texlive is the latest version. But when I tried to `\usepackage{algorithm}` it says file algorithm.sty is not found. I read the algorithm.pdf manual and tried latex algorithms.ins in terminal and again it says file not found. So what is the problem here? I installed texlive using `sudo apt-get install texlive` but it seems to be missing some packages that were suppose to be included. How do I fix this?


title: Aligning plain `align` and `cases`?

text: The `cases` environment works very well for enumerating cases within a large left bracket. I'd like to be able to combine it with the `align` environment so that equals-signs and conditions also line up:               \item \begin{align*}     T_{in\ general}\left(n\right)&=aT\left(\frac{n}{b}\right) + n^{c},\ &a\geq1, b\geq1, c>0      \end{align*}          \[T_{cases}\left(n\right)=         \begin{cases}        \Theta\left(n^{\log_{b}a}\right) &a>b^{c}\\        \Theta\left(n^{c}\log_{b}n\right) &a=b^{c}\\        \Theta\left(n^{c}\right) &a<b^{c}        \end{cases}\]      Separate `align` and `case` environments do not share alignments: ![enter image description here](http://i.stack.imgur.com/jdm47.png) Is there a reasonably simple way to get (say) the leftmost equals-signs in the two equations here to line up, and separately from them the conditions ("a…")?


title: How to delete space of empty "section number"

text: I have renewed the section number so that it doesn't display anything               \renewcommand{\thesection}{}      now the problem is that LaTeX is still reserving space for the section number although isn't displaying it, i.e., the section name is indented to the right and it doesn't cover up the space where the section number was supposed to be?


title: tikz and math spacing problem: \:

text: I'm having a problem with math mode medium spacing (\:) in conjunction with tikz:               \documentclass[12pt]{article}     \usepackage{tikz}     \begin{document}       \begin{equation}         \alpha \: \beta       \end{equation}     \end{document}      This results in...               File ended while scanning use of \tikz@style@parseB. <inserted text>  \par  <*> \nonstopmode \input{junk.tex}      (in my "real" text, I'm getting:               Use of \pgfutil@xifnch doesn't match its definition. \:^ k\!\alpha_i)\vb_i      )


title: Kan extension in beamer.

text: I'm trying to include the diagram of a Kan extension in a beamer presentation (see the nLab page for an example). I've achieved to draw it through `\xymatrix` without the natural transformations symbol (the `\Rightarrow`), but I would like to put the symbol into the diagram. Does anybody know how to draw it? Thanks.


title: how to justify left all numbered equations

text: I use displayed numberd formula in lyx the equations are appears in middel I want to justify left the equations I used elsarticl 2 column page format


title: Text (preferably centered with the first line in bold) to the side of included graphics in LaTeX

text: I have a document with a main heading followed by a picture with some contact information to the right of it. After that the other subheadings continue. ![](http://i.stack.imgur.com/80qXm.jpg) I want to do the same in LaTeX. Which I am actually quite familiar with. Which method would you recommend to get the same layout using LaTeX? I really want to use this layout.


title: How can I toggle the document between print and view mode?

text: Is there a possibility to set a key into my header which defines the desired output of my document? I can imagine three modes:   1. Print (black and white)   2. Print (colored)   3. PDF for display view With `ifthen` it should be easy to define different commands for those modes or to insert blank pages and so on. Here are some examples for the use:   * Blank pages for print   * Color on/off   * Color definition in RGB (PDF) or CMYK (print)   * ignoring hyperrefs   * printing todos   * and so on... This switch could be something like the `draft` mode in `scrreprt`. Or maybe a single mark like `\setcustomswitch{mode=printColored %,printBW,PDF}` (command invented by me).


title: change \FOR to \FOREACH in program package

text: In the `program` package, is it possible to introduce new keyword `\FOREACH` which behaves exactly like `\FOR` but writes _foreach_ instead of _for_ on the code.


title: Floatplacement with short paragraph

text: I do not know why the picture ends up on a page of its own, IMHO it should fit perfectly fine on the page with the paragraph, however I get a two page document.               \documentclass{report}     \usepackage[demo]{graphicx}     \usepackage{adjustbox}     \usepackage[section]{placeins}       %place floats in subsections     \makeatletter     \AtBeginDocument{%       \expandafter\renewcommand\expandafter\subsection\expandafter         {\expandafter\@fb@secFB\subsection}%     }     \makeatother         \begin{document}     \subsection{Tile}     \begin{figure}         \adjustbox{max width={\linewidth}}{\includegraphics[width=\linewidth,height=.5\linewidth]{file}}         \caption{Tile}\label{fig:tile}     \end{figure}     A black tile on the wall is shown in \ref{fig:tile}. While this text is short we need a new page for the picture. The author does not know why, but maybe somebody on \emph{tex.stackexchange.com} does?     \end{document}


title: Overline containing text or other symbols

text: Is it possible to create an overline with a gap containing a symbol in the middle in math mode? What I would like to achieve is something like this: ![Example](http://i.stack.imgur.com/em5GS.png)


title: How to prolong compilation time while engaging in leisure activities?

text: I thought of that old joke today, where a programmer can make an undeniable excuse for his leisure activities while in work on the basis that he is just waiting for his code to compile. ![](http://imgs.xkcd.com/comics/compiling.png) Although I am a workaholic and a fair player, such an excuse comes in handy now and then, so what is the best way to achieve a long compilation time with as little additional code as possible? Additional imaginary points shall be awarded for any cunning additional value such as making it hard for a LaTeX advanced user or even an expert to identify the cause straight away (the longer it takes, the better) or exceptionally creative ways of doing so. **All solutions must eventually compile** , so indefinite loops and such are prohibited. The **ideal solution _should not_** produce **written output** to the built document, **mask itself** from the console output log, **load as few packages as possible** , and be **difficult to detect**. Use this as a basic template and use e.g. UNIX `time` to find how long the compilation took ~~(should any solutions come, I shall time them under the same conditions and post the results)~~ (this is unnecessary since there are virtually infinite solutions).               \documentclass{article}     \usepackage{lipsum}     \begin{document}     \title{Title}     \author{Author}     \date{Today}     \maketitle     \lipsum     \end{document}      Hopefully it is worth some time and a laugh and not just one of my idiomatic (and perhaps idiotic) creations.


title: Latex with chemfig to Word document

text: I have the following situation: I am writing my thesis in Latex and my adviser, who has never heard about Latex, decided to edit my thesis in MS Word (initially, he made corrections on the printed copy of the thesis). So, I am wondering if it is possible to convert .tex file to Word document preferably keeping chemical structures written in chemfig. I am not concerned about table of content, citations, and bibliography. I understand that it is not trivial task but maybe there is a "magic way" to do that. Any solutions in Linux, Windows, Mac are greatly appreciated!


title: Paste images into LyX

text: A fair amount of my homework is of the form: prove some statement then paste in a bunch of graphs verifying it experimentally. LyX makes me save images I paste in, which is really annoying when I just want to copy them over. (e.g. in Word you would just paste it in, you don't have to save the image separately.) Is there a preference somewhere that I can say that I don't want it to ask me where to save all my images? (i.e. can I specify some default image directory?) EDIT: To be more clear, what I want is some way to tell Lyx: when I paste an image, just save it in this directory without popping up a dialog and asking me where to put it.


title: How to customize the chapter in front of figure page in listoffigures?

text: I am using the the packages               \usepackage{url}     \usepackage{graphicx}     \usepackage{rotating}     \usepackage[hypcap]{caption}     \usepackage{hyperref}      to include referencable graphics in my work. The structure of the document is               \documentclass[a4paper,11pt]{scrreprt}     \begin{document}     \title [...]     \maketitle\thispagestyle{empty}     \lstset{basicstyle=\ttfamily}     \newpage     \setcounter{page}{0}     \tableofcontents\thispagestyle{empty}     \listoffigures     \thispagestyle{empty}     \newpage     \setcounter{page}{1}      \input{Chapter01}     \input{Chapter02}     \input{Chapter03}     \input{Chapter04}     \input{Chapter05}     \input{Chapter06}     \input{Figures}     \printbibliography     \end{document}      . So first there's a title, the toc, then the list of figures, after that six chapters, then the figures themselves and at last the bibliography. The content of the Figures file follows this scheme:               \begin{figure}[htpb]     \centering     \includegraphics{Figure01.jpg}     \caption[Shortcaption01]{Longcaption01}     \label{fig:Figure01}     \end{figure}     \clearpage     %next figure     \begin{figure}[htpb]     \centering     \includegraphics{Figure02.jpg}     \caption[Shortcaption02]{Longcaption02}     \label{fig:Figure02}     \end{figure}     \clearpage      Referencing the figures is done with the `\autoref` command, e.g. in Chapter01:               Referencing Text~\autoref{fig:Figure01}      Oddly Enough, the output this leaves me with is the following:               Referencing Text  Figure 6.1      Also, in the list of figures, the entry appears as               6.1 Shortcaption01                    60      If I understand this correctly, then the figures are all believed to belong to chapter six. Firstly this needs to be broken up. I tried inserting               \chapter*{Figures}      as the first line in the figures file but that did not help. How can I detach the figures from chapter 6? I want the numbering of the figures to appear according to their references. For example referencing figure fig:Figure02 in chapter 2 should result in:               2.2 Shortcaption02                    61


title: Booleans fail in tabular environment

text: I've got a workaround for this problem, but maybe someone knows a cleaner way to fix it. I'm using the standard packages in TexLive 2009. Here's the code that doesn't work:               \documentclass{article}     \usepackage{ifthen}     \newboolean{test}     \setboolean{test}{false}     \newcommand{\testval}{\ifthenelse{\boolean{test}}{yes}{no}}     \begin{document}       \begin{tabular}{ll}         Should be no & \testval \\         Change value & \setboolean{test}{true} \\         Shoule be yes & \testval \\       \end{tabular}     \end{document}      I haven't seen any mention of this behavior in the ifthen package description. I've also noticed that, for instance, you can't use `\newcommand` and `\isundefined` to work around this. My workaround so far is to use a counter, and then test `\value{counter}=0`. The only difficulty was that there's no `\providecounter` the way there is with booleans or commands, so I wrote providecounter.sty:               \NeedsTeXFormat{LaTeX2e}[1994/12/01]     \ProvidesPackage{providecounter}               [2010/11/16 my hack to implement a providecounter command]          \def\providecounter#1{\@ifundefined{c@#1}{\newcounter{#1}}\relax}      So, two questions: a. why do `\setboolean` and `\newcommand` not work inside a tabular environment, and b. do counters more or less not care where they are defined?


title: Custom .bst style and reformatting \cite entries

text: I have created a custom `.bst` file with makebst. I managed to reformat the thebibliography-environment entries look by editing the .bst file by hand. This wasn't a hard task. But, now I would like to reformat the look of the `\cite[]{}`-entries in the actual text. I am using `csquotes` package and managed to change the look of `\textquote` entries with:               \renewcommand{\mkcitation}[1]{~\rm \small #1}          \textquote[{\cite[1]{Foobar01}}]{Blah Blah.}      But when I use ordinary cites:               Blah blah.\cite[1]{Foobar01}      I can't find a part in the `.bst` file that defines how these are formatted. Also I could not find a parameter in the csquotes package that would change the format of all cites, as `\cite` is not a csquote command. I could go around this problem by using `\textquote` everywhere, but I feel that it's semantically incorrect. After all, citations are NOT quotes. So I would be very grateful if someone could tell me how I can reformat the look of `\cite` entries even in documents that don't use `csquotes` or other packages, just a custom `.bst` style. Edit: I am not using `cite` nor `natbib` packages. My `\cite` entries are formatted as [Foo01] or [Foo01, 15-39] with page numbers in the PDF. All I want to do is to change their formatting, not contents. I would like all `\cite` to appear in the final PDF with a certain font size (for example with size `\tiny` and with color red). With `csquotes` I was able to do `\renewcommand{\mkcitation}[1]{~\rm \small #1}` which changed all `csquotes` cites into small roman font. What would be the way to format all normal `\cite` in a similar way? If this is not enough I'm not sure if I understand what kind of additional information you need.


title: No scientific in ybar of pgfplots

text: I'm wondering how to disable scietific notation in lables of ybar. here is the tex code:               \begin{axis}      [width=6cm, height=6cm,               yticklabel style={/pgf/number format/fixed},         ybar=5pt,             ylabel=Cost,         x=2cm,         ymin=0,         xtick=data,             nodes near coords,             every node near coord/.append style={ anchor=mid west, rotate=90},         symbolic x coords={A,B,C,D,E},         axis lines*=left,         ]     \addplot coordinates { (A,12398) (B,31814) (C,30833) (D,72290) (E,9078)}; %Greedy     \end{axis}     \end{tikzpicture}     \end{figure}      ![And the chart...](http://i.stack.imgur.com/9bz6r.jpg)


title: Document class: APA6 - problem using the abstract

text: First of all, I am a bloody beginner in LaTeX, searching for some help. I am using the document class `APA6.cls` and I want to separate the content of title page from the abstract page. Using `\newpage` command is somehow ignored by MiKTeX. Is it even possible to separate both elements? Greetings, Jens


title: Log and messages panel "gone"?

text: I don't know if I accidentally did something, but now I can't see the log-and- messages-panel where I normally see if there were any overfull boxes or errors etc after compiling... How can I make this box visible again? Thanks. Ps. Menu-stuff are now for me File/Edit/Search/View/Insert/Math/Format/Project/build/Tools/Window/Help... I don't think I had all of these earlier today. What happened? :(


title: Increase spacing between cvcomputer & cvdoubleitem

text: I want to write my CV with LaTeX and the `moderncv` package. My problem is that I use pretty long words in `\cvcomputer` and `\cvdoubleitem` and they overlay. For example,               \cvcomputer{thisisareallylongwordwhichwilloverlay}{Thatsright}{}{}      So I want to increase the spacing between the elements to give the words enough space to be fully displayed. EDIT: Got the answer now, try this:               \usepackage{geometry}     \geometry{a4paper,left=20mm,right=20mm, top=1cm, bottom=2cm}      All credits go to Lumpi.


title: Unusual line breaks in equation

text: I've got the following code, but I dont know why it creates line breaks in the equation               \begin{enumerate}       \item My Equation        \begin{equation}           P$\wedge$S \equiv \emph{False} $\implies$ L : lineBreaks       \end{equation}     \end{enumerate}       Output: ![Unwanted line breaks](http://i.stack.imgur.com/1Sg1b.png)


title: error lines, input files

text: My problem is debugging a large LaTeX project (a book) with several input files. The line of each error is referred to the current input file, but the name of the file is lost in the previous compilation messages, and it is painstacking to find it. Is there any way to tell LaTeX to prefix error lines with the name of the file? While writing, I found a similar question, unfortunately unanswered.


title: Changing one sided to two sided from TOC

text: I am writing thesis using doucument class {book}. My library require the thesis as two sided from table of contents. Here is my code:               \documentclass[12pt,oneside,openright]{book}          \begin{document}          \input{abstractphd.tex}     \input{acknowledgmentphd.tex}          \newpage     \phantomsection \label{tableofcontents}     \addcontentsline{toc}{chapter}{Table of Contents}     %\newgeometry{twoside}           \newpage      \phantomsection \label{listoffig}      \addcontentsline{toc}{chapter}{List of Figures}      \listoffigures           \newpage     \phantomsection \label{listoftables}     \addcontentsline{toc}{chapter}{List of Tables}      \listoftables           \input{nomenclaturephd.tex}      \input{chap1phd_Introduction.tex} %Introduction          \end{document}      To create two sided from toc onwards, I used two methods: **Method 1:**               \usepackage{ifthen}     \setboolean{@twoside}{true}     \setboolean{@twoside}{false}       %These lines has no effect on the pdf output. **Method 2:**               \newgeometry{twoside}     \restoregeometry      This method is giving the required output. However, at the change in number type from roaman to Arabic, two consecutive pages are of same sided. I appreciate your time in responding to the query. Thanks !


title: pgfplotstable or datatool?

text: What are differences, which to use for including `.csv`, `.tsv` files ? Datatool ? pgfplotstable ? I've seen at question : How typeset a numeric table from a CSV file how person asked about fixing `datatool` issue, and answer was to use `pgfplotstable` Are there other options for including tabular data into documents ? What are advantages and disadvantages of possible choices ?


title: Getting "! Missing $ inserted" error

text: I try to write a math formula but i get many errors and a bad display. Here's the code :               \documentclass[a4paper]{article}     \usepackage{amsmath}          \begin{document}     Suite de Syracuse :     $\forall U_0\ge 1, u_{n+1} =$\left\{     \begin{array}{lcr}         $\dfrac{u_n}{2}$ si $u_n$ est pair\\         $3u_n + 1$ si $u_n$ est impair     \end{array}          Suite compressée :     $\forall U_0\ge 1, u_{n+1} =$\left\{     \begin{array}{lcr}         $\dfrac{u_n}{2}$ si $u_n$ est pair\\         $\dfrac{3u_n + 1}{2}$ si $u_n$ est impair     \end{array}          Suite à termes négatifs :     $\forall U_0\le -1, u_{n+1} =$\left\{     \begin{array}{lcr}         $\dfrac{u_n}{2}$ si $u_n$ est pair\\         $3u_n - 1$ si $u_n$ est impair     \end{array}     \end{document}      So i get 29 errors and this display : ![Display](http://i.stack.imgur.com/8cLdD.png) . Thanks for helping and sorry for my bad english :)


title: How to add authors to a chapter title

text: I am writing my thesis using `book` as the document class. Just below every chapter title, I would like to add in small letters - a reference to the published paper of the chapter. Something like               **Using Lineage for Sub-image Data Processing** %% chapter title      *Published as Author 1, Author 2, in XXX Journal , 2011*       Kindly guide me on how to create such an environment.


title: How are the glyph (character) names in PDF-files determined?

text: PDF-files make internal use of glyph _names_. For example, the name of `≈` (`U+2248`; TeX `\approx`) appearing in a PDF-file might be `approxequal`. One can find such names in a TeX-generated PDF-file by   1. compiling the TeX code with `\pdfcompresslevel=0`,   2. inspecting the resulting PDF-file as a text file, and   3. looking for lines starting with `/CharSet`. (information taken from Ulrike Fischer's answer elsewhere, which provides more information). Apparently the glyph names are font-dependent. So they are determined by the fonts? Do all font formats use such names? Which font formats use textual names? Do all glyphs in all PDF-files have such names? **How are the glyph names in PDF-files determined?** Who determined the existing ones? **What are they for?** (Why doesn't PDF refer to the glyphs by number? Clearly some readers are relying on the glyph names (see link to question about hyperlink detection below), so the PDF format or some readers make _some_ assumptions about these names. There must be a reason about why an intermediary of names is used. Perhaps this has to do with the age of Unicode in relation to PDF.) What else is there to know on this topic for a user of (La)TeX? For me, the issue of PDF glyph names came up here:   * Manipulating the Unicode codepoints of glyphs in the resulting PDF-file requires knowledge of the glyph names. Notably, `glyphtounicode.tex` maps _from glyph names_ to Unicode codepoints, with lines such as `\pdfglyphtounicode{approximatelyequal}{2245}`: How to fix missing or incorrect mappings from glyphtounicode.tex   * At least one PDF reader uses glyph names for a heuristic for HTTP URL detection: \input{glyphtounicode} with \pdfgentounicode=1 creates unwanted hyperlinks from link-like text A similar question is How to find the proper glyph name required by \pdfglyphtounicode, but there is more ground that needs to be covered in this topic.


title: Citations with biblatex

text: I'm having a problem with the layout of my reference list. I recently changed from `natbib` to `biblatex`, and I can't figure out how to configure the layout to match the previous style. What I need is the reference in the bibliography to contain the citation in the text, e.g. if I have (Berg et. al., 2012) in the document, I need it appearing first in the reference list, and then the full names of the authors afterwards. Also, I need to make it bold. I want it to look like this: ![This is how it should look](http://i.stack.imgur.com/RRqvy.jpg) but it looks like this ![A short test, trying to figure out biblatex](http://i.stack.imgur.com/0E41r.jpg). I have included the code for my short document               \documentclass{article}     \usepackage[     hyperref=true,     firstinits=true,     maxcitenames=3,     maxbibnames=99,     style=authoryear,     dashed=true,     natbib=true,     useprefix=true,     urldate=long,     backend=bibtex     ]{biblatex}     %          \addbibresource{litterature}          \begin{document}     Test \parencite{uniprotgfp}.     Test test \parencite{karim}     Test test test \textcite{note}     test\parencite{spi}      \printbibliography[heading=subbibliography,title={Bibliography},nottype=manual]     \printbibliography[heading=subbibliography,title={Web sites},type=manual]     \end{document}


title: Histogram with Tikz

text: I am a newbie in TeX. And I need to use Tikz to make a copy of this histogram ![enter image description here](http://i.stack.imgur.com/yAijy.jpg) Of course, I am able to make something similar. Unfortunately, I need a replica (90%) of it. Can anybody help me? What I have:               \begin{tikzpicture}     \begin{axis}[         symbolic x coords={excellent, good, average, bad, awful},             ylabel = {probability},             xlabel = {Quality},         xtick=data]         \addplot[ybar,fill=white] coordinates {             (excellent,5)             (good,10)             (average,50)         (bad, 20)         (awful,15)         };     \end{axis}     \end{tikzpicture}      ![enter image description here](http://i.stack.imgur.com/J6OWH.jpg)


title: Is it ok to omit a 'required' field in a bibliography entry?

text: Say I have a bibliography entry that looks like this:               @INPROCEEDINGS{FHA98,       author = {Eric Foxlin and Michael Harrington and Yury Altshuler},         title = {Miniature 6-DOF intertial system for tracking HMDs},       booktitle = {Helmet and Head-Mounted Displays III},       year = {1998},       volume = {3362},       organization = {SPIE - The International Society for Optical Engineering},       }      Biblatex requires the fields `author`, `title`, `booktitle`, `year/date` and `editor` for the `@inproceedings` type, and I am currently omitting the editor field. I'm now asking myself, if leaving out certain fields is considered "bad" or, even worse, an attempt of plagiarism? I'm not talking about things like author, title or date (if they are available) that are needed for correct citations and finding the corresponding sources , but in some cases I feel I would overly bloat my bibliography with over-comprehensive entries.


title: Creating your own diacritics

text: How does one create one's own diacritics? To give a concrete example, I want to be able to typeset something that looks like # ä but has three dots above the letter. I'm looking for an answer that looks comparably nice to existing diacritics, if possible.


title: How to highlight Python syntax in LaTeX Listings \lstinputlistings command

text: I am using package listings to import my Python source code into my LaTeX document. I use the command `\lstinputlistings`. I have a Python source like               class MyClass(Yourclass):         def __init__(self, my, yours):             bla bla bla...      What should I write in my `\lstset` command in order to highlight words `MyClass`, `__init__` etc.? I wouldn't want to write any word I want to be highlighted. I tried using `moredelims=[s][\color{teal}]{class}{(}` inside lstset but it doesn't work.


title: Cross-platform cooperation problems?

text: I'm compiling a songbook, and I want to be able to take input for the songs from friends writing on different platforms (mainly Windows and Mac). I'm writing a Java program that puts the *.tex files for the songs together in the correct format. As far as I understand, I need to take care of character encoding and line endings. It's possible to force encoding in the Java application. As much as I want to help the fight on non-utf8 encoding, since I'm working on a Win8 converting all of the files to latin1 seems easiest for later troubleshooting. For the line endings, I understand that the Windows standard is what is in Java accomplished by "\n\r". If I fix these things, will the project work? Have I forgotten something important? What other problems could occur?


title: Reflow text blocks in a page

text: Friends, I have a simple layout to typeset a songsheet for my parish which consists of two columns provided by the `multicol` package and a custom environment that simply wraps each song. The following document might give you guys the idea of the layout (I added the colours just to visually indicate each block; these colours might help us understand my question later on):               \documentclass[a5]{article}          \usepackage{xcolor}     \usepackage{xparse}          \ExplSyntaxOn     \NewDocumentCommand{ \repeatword } { m m }     {        \prg_replicate:nn { #1 } { #2 ~ }     }          \bool_gset_true:N \g_tmpa_bool          \NewDocumentCommand{ \getcolour } { }     {       \bool_if:nTF \g_tmpa_bool       {         \color{blue}         \bool_gset_false:N \g_tmpa_bool       }       {          \color{red}          \bool_gset_true:N \g_tmpa_bool       }     }          \NewDocumentEnvironment{ textblock } { }     {        \setlength{\parindent}{0pt}        \getcolour     }     { }     \ExplSyntaxOff               \usepackage{multicol}          \begin{document}          \begin{multicols*}{2}          \begin{textblock}     \repeatword{100}{duck}     \end{textblock}          \begin{textblock}     \repeatword{200}{goose}     \end{textblock}          \begin{textblock}     \repeatword{130}{parrot}     \end{textblock}          \begin{textblock}     \repeatword{100}{falcon}     \end{textblock}          \begin{textblock}     \repeatword{150}{owl}     \end{textblock}          \begin{textblock}     \repeatword{150}{swan}     \end{textblock}          \begin{textblock}     \repeatword{100}{chicken}     \end{textblock}          \begin{textblock}     \repeatword{50}{mallard}     \end{textblock}          \end{multicols*}          \end{document}      And I have the following output: ![Quack 1](http://i.stack.imgur.com/XXOYz.png) I'm using this layout for about one year now, and I noticed it works great on most of the cases, but sometimes we have some songs that start in one page and end in the next one. In my example, the `owl` block reflects what I meant: see the blue text ending in page 1 and continuing in page 2. My first plan: well, let me make each song, well, unbreakable. `:)` Let's say I decide to enclose each text block in a `\parbox`. Now things work quite differently: ![Quack 2](http://i.stack.imgur.com/BrXuv.png) Now my songs don't break anymore. `:)` But I have some gaps in the text, since TeX preserves the order. Now let's take a closer look at page 1 from my first attempt: ![Quack 3](http://i.stack.imgur.com/l9ilq.png) Note that the `parrot` text block is smaller than the `goose` one; if I could change places between them, that is, if `parrot` could come first than `goose`, I would be able to fit three songs in the first page instead of just two: ![Quack 4](http://i.stack.imgur.com/8XTZG.png) I was wondering if there is a way to emulate some sort of float placement behaviour. Note that I'm well aware the problem is way harder than it looks. `:)` This is partitioning of regions and one interesting area of research in artificial intelligence. `:)` Also note that I can live with a _very naive_ solution, if any. I also accept a **No, that isn't possible** answer. `:)` It's quite ironic that I have a paper with an approach on tackling this subject. `:)` The problem is: the method I discuss employs several variables that aren't available in the TeX context. `:(`


title: Wrapfigure & Footnote, hyperlinks

text: I want to include a figure in my text. The text should be wrapped around this figure, thus using environment **wrapfigure**. In the figure's caption I need a footnote, that includes the reference to the source (as an URL). I roamed the sites for a ridiculous amount of time, searching for a solution. _I do not want to use the solution including`\footnotemark` in the float environment, `\footnotetext` outside of it and manually increasing the counter because it yields no proper linking with hyperref..._ Here's a MWE:               \documentclass[11pt,a4paper,bibtotoc,idxtotoc,headsepline,footsepline,%      footexclude,BCOR12mm,DIV13]{scrbook}     \usepackage[pdftex,colorlinks=true,linkcolor=red,citecolor=red,%      anchorcolor=red,urlcolor=red,bookmarks=true,%      bookmarksopen=true,bookmarksopenlevel=0,plainpages=false%      bookmarksnumbered=true,hyperindex=false,pdfstartview=,%      ,hyperindex=false,       ]{hyperref}          \usepackage{graphicx}          \usepackage{wrapfig}     \usepackage{footnote}     \usepackage{caption}          %  \makesavenoteenv{wrapfigure}     %  \makesavenoteenv{figure}          \begin{document}          Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet          \begin{wrapfigure}{l}{0.25\textwidth}     \includegraphics[width=0.20\textwidth]{johnny}     %  \captionof{figure}[johnny lof]{\copyright johnny inc. \footnote{\url{google.com}} }      \end{wrapfigure}          ipsum dolor sit amet.Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no           \end{document}


title: Why the horizontal line behaves differently in supertabular and tabular?

text: I have a problem using the supertabular package. Basically the horizontal lines, instead of stopping at the end of the table, continue until the end of the page. This is a self-explaining screenshot. The first is a **supertabular** , the second is a **tabular** : ![screenshot](http://i.stack.imgur.com/lorw7.png) And here's the code. I tried to cut it in order to make it as short as possible but still keeping it functioning. What am I doing wrong? I'm not very expert at LaTeX so I might be missing something.               \documentclass[a4paper,12pt]{book}          \usepackage{supertabular}            \usepackage{array}     \usepackage[]{geometry}     %\newcolumntype{v}[1]{>{\raggedright \arraybackslash\hspace{0pt}}p{#1}}          \begin{document}          \tablehead {%     \hline     0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 10 & 11 \tabularnewline     }     \tabletail{%     }     \label{tab:lead_overview}          \begin{supertabular*}{\textwidth}{ | c | c | c | c | c | c | c | c | c | c | c | c | }         \hline         0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 10 & 11 \tabularnewline         \hline     \end{supertabular*}               \begin{tabular}{ | c | c | c | c | c | c | c | c | c | c | c | c | }          \hline         0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 10 & 11  \\ \hline         0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 10 & 11  \\ \hline     \end{tabular}               \end{document}


title: epsdice does not respect beamer overlay with \setbeamercovered{dynamic}

text: I am trying to use the package `epsdice` in a `beamer` presentation. This package provides the command `\epsdice` which takes a numerical argument between 1 and 6 and draws the corresponding face of a die. (It's quite useful for teaching Probability.) I have noticed the following problem. If I use `\setbeamercovered{dynamic}`, then any instance of `\epsdice` inside an overlay appears in all the frames, ignoring the overlay specification. I'm guessing that this is because all `epsdice` does is to include a portion of a PDF file containing the corresponding face of the die and there is no way to control its opacity. Still, if anyone has any ideas on how I could get this to work, I'd be grateful.


title: Reusing TikZ Path Definition

text: I'd like to know if somebody know a way to define a path in TikZ and reuse the path's definition several times. For example, consider the following: ![code example with duplicate paths](http://csweb.ucc.ie/~dongen/TeX-SX/11-- 12/path.png) If I wanted to change the path `(0,2) -- (0,2) -- (5,3) -- (5,2)` I'd have to make two changes to the code. How can I avoid this?


title: Equations with justifications in angle brackets in Latex

text: How would I do something like this :                   f(x)     =      < Justification >         x + y + a     =      < according to ... >         abc      Which math environment should I use get this kind of equations? And how can I display 2 such blocks side by side?


title: Tikz mindmaps sharing children

text: Is it possible to have two mindmaps that share children? This is what I would like to have: Concept 1 is blue, and has some children. Concept 2 is red, and has some children. Concept 1 and two share one child, which is purple. And this is what I have so far: Concept 1 is blue, and has some children. Concept 2 is blue, and has some children.               \begin{tikzpicture}[small mindmap,concept color=blue!80]       \node [concept] {Root concept 1}         child[clockwise from=270] {node[concept] {child}}         child[clockwise from=270] {node[concept] {child}};       \node [concept] at (5,0) {Root concept 2}         child[clockwise from=225] {node[concept] {child}}         child[grow=0 ] {node[concept] {child}};     \end{tikzpicture}


title: Exam - \only without beamer

text: I am looking for a way to generate different copies of the same exam. I usually prepare several exercises, with two versions for each exercise; then I divide my students in four groups (A,B,C,D) and hand out to each student a different copy of the exam, depending on his group. For instance, a student will receive one of the following, non-random exam sheets: Group A: exercises 1-a, 2-a, 3-a Group B: exercises 1-a, 2-b, 3-b Group C: exercises 1-b, 2-a, 3-b Group D: exercises 1-b, 2-b, 3-a I could accomplish my goal (and number each exercise) with `beamer`:               \documentclass{beamer}     \begin{document}      \begin{frame}       Exam       \begin{enumerate}        \only<1,2>{ 2+3 } %1-a, groups A and B        \only<3,4>{ 2+4 } %1-b, groups C and D        \only<1,3>{ 3-2 } %2-a, groups A and C        \only<2,4>{ 4-3 } %2-b, groups B and D        \only<1,4>{ 4:2 } %3-a, groups A and D        \only<2,3>{ 6:3 } %3-b, groups B and C       \end{enumerate}      \end{frame}     \end{document}      I would like to get the same result in the `article` class.


title: Table of equations like list of figures

text: I am fairly new at this and trying to put a table containing a brief description of the equations I use, into my thesis. This has proven to be quite an irritating problem. I have found a nice concise solution on the web (http://www.latex-community.org/forum/viewtopic.php?f=5&t=428) which has been very helpful (thanks to gmedina). The solution uses the tocloft package to define a new list. The problem I now have, is that as the equation numbers get longer the text description and equation numbers overlap, can anyone help me with this? Also if anyone can explain the command clearly it be very helpful. Below is a MWE I am using texmaker and Miktex.                %%Preamble      \documentclass[12pt]{report}      \usepackage[utf8]{inputenc}      \usepackage[T1]{fontenc}      \usepackage{tocloft}      \usepackage[a4paper,width=150mm,top=25mm,bottom=25mm,bindingoffset=6mm]{geometry}      \usepackage[pdftex]{graphicx}      \usepackage[english]{babel}           %%gmedina solution      \newcommand{\listequationsname}{List of Equations}      \newlistof{myequations}{equ}{\listequationsname}      \newcommand{\myequations}[1]{%      \addcontentsline{equ}{myequations}{\protect\numberline{\theequation}#1}\par}          \begin{document}          \listofmyequations          \chapter{sums}          \begin{equation}         1 + 1 = 2     \end{equation}     \label{eq:2.1}     \myequations{sum}          \begin{equation}         1 + 1 = 2     \end{equation}     \label{eq:2.2}     \myequations{sum}          \begin{equation}         1 + 1 = 2     \end{equation}     \label{eq:2.3}     \myequations{sum}          \begin{equation}         1 + 1 = 2     \end{equation}     \label{eq:2.4}     \myequations{sum}          \begin{equation}         1 + 1 = 2     \end{equation}     \label{eq:2.5}     \myequations{sum}          \begin{equation}         1 + 1 = 2     \end{equation}     \label{eq:2.6}     \myequations{sum}          \begin{equation}         1 + 1 = 2     \end{equation}     \label{eq:2.7}     \myequations{sum}          \begin{equation}         1 + 1 = 2     \end{equation}     \label{eq:2.8}     \myequations{sum}          \begin{equation}         1 + 1 = 2     \end{equation}     \label{eq:2.9}     \myequations{sum}          \begin{equation}         1 + 1 = 2     \end{equation}     \label{eq:2.10}     \myequations{sum}          \end{document}


title: Setting image in same line as text

text: I have the line               \noindent\parbox{\textwidth}{{\LARGE\textbf{\name}}}\hfill\begin{figure}[ht!]\includegraphics[width=2cm,height=2cm]{MyPic.jpg}\end{figure}      I want the "name" variable to be on the left, and the image to be on the right of the page. But it turns out the image goes on the left of the next line. How can I make it be in the same line as the "name", but to the right? EDIT: Removing the `begin{figure}`               {\noindent\parbox{\textwidth}{{\LARGE\textbf{\name}}}\hfill\includegraphics[width=2cm,height=2cm]{MyPic.jpg}      yields the same result.


title: Biblatex not reading .bib file contents

text: Apologies if this is answered elsewhere, but I've been searching message boards for hours and tinkering with fixes... it seems to me that I have a problem with my MiKTeX / TexMakerX installation. I have just installed the most recent installation of MiKTeX (64bit version) and `biblatex`, and manually placed the most recent `biber.exe` in the MiKTeX `/bin` folder. My `bibtex` command is set in TexMakerX as               "C:/Program Files/MiKTeX 2.9/miktex/bin/biber.exe" %      And my "quick build" function is set to `pdflatex - bibtex - pdflatex - pdflatex`. I've been testing with the biblatex samples (I'll just call it `sample.tex`, with `biblatex-examples.bib` downloaded in the same folder) from http://www.ctan.org/tex-archive/macros/latex/contrib/biblatex/doc/examples Invoking `pdflatex` THEN `bibtex` generates the following errors               warning - no file sample.aux     warning - no file sample.bbl     --a whole bunch of undefined citation errors--     warning - empty bibliography on input line 51 %whereever \printbibliography is placed     warning - file 'sample.out' has changed     warning - there were undefined references     please (re)run Biber on the file:(biblatex) sample(biblatex) and rerun LaTeX afterwards      Running `biber` as requested through a command window generates:               data source ....(long path out of Temp folder)...\inc\lib/Biber/LaTeX/recode_data.xml not found.     Compilation failed in require at Biber/Utils.pm line 20.     BEGIN failed--compilation aborted at Biber/Uutils.pm line 20.     Compilation failed in require at Biber/Utils.pm line 8.     BEGIN failed--compilation aborted at Biber/Uutils.pm line 8.     Compilation failed in require at (eval 24) line 2.          ...propagated at C:/strawberry/perl/lib/base.pm line 94.     BEGIN failed--compilation abobrted at Biber.pm line 5.     Compilation failed in require at script.biber-MSWIN line 17.     BEGIN failed--compilation aborted at script.biber-MSWIN line 17.      So... there seems to be no communication between the local `.bib` file and the `latex`/`biblatex` system. And I'm clueless on what to do after all this tinkering...


title: How to make "claim" environments look like "theorem" environment?

text: I am using LyX 2.0.5 with document class `article` and 'Theorems (AMS)' in the modules. From what I understand, the `claim` environment copies its style from the `remark` environment. I'd like it to copy the style of the `theorem` environment instead. Namely, have the word `claim`F typeset in bold instead of in italics, as it is now. Is there a way to do this in LyX?


title: Polar histograms

text: I recently stumbled upon this post, that explains how to make polar histogramms with `R`. An improved version of R-package can be found here. Even though it looks unfamiliar, the result of is quite nice in my opinion. I thought that I would be great to directly generate such a graph within LaTeX. Unfortunately `pgfplots` does not contain such a function yet, but maybe somebody here does know how a polar histogram could be achieved. This is an example histogram that is provided on the page. ![enter image description here](http://i.stack.imgur.com/LmZhv.jpg)


title: Including a Matlab table in document

text: Using Matlab I got a table. Now I want to integrate in a LaTeX document. I assume it works like including an image in a document.               A = [1 2 3; 4 5 6; 7 8 9];     latex_table = latex(sym(A))          latex_table =          \left(\begin{array}{ccc} 1 & 2 & 3\\ 4 & 5 & 6\\ 7 & 8 & 9 \end{array}\right)                \begin{table}       \begin{tabular}{...}       ***...latex_table ...***       \end{tabular}     \end{table}


title: Hyperref links entire line (like Word)

text: I have tried to use the code from How to make a hyperlink cover the whole line in table of contents including the dots? but it seems to make my entire document _hyperlinked_ probably due to my custom style. I am using the `tocloft` package. I was wondering if I could have the entire line _hyperlinked_ like               [1 Introduction ...... 1]      Where everything in between `[]` is linked I can only seem to get either the title, the number, or both, but not the entire line. * * * Here is my MWE. I included all the current packages I will be using in case there's a conflict between some of them.               \documentclass{ut-thesis}          \usepackage[backend=biber]{biblatex}     \addbibresource{Thesis.bib}     \usepackage{graphicx}     \graphicspath{{Pictures/}}     \usepackage{float}     \usepackage{caption}     \usepackage{blindtext}     \usepackage[titles]{tocloft}          \renewcommand{\cftchapleader}{\cftdotfill{\cftdotsep}} % for chapters          \usepackage[linktoc=all]{hyperref}     \usepackage{etoolbox}          \degree{Masters}     \department{Deparment}     \gradyear{2013}     \author{John Doe}     \title{Thesis Title}          \setcounter{tocdepth}{2}          \flushbottom          %%%%%%%%%%%%      MAIN  DOCUMENT      %%%%%%%%%%%%          \begin{document}              \begin{preliminary}                  \maketitle                  \begin{abstract}             \addcontentsline{toc}{chapter}{Abstract}                 This is my abstract!             \end{abstract}                  %Add Figure into the list of figures and tables             \renewcommand{\cftfigpresnum}{Figure\ }             \renewcommand{\cfttabpresnum}{Table\ }             \newlength{\mylenf}             \settowidth{\mylenf}{\cftfigpresnum}             \setlength{\cftfignumwidth}{\dimexpr\mylenf+1.5em}             \setlength{\cfttabnumwidth}{\dimexpr\mylenf+1.5em}                  \renewcommand\contentsname{Table of Contents}             \tableofcontents                  \listoffigures             \addcontentsline{toc}{chapter}{List of Figures}                  \listoftables             \addcontentsline{toc}{chapter}{List of Tables}              \end{preliminary}              \chapter{Introduction}         \section{Motivation}              This is a section              \printbibliography         \addcontentsline{toc}{chapter}{Bibliography}          \end{document}      * * * It seems that the problems are coming from               \renewcommand\contentsname{Table of Contents}     \tableofcontents`      And obviously if I delete it I can't see if it's working since I no longer print the table of contents. * * * EDIT I've made no progress and I would still like some help if possible.


title: Problem formatting java code in my latex document (overshooting the page)

text: My code is being formatted in a way that makes it drift off the page when it's too long rather than just jump to a new line. I have tried lots of different things, pasted all kinds of examples from the answers on here for code formatting but none of it seems to stop the lengthy bits from going over. I don't know why it is happening so I am at a loss on how to fix it. Here is an example of the worst offending (it just goes right out the page for no good reason)                \documentclass{article}      \usepackage[margin=2cm]{geometry}      \usepackage[svgnames]{xcolor}     \usepackage{changepage}     \usepackage{framed}     \usepackage{tikz}     \usepackage{listings}     \usepackage{bbding}                   \lstset{backgroundcolor=\color{LightSteelBlue!20},         frame=trbl,         rulecolor=\color{black!30},         xrightmargin=7pt}             \begin{document}        \begin{lstlisting}               public void write(double step, double max, PrintWriter locusOutFile, PrintWriter impOutFile) throws IOException {          \end{lstlisting}     \end{document}      Thanks in advance.


title: biblatex conditional for printing an extradate

text: This is a follow-up question to biblatex format for online sources. I have the following biblatex configuration file. Thanks to Guido for the inputs. I have also taken some code for the `\MakeSentenceCase` from Audrey's answer to Sentence case for titles in biblatex.               \ProvidesFile{biblatex.cfg}          \ExecuteBibliographyOptions{     firstinits=true,     isbn=true,     dashed=false,     eprint=true,     maxbibnames=99,     alldates=long,     doi=true,     uniquename=init     }          \DeclareSourcemap{       \maps[datatype=bibtex]{         \map{           \step[fieldsource=medium, fieldtarget=usera]           \step[fieldsource=urlupdate, fieldtarget=extradate]         }       }     }               \DefineBibliographyStrings{english}{%       references = {Cited References},     }     \DefineBibliographyStrings{english}{%      january = {Jan},     february = {Feb},     march = {Mar},     april = {Apr},     may = {May},     june = {Jun},     july = {Jul},     august = {Aug},     september = {Sep},     october = {Oct},     november = {Nov},     december = {Dec}     }          \NewBibliographyString{available}     \NewBibliographyString{cited}          \DefineBibliographyStrings{english}{%       available = {Available from},     }               % Redefined url+urldate macro          \DeclareFieldFormat{url}{\bibstring{available}\addcolon\space\url{#1}}     \DeclareFieldFormat{urldate}{#1}     \DeclareFieldFormat{urlday}{#1}          \renewbibmacro*{url+urldate}{%         \iffieldundef{urlyear}         {}     %    {\setunit*{\addspace}%     %     }       {\printtext{[}%       \printtext{cited}\addcolon\space%       \printfield{urlyear}         \mkbibmonth{\thefield{urlmonth}}         \stripzeros{\thefield{urlday}}%       \printtext{].}\space%       \printfield{url}%       }     }     % Change how the publisher, location and dates are printed          \renewbibmacro{publisher+location+date}{       \iflistundef{publisher}         {}         {\printtext{}%         \iflistundef{location}             {}             {\printlist{location}}%             \printtext{\addcolon\space}%          \printlist{publisher}%                 \printtext{\addsemicolon\space}         }     }          % Remove parentheses around dates          \renewbibmacro*{date+extrayear}{%         \iffieldundef{year}           {}           {\printtext{%          \addperiod\space\printfield{labelyear}%          \printfield{extrayear}}}}          % Print last name first before first name          \renewbibmacro*{title}{%       \ifboolexpr{         test {\iffieldundef{title}}         and         test {\iffieldundef{subtitle}}       }         {}         {\printtext[title]{%            \printfield[titlecase]{title}%            \setunit{\subtitlepunct}%            \printfield[titlecase]{subtitle}            \setunit{}%            \iffieldundef{usera}               {}         {\printtext{[}\printfield{usera}\printtext{]}}}%          \newunit}%       \printfield{titleaddon}}          \DeclareNameAlias{sortname}{last-first}     \DeclareNameAlias{default}{last-first} % for good measure, changes that of the editor and others     \renewcommand{\bibinitperiod}{}     \renewcommand{\bibinitdelim}{}     \DeclareFieldFormat{title}{#1}          \DeclareFieldFormat{titlecase}{\MakeTitleCase{#1}}          \newrobustcmd{\MakeTitleCase}[1]{%       \ifthenelse{\ifcurrentfield{booktitle}\OR\ifcurrentfield{booksubtitle}%         \OR\ifcurrentfield{maintitle}\OR\ifcurrentfield{mainsubtitle}%         \OR\ifcurrentfield{journaltitle}\OR\ifcurrentfield{journalsubtitle}%         \OR\ifcurrentfield{issuetitle}\OR\ifcurrentfield{issuesubtitle}%         \OR\ifentrytype{book}\OR\ifentrytype{mvbook}\OR\ifentrytype{bookinbook}%         \OR\ifentrytype{booklet}\OR\ifentrytype{suppbook}%         \OR\ifentrytype{collection}\OR\ifentrytype{mvcollection}%         \OR\ifentrytype{suppcollection}\OR\ifentrytype{manual}%         \OR\ifentrytype{periodical}\OR\ifentrytype{suppperiodical}%         \OR\ifentrytype{proceedings}\OR\ifentrytype{mvproceedings}%         \OR\ifentrytype{reference}\OR\ifentrytype{mvreference}%         \OR\ifentrytype{report}\OR\ifentrytype{thesis}}         {#1}         {\MakeSentenceCase{#1}}}          %% What actually prints the bibliography entry.          \DeclareBibliographyDriver{online}{%       \usebibmacro{bibindex}%       \usebibmacro{begentry}%       \usebibmacro{author/translator+others}%       \setunit{\labelnamepunct}\newblock       \usebibmacro{title}%       \newunit       \printlist{language}%       \newunit\newblock       \usebibmacro{byauthor}%       \newunit\newblock       \usebibmacro{bytranslator+others}%       \newunit\newblock       \printfield{version}%       \newunit\newblock         \usebibmacro{publisher+location+date}         \newunit\newblock         \usebibmacro{url+urldate}       \usebibmacro{finentry}}          \endinput      Now, consider the following MWE:               \documentclass[10pt]{article}          \usepackage[style=authoryear,backend=biber]{biblatex}     \usepackage{lipsum}     \usepackage{filecontents}          \begin{filecontents}{\jobname.bib}     @online{kruse,     author = {John S. Kruse},     title = {Framework for Sustainable Soil Management: Literature Review and Synthesis},     year = {2007},     url = {http://www.swcs.org/documents/filelibrary/BeyondTliteraturereview.pdf},     publisher= {Soil and Water Conservation Society},     location={Ankeny (IA)},     urldate = {2008-08-03},     medium = {Internet},     }          @online{cois,     author={},     title = {Canadian Soil Information Service},     medium = {Internet},     location = {Ottawa (ON)},     publisher = {Agriculture and Agri-Food Canada},     urldate = {2010-06-30},     url = {http://sis.agr.gc.ca/cansis/},     }     \end{filecontents}          \addbibresource{\jobname.bib}          \begin{document}     \lipsum[1]     \nocite{*}     \printbibliography          \end{document}      ![enter image description here](http://i.stack.imgur.com/cmfNl.png) For the first bibliography entry, I want to be able to put a field `urlupdate` in my `.bib` file which maps to the extradate field. I want to be able to use the extradate field to come up with something like > Canadian soil information service [Internet]. 2010. Ottawa (ON): Agriculture > and Agri‐Food Canada; [updated 2010 May 19; cited 2010 June 30]. Available > from: http://sis.agr.gc.ca/cansis/ when urlupdate is declared and > Canadian soil information service [Internet]. 2010. Ottawa (ON): Agriculture > and Agri‐Food Canada; [cited 2010 June 30]. Available from: > http://sis.agr.gc.ca/cansis/ when it is not. The answer must be somewhere in the biblatex manual but it is very hard to look for it. I have been at this problem for the past 2 hours.


title: Left aligning without extra space between words in tables

text: Here is the illustrating code:               \documentclass[letterpaper, 10pt]{article}     \usepackage[margin=1in]{geometry}     \usepackage{array}     \usepackage[none]{hyphenat}     \begin{document}          \begin{center}     \begin{tabular}{|m{4.5cm}|m{1.2cm}<{\centering}|m{8cm}|c|}     \hline     \centering \textbf{Course Name} & \centering \textbf{Date} & \centering \textbf{Textbook} & \centering \textbf{Grade} \tabularnewline \hline          C Programming Language \& Lab & 09/2009 - 12/2009 & Brian W. Kernighan, and Dennis M. Ritchie, \textit{The C Programming Language}, 2nd ed. ISBN:9780131103627 & 89 \\ \hline          Integrative Practice on Courses & 07/2011 & LUPA, \textit{Linux Software Engineer}, ISBN:9787030199645 & 87 \\ \hline     \end{tabular}     \end{center}          \end{document}      As shown in the PDF generated, there are too much space between some words because I disabled automatic hyphenation. I'd like to leave only single space between words, without justify align.


title: How to place a line for "N.A." at a cell of a table

text: I see some tables with a horizontal line placed at the middle of a cell, for terms not available or not applicable. For example, how shall I replace the "N.A." below with such a line?               \begin{table}[htbp]     \centering     \caption{Caption}     \begin{tabular}{ccc}     \hline     Auctions of & P\_value &  $\widehat{\theta}$ \\     \midrule     2  & 0.375 & $\underset{(0.230)}{0.354}$ \\     3  & 0.002 & N.A. \\     \bottomrule     \end{tabular}     \end{table}


title: Changing color for apalike2 + natbib

text: I am ussing apalike2 with natbib and I would like to apply normal, black color instead of light-green in my referrences, for example command:               \citep{someone}      produces green text: > (Smith, 2011) and I would like to have everything exactly the same but in black.   I tried to google and dig into apalike.sty but I cannot find what i am looking for. Does anyone have useful link or know how to do this?


title: How align columns in a tabular environment?

text: I want to align the source .tex file in order to reflect final table. Here is the result of calling align-current on my tabular's content.               \begin{tabular}{|c|c|}         \hline  & {\em Execution Time (second)} \\          \hline MPEG  & 123234                                             \\         \hline MPEG with global reporting                     & 86987                                                      \hline Gzip with all communication channels reporting & 86987         \\                                           \hline     \end{tabular}      Where am I wrong , Maybe in the auto-fill mode of my ~.emacs               ;;; Auto fill to wrap long lines     (add-hook 'text-mode-hook 'turn-on-auto-fill)     (setq-default auto-fill-function 'do-auto-fill)          ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;     ;;; No auto fill in some latex environments     ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;     (defvar my-LaTeX-no-autofill-environments       '("tikzpicture" "lstlisting" "tabular" "spreadtab")       "A list of LaTeX environment names in which `auto-fill-mode' should be inhibited.")          (defun my-LaTeX-auto-fill-function ()       "This function checks whether point is currently inside one of     the LaTeX environments listed in     `my-LaTeX-no-autofill-environments'. If so, it inhibits automatic     filling of the current paragraph."       (let ((do-auto-fill t)             (current-environment "")             (level 0))         (while (and do-auto-fill (not (string= current-environment "document")))           (setq level (1+ level)                 current-environment (LaTeX-current-environment level)                 do-auto-fill (not (member current-environment my-LaTeX-no-autofill-environments))))         (when do-auto-fill           (do-auto-fill))))          (defun my-LaTeX-setup-auto-fill ()       "This function turns on auto-fill-mode and sets the function     used to fill a paragraph to `my-LaTeX-auto-fill-function'."       (auto-fill-mode)       (setq auto-fill-function 'my-LaTeX-auto-fill-function))          (add-hook 'LaTeX-mode-hook 'my-LaTeX-setup-auto-fill)


title: Footnote hang, & adding vertical space around footrule

text: 1. How do I make the footnote hang on a new line? ie have "2012 )." align with the beginning of "Susan" instead of "1".   2. How can I increase the vertical space above and below the footnote line? Can I make this a flexi space? MWE:               \documentclass{article}          \usepackage{fontspec}     \setmainfont[Scale=1.0,Numbers={OldStyle,Proportional},Ligatures=TeX]{Minion Pro}     \newcommand\liningnumbers{\addfontfeature{Numbers=Lining}}          \usepackage{biblatex}     \addbibresource{*.bib}          \makeatletter     \renewcommand\@makefntext[1]{\hspace*{0em}\hb@xt@2em{\@thefnmark\hss}#1}     \makeatother          \newcommand{\headerfontsize}{\fontsize{8pt}{10pt}\selectfont \liningnumbers}      \usepackage{fancyhdr}             \fancyfoot{}     \fancyfoot[C]{\headerfontsize\thepage}     \renewcommand{\headrulewidth}{0pt}     \renewcommand{\footrulewidth}{0pt}      \headheight=10pt     \headsep=50pt       \pagestyle{fancy}          \begin{document}     Sentence with footnote.\footcite{mcclary}     \end{document}      Current Output: ![Current output](http://i.stack.imgur.com/pa8o3.png)


title: Circled footnote symbols with pifont showing arrows instead of circled numbers

text: I like the change of the footnote appearances with the `pifont` package               \usepackage{pifont}     \renewcommand\thefootnote{\ding{\numexpr171+\value{footnote}}}      but I have many footnotes [though never more than 20 a page] and after a while, I get the arrows 212, 213 and so on which can be viewed below: ![enter image description here](http://i.stack.imgur.com/hNAj3.png) How do I make a loop to start again at 172 ? Or better, how can I get numbers 11,12,13 circled instead of beginning from 1,2,3 each time ? There is a fix here http://valis.cs.illinois.edu/blog/?p=5809 but I get that my counters are too large... Would it be simpler to use the libertine fonts since they seem to have more circled numbers: Good way to make \textcircled numbers? Also, I must add that I use the mathdesgin package so perhaps it is even easier to use its \figurecircled command as stated in the previous link ?


title: How to typeset two verse environments side by side

text: I'm doing a poem analysis of some English poem translated to Swedish. I want include the poem in both the languages, like this:               \documentclass[a4paper]{article}     \usepackage[T1]{fontenc}     \usepackage{verse}          \begin{document}          \settowidth{\versewidth}{Mitt hjärta, stilla dina slag,}     \begin{verse}[\versewidth]       Mitt hjärta, stilla dina slag, \\       sen andra hjärtan slutits till! \\       Men - kan jag ej bli älskad, jag \\       \vin dock älska vill.     \end{verse}          \begin{verse}[\versewidth]       'T is time this heart should be unmoved, \\       \vin Since others it hath ceased to move: \\       Yet, though I cannot be beloved, \\       \vin \vin Still let me love!     \end{verse}          From this part we can see that bla bla bla \dots          \end{document}      This code results in: ![enter image description here](http://i.stack.imgur.com/u0W3H.jpg) But I'd also like to typeset these two versions side by side, in two separate columns. How may I do this?


title: How to read a specific portion of a data file in pgfplots

text: I have a data file which contains all the experiments that have been conducted for different cases. Is it possible in `pgfplots` to only read specific portion of the file and plot the results? Let's say the data file, named `mydata.dat`, looks like the following:               case    var1    var2    var3     1   0.10    0.25    10.00     1   0.20    0.35    25.00     1   0.30    0.45    40.00     1   0.40    0.55    55.00     1   0.50    0.65    70.00     1   0.60    0.75    85.00     2   1.00    0.50    55.00     2   2.00    0.50    55.00     2   3.00    0.50    55.00     2   4.00    0.50    55.00     2   5.00    0.50    55.00     2   6.00    0.50    55.00     2   7.00    0.50    55.00     2   8.00    0.50    55.00     2   9.00    0.50    55.00     3   10.00   1.00    22.50     3   20.00   2.00    22.50     3   30.00   3.00    22.60     3   40.00   4.00    22.70     3   50.00   5.00    22.65     4   100.00  10.00   135.00     4   200.00  20.00   140.00     4   300.00  30.00   137.00     4   400.00  40.00   144.00     4   500.00  50.00   141.00     4   600.00  60.00   136.00     4   700.00  70.00   136.00      How can I read the file using `pgfplot` and for example plot the data only for `case=3` which are:               3   10.00   1.00    22.50     3   20.00   2.00    22.50     3   30.00   3.00    22.60     3   40.00   4.00    22.70     3   50.00   5.00    22.65      How can I modify the following code to be able to obtain the results I am looking for?               \documentclass[crop=true,border=2mm]{standalone}     \usepackage{pgfplots}     \usepackage{amsmath}     \usepackage{amssymb}     \usepackage{amsfonts}     \usepackage{graphicx}          \begin{document}          \begin{tikzpicture}         \begin{axis}[%             axis on top,             width = 4cm,             height = 4cm,             scale only axis,                    ]         \addplot             table [%             col sep=tab, %             x=var1, y=var2,] %             {mydata.dat};         \end{axis}     \end{tikzpicture}          \end{document}


title: Is there a trick to beautify bibliography?

text: I'm using the `memoir` and `biblatex` packages together. In general, I'm very happy with both. However, in my bibliography, I get some overflows and I don't have any clue how to avoid them... are there packages / commands / settings / tricks to achieve a nice looking bibliography and avoid overflows as depicted below? I know that latex does its best about type setting, but maybe there are some pitfalls I'm not aware of. Thank you! ![enter image description here](http://i.stack.imgur.com/3O0Oe.png)![enter image description here](http://i.stack.imgur.com/iFc3g.png) **UPDATE** Using the `block=ragged` option avoids overflows, but also omits the text justification I like so much :-) (see next figure) So unfortunately, this is not an alternative. ![enter image description here](http://i.stack.imgur.com/KLLpo.png)


title: Center all same theorem

text: I would like to know if it's possible right from the definition of a theorem to center it :               \begin{center}     \begin{minipage}{5cm}     {          {     \theoremstyle{plain}     \theorembodyfont{\small}     \theoremheaderfont{\scshape}     \theoremsymbol{C.Q.F.D.}     \newtheorem*{dem}{Démonstration}     }          }     \end{minipage}     \end{center}      The code produces this : ![enter image description here](http://i.stack.imgur.com/PGMG5.png) My goal is to have all same type of theorem to be centered. Like this : ![enter image description here](http://i.stack.imgur.com/VLLAJ.png)


title: How to get figure counter to follow theorem counter?

text: I am trying to get my figure to counter to follow my theorem counter. I created a few different environments: lemma, example, definitions, etc. I have gotten all of them to follow my theorem counter. The numbering goes Chapter.Section.theorem. So it will go like this: > Chapter 2 "The Second Chapter" > > Section 2.1 The First Section > > Definition 2.1.1 - First Definition > > Theorem 2.1.2 - The First Theorem > > Section 2.2 The Second Section > > Chapter 3 "The Third Chapter" etc... However, the figures don't seem to follow the counter. The first figure (in section 2.4) is number Figure 2.3 ... So I'm trying to get it to fall in line with the rest so that it would look like: Example 3.2.5 - The Example Figure 3.2.6 - The Figure for Example 3.2.5 Any suggestions? I put all the code that I think is applicable below. Let me know if you need more/something else...               \documentclass{thesis} %This is my school's self-made document class          \newtheorem{theorem}{Theorem}[section]     \newtheorem{corollary}[theorem]{Corollary}     \newtheorem{definition}[theorem]{Definition}     \newtheorem{lemma}[theorem]{Lemma}     \newtheorem{proposition}[theorem]{Proposition}          \theoremstyle{definition}   %Added by me     \newtheorem{example}[theorem]{Example}          %\makeatletter  %Added by me     %\let\c@theorem\c@figure     %\makeatother          \begin{document}          \begin{figure}     \caption{The Figure}     \end{figure}          \end{document}      I've attempted the `\let\c@theorem\c@figure` but that doesn't seem to work.


title: Referencing line numbers in an algorithm

text: Referencing figures is simple:               \begin{figure}         \caption{Blah blah blah blah blah}         \label{fig:name}         %shtuff goes here     \end{figure}          See figure~\ref{fig:name}.      I would like to know if it is possible to reference line numbers in an algorithm, e.g.:               \begin{algorithmic}[1]         \State blah1         \State blah2 \label{lst:line:blah2}         \State blah3     \end{algorithmic}          As you can see on line~\ref{lst:line:blah2} \ldots


title: Help with a footer/header/pagenumbering in a greater project in LaTeX documentclass book

text: I just wanna make a nice template for some greater work e.g. thesis. But I have a lot of trouble. I tried to make the pagenumbering start after the table of contents. But for some reason it doesn't worked. And I tried to make a header who looks like that on this image. ![image](http://i.stack.imgur.com/sUp3b.jpg) It would be nice with to bold lines where the pagenumber would stay under the first bold line and the chaptername would stay under the other bold line. Further would it be nice if an image, the university logo, would be in the right corner. Would that be possible? Here my LaTeX Code till now.               \documentclass[12pt,a4paper,twoside]{book} %Dokumenttyp     \usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry} %Seitenaufbau          \usepackage[utf8]{inputenc} %Zeichensatz     \usepackage[danish]{babel} %Spracheinstellungen     \usepackage[T1]{fontenc} %Schriftart               \usepackage{amsfonts, amssymb, amsmath, marvosym} %Mathematische Symbole und andere Zeichen (CV)     \usepackage{makeidx} %Um Index zu erstellen     \usepackage{graphicx} %Graphikeinbindung     \pagestyle{empty} %Entfernen von Kopf- und Fußzeilen          \begin{document}          \include{Titelseite}     \include{Impressum}     \include{Abstrakt}     \tableofcontents %Inhaltsangabe     \clearpage %Bereinigt die Seite     \end{document}      To make a header I need this code I think:               \usepackage{fancyhdr}     \renewcommand{\headrulewidth}{0pt}     \pagestyle{fancy}     \fancyhead{}     \fancyhead{}     \fancyfoot{}     \fancyhead[LO,RE]{\includegraphics{IMAGE}}     \fancyhead[RO,LE]{\thepage \hspace{5pt} \leftmark}      Please help my anyone. It would be really nice - I don't know how to get further of here. Kind regards and thank you very much in advance.


title: Do I need to run non-tlmgr tools each time I use Tex Live Utility to update Tex?

text: I've made some modifications to my TeX installation outside of the TeX Live Utility, which I use primarily, as a convenient way to keep my installation up to date. For example, I've added some fonts manually followed by `texhash`, and some others using `getnonfreefonts`. Does that mean that after each time I run TeXLive Utility (or tlmgr), I need to rerun any and all other config tools I might have used outside of TeX Live (e.g., `texhash` or `udmap`)?


title: `\pounds` misbehaving with the `eulervm` package even in T1 encoding

text: I am teaching a probability course involving lots of gambling and hence, since I'm in the UK, I would like to use £ in some formulae. I use `utf8x` input enconding, `T1` font encoding and the `eulervm` maths fonts. Nevertheless, £ inside math-mode comes out like a dollar sign. Here's a minimum working example:               \documentclass{article}     \usepackage[T1]{fontenc}     \usepackage[utf8x]{inputenc}     \usepackage[small]{eulervm}          \begin{document}          A gambler wins $£1$ with probability $p$ and loses $£1$ with probability $1-p$.          \end{document}      Commenting out the line which calls the `eulervm` package works, but I really like the `eulervm` fonts, so any help would be immensely appreciated.


title: TikZ programming/macros, \list construct

text: TikZ 3.0 manual, on page 83, we have (not complete code):                   \list{--}{\topsep=2pt\itemsep=0pt\parsep=0pt         \parskip=0pt\labelwidth=8pt\leftmargin=8pt         \itemindent=0pt\labelsep=2pt}          #5         \endlist      **Question** :   1. The ability to pass input to commands (the #5 goes into the -- of the list) like this is some TikZ property or we already have it in plain TeX?   2. What other commands allow me to pass inputs like this? The `\list` above does not seem to be LaTeX because there is no \begin{list} and \end{list} also the definition above compiles fine in TeX using input tikz.tex Sorry if this is too basic, I'm trying to learn more about the "magic" but I don't know much about plain TeX (just ordered the TeX book).


title: Emulate a "tuple" data structure when the syntax for creating a tuple is predefined and cannot be altered

text: Imagine I have a macro `\createcontact` that accepts three parameters. Now, instead of using these during the expansion, I would like to save them separately for later use and retrieval. The above macro is used in the following context:               \newcommand{\myfirstauthor}{\createcontact{Alice}{Munich}{Germany}}     \newcommand{\mysecondauthor}{\createcontact{Bob}{London}{United Kingdom}}     % and so forth      How do I implement `\createcontact` so that I can extract the individual parameters that have been passed to it from `\myfirstauthor`, `\mysecondauthor` etc.? How would then the code for the extraction look like? In other words, how do I need to define `\createcontact` and, say, a macro `\extractsecond` so that `\extractsecond\myfirstauthor` expands to `Munich`? **EDIT** : Note that only the definition of `\createcontact` can be adapted, not that of `\myfirstauthor`, `\mysecondauthor` etc.. That is, the usage pattern above must remain "as is". The reason of this exercise is that the above pattern is used in users' documents all over the place. I would like to do more complex processing of the `\createcontact` parameters than simply using them _once_ in a macro. (For example, I want to use `Munich` in one context, and `Germany` in another.) As per Peter's request, here comes a "compilable" example that has placeholders instead of the commands I'm interested in:               \documentclass{article}          % HOW TO IMPLEMENT THIS?     \newcommand{\createcontact}[3]{...}     \newcommand{\extractfirst}[1]{...}     \newcommand{\extractsecond}[1]{...}     \newcommand{\extractthird}[1]{...}     % HOW TO IMPLEMENT THIS?          % DO NOT CHANGE OR MOVE THIS     \newcommand{\myfirstauthor}{\createcontact{Alice}{Munich}{Germany}}     \newcommand{\mysecondauthor}{\createcontact{Bob}{London}{United Kingdom}}     % DO NOT CHANGE OR MOVE THIS          \begin{document}       \extractfirst{\myfirstauthor} lives in \extractsecond{\myfirstauthor}       which is located in \extractthird{\myfirstauthor};       this may or may not be true for \extractfirst{\mysecondauthor}.     \end{document}


title: Authors in the table of contents

text: I want to insert Names of authors in the toc (above the chapter title) like here: ![enter image description here](http://i.stack.imgur.com/ZPmsK.png) but the suggested methode doesn't work in the scrreprt type of document.               \documentclass[12pt,a4paper,oneside,ngerman]{scrreprt}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{lmodern}     \begin{document}     \tableofcontents          \chapter{Blabla 1}     sdadasdas          \section{Blabla 1.1}     fd     \subsection{Blabla 1.1.1}     das     \end{document}      Thanks in advance!


title: Which font has the following features?

text: I want to use a font available in TeX that have the following features:   1. Sans    2. **g** is as usual sans g    3. **a** likes uprighted italic math `$a$` ɑ    4. with ā á ǎ à and the like for o, e, i, u, ü, AOEIUÜ


title: Using Bibliographies - where do I place the .bib-file

text: I am working on my FIRST `.tex` document. I have my `.bib` exported from Zotero. Where do I need to place my `.bib` file so as to enable TeXShop to find it? Do I need to specify a path like I do when including figures? I would like to cite by author/year and have a list of references at the bottom. I am clearly making a mistake at the beginning or at the end, I am following directions in chapter 12 of Kopka & Daly Guide to LaTeX 2004, and I am missing something. This is the error message I get when I run BibTeX:                This is BibTeX, Version 0.99d (TeX Live 2011) The top-level auxiliary      file: 06_19_Etapa_1-1.aux The style file: alpha.bst I couldn't open      database file MyLibrary.bib      ---line 37 of file 06_19_Etapa_1-1.aux  : \bibdata{MyLibrary  :                   }          I'm skipping whatever remains of this command     I found no database files---while reading file 06_19_Etapa_1-1.aux     Warning--I didn't find a database entry for "hess_strobophotoglottographic_2000"     (There were 2 error messages)      Thanks!!


title: From old paper documents to modern LaTeX versions

text: I'm more or less in the process of converting old (let's say from the 70's) paper documents into their modern LaTeX version. What I am doing is as follows:   1. write the whole Latex source from scratch (very long and inefficient)    2. scan the document, use an OCR tool and translate the subsequent `txt` file into a `tex` file I'm also thinking of using voice recognition software to go a bit faster. Are some of you in the same situation and what would be your advices to accelerate the whole process? The final goal is to share the PDF documents and related LaTeX source on an open archive and give revival to these "about to die" interesting documents. **Edit 1** : work has also to be done on figures and diagrams. As far as I know, it is almost impossible to automate this task. So, I'm currently redrawing everything with either Inkscape, TikZ or pstricks. **Edit 2** : Tesseract-ocr is willing to help but it is not high priority. Anyway, it looks like Tesseract can be trained.


title: How to prevent Beamer from changing the normal text color when I change the footnote color?

text: When I change the footnote color in Beamer using `\setbeamercolor{footnote}{fg=blue}`, I end up also inadvertently changing the normal text color on all other slides. To make things even stranger, the normal text is correct only on slides that have footnotes. The following example demonstrates my problem:               \documentclass{beamer}     \setbeamercolor{footnote}{fg=blue}          \begin{document}     \begin{frame}     It seems like adding a footnote\footnote{Like this} will cause the normal text of subsequent slides to inherit the footnote's color.     \end{frame}          \begin{frame}     See? This text is now blue.     \end{frame}          \begin{frame}     Invoking another footnote\footnote{like this} will cause the fonts to return to normal color, at least for this slide.     \end{frame}          \begin{frame}         But this text will again be blue (the color of the footnotes)!     \end{frame}          \end{document}      I'm using MacTex 2010.


title: how to set the left margin for all formulas in the text?

text: My text includes description of a formula and its equation right after that. But each time that I add a new item (description) the corresponding formulas have different indent. How can I change it such that when looking at the whole page, I see all the formulas having the same indent. Here is the code:               \item a         \begin{align}         &\sum_{k=1}^{K} ... \label{bal2}&\\         &\sum_{k=4}^{5}...  \label{bal3}&\         \label{bal3}\end{align}      \item b         \begin{align}         &\sum_{j=1}^{J}... \label{bal4}&\         \end{align}