title: Getting strange misplaced \noalign error

text: I'm trying to add a horizontal line to my document, like so:               \documentclass[10pt]{article}     \usepackage{fullpage, graphicx, url}     \usepackage{dsfont}     \begin{document}                    $ \mathds{C}$          \hline          \end{document}      however, this seems to generate an error message:               ! Misplaced \noalign.     \hline ->\noalign                        {\ifnum 0=`}\fi \hrule \@height \arrayrulewidth \futurelet...     l.10 \hline      The error message is not particularly helpful to me - I can see that `\hline` is mapped to a `\noalign`, but I don't understand why this makes the `\noalign` misplaced.


title: Converting Powerpoint master slide to beamer

text: Is it possible to take a Powerpoint master slide and convert it to something that can be used with beamer? My organization requires the use of Powerpoint, but I can get away with presenting pdf's provided that the looks are the same. (I've seen several posts that talk about going from beamer to Powerpoint, but not in the opposite direction.)


title: Cite a particular author when there are multiple authors - how to?

text: It may happen for some publications, one author among a group of authors are more important than others. Let us say, that author may be more popular or has contributed the most :) I have official .bib files that are automatically compiled from science magazines. Therefore, there is no chance to modify them. Here is an example:               @article{Williams:2009:RIV:1498765.1498785,      author = {Williams, Samuel and Waterman, Andrew and Patterson, David},      title = {Roofline: An Insightful Visual Performance Model for Multicore Architectures},      //truncated     }       Now, in this bibliography, `Patterson` is the the most popular person. When I want to `\citeauthors`, I actually want to have `Patterson et al`. to be printed, instead of `Williams et al`. `Patterson` is in the third position in this author list. Is there a way to actually do something like `\citeauthor{ref_code}[index]` where I want to pick the author I want while citing the group? I use `biblatex` with the `bibtex8` backend.


title: Weird line spacing of last paragraph in mini page - why?

text: I'm playing around with the `titlepage` package and have run into a formatting issue. Basically, I need to change the font size for some of the back title contents, and while this works for most of the contents, the last paragraph is not formatted correctly. I've been able to replicate the issue with a simple `minipage` demo:               \documentclass[a4paper,pagesize]{scrbook}     \usepackage[ngerman]{babel}     \begin{document}       \begin{titlepage}         \begin{minipage}[t]{\textwidth}           Some text at the top.         \end{minipage}\par         \vfill         \begin{minipage}[b]{\textwidth}           \begin{scriptsize}     Lorem ipsum dolor sit amet, consectetur adipiscing elit. In sapien massa, facilisis tincidunt tincidunt sed,     sollicitudin ac turpis. Nulla facilisi. Nam nec porttitor arcu, non venenatis tellus. Mauris ornare massa non molestie     ullamcorper. Vestibulum eleifend dolor ipsum, fermentum tristique risus molestie ut. Sed vitae odio nec lacus porta     sodales at sed nisl. Nulla facilisi. Duis in elit dapibus, suscipit odio nec, blandit lorem. Sed id dictum lorem. Donec     dapibus libero in nunc rutrum, et gravida massa vehicula.          Cras lobortis nec sem quis interdum. Donec nec malesuada ipsum. Sed non cursus augue, id tempor mi. Vivamus mauris     tellus, luctus nec dolor ac, rutrum ornare mi. Nam hendrerit pharetra auctor. Donec ut varius ante, vitae sodales metus.     Maecenas vestibulum congue vehicula. Aliquam quis viverra mi.           \end{scriptsize}         \end{minipage}       \end{titlepage}     \end{document}      I've also tried to use `{\scriptsize ... }` instead of the `scriptsize` environment, but the result is the same: ![problem](http://i.stack.imgur.com/H55JI.png) As you can see, the last paragraph is typeset using the wrong line spacing. What is happening here, and what can I do to prevent this?


title: Table of content problem

text: I have prepared table of contents for my thesis like that![enter image description here](http://i.stack.imgur.com/yyvo2.png) But our university wants like that ![enter image description here](http://i.stack.imgur.com/PUPa9.png) The main difference between them, In the second screenshot, chapter and section heading numbers are bold and also contains dot for example > **1.** INTRODUCTION I have used to prepare table of content for chapter this code blocks               \titlecontents{chapter}     [25pt]         % left margin     {}%     {\contentsmargin{10pt}         % numbered entry format         \thecontentslabel\enspace%         \normalfont }     {\contentsmargin{10pt}\normalfont}      % unnumbered entry format     {\titlerule*[1mm]{.}\contentspage}                 % filler-page format (e.g dots)     []


title: Problem with \newcommand that mimics lstinline

text: I'm trying to replicate a part of a scanned book. Book is about programming (pure C).   I need to use many commands with a same name but with different surrounding, for example, background color etc. I'm using `listings` package. I created with `newcommand`, something like an alias for `\lstinline`. Later, maybe, I'll surround it with background color or different font/size or something like that. I want to be able to do this kind of things on-the-fly (to tweak every thing later easy). Main problem is with a source code in the book (specifically _reserved_ or _special_ characters, like `#` or `\`). At the moment, I just use different names for a plain commands, which I'm going to define (expand) later, something like this:               \usepackage{listings}     \newcommand{\test}[1]{\lstinline{#1}}          \test{"\nA marathon is %f kilometers.\n\n"}     \lstinline{"\nA marathon is %f kilometers.\n\n"}      _problem_ is with this command:               \test{"\nA marathon is %f kilometers.\n\n"}      while _this_ command, as expected, works fine:               \lstinline{"\nA marathon is %f kilometers.\n\n"}      I get errors (`Undefined Control Sequence. \nA`), but soon as I remove (La)TeX special characters (`#`, `\`), everything runs normally. My question is, is there a clean way to create newcommands (or an aliases) which are dealing with source code, or, there is some other, more **elegant** way that you know? Any help apreciated.


title: How to display black chess pieces within normal text with chessfss

text: I'm using the package `chessboard` do display chess diagrams, and therefore `chessfss` is used for chess fonts if my understanding is correct. To display the _white_ chess pieces within normal text when writing explanations, I use the commands `\pawn`, `\rook`, `\knight`, `\bishop`, `queen` and `\king` (see the example below).               \documentclass[varwidth,margin=0.5cm]{standalone}     \usepackage{chessfss}     \begin{document}       White pieces : \pawn \rook \knight \bishop \queen \king\\       Black pieces : \BlackPawnOnWhite \BlackRookOnWhite \BlackKnightOnWhite \BlackBishopOnWhite \BlackQueenOnWhite \BlackKingOnWhite     \end{document}      ![Chess pieces symbols within normal text](http://i.stack.imgur.com/raQ9G.png) What are the corresponding commands to display the _black_ pieces? I have tried commands like `\BlackPawnOnWhite` but as you can see it is not suited to in-text use.


title: TeXStudio: Add new word to dictionary via button

text: I installed a new Dutch dictionary from the Open Office website in my 'dictionaries' file. Spelling checks work perfectly in TeXStudio, but now, I'd like to add new words to the dictionary during the spelling check. I've already found this: TeXworks: How to add a word to the spell checker dictionary?. However, that's not exactly what I want. Instead of editing the `.dic` and `.aff`. files manually, I'd like to provide a button, so that the new word is added to the dictionary automatically. * * * **Edit:** What about adding a link to the spelling check box that opens the `.dic` and `.aff` files? Is that possible? I just want to avoid a long search for the files every time. How can I do that?


title: TeXShop key bindings with backticks

text: I wish to create key bindings in TeXShop to replace accented characters I commonly use (è, à, é, ç, etc.) with their appropriate LaTeX entries. In the Key Bindings Editor, I add the character as input (e.g., `è`) and the escaped LaTeX as output (e.g., `\\`e`). I am using OSX, which allows one to enter `è` by hitting `<option> \+ `` and then hitting `e`. When I do this, however, the key binding only replaces the `e`; the ``` persists, which leaves my final output as ``\\`e`. I have tried to use `#INS#` and `#SEL#` to produce what I'm looking for, but to no avail. Even the key bindings that come with TeXShop (that are implemented similar to above) provide the same result for me. One solution that might work is to code a backspace into the output, but I cannot determine how to do that (if it's even possible).


title: afterpage clashes with restoregeometry from the geometry package

text: I'm writing my thesis and have used the geometry package to control the size of the text body so that it follows 'good' typesetting practices as described in the KOMA-script documentation. Many of my figures are full-page floats that are taller than the text height. Consequently I have been using the newgeometry/restoregeometry and afterpage commands to adjust the page layout and ensure that the figure is appropriately placed in the document. This works fine except that on the page immediately following the figure, the text 'runs' into the bottom margin. I've have provided a MWE below. Note how the fourth page is formatted incorrectly. (I am using pdfLaTeX). Does anyone know how to correct this behaviour? (or have an alternative method of accomplishing the same layout?) It seems to me as though the restoregeometry command is not being executed correctly.               \documentclass{scrbook}     \usepackage{calc}     \usepackage[showframe]{geometry}          % Calculate type area for page      \geometry{ bindingoffset = 8mm,                 heightrounded = true,                 body = {125mm, 125mm * 16 / 9},                marginratio = {9:16, 9:16},                marginparsep = 5mm,                marginparwidth = 30mm,                headsep = 10mm,                headheight = 10mm,                footskip = 15mm }          \KOMAoptions{fontsize = 11pt}     % Chapters open on right.     \KOMAoptions{open = right}     % \cleardoublepage command uses the empty page style     \KOMAoptions{cleardoublepage = empty}     % Don't typeset the Chapter and Appendix prefixes     \KOMAoptions{chapterprefix = false}     \KOMAoptions{appendixprefix = false}     % We also avoid having running heads and page numbers on float pages by using the  floatpage     % package to make float pages use the empty page style.     \usepackage{floatpag}     \floatpagestyle{empty}     \rotfloatpagestyle{empty}          % For dummy text     \usepackage{lipsum}     %      \usepackage{afterpage}          % For good control of floats     \usepackage[demo]{graphicx}     \usepackage{floatrow}     \floatsetup{facing=yes,                  capbesideposition={outside,center},                 footnoterule=none}     \floatsetup[table]{style=plaintop}     \floatsetup[subfigure]{style=plain}     % Allow floats to hang into the outer margin     \DeclareMarginSet{minhangoutside}{%     \setfloatmargins*{\relax}         {\hfill\hskip-\marginparwidth\hskip-\marginparsep}%     }     \floatsetup[figure]{margins=minhangoutside}          % For control of caption formatting     \usepackage{caption}     \usepackage{subcaption}     \captionsetup{font=normal,                   format=hang,                   labelfont=normal,                   labelsep=colon}          % End Preamble     %     %------------------------------------------------------------------------     \begin{document}          \chapter{First Chapter}     %     \section{First Section}%     \lipsum%          % Add a full page figure. I want the preceeding page to be full of text so     % use the afterpage command. Also as the figure is taller than the page height      % I use the newgeometry/savegeometry/restoregeometry commands.     %     \afterpage{%     \newgeometry{bindingoffset = 8mm,                   body = {125mm, 125mm * 16 / 9 + 10mm + 15mm},                   headsep = 0mm,                   footskip = 0mm}%     \savegeometry{extraheight}     %     \begin{figure}[pc]%     \centering%     \ffigbox%             {\includegraphics*[width=160mm,height=20mm]{}%             \vspace*{1ex}%                  \begin{subfloatrow}%                 \ffigbox[\FBwidth]%                         {\includegraphics*[width=160mm,height=96.0mm]{}}%                         {\caption{First sub-figure}}%             \end{subfloatrow}%             \vspace*{1ex}%                  \begin{subfloatrow}%                 \ffigbox[\FBwidth]%                         {\includegraphics*[width=160mm,height=96.0mm]{}}%                         {\caption{Second sub-figure }}%             \end{subfloatrow}}%             {\caption{Main caption of the figure. In reality this runs to two lines long so I'm just filling in space here with meaningless text.}}%     \end{figure}      %     \restoregeometry%     }     %     % Next section     \section{Second Section}%     \lipsum%     %     \section{Third Section}%     \lipsum%          \end{document}


title: Setting global styles with multiple parameters for tikz calendar

text: I'd like to create a style with parameters for use with the TikZ `calendar` library. Here's a working example similar to what I want:               \documentclass[10pt]{article}     \usepackage{tikz}     \usetikzlibrary{calendar}          \begin{document}     \tikzstyle{ColorDay}=[if={(equals=2-7) [every day/.append style=#1]}]          \begin{tikzpicture}         \calendar (cal) [dates=2013-02-1 to 2013-02-28,week list,         ColorDay={red}];     \end{tikzpicture}     \end{document}      I have two problems. First, I am forced to use the deprecated `\tikzstyle` command here, instead of `\tikzset`. I can't get `\tikzset` to work at all with `calendar` if's. For instance,               \tikzset{ColorDay/.style=if={(equals=2-7) [every day/.append style=#1]}}      doesn't work. In fact, it doesn't work even if I remove the parameter.               \tikzset{ColorDay/.style=if={(equals=2-7) [every day/.append style=red]}}      Second, I don't know how to create a style with multiple parameters. For instance,               \tikzstyle{ColorDay}=[if={(equals=#1) [every day/.append style=#2]}]      doesn't work.


title: Is there a Natbib style that creates a bibliography like 'abbrvnat', but sorted like 'unsrtnat'?

text: In my latex file I am using natbib for the citations with `abbrvnat` style. Is there a way to show citation numbers in order like in `unsrtnat` while keeping the abbreviated form?


title: Vertically center a node with the current line in TikZ

text: Consider the following:               \documentclass{article}          \usepackage{tikz}          \begin{document}            This is a       \begin{tikzpicture}         \node[draw, rectangle, align=left] {%           And here \\[.3em]           is           \tikz \node[draw, rectangle, align=center] {a \\ nested};         };       \end{tikzpicture}       one.     \end{document}      This produces ![enter image description here](http://i.stack.imgur.com/YwUPr.png) I would like to have the nodes placed so that the the outer node is vertically centered with the text outside the `tikzpicture` and the inner node is vertically centered with the "is" line of the outer node.


title: Safeguard against image alignments

text: Images in dictionary appear under the headword. I would like to control the behaviour of the placing with few rules. Controling of the placement should prevent undesired alignment that causes for example wider lines. General placement:   * If possible, place image right under the headword. If not, place in the same page. Else place on the next page.   * Check if the page contain more images. If the page contains more than 2, place other images to the next page. Upper placement:   * Place image always not directly at the beginning of the page, but after at least 3 lines of the text Lower placement:   * Place image always not directly at the end of the page, but before at least 3 lines of the text ![Example of undesired alignment](http://i.stack.imgur.com/y6orw.png) In this example, the image appears first in the page and next image alignment causes too wide lines that looks unnatural. MWE:               \documentclass[8pt,b5paper,twocolumn]{extbook}      \usepackage[top=2cm, headsep=0.4cm, bottom=1.5cm, left=1.5cm, right=1.5cm]{geometry}     \usepackage{fancyhdr}     \usepackage[icelandic, czech, english]{babel}     \usepackage[utf8]{inputenc}     \DeclareUnicodeCharacter{00A0}{~} % finds hidden non-breakable space     \usepackage[T1]{fontenc}     \usepackage{tgpagella}     \usepackage[scaled]{helvet}     \usepackage{enumitem}     \usepackage{hanging}     \usepackage{makeidx}     \usepackage{stmaryrd}     \usepackage{tikz}     \usetikzlibrary{calc}     \usepackage{tipa}     \usepackage{fix2col}     \usepackage{dingbat}     \usepackage{manfnt}     \usepackage{latexsym}     \usepackage{graphicx}     \usepackage{color}     \usepackage{titlesec}          % pdf information     \usepackage[pdftex,colorlinks=true]{hyperref}     \hypersetup{pdftitle={PDF title},pdfauthor={PDF author}, pdfsubject={PDF subject}, pdfkeywords={PDF keywords}, linktoc=none}          % COLORS     \definecolor{darkgreen}{rgb}{0.4, 0.01, 0.24}     \definecolor{royalazure}{rgb}{0.0, 0.22, 0.66}     \definecolor{brown}{rgb}{0.4, 0.01, 0.24}          % COLORS FOR THUMB INDEXES     \definecolor{babyblueeyes}{rgb}{0.63, 0.79, 0.95}     \definecolor{unitednationsblue}{rgb}{0.36, 0.57, 0.9}     \definecolor{blue(ryb)}{rgb}{0.01, 0.28, 1.0}     \definecolor{darkblue}{rgb}{0.0, 0.0, 0.55}     \definecolor{screamingreen}{rgb}{0.46, 1.0, 0.44}     \definecolor{limegreen}{rgb}{0.2, 0.8, 0.2}     \definecolor{islamicgreen}{rgb}{0.0, 0.56, 0.0}     \definecolor{upforestgreen}{rgb}{0.0, 0.27, 0.13}     \definecolor{icterine}{rgb}{0.99, 0.97, 0.37}     \definecolor{orange(colorwheel)}{rgb}{1.0, 0.5, 0.0}     \definecolor{orange-red}{rgb}{1.0, 0.27, 0.0}     \definecolor{oucrimsonred}{rgb}{0.6, 0.0, 0.0}     \definecolor{cottoncandy}{rgb}{1.0, 0.74, 0.85}     \definecolor{orchid}{rgb}{0.85, 0.44, 0.84}     \definecolor{vividcerise}{rgb}{0.85, 0.11, 0.51}     \definecolor{patriarch}{rgb}{0.5, 0.0, 0.5}          % Thumb indexes' colors     \newcommand\BoxColor{%     \ifcase\theletternum darkgreen!30\or babyblueeyes\or unitednationsblue\or blue(ryb)\or screamingreen\or limegreen\or islamicgreen\or upforestgreen\or icterine\or orange(colorwheel)\or orange-red%     \or oucrimsonred\or cottoncandy\or orchid\or vividcerise\or patriarch\or babyblueeyes\or unitednationsblue\or blue(ryb)\or screamingreen\or limegreen\or islamicgreen\or upforestgreen\or icterine\or orange(colorwheel)\or orange-red%     \or oucrimsonred\or cottoncandy\or orchid\or vividcerise\or patriarch\else darkgreen!30\fi}          %COMMANDS     \newcommand\entry[3][]{\hangpara{2em}{1}{\fontfamily{phv}\selectfont{\textbf{{#2}}}}\      #3\ifx\relax#1\relax\markboth{#2}{#2}\else\markboth{#1}{#1}\fi     \par}\nopagebreak[4]     \newcommand*{\dictchar}[1]{\parbox[c][3cm][c]{2cm}{\Huge\textbf{#1}}\par}          %FANCY PAGE STYLES     \pagestyle{fancy}          % THUMB INDEXES     % new counter to hold the current number of the letter to determine the vertical position     \newcounter{letternum}     % newcounter for the sum of all letters to get the right height of a box     \newcounter{lettersum}     \setcounter{lettersum}{33}     % some margin settings     \newlength{\thumbtopmargin}     \setlength{\thumbtopmargin}{1cm}     \newlength{\thumbbottommargin}     \setlength{\thumbbottommargin}{3cm}     % calculate the box height by dividing the page height     \newlength{\thumbheight}     \pgfmathsetlength{\thumbheight}{%     (\paperheight-\thumbtopmargin-\thumbbottommargin)%     /%     \value{lettersum}     }     % box width     \newlength{\thumbwidth}     \setlength{\thumbwidth}{0.4cm}     % style the boxes     \tikzset{     thumb/.style={        text=white,        minimum height=\thumbheight,        text width=\thumbwidth,        outer sep=0pt,        font=\sffamily\bfseries,     }     }     \newcommand{\oddthumb}[1]{%         % see pgfmanual.pdf for more information about this part         \begin{tikzpicture}[remember picture, overlay]             \node [thumb,fill=\BoxColor, text centered,anchor=north east,] at ($%                 (current page.north east)-%                 (0,\thumbtopmargin+\value{letternum}*\thumbheight)%             $) {#1};        \end{tikzpicture}      }      \newcommand{\eventhumb}[1]{%         % see pgfmanual.pdf for more information about this part         \begin{tikzpicture}[remember picture, overlay]             \node [thumb,fill=\BoxColor, text centered,anchor=north west,] at ($%                 (current page.north west)-%                 (0,\thumbtopmargin+\value{letternum}*\thumbheight)%             $) {#1};        \end{tikzpicture}      }      % create a new command to set a new lettergroup with thumb indexes      \newcommand{\lettergroup}[1]{%      \fancyhead[LO]{\fontfamily{phv}\selectfont{\textbf{\rightmark}}\eventhumb{#1}}%      \fancyhead[RE]{\fontfamily{phv}\selectfont{\textbf{\leftmark}}\oddthumb{#1}}%      % step the counter of the letters      \stepcounter{letternum}%      }           % BASIC PAGE STYLE      \fancypagestyle{basicstyle}{%      \fancyhf{}      \renewcommand{\headrulewidth}{0.4pt}      \renewcommand{\footrulewidth}{0pt}      \fancyhead[LE,RO]{\textbf{\chaptitle}}      \fancyhead[LO,RE]{\textbf{\thepage}}}           % DICTIONARY PAGE STYLE      \fancypagestyle{dictstyle}{%      \renewcommand{\headrulewidth}{0.4pt}      \fancyhf{}      \fancyhead[LE,LO]{{\fontfamily{phv}\selectfont{\textbf{\rightmark}}}}      \fancyhead[CO,CE]{\thepage}      \fancyhead[RE,RO]{{\fontfamily{phv}\selectfont{\textbf{\leftmark}}}}}           \setlength{\columnsep}{20pt}      \setlength{\columnseprule}{0.1pt}           \titleformat{\chapter}[block]      {\normalfont\huge\bfseries}{\thechapter.}{1em}{\Huge}      \titlespacing*{\chapter}{20pt}{20pt}{20pt}           % GRAPHICS PATH      \graphicspath{/home/SomeUser/Documents/dictionary/images/}          \begin{document}     \pagestyle{dictstyle}          % the letters in alphabetical order     \lettergroup{l}     \dictchar{l L}     \entry[headword_without_special_symbols]{headword_with_symbols}{senses}     \entry[2 headword_without_special_symbols]{2 headword_with_symbols}{2 senses}.\par     \begin{center}\setlength\fboxsep{0pt}\setlength\fboxrule{0.5pt}\fbox{\includegraphics[height=6cm]{SomeJPGFile.jpg}}\\ \footnotesize {Caption}\end{center}     \index{Headword - Author of Photograph, Licence}}     \entry[3 headword_without_special_symbols]{3 headword_with_symbols}{senses}     \clearpage     \end{document}


title: Timestamp in document / pdf name

text: Let's assume my document is called `test.tex`. Instead of creating a `test.pdf` I would like to add a suffix date stamp to the filename, e.g. `test_2013_05_29` (`test_yyyy_mm_dd`). I am compiling with pdfLaTeX and I would like this to work both on Windows and on Mac.


title: How to see dependencies between theorems

text: I have a paper that uses `\label` for naming theorems, propositions and etc. We say that a theorem, proposition and etc X depends on the theorem, proposition and etc Y if Y is mentioned in the closest proof environment that goes right after X. I wonder if there exists a tool that takes my .tex source and builds a graph of dependencies between theorems, proposition and etc. **EDIT**. Requested by Andrew Here is a working example               \documentclass[12pt]{article}     \usepackage[left=2cm,right=2cm,     top=2cm,bottom=2cm,bindingoffset=0cm]{geometry}     \usepackage{amssymb,amsmath}     \usepackage[utf8]{inputenc}      \usepackage[matrix,arrow,curve]{xy}     \usepackage[russian]{babel}      \usepackage[final]{graphicx}      \usepackage{mathrsfs}               \newtheorem{theorem}{Theorem}[subsection]     \newtheorem{lemma}[theorem]{Lemma}     \newtheorem{proposition}[theorem]{Proposition}     \newtheorem{remark}[theorem]{Remark}     \newtheorem{corollary}[theorem]{Corollary}     \newtheorem{definition}[theorem]{Definition}     \newtheorem{example}[theorem]{Example}          \newenvironment{proof}{\par $\triangleleft$}{$\triangleright$}                    \begin{document}     \begin{proposition}\label{Prop1}     bla bla follows from bla     \end{proposition}     \begin{proof}     Obvious.     \end{proof}          \begin{theorem}\label{Prop2}     bla bla bla follows from bla bla     \end{theorem}     \begin{proof} Apply \ref{Prop1}, the rest is clear     \end{proof}          \begin{remark}\label{Rem1} % remarks have no proofs, so they shouldn't be parsed     \ref{Prop2} is harder than \ref{Prop1}.     \end{remark}          \end{document}      The output should be in format of Graphviz (or anything else publicly avaliable).


title: Is there a software in Ubuntu that can analyse the cross references (theorems, lemmas, equations, etc.) in a tex project?

text: There are some software to analyse the cross references among codes (Java or C++). I used to use a software for code analysis under Windows many years before. But I can't remember the name. On linux, an example might be LXR Cross Referencer. Is there a similar tool that can analyse the latex files to find out the cross references of theorems, lemmas, propositions and equations?


title: GNUplot and LaTeX (linestyles)

text: I've just started using GNUplot to create graphs. I've been using the epslatex terminal and my issue is, when I create my graph in the wxt terminal, and then replot it in the epslatex terminal, the linestyle changes, even if I never explicitly specified a linestyle. Basically, in the wxt terminal, then curve is solid; however, in the epslatex terminal, the curve is dashed. I read somewhere that changing terminals can give different linestlyes, and that one is supposed to issue the command 'test' to see the various styles; however, when I try to do 'test' in the epslatex terminal, it tells me that "epslatex terminal cannot write to standard output" (which makes sense I guess). I'm just wondering where I can find what the different linestlyes correspond to in the epslatex terminal. Also, as a bit of a sub-question, I'm wondering if my approach is any good... To create the graphs, I create it the epslatex terminal, then I convert the eps file to a pdf file so that I can use pdflatex. Is there a better way to do this (perhaps GNUplot can create the pdf for me)?


title: How to install dictionaries in Excalibur?

text: When installing MacTeX it comes with a LaTeX spell checker, Excalibur. The homepage has links to download dictionaries in different languages: I'm interested in the Spanish one. My problem is that Excalibur doesn't recognize it as a dictionary. Does anyone have an idea about how to fix this?


title: Numbering of chapters and sections

text: I am writing my master thesis. I just started working on LaTeX. I am writing the first chapter. I used `\chapter{Introduction}`, but when I make a section using `\section{abcd}`, the section number is 0.2 even though the chapter number is 1. I want the section numbers to be "chapter number"."Section number" (e.g., 1.1 for the first section of first chapter). My code:               \documentclass[12pt,a4paper]{report}       \usepackage{graphicx}     \usepackage[margin=1in]{geometry}     \begin{document}     \begin{abstract}     \end{abstract}          \tableofcontents     \listoffigures     \listoftables          \chapter{introduction}     here goes my text......     \section{motivation}          \chapter{background}  % corrected typo: \chatper{background}          \end{document}      I want the chapter number to be 1 for the first chapter not 0, and the section number for the first section of first chapter to be 1.1.


title: ConTeXt mkiv: Footnote inside tabulation

text: I need to include a `\footnote` inside a `tabulation` environment. I adapted the example from ConTeXt wiki, but at compiling the content between `\starttabulatehead` and `\stoptabulatehead` doesn't show up and the content appears aligned to the left:               \starttext     \placetable[here]{Tabla.}     {\startlocalfootnotes\placelegend     {\starttabulatehead     \NC A \NC B \SR     \stoptabulatehead}     {\starttabulate[|l|l|]     \NC C\footnote{Nota al pie.} \NC D \NR     \stoptabulate}     {\placelocalfootnotes}     \stoplocalfootnotes}     \stoptext      Am I missing something here? Thanks!


title: Catchwords: Print first word from next page at bottom of current page

text: I would like to typeset catchwords. That is, I would like to put a “preview” of the next page’s first word at the bottom of every page. An example taken from the Wikipedia page linked above:   ![catchword](http://upload.wikimedia.org/wikipedia/commons/thumb/e/e4/Brevis_Commentarivs%2Cp15.png/405px- Brevis_Commentarivs%2Cp15.png) The next page begins with the word (actually word fragment in this particular case) “dos”, and so that word is typeset flush right just below the text- block. (How) can this be done with TeX?


title: Adding colours at the header and footer and reducing the box size of the header

text: I am new to the Latex. I have tried my hand on this in developing a document with the header and footer. I almost succeeded with the google resources plus this forum. But still I need to fix two issues, please help me with that.   * To add a maroon color in the header and footer box.   * To reduce the box size of the header  Below is the code, please guide me.               \documentclass{article}     \usepackage{lipsum}%% a garbage package you don't need except to create examples.     \usepackage{tikz}     \usetikzlibrary{calc}     \usepackage{lastpage}     \usepackage{fancyhdr}     \pagestyle{fancy}     \usepackage{calc}     \renewcommand{\headrulewidth}{0pt}     \newlength{\fminilength}%     \setlength{\fminilength}{\textwidth-2\fboxsep-2\fboxrule}%     \pagestyle{fancy}          \lhead{\noindent\fbox{%         \begin{minipage}{\fminilength}%           \ttfamily\upshape box upto end of this text \hfill          \end{minipage}%       }}     \renewcommand{\headrulewidth}{0.4 pt}            \lfoot{\noindent\fbox{%         \begin{minipage}{\fminilength}%           \ttfamily\upshape Wireless networking \hfill \thepage\ of \pageref{LastPage}         \end{minipage}%       }}     \cfoot{}          \renewcommand{\footrulewidth}{0.4pt}          \begin{document}                    \lipsum[1]          \end{document}      below is the image to describe the expecting output; !![enter image description here](http://i.stack.imgur.com/9CZwV.jpg)


title: Tikz legend cannot be added?

text: I thought I can add a legend to a `tikz` picture by `\addlegendentry{...}`. But as soon as I uncomment the command the compiler complains about missing `}`. But when I comment the lines again, then it works. Could somebody give me a hint, why the legend doesn't work?               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{arrows, intersections}     \usepackage{pgfplots}      \pgfplotsset{compat=newest}       \pgfplotsset{plot coordinates/math parser=false}     %from matlab2tikz        \newlength\figureheight        \newlength\figurewidth                \begin{document}     Sample plot with out legend?          \begin{figure}                    \setlength\figureheight{2cm}             \setlength\figurewidth{2.7cm}                     {                \begin{tikzpicture}[font=\tiny]     \begin{axis}[%     width=\figurewidth,     height=\figureheight,     scale only axis,     xmin=1,     xmax=20,     ymin=0,     ymax=2,     title={Sample time series},      legend style={draw=black,fill=white,legend cell align=left}     ]     \addplot [color=blue,solid,forget plot]       table[row sep=crcr]{1 1\\     2       1\\     3       1\\     4       1\\     5       1\\     6       1\\     7       1\\     8       1\\     9       1\\     10      2\\     11      1\\     12      1.5\\     13      0\\     14      1\\     15      1\\     16      1\\     17      1\\     18      1\\     19      1\\     20      1\\     };     \addplot [color=green,dashed ,forget plot]       table[row sep=crcr]{8 0\\       8 2\\       10 2\\       10 0\\     };     %\addlegendentry{Window size=2};     \addplot [color=violet,densely dotted ,forget plot]       table[row sep=crcr]{10.5 0\\       10.5 2\\       15.5 2\\       15.5 0\\     };     %\addlegendentry{Window size=5};     \end{axis}     \end{tikzpicture}%                              }          \end{figure}      \end{document}


title: Using commas in mathematical formulas

text: I need write some formula, but I don't know how to arrange the comma's place.               $p,\ q\in N$, blabla $0<a,\ b<1$ blabla $i,\ j=1,\ 2,\ \dots,\ n$      or               $p,\;q\in N$, blabla $0<a,\;b<1$ blabla $i,\;j=1,\;2,\;\dots,\;n$      or               $p$, $q\in N$, blabla $0<a$, $b<1$ blabla $i$, $j=1$, 2$, $\dots$, $n$      or               $p$,~q\in N$, blabla $0<a$,~$b<1$ blabla $i$,~$j=1$,~$2$,~$\dots$,~$n$      which one is more acceptable?


title: Align an equation and a tikz picture with anchor and baseline

text: I'm trying to get the math part the equation to be centered with the tikz picture:               \begin{equation}       \mathcal{G} =        \begin{tikzpicture}[]         \tikzstyle{vertex}=[anchor=base,baseline,         circle,fill=black!25,minimum size=18pt,inner sep=2pt]         \node[vertex] (G1) at (0,0)   {1};         \node[vertex] (G2) at (1,0)   {2};         \node[vertex] (G3) at (1,1)   {3};         \node[vertex] (G4) at (0,1)   {4};         \draw (G1) -- (G2) -- (G3) -- (G4) -- (G1) -- cycle;       \end{tikzpicture}     \end{equation}      But instead it places it on an even baseline: ![enter image description here](http://i.stack.imgur.com/xtdym.png) My attempts at the tikz portion come from the related questions: Common baseline in TikZ and Mathmode How to align a series of TikZ pictures at the baseline I think I'm misunderstanding the syntax between `\tikz` `\node`, `\tikzpicture` and `\tikzstyle`. What do I change to align the tikz picture without adjusting the raw coordinates?


title: Appendix section in beamer with handout mode

text: I want to make a presentation and add some slides at the end as an appendix. The normal slides should have transitions "<+->", but the appendix ones should be like handout. Is there an easy way to do this?


title: Biblatex / MLA for official reports and websites

text: I'm writing an thesis in British architecture and I need to follow the MLA style for bibliography. I'm now using `biblatex` and `biblatex-mla`; but I can't find out how to define official reports (published by gov., commissions, associations, ...) or and web sites references (when it's not an article but just from the main website) I can't find any clue in the two documentations. EDIT: `biblatex-mla` adds restrictions to `biblatex`, so `@misc`, `@online` and `@report` are not written in the output file


> **Possible Duplicate:**   >  change font of certain part of the text My problem is exactly that. I need to change the font to computer modern for one word.


title: How do I use a particular font for a small section of text in my document?

text: The standard font packages make global changes to the fonts in my document. What if I want to use a particular font for just a portion of my text?   1. How do I find the right name of the font?   2. How do I select the font?   3. How do I restrict the scope of the font change? * * * There are separate answers for different flavors of TeX (quick links):   * Regular LaTeX (including pdfLaTeX)   * XeLaTeX and LuaLaTeX   * ConTeXt MkIV


title: How to apply specific source in single piece?

text: > **Possible Duplicate:**   >  How do I use a particular font for a small section of text in my document? > **Possible Duplicate:**   >  change font of certain part of the text I need to use the font Sans PT Caption only a snippet of text. How do I do that?


title: How to change font without changing document font

text: Surely this is easy, but I'm just beginning. I've created a font and I want to change "My Words Here" without modifying the document font for the rest of the page. I'm sure I just have the syntax wrong. How do I fix it?               \newfontface\Gentium{Gentium}          \begin{Gentium}     \begin{center}     \begin{huge}     \textsc{My Words Here}     \end{huge}     \end{center}     \end{Gentium}


title: Use downloaded font in LaTeX

text: I have downloaded some original fonts from Adobe (Helvetica, Times and others), they are all otf, I installed them on Windows and I can use them with no problem with Indesign and other softwares. However I am now trying to use them in LaTeX (I am a beginner) with no success. In particular I load the package helvet for example, but it is used a font that resembles helvetica, but is not helvetica. Since I have the original one, I'd like to use it. So, how to make LaTeX recognize and use my otf? Do I have to set them up manually or is there a package that can do it?


title: Change from Times New Roman to Arial

text: **pr.** 3 sg. _bhavati_. 3 pl. _bhavanti_ I am using Times New Roman as the main font in a XeLaTeX doc, wherein lines like the previous occur. But after some discussion, I now need to put just some characters in Arial (and not a paragraph). In the specimen above, e.g., just "3 sg." and "3 pl." would now need to be in Arial. How do I change those already in Times new Roman into Arial? And how do I newly write such characters in Arial?


title: Sans serif fonts in block headers while using another package

text: I'm brand new to TeX and am making my first `beamerposter`. I'm using XeLaTeX and I like the package `pxfonts` for the math and the body text. However, I'd like to have sans serif text in the block headers, and I don't like the default sans serif font that results from the `pxfonts` package. Can someone explain to me, in simple terms, why I cannot use the package `fontspec` to modify the sans serif font after I have loaded `pxfonts`? And what should I use instead? Consider the code below. How can I change the font of the sans-serif part while keeping the first paragraph and the equation as they currently appear?               \documentclass[11pt]{article}     \usepackage[english]{babel}     \usepackage{blindtext}     \usepackage{pxfonts}          \begin{document}     \blindtext          \[     \int_0^1 x^2 \, dx = 1/3     \]          \sffamily \blindtext %This is the text whose font I wish to change to something already loaded on my computer.     \end{document}      ![mwe](http://i.stack.imgur.com/bnAhC.png)


title: How can I change font?

text: How can I change font just only for one word ? I have to use Segoe WP Semibold for some words in my document.


title: Package "comicsans": How to prevent setting of default fonts

text: I'm using the comicsans package and I noticed that it automatically changes a lot of default fonts to comics. I was wondering if there is some command to restore everything to the default fonts? I've already tried               \renewcommand{\rmdefault}{cmr}      The problem is the comicsans package change a lot of font families, so I would like to avoid setting everything manually to the right font (actually I don't which are the default fonts for book document) and use comic font only for few paragraph where it is needed.


title: Environment to use locally the Skeetch font

text: > **Possible Duplicate:**   >  How do I use a particular font for a small section of text in my document? For pedagogical reasons, I would like to produce exercises using a text displayed like if it was written by hand. The following LaTeX font looks good for me : http://www.tug.dk/FontCatalogue/skeetch/ . My problem is to define one environment to use locally this font on one Mac OS that uses TeX Live. How can I do that?


title: Change font in a single paragraph

text: > **Duplicate:**   >  How do I use a particular font for a small section of text in my document? How is it possible to use a new font for just a single section of a document and switch back to the original font after that paragraph? I have:               \fontfamily{ppl}\selectfont      Which works fine for part way through a document changing the font. But how do I revert back?


title: Using a font for selected text

text: > **Possible Duplicate:**   >  How do I use a particular font for a small section of text in my document? How can I use the `chancery` font for only selected text instead of the whole document?


title: How to apply a sentence with the typeface of "Times New Roman"

text: Today,I design a paper cover,some English word need to use the typeface of "Times New Roman" while other English sentence need to use other typeface. My trial               \documentclass[a4paper,UTF8,winfont]{ctexart}     \usepackage[top=2.8cm, bottom=2.5cm, left=1cm, right=1cm]{geometry}     \usepackage{setspace}     \usepackage{amsmath}     \usepackage{times}     \usepackage{mathptmx}     \begin{document}      \title{Simulation of a SCARA robot with PD and learning controllers}      \section{PD controller}     \end{document}      However,the `\usepackage{times}` apply all english sentence to the typeface of "Times New Roman".Here,I encounted a problem,but I don't know how to solve it?Cab some help me?Thanks sincerely!


title: Why can't I use some TrueType fonts in ConTeXt while others can?

text: Today, After reading the chapters about typography and fonts in the reference manual, I tried to define my own `typescript`. After `mtxrun --script fonts --reload`, I wrote the codes like this:                   % century.ttf in C:\Windows\Fonts         \starttypescript[serif][centuryfont][name]         \definefontsynonym[Serif][century]         \stoptypescript         \definetypeface[newfont][rm][serif][centuryfont][default]         \setupbodyfont[newfont,12pt]         \starttext          ...         \stoptext      It is so small, but only to test my usderstanding. When it succeeded, I changed the `century` in the third line to `palatinolinotyperoman` which could be searched by `mtxrun --script fonts --list --all --pattern=pala*`. Sadly, this font(pala.ttf) cannot be loaded. I don't know why :-(


title: How can I temporarily type a text with different font that defined in the style file?

text: For example, I've written a text, and in the somewhere of there I wanna use different font size, font type, color etc. Or in another way, hown can I change my font temporarily within the text ?


title: How to show my plan after each part (\part)? (memoir class)

text: In the first page of my document a table of content is displayed. However, I would like to show a plan after each `\part` 's title. I don't have the slightest idea how to do it. Should I use `\tableofcontents` again ?               \documentclass{memoir}          \begin{document}     \tableofcontents     \part{Part ONE}     %HERE : show ONLY the plan iof the part ONE, that is to say chapter one + its section and Chapter two          \chapter{Chapter ONE of PART ONE}     \section{Section}     \chapter{Chapter TWO of PART ONE}          \part{Part TWO}          %HERE : show ONLY the plan iof the part TWO, that is to say chapter one + its section and Chapter two     \chapter{Chapter ONE of PART TWO}     \section{Section}     \chapter{Chapter TWO of PART TWO}     \end{document}      Thanks


title: Text underneath text in same table cell

text: In my table, i want the "2" to go right under the "1" in the same cell, how do I do that? here is my code               \begin{center}     \begin{tabular}{ | p{1cm} | p{1,5cm} | p{1,5cm} | p{1,5 cm} | p{8,3cm} |}     \hline     \textbf{Uge} & \textbf{Speciel dato} & \textbf{ugedag} & \textbf{Antal blokke} & \textbf{Aktivitet} \\ \hline \hline     12 & 17/3 & Tirsdag Torsdag & 1 2 & Text \\ \hline     13 & 9C & 19C & Text & Text \\ \hline     14 & 10C & 21C & Text & Text \\     \hline     \end{tabular}      \end{center}


title: Why does my conference/university require me to use dvi intermediary format?

text: What for? I thought pdfLaTeX was simpler and eliminated useless steps as well as possible font issues? In other words what is the difference between a pdf generated using the LaTeX command and dvi's and the one generated using the pdfLaTeX command? EDIT #1 : As an example, for the submission of an electronical thesis, my university requires the .tex file and all the associated files which are required to compile it AND a .dvi file. It's in french but here it is anyways : > LaTeX > > Forme du mémoire ou de la thèse > > Lorsque le mémoire ou la thèse a été rédigé à l'aide de LaTeX, il faut > acheminer à la Faculté des études supérieures le fichier .tex avec tout > autre document nécessaire à sa compilation (images, fichiers de > bibliographie, fichiers d'index, etc.) et le fichier DVI. Pour acheminer le > mémoire ou la thèse, il est recommandé d'utiliser un format de fichier > compressé. From the official webpage. EDIT #2 : Further research shows that Jukka Suomela's answer is right. Here is what is listed on the webpage of a conference I am writing for (right after the part that explains how to compile successfully through dvi-ps-pdf) : > Another alternative is to use the pdflatex (pdftex) program instead of > straight LaTeX or TeX. This program avoids the Type 3 font problem, however > you must ensure that all of the fonts are embedded (the pdffonts utility > mentioned above will yield this information). If they are not, you need to > configure pdftex to use a font map file that specifies that the fonts be > embedded. Also you should ensure that images are not downsampled or > otherwise compressed in a lossy way. **If you are knowledgeable about how > pdflatex deals with included images and how to ensure that they are not > compressed or downsampled, please email us at submissions@vgtc.org so that > we might improve our support for this program.** Funny.


title: Question about code for tables

text: I have been trying to understand why my code won't produce a table:                 \begin{enumerate}[label=\bfseries Exercise \arabic*:]       \item 5 + 7 = 12       \item 9 + 1 = 10       \item 2 * 2 = 4       \end{enumerate}      I have tried using the $ sign, but unfortunately I have no idea why I'm not getting a table. What am I missing/doing incorrectly?


title: How to generate postscript files from LaTeX pictures, with correct dimensions?

text: I have a document containing, among other things, some figures created using the `picture` environment. Now I need to create a postscript file for each figure, but if I simply copy them into otherwise blank documents, each one will take up an entire page. For example, if I have               ...     \setlength{\unitlength}{1in}     \begin{picture}(3.14,2.71)       %Draw things     \end{picture}     ...      then I would like to create a .PS file that is 3.14x2.71 inches and which contains nothing but this drawing. I should be able to change my `picture` environment above to an `\includegraphics` command that loads the new file, and have it make zero change to the document that is output. > What's the best way to create a postscript file from a LaTeX-drawn `picture` > with the same dimensions as the original?


title: What do these font-shape warnings mean?

text: When I am compiling my document with pdflatex I get the following errors:               LaTeX Font Warning: Font shape `OT1/cmr/m/n' in size <5.5> not available     (Font)              size <5> substituted on input line 50.               LaTeX Font Warning: Font shape `OML/cmm/m/it' in size <5.5> not available     (Font)              size <5> substituted on input line 50.               LaTeX Font Warning: Font shape `OMS/cmsy/m/n' in size <5.5> not available     (Font)              size <5> substituted on input line 50.      What do these warnings exactly mean? The area where I think they are coming from is enclosed with `{\fontsize{11}{12}\selectfont }`. Also, the line number seems to be the place where a macro is called, and not the place in the macro where this is occuring. How can I fix these warnings?


title: pstool not working with grffile

text: An error report regarding my template and pstool not working made me look at the problem which seems to be a principle problem of pstool together with grffile I created a matlabfraq file using               figure(1), clf;     plot([1 2]);     ylabel('A straight line');     matlabfrag('testpic');      (can I attach these files here?) If I load this using the following code               \documentclass{minimal}     \usepackage[extendedchars, encoding, multidot, space,filenameencoding=latin1]{grffile}     \usepackage[crop=pdfcrop]{pstool}          \begin{document}     \psfragfig*{images/pstool/testpic}{}     \end{document}      it fails because of `grffile`. In the file `testpic-pstool.tex` the code               \csname @input\endcsname {images/pstool/testpic.tex}      \includegraphics [] {testpic}      fails with               Package grffile Info: \Gin@ii of package `graphicx' fixed on input line 15.     (./images/pstool/testpic.tex)          ! LaTeX Error: File `testpic' not found.      What is causing this error?


title: Apéndices (Appendix spanish accent)

text: Dear friends: there is a problem with appendix and ápendice. I have a `scrbook` document and I use appendix package,               \usepackage[title, titletoc]{appendix}       because I like the word "Apéndice" in the `toc`               \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}      However, when I compile with `latex` there is an error in `file.toc` (maybe in `file.aux` before). The reason is that in the `file.aux` there is a line like this:               \@writefile{toc}{\contentsline {chapter}{Ap\IeC {\'e}ndice \numberline {A}Sobre el \LaTeX  }{27}{ApÈndice.1.Alph1}}      and in the second compilation the character "È" produces and error. If I compile with `lualatex` I have not any error. I have tried to modify `\indexname`, `\@chapapp` but I can not find any solution. * * * Yes, that is a solution. I am going to clarify the problem with a MWE. In my opinion the problem is motivated by UTF-8 codify and `inputenc` package, as it is possible to see with this code:               \documentclass[paper=a4,10pt, twoside]{scrbook}%          \usepackage{etoolbox}          \usepackage{tgheros}    % (Una versión libre de Helvetica)     \renewcommand{\sfdefault}{qhv} %qhv          %:Fuente para todo lo demás (Una versión libre de Times)     \renewcommand{\rmdefault}{qtm}     \usepackage{textcomp}     \normalfont          \usepackage[T1]{fontenc}             \usepackage[utf8]{inputenc} %para LaTex           %:Paquetes relacionados con el idioma y codificación     \usepackage[english, spanish, es-nosectiondot, es-noindentfirst, es-nolists, activeacute]{babel}      \spanishdecimal{.}          %:Para poner las referencias y los nombres de figuras y tablas en castellano     \addto\captionsspanish     {%     \def\figurename{Figura}%     \def\tablename{Tabla}%     \def\listfigurename{Índice de Figuras}     \def\listtablename{Índice de Tablas}     \def\contentsname{Índice}%     \def\chaptername{Capítulo}     \def\Agradecimientos{Agradecimientos}     \def\Prefacename{Prefacio}%     \def\refname{Referencias}%     \def\abstractname{Resumen}%     \def\bibname{{Bibliografía}}     \def\appendixname{Apéndice}     \def\miapendice{\appendixname}     \def\glossaryname{Glosario}%     \def\indexname{{Índice Alfabético}}     }          %:Para definir APÉNDICES     \usepackage[title, titletoc]{appendix}          \usepackage{hyperref}           \begin{document}          \cleardoublepage     \phantomsection     \tableofcontents          %:Empieza el contenido del libro     \mainmatter          \chapter{Primer capítulo}     \section{Primera sección, primer capítulo}          \chapter{Segundo capítulo}     \section{Primera sección, segundo capítulo}          \begin{appendices}          \chapter{Primer apéndice}     \section{Primera sección, primer apéndice}          \chapter{Segundo apéndice}     \section{Primera sección, segundo apéndice}          \end{appendices}          \end{document}      If you compile, you obtain this error message: > Package inputenc Error: Unicode char \u8:énd not set up for use with La- > TeXSee the inputenc package documentation for explanation.Your command was > ignored.Type I to replace it with another command,or to continue without > it.ice.alph1.Alph11ice.alph1.Alph20P But the solution proposed it is perfect. Thank you


title: Box around single element in list

text: Is there any way in latex to create a simple box around one item in a list? I tried both `\framebox`, and `\fbox`, none of them worked               \begin{enumerate}[label=\Alph*),ref=\Alph*]     {\color{red}\item null.}      \item lik vektdifferansen $GT - GK$.     \item lik vektsummen $GT + GK$.     \item lik vekten av $K$.     \end{enumerate}      Works, but               \begin{enumerate}[label=\Alph*),ref=\Alph*]          {\color{red}  \fbox{ \item null.} }           \item lik vektdifferansen $GT - GK$.     \item lik vektsummen $GT + GK$.     \item lik vekten av $K$.     \end{enumerate}      Does not. So yeah, any way to box a single entry in a list?


title: Can we use LaTeX to make the following figures?

text: I am new to this forum and a very new user of LaTeX. So the question may be very naive. Sorry for this. I truly appreciate your help. I have no idea where to begin. How can I make the following figures with LaTeX?   1. Figure 1 on the web-page http://www.engsc.ac.uk/learning-and-teaching-theory-guide/constructive-alignment   2. Last figure on the page: http://sydney.edu.au/education_social_work/groupwork/docs/ConstructiveAlignment.pdf   3. The figure, circular figure, on the web-page  http://www.cityu.edu.hk/edo/obtl/elearn_tool/p8.htm


title: How to abbreviate journal name in citation

text: I'm writing my research proposal and my supervisor wants me to abbreviate the journal name (and remove part of the month from the publication date). How can I achieve that? _Edit:_ I am using BibTeX and my .bib file holds the full journal name. I writing using Emacs on an Arch Linux machine. I don't really mind switching to other LaTeX format but I don't know anything about them.


title: Zooming on a data set in a picture (magnifying glass)

text: In my TeX document I would like to add a picture and in addition, zooming on a small part of the picture (e.g. inset in TeX or spy in TikZ). My question, I have a histogram 2D (f(x,y) = z) date which I created from it a picture. I would like to know how could I create in TeX, something like spy or magnifying glass from a picture or raw data? For example, I found in tikz spy library with pgfplots: opacity and grid nice example, but the person there uses `\addplot` and I would like to create histogram plot of my own data. Is it possible to create 2D histogram in TikZ? **EDIT** here is an example of a 2D histogram that i would like to create: ![2d histogram](http://i.stack.imgur.com/VYQIQ.png)


title: TikZ - circle split ignore empty parts

text: This has already been asked at TikZ: Removing the inner line of circle split, rectangle split, etc., but not answered for circles: How can I remove the split line in a picture where               every node/.style={circle split}      There is no such key as `circle split ignore empty parts` and I haven't found anything in the manual. Is there any workaround?


title: Styled or fixed color line-segments in PGF

text: When I want to plot coordinate data, I know that I can color individual scatter points using defined colors using `point meta=explicit`. The line segments between two points seem to be colored by an averaged color of the two endpoints. 1) Can I force the color of the line segments to be either the same as the start or endpoints (rather than an averaged color) 2) For black/white plots different gray shades are sometimes hard to distinguish. Is it possible to give the line segments individual styles (i.e. dashed, dotted). Some background: I want to plot a decreasing curve where different segments represent different phases that need to be distinguishable.


title: Why does pgfplots plot functions only until x = 5 and y = 5?

text: Why does pgfplots plot functions only until x = 5 and y = 5, but not any further? ![enter image description here](http://i.stack.imgur.com/xJjCC.jpg)               \documentclass{article}          \usepackage{tikz}     \usepackage{pgfplots}          %%%<     \usepackage[active,tightpage]{preview}     \PreviewEnvironment{tikzpicture}     \setlength\PreviewBorder{5pt}     %%%>          \begin{document}     \begin{tikzpicture}     \begin{axis}[samples=100,ymin=0,ymax=10,xmin=0,xmax=20]          \addplot [thick] plot  (\x,  {1/(1 + exp(-0.6*(\x - 12)))});     \addplot plot (\x, {\x});          \end{axis}     \end{tikzpicture}     \end{document}


title: Redefine table caption

text: I'm writing a paper in IEEEtran twocolumn format. When putting pictures in my paper I prefer to use the Table environment over the Figure environment. I feel that the Table environment does a better Job of placing the images in the paper where I want them to go. The issue is under all my images they say TABLE [roman numeral]. Is there a way to redefine in the header what the \caption command displays? I would like to keep using the Table environment but I want it to read, Figure #:


title: Redefinition of page size fails

text: Hans has coded a nice little piece of TeX that generates the back of QSL cards (cards sent from one Ham operator to another validating the previous contact made between them). Hans' code prints on paper cards, but I'd very much like to print them on my shiny new Brother Q-Touch Label printer which uses 62mm wide "endless" strips of adhesive paper. Sadly, I can't seem to reach Hans so I need to ask you. I have tried adjusting some of the page-size definitions but the layout completely falls apart. Could someone be so kind and help me in adjusting the page size of the output so that it fits on a piece of paper 62mm wide? Feel free to move the "Vy 73..." line or discard it, I can very well manually write that when I sign the card anyway. Here's Hans' code so you don't have to copy and paste it yourself (all credits to Hans, https://github.com/zem/):               \ProvidesClass{pqsl}     \LoadClassWithOptions{article}          \pagestyle{empty}     \usepackage{graphicx}     \usepackage{amsmath}     %\usepackage{fontspec}     \usepackage[papersize={14.8cm,10.5cm}, margin=0.0cm, marginratio=1:1]{geometry}               \setlength{\parindent}{0cm}          \newcommand\MYPIC[1]{\newcommand{\@MYPIC}{#1}}     \newcommand\MYHAMORGPIC[1]{\newcommand{\@MYHAMORGPIC}{#1}}     \newcommand\MYHAMORGNAME[1]{\newcommand{\@MYHAMORGNAME}{#1}}     \newcommand\MYCALL[1]{\newcommand{\@MYCALL}{#1}}     \newcommand\MYNAME[1]{\newcommand{\@MYNAME}{#1}}     \newcommand\MYQTH[1]{\newcommand{\@MYQTH}{#1}}     \newcommand\MYMAIDEN[1]{\newcommand{\@MYMAIDEN}{#1}}               \newcommand{\@CALL}{}     \newcommand{\@VIA}{}     \newcommand{\@DATE}{}     \newcommand{\@TIME}{}     \newcommand{\@BAND}{}     \newcommand{\@MODE}{}     \newcommand{\@RST}{}          \newcommand{\@qslcardback}[7][]{         \newpage         \renewcommand{\@CALL}{#1}         \renewcommand{\@VIA}{#2}         \renewcommand{\@DATE}{#3}         \renewcommand{\@TIME}{#4}         \renewcommand{\@BAND}{#5}         \renewcommand{\@MODE}{#6}         \renewcommand{\@RST}{#7}              \ \vspace{0.5cm}              \hspace{0.5cm}         %%%BEGIN left upper Minipage with MYCALL and locator         \begin{minipage}{5.2cm}              {\Huge \textbf{\@MYCALL}}              \smallskip         \@MYNAME \\         \@MYQTH \\         \@MYMAIDEN         \end{minipage}         %%%END left upper Minipage with MYCALL and locator         %%% BEGIN Centered upper Minipage with hamorgpic         \begin{minipage}{2cm}         \centering \includegraphics[width=1cm]{\@MYHAMORGPIC}              \footnotesize \@MYHAMORGNAME         \end{minipage}         %%% END centered upper Minipage with hamorgpic         \hfill         %%%BEGIN Right upper Minipage with QSO and Via Fields          \begin{minipage}{5.5cm} % very ugly hack with \vphantom ;)         \framebox[5.5cm][l]{\scriptsize QSO WITH: \vphantom{$\rule[-1mm]{0mm}{6mm}$} \bf \Large{\@CALL}}         \smallskip         \framebox[5.5cm][l]{\scriptsize VIA:\hspace{10mm} \vphantom{$\rule[-1mm]{0mm}{6mm}$} \bf \Large{\@VIA}}         \end{minipage}         %%%END Right upper Minipage with QSO and Via Fields          \hspace{0.5cm}              \vspace{1.5cm}              \hspace{0.5cm}I am pleased to confirm the following QSO:         \topsep3pt         \begin{center}         \begin{tabular}{|c|c|c|c|c|c|}         \hline         \bf\quad Date (Y-M-D) \quad & \bf\ Time (UTC)\ &\bf\quad Band\quad&\bf\ Mode\ &\bf\ RST\bf\ \\         \hline         \hline         \vphantom{$\dfrac b b$}\bf \@DATE & \bf \@TIME & \bf \@BAND & \bf \@MODE & \bf \@RST \\         \hline         \end{tabular}              \smallskip              \end{center}              \vspace{1cm}              \hspace{0.5cm}vy 73 de \makebox[3.5cm]{\dotfill}     }                    \newcommand{\@qslcardfront}[7][]{         \newpage         %That Hack with the Paperwith .799 is important to get an          % exact number of pics, the front needs to be smaller than          % the paper         % \paperwidth \paperheight         \includegraphics[width=14.799cm,height=10.499cm]{\@MYPIC}     }          \newcommand{\@qslcardbothsides}[7][]{         \@qslcardfront[#1]{#2}{#3}{#4}{#5}{#6}{#7}         \@qslcardback[#1]{#2}{#3}{#4}{#5}{#6}{#7}     }          \newcommand\qslcard\@qslcardbothsides               \DeclareOption{front}{         \renewcommand\qslcard\@qslcardfront     }     \DeclareOption{back}{         \renewcommand\qslcard\@qslcardback     }     \ProcessOptions      Because I was asked, these are the solemn contents of the `.tex` file:               \documentclass[back]{pqsl}          \input{config}          \begin{document}     \input{contacts}     \end{document}


title: Print out contents of two .bib files

text: I have two .bib file with a selection of references in each. I would like to print out these references in the same document with diffeent section headings with the numbering of references in each section starting from 1. My first attempt is below: This gives the correct section headings but puts TEST1.bib references in both with no TEST2.bib references...Where am I going wrong? I am using TexMaker to compile.               \documentclass{article}     \usepackage{titlesec}     \usepackage{hyperref}     \usepackage{multibib}     \begin{document}     \nocite{*}     \begingroup     \section*{Section 1}     \renewcommand{\section}[2]{}     \bibliographystyle{plain}     \bibliography{TEST1}     \endgroup     \begingroup     \section*{Section 2}     \renewcommand{\section}[2]{}     \bibliographystyle{plain}     \bibliography{TEST2}     \endgroup     \end{document}


title: Cleaning my TeX-code

text: I've recently finished my first paper written in LaTeX. I've gone through the code and tried to clean up and make it more reasonable - this is quite a challenge. I don't want you to actually rearrange anything. But maybe it's possible to point out some flaws/things that could be done more efficiently and manageable? Here is my code.               \documentclass[a4paper,12pt]{article}     \usepackage[danish]{babel}     \usepackage[latin1]{inputenc}     \usepackage{lmodern}     \usepackage[T1]{fontenc}          \usepackage{tikz}     \usepackage{pgfplots}          \usepackage{graphics}     \usetikzlibrary{calc}                                    \usetikzlibrary{decorations.pathreplacing}               \makeatletter      \g@addto@macro     \@floatboxreset\centering      \makeatother               \usepackage{scrpage2}     \renewcommand{\headfont}{\itshape}     \pagestyle{scrplain}     \ohead[Frederik Hestvang, ØP Hold 1]{}     \cfoot[]{}     \ofoot[\pagemark]{}          \pagestyle{scrplain}          \usepackage[md]{titlesec}          \usepackage{changepage}     \usepackage{xcolor}     \usepackage{graphicx}     \usepackage{caption}     \usepackage[font=small, justification=justified, singlelinecheck=false]{caption}     \setlength{\topmargin}{-.3in}     \setlength{\textheight}{9.5in}     \setlength{\oddsidemargin}{-4ex}     \setlength{\textwidth}{6.7in}          \title{\vspace{-5ex}Obligatorisk opgave 2, x. september 2013.}          \date{\vspace{-5ex}}     \setlength{\abovecaptionskip}{0.5ex}          \begin{document}     \renewcommand{\labelitemi}{{\tiny$\bullet$}}          \maketitle          \vspace{-7ex}          \section{Opgave 1}     \subsection{}     \textcolor{black!40}{Tegn produktionsmulighedsområdet på ugebasis for henholdsvis Robinson     og Fredag. Beskriv hvad det angiver.}     \\     \begin{figure}[ht]     \begin{tikzpicture}     \begin{axis}[         scale only axis,         grid=major, grid style={dotted, black!30},         axis lines=middle,         inner axis line style={->},         xlabel={$Kartofler$},         ylabel={$Fisk$},         ytick={0,1,...,8},         xtick={0,1,...,8},         ymin=-0.5,         ymax=8,         xmin=-0.5,         xmax=8,     ]     \addplot[color=red,thick] coordinates { %ROBINSON                 (6, 0)                 (0, 6)             };             \addlegendentry{Robinson}     \addplot[color=blue,thick] coordinates { %FREDAG                 (3, 0)                 (0, 2)             };             \addlegendentry{Fredag}                  \addplot[color=black,thick, dotted] coordinates { %HÆLDNINGROB                 (2, 4)                 (3, 4)             };              \addplot[color=black,thick, dotted] coordinates { %HÆLDNINGROB                 (3, 4)                 (3, 3)              };              \addplot[color=black,thick, dotted] coordinates { %HÆLDNINGROB                 (1, 1.3)                 (2, 1.3)             };              \addplot[color=black,thick, dotted] coordinates { %HÆLDNINGROB                 (2, 1.3)                 (2, 0.66)              };          \node [right] at (axis cs:  3,  3.5) {$-1$};     \node [right] at (axis cs:  2,  1) {$-\frac{2}{3}$};          \end{axis}     \end{tikzpicture}     \end{figure}               \begin{adjustwidth}{1cm}{1cm}     Produktionsmulighedsområdet angiver mængden af de mulige forbrugskombinationer en agent eller et samfund har. Altså er det her den ramme, som Robinson og Fredag har, at sammensætte deres produktion af fisk og kartofler indenfor.     \end{adjustwidth}          \subsection{}     \textcolor{black!40}{Definér begrebet absolutte fordel og argumentér for hvem der har den     absolutte fordel i produktionen af henholdsvis fisk og kartofler?}          \begin{adjustwidth}{1cm}{1cm}     En producent siges at have absolut fordel i produktion af et gode, hvis denne har en højere produktivitet (produktion pr. tidsenhed) end den anden producent.     \     Robinson har den absolutte fordel for begge goder, da hans produktivitet for begge varer er højere end Fredags.     \end{adjustwidth}          \pagebreak               \subsection{}     \textcolor{black!40}{Definér begrebet alternativomkostninger og argumentér for hvilken     sammenhæng der er mellem produktionsmulighedsområdet (her menes vel transformationskurven?) og begrebet alternativomkostninger.}     \begin{adjustwidth}{1cm}{1cm}     Alternativomkostningen ved en handling er værdien af det bedste alternativ, som man må afgive for at gennemføre en handling.     Hældningen på transformationenskurven angiver alternativomkostningen målt i et gode, ved at producere en enhed mere af et andet gode.     \end{adjustwidth}          \subsection{}     \textcolor{black!40}{Definér begrebet komparativ fordel og argumentér for hvem der har     den komparative fordel i produktionen af henholdsvis fisk og kartofler. Hvordan     bør Robinson og Fredag specialisere sig ifølge Ricardos teori om komparative     fordele, hvis de skal opnå en gevinst ved at handle med hinanden?}     \begin{adjustwidth}{1cm}{1cm}     En producent siges at have komparativ fordel hvis denne har den laveste alternativomkostning ved produktionen af et gode.     \\     Robinsons alternativomkostninger er ens for både fisk og kartofler. Fredags alternativomkostning ved at producere 1 kilo kartofler mere er $\frac{2}{3}$ kilo kartofler, og dermed $\frac{3}{2}$ kilo fisk ved at producere 1 kilo kartofler mere (fordi alternativomkostningen mellem de to varer er reciprok). Altså har...     \begin{itemize}       \item \textbf{Robsinson den komparativ fordel i produktion af fisk: 1 kg/kartoffel}       \item \textbf{Fredag  komparative fordel i produktion af kartofler: $\frac{2}{3}$ kg/fisk}     \end{itemize}          \vspace{1ex}          \noindent Da det ikke er givet, om Robinson eller Fredag har nogle forbrugspræferencer, skal de specialsere sig fuldt, i den vare de har størst komparativ fordel i.      Når de handler, skal det være i intervallet mellem alternativomkostningerne, altså [$\frac{2}{3}$;1].     \\     De kan f.eks. handle 1 kg     \\     Robinson: 3 kg fisk giver 4 kg kartoffel.     \\     Fredag: 2 kg kartoffel giver 1.5 kg fisk               \begin{figure}[ht]     \begin{tikzpicture}     \begin{axis}[         scale only axis,         grid=major, grid style={dotted, black!30},         axis lines=middle,         inner axis line style={->},         xlabel={$Kartofler$},         ylabel={$Fisk$},         ytick={0,1,...,8},         xtick={0,1,...,8},         ymin=-0.5,         ymax=8,         xmin=-0.5,         xmax=8,     ]     \addplot[color=red,thick] coordinates { %ROBINSON                 (6, 0)                 (0, 6)             };             \addlegendentry{Robinson}     \addplot[color=blue,thick] coordinates { %FREDAG                 (3, 0)                 (0, 2)             };             \addlegendentry{Fredag}                  \addplot[color=blue,thick, mark=*] coordinates { %FREDAG                 (1.5, 1.5)                  };      \addplot[color=red,thick, mark=*] coordinates { %ROBINSON                 (4, 3)                  };          \end{axis}     \end{tikzpicture}     \end{figure}          \end{adjustwidth}          \end{document}


title: Change header to a single column style with the grid, gridleno package

text: I found this wonderful little package for double column LaTeX documents. I want to write a documentation for a database, which I've built up. The document will contain source code as well. My question is about the header. Is it possible to change the header to a "single column" style? The header should only contain the title, author and date. The first thing I've edited was the `\lecturenotename`. I changed it to my user defined purpose. It's clear, I assume I have to change the code in `gridleno.sty` or `grid.sty`. p.s. Are there packages which are more suitable for writing documentations?


title: Write/export envelope label to an external file

text: The following example was taken from documentation found at this url on page 4, figure 1.               \documentclass[12pt]{letter}     \usepackage[personalenvelope]{envlab}     \makelabels     \address{%     Joe Casanova\\1 Lambda Street\\Anyplace, NY 12345}     \signature{Joe}     \begin{document}     \begin{letter}{%     Mary McKeen\\2 Alpha Street\\Otherplace, NY 12346}     \opening{Dear Mary:}     I love only you     \closing{With love,}     \end{letter}     \end{document}      If Joe wishes to send his heartfelt message to his one and only, true love both electronically, and by post, would there be a way for him to have the envelope label exported to a separate file? The ideal workflow would be as follows:   1. Compose letter in .tex file (envelope labels are generated automatically therein)   2. Compile document, two .pdf files are generated, one is letter only, one is envelope   3. Attach letter only .pdf to email, send   4. Open letter only .pdf, print on appropriate paper   5. Open envelope only .pdf, print on envelope   6. Seal envelope, mail. Any comments/suggestions are greatly appreciated.


title: What is producing this blank page before the title?

text: After compiling the code below, I get a blank first page in my output (which is undesirable). I have no idea why I'm getting this blank page. Can someone help?               \documentclass[twoside,openany,a5paper,14pt]{memoir}     %\usepackage{hyperref}     \usepackage[brazilian]{babel}     \usepackage[utf8]{inputenc}     \usepackage{titlesec}          \fixpdflayout          % Chapter style     \makeatletter     \renewcommand{\@makechapterhead}[1]{%     \vspace*{50 pt}%     {\setlength{\parindent}{0pt} \raggedright \normalfont     \bfseries\Huge     \ifnum \value{secnumdepth}>1      \if@mainmatter\thechapter.\ \fi%     \fi     #1\par\nobreak\vspace{40 pt}}}          % Title style          \newlength\drop     \newcommand*{\titleGM}{%     \thispagestyle{empty}     \begingroup% Gentle Madness     \drop = 0.1\textheight     \vspace*{\baselineskip}     \vfill     \hbox{%       \hspace*{0.2\textwidth}%       \rule{1pt}{\dimexpr\textheight-28pt\relax}%       \hspace*{0.05\textwidth}%        \parbox[b]{0.75\textwidth}{%         \vbox{%           \vspace{\drop}           {\Huge\bfseries\raggedright\@title\par}\vskip2.37\baselineskip           {\Large\@author\par}           \vspace{0.5\textheight}         }% end of vbox       }% end of parbox     }% end of hbox     \vfill     \null     \endgroup}          \makeatother          \title{Seguir adiante}     \author{Jos\'e Rodrigues}     \date{}     \begin{document}     \pagenumbering{gobble}     \thispagestyle{empty}     \titleGM     \thispagestyle{empty}     \clearpage     \pagenumbering{arabic}          Test          \end{document}


title: error: pdflatex.exe: the memory dump file could not be found

text: I've seen this question on a closed post on this forum, but the answer given there does not solve my problem. I'm an unexperienced LaTeX user, using TeXnicCenter, and MikTeX 2.9 on 64-bit Windows 7. Whenever I try to compile a .tex file (also ones that used to work perfectly on my 32-bit Vista pc), I get the error               pdflatex.exe: the memory dump file could not be found.      I've already tried suggestions from other forums, like making sure there are no spaces in the path to MikTeX (i.e. not putting it in Program Files), but they don't solve the problem. Also one suggestion said to go to start-> all programs -> MikTeX 2.9 -> maintenance(admin) -> settings(admin) -> formats, then click the `pdflatex.exe` file and build it. Either I misunderstood the directions, or something is wrong in my MikTeX, because the formats list is empty. Also when I clicked the formats tab, it gave this error:               no formats.ini exists.      But when searching manually I did find this file in MiKTeX2.9/miktex/config.. Can someone please help me with this, thank you :)


title: Using TeX for writing papers on linguistics

text: I wish to write a paper about linguistics, so I thought about trying LaTeX. Sadly I couldn't figure out how to write the unique characters I need for my work, for example epsilon with a little tilde above it, i with two dots above it, velar nasal and so on. I know I can write stuff like ó with `\'{o}`, but I couldn't figure out how to put the epsilon in there, or how to write more unique characters.


title: Help me with alignment

text: Anyone can help me write a latex for this? ![enter image description here](http://i.stack.imgur.com/QTrEC.jpg) Except there should be no space between the letters because they are one word (ex. no space between d,e,and f). Thank you for your help!


title: Ignore \extrarowheight for \cases

text: I'm using `\extrarowheight` (in combination with `booktabs`) to make the tables in my thesis more readable. However, this also affects the layout of the `cases` environment, which now look strange; in the following example, the `X` is placed too far down now.               \documentclass{article}          \usepackage{amsmath}     \usepackage{tabularx}     \usepackage{booktabs}          \setlength{\extrarowheight}{4pt}     \setlength{\belowrulesep}{0pt}          \begin{document}         \[         a = \begin{cases}                 X \\                 Y             \end{cases}         \]              \begin{tabular}{llll}\toprule         $a^b$ & $a_b$ & $a$ & $b$ \\ \midrule         a & b & c & d \\         \bottomrule          \end{tabular}     \end{document}      ![enter image description here](http://i.stack.imgur.com/WHgnt.png) Is there any way to ignore the `\extrarowheight` in the `cases` environment? I guess there is some `\renewcommand` magic that can do this, but I'm not if that's the right way to go, let alone where I would start... I also realize that I could reset `\extrarowheight` to `0` before the `\cases` and set it again afterwards, but my DRY alarm tells me not to `;)`.


title: Bibliography: cleanest way (no bib encoding!) to add URLs and their related info?

text: I use LaTeX for writing my thesis and I'm trying to come up with a clean and elegant bibliography format for web page references. I've been searching and trying different things for hours, but none work the way I want, and if they do it seems too hackish. I can't believe there is no easy and elegant way to do this (it seems to be a pretty standard requirement in the Web 2.0 world??). Basically, I'm using the memoir class together with the plainnat bib style (I can switch to something else if that can do what I want):   MWE:               \documentclass[twoside,a4paper,10pt]{memoir}     \usepackage{natbib}     \bibliographystyle{plainnat}          \begin{document}     Ref 1: \citep{wiki:test}     \bibliography{library}        \end{document}      Bib:               @misc{ wiki:test,        author = "Wikipedia",        title = "Plagiarism --- {W}ikipedia{,} The Free Encyclopedia",        year = "2004",        url = "\url{http://en.wikipedia.org/w/index.php?title=Plagiarism&oldid=5139350}",        urldate = {2004-05-27}"      }      The output is this: ![Output 1](http://i.stack.imgur.com/U5B8R.png) This does not look good. Instead I want the URL field to appear on its own line. There should also be a field like "Accessed on: .." or "Visited at: .." with the date given in the urldate bib field on its own line. How do I do this in a nice way? It seems the standard way to add this field is to add `note = "[Online; accessed 22-July-2004]"` to the bib fields, but this is an ugly solution. The bib file should not be concerned with how to format itself! Isn't there a better solution? E.g. something that just reads another field from the bib file (for example urldate as above) and adds that together with the url on two separate lines? Something like this (not quite, but similar), WITHOUT encoding it in the bib file: ![enter image description here](http://i.stack.imgur.com/w0m8U.png)


title: Dropping boxes on top of the listings environment

text: I was wondering if anyone knew a decent way to drop boxes of text on top of the listings environment. This would be most useful for a beamer presentation that I am currently writing. Ideally the text underneath the box would not be visible; perhaps it is filled pastel yellow to give the impression that a post-it note has been stuck on top of the listing. I have played with escaping out of listings and inserting figures/boxes, but none of my attempts have looked right. Any ideas? Thanks


title: Three loop diagram

text: I want to make a three loop diagram such as the one on the left. ![enter image description here](http://i.stack.imgur.com/IRFc7.gif) I use the following script               \fmfleft{i}\fmfright{o}          \fmf{boson}{i,v1}\fmf{boson}{v2,o}          \fmf{phantom,left,tension=0.1}{v1,v2,v1}\fmffreeze          \fmfipath{p[]}          \fmfiset{p1}{vpath (__v1, __v2)}          \fmfiset{p2}{vpath (__v2, __v1)}          \fmfi{plain}{subpath (0, 1)*length(p1) of p1}          \fmfi{plain}{subpath (0, 1)*length(p2) of p2}          \fmfipair{vn,vs}          \fmfiequ{vn}{point 0.3length(p1) of p1}          \fmfiequ{vs}{point 0.3length(p2) of p2}          \fmfi{gluon}{vn--vs}      Here is the result. ![enter image description here](http://i.stack.imgur.com/J0XXJ.png) However I don't know how to create another loop inside the existing one (M2 inside of M1 on the first picture).


title: How to vertically label the subfigures?

text: I have 6 images, and I want to align them in this way (a)image1 (c)image3 (e)image5 (b)image2 (d)image4 (f)image6 Any one know how to do that? The problem for me is how to make `(a), (b),..., (f)` in vertical direction.


title: leading and paragraph-style footnotes

text: This is a follow-up to leading package and vertical space between footnotes. Werner’s answer works beautifully, but not with the `para` option of `footmisc`. Is there a way to make the line-spacing of footnotes consistent when adjusting the leading of a font and using paragraph-style footnotes? Here is an example of the problem:               \documentclass[12pt]{book}     \usepackage[a5paper]{geometry}     \usepackage[norule,para]{footmisc}     \linespread{1.15}     % http://tex.stackexchange.com/a/61908/7883     \usepackage{etoolbox}     \makeatletter     \patchcmd{\@makefntext}       {#1}       {\usebox\strutbox#1}       {}{}     \makeatother     \begin{document}     Alice was beginning to get very tired of sitting by her sister on the     bank, and of having nothing to do: once or twice she had peeped into     the book her sister was reading, but it had no pictures or     conversations in it.\footnote{`And what is the use of a book,' thought       Alice `without pictures or conversation?'}          So she was considering in her own mind\footnote{As well as she could,       for the hot day made her feel very sleepy and stupid.} whether the     pleasure of making a daisy-chain would be worth the trouble of getting     up and picking the daisies, when suddenly a White Rabbit with pink     eyes ran close by her.          There was nothing so \textsc{very} remarkable in that; nor did Alice     think it so \textsc{very} much out of the way to hear the Rabbit say     to itself, `Oh dear!  Oh dear!  I shall be late!';\footnote{When she       thought it over afterwards, it occurred to her that she ought to       have wondered at this, but at the time it all seemed quite natural.}     but when the Rabbit actually \textsc{took a watch out of its       waistcoat-pocket}, and looked at it, and then hurried on, Alice     started to her feet, for it flashed across her mind that she had never     before seen a rabbit with either a waistcoat-pocket, or a watch to     take out of it, and burning with curiosity, she ran across the field     after it, and fortunately was just in time to see it pop down a large     rabbit-hole under the hedge.          In another moment down went Alice after it, never once considering how     in the world she was to get out again.     \end{document}      ![detail of the output](http://i.stack.imgur.com/Gr7we.png)


title: preview.sty and font transparency in LuaLaTeX

text: Using the preview package removes font transparency in LuaLaTeX:               \documentclass{article}     \usepackage{luaotfload}     \usepackage[active]{preview}     \begin{document}     \begin{preview}     \font\x="texgyrebonum-bold.otf:color=FF000077" at 24pt\x     ABCDEF\llap{ZYXWUV}     \end{preview}     \end{document}      (Remove the `active` option to preview to see what it's supposed to look like.) Before I dive into the details myself to investigate here, any ideas what could be causing this?


title: Drawing Gantt Chart for my Final Year Project

text: The image below is my FYP Gantt Chart, I am new to Tex writing and didn't have experience of drawing a gantt chart in Tex. Please help me by providing the code for gantt chart like image, and tell me please which packages I have must used. ![Final Year Project](http://i.stack.imgur.com/UsDBo.jpg) Thanks in advance.


title: How to pass pdflatex option "-synctex=1" to texi2dvi?

text: How can I pass the option `-synctex=1` (for synctex support) of `pdflatex` to `texi2dvi`?


title: texi2dvi: "I couldn't open database file..." (strange behavior with relative paths to .bib file)

text: When I use `texi2dvi -p --tidy foo.tex` where `foo.tex` contains `\bibliography{/home/user/.../mybib.bib}`, everything works as expected, `mybib.bib` is found and references inserted in `foo.pdf`. Also, when `mybib.bib` is in the same folder as `foo.tex` and I use `\bibliography{mybib.bib}`. However, if `mybib.bib` is one directory level above `foo.tex` and I use `\bibliography{../mybib.bib}`, `texi2dvi` with the option `\--tidy` (as given above) is not working anymore, it gives:               I couldn't open database file ../mybib.bib     ---line 3 of file foo.aux      : \bibdata{foo-blx,../mybib      :                           }     I'm skipping whatever remains of this command      How can I specify relative paths in `\bibliography` so that `texi2dvi` with option `\--tidy` does not fail?


title: Enumeration in theorem environment

text: I am puzzled with a formating question. I was asked to change that the enumeration gives me italic numbers in the theorem environment to non-italic ones. How can customize enumeration, such that it will not adopt the italic format of the theorem environment? Sorry for my bad English. Thanks in advance.


title: TikZ: Regression Line with Residuals

text: **Desired Output** I made this diagram in `R` with `ggplot2`. ![enter image description here](http://i.stack.imgur.com/x9XiT.jpg) Now I want to reproduce this diagram with `Tikz`. My MWE is:               \documentclass[tikz]{standalone}     \usepackage{pgfplots}     \usepackage{pgfplotstable}          \begin{document}          \pgfmathsetseed{1138} % set the random seed     \pgfplotstableset{ % Define the equations for x and y         create on use/x/.style={create col/expr={42+2*\pgfplotstablerow}},         create on use/y/.style={create col/expr={(0.6*\thisrow{x}+130)+5*rand}}     }     % create a new table with 30 rows and columns x and y:     \pgfplotstablenew[columns={x,y}]{30}\loadedtable                    \begin{tikzpicture}     \begin{axis}[     xlabel=Weight (kg), % label x axis     ylabel=Height (cm), % label y axis     axis lines=left, %set the position of the axes     xmin=40, xmax=105, % set the min and max values of the x-axis     ymin=150, ymax=200, % set the min and max values of the y-axis     clip=false     ]          \addplot [only marks] table {\loadedtable};     \addplot [no markers, thick, black] table [y={create col/linear regression={y=y}}] {\loadedtable} ;     \end{axis}          \end{tikzpicture}     \end{document}      ![enter image description here](http://i.stack.imgur.com/Hnw5k.png) Any help and hints will be highly appreciated. Thanks


title: Too many BibTeX entries with identical values for author field

text: I got a custom `\bibliographstyle` from my University. I exceeded the number 26 with my Entries which do not have an Author and a Year. For the Author I put in "o.V". Normally I got as Key in my `.bbl` file (which is generated by bibtex out of my .bib file) `\bibitem[o.Va]` to `\bibitem[o.Vz]` Here is the Problem. After the "z" it generates an "{" which will obviously not work. So in my Paper there there should be written [o.Va]-[o.Vz] as cites. But theoretically after the Z is [o.V{], which wont compile! I ASSUME that I need to modify my `.bst` file (this is the bibliographstyle, IF I am not mistaken). How can I make it, that my bibliography takes other 3 letters than o.V, OR if I leave the Author emtpy that it takes something custom I can choose? Please look http://pastebin.com/1Qdy83eJ line 352. That won't work and has nothing to do with jabref!


title: Spacing looks wrong in listings when using fixed columns

text: When I use `columns=fixed` to present my listings, the letters are spaced too far apart. Why is that?               \documentclass{article}          \usepackage{listings}     \lstset{columns=fixed, basicstyle=\ttfamily}}          \begin{document}     \begin{lstlisting}     Hello, world!     \end{lstlisting}     \end{document}      ![enter image description here](http://i.stack.imgur.com/Dlwsq.png)


title: Citing Arxiv manuscripts in IEEEtran bibtex

text: I would like to learn to cite arXiv documents properly in LaTeX IEEEtran style. Biblatex has special entries for arXiv, but the standard bibtex, as well as IEEEtran Bibtex style that I am using, do not seem to provide arXiv support. How to you modify @article, or other entries, to cite an arXiv paper? I want to also produce a url to the document webpage in the pdf file.


title: Why is this parenthesis of a difference size?

text: I have the following LaTeX:               \documentclass{article}     \begin{document}     \newcommand{\lit}[1]{{\texttt #1}}      \lit{()} \lit{(hello)} \lit{(}\lit{)}      \lit{hello}     \end{document}      which produces the following output: ![enter image description here](http://i.stack.imgur.com/Tdphz.png) I'm curious to know why the first two closing parenthesis are of a different style to their opening ones. Any ideas?


title: Mathematical indices error in latex

text: I am new to LaTeX. I have a long paragraph which includes some mathematics symbols (indices and exponents). According to documents, I can use `^` and `_` for both functions. However, they fail until I add `\begin{gather}` and `\end{gather}`.               \documentclass{article}      \usepackage{amsmath,amssymb}      \usepackage{latexsym}      \begin{document}       This is only test            \[\int_a^b f(x)dx\]                \begin{gather}     a_{xy}= b_2+ 7c_{tt}+ o^{yu}         %% This is OK inside of {gather section}     \end{gather}          %i_h is the data        %% error" Missing $ inserted."      i^3                                 % error" Missing $ inserted."      \end{document}      Should I use `gather` to encapsulate all texts that have math symbol? If a paragraph is wrapped by `gather`, the whole paragraph would be in one line of the generated PDF file.


title: Patching a song environment

text: I'm having some fun with another songbook project, and this one has a particular feature: in the header, the range of song numbers is displayed, in order to ease the searching (similar to a dictionary). I'm using both `songs` and `fancyhdr` package. Consider the following code:               \documentclass[twoside]{article}          \usepackage{ifthen}     \usepackage{fancyhdr}          \renewcommand{\sectionmark}[1]{}     \newcommand{\mymarks}{%     \ifthenelse{\equal{\leftmark}{\rightmark}}     {\rightmark}     {From \rightmark\ until \leftmark}}     \fancyhead[LE,RO]{\mymarks}      \fancyhead[LO,RE]{\thepage}          \pagestyle{fancy}          \usepackage[lyric]{songs}     \newindex{titleidx}{cbtitle}          \begin{document}          \songpos{0}          \begin{songs}{titleidx}          \beginsong{Amazing Grace}[       by={John Newton},       sr={Luke 15:4; 2 Corinthians 4:8,9; Ephesians 2:8; Revelation 14:3},       cr={Public domain.}]          \markboth{\thesongnum}{\thesongnum}          \beginverse     A\[E]mazing \[E/D#]grace! How \[A/C#]sweet the \[E/B]sound     That \[E]saved a \[E/C#]wretch like \[B7]me!     I \[E]once was \[E/D#]lost, but \[A/C#]now am \[E/B]found;     Was \[A]blind, but \[A/B]now I \[E]see.     \endverse          \beginverse     T'was ^grace that ^taught my ^heart to ^fear,     And ^grace my ^fears re^lieved;     How ^precious ^did that ^grace ap^pear     The ^hour I ^first be^lieved!     \endverse          \endsong          <<... MORE SONGS HERE ...>>          \end{songs}          \end{document}      The code works like a charm: ![Header](http://i.stack.imgur.com/nNCJa.png) The magic happens with `\markboth{\thesongnum}{\thesongnum}` in every song; `\thesongnum` represents the current song number. So far so good. I'd like to avoid repetition, so I decided to add some spice with `etoolbox`. My first idea was to append the magic line right after the beginning of the song environment. I came up with the following line:               \apptocmd{\beginsong}{\markboth{\thesongnum}{\thesongnum}}{}{}      And it works. Well, kind of. The options enclosed between squared brackets are ignored: ![The shame!](http://i.stack.imgur.com/Z5FR2.png) I'm probably patching it wrong. Wait, I _am_ patching it wrong. But I can't figure out how would be the correct way to do it. I could patch the `\endsong` command with:               \pretocmd{\endsong}{\markboth{\thesongnum}{\thesongnum}}{}{}      And it would work, except for the fact that when a song goes in two pages, the mark points to the second page, not the first one where the song starts. So I have to somehow patch the first one. Any ideas?


title: Showing listings of code side by side error

text: > **Possible Duplicate:**   >  How can I put lstlisting block into subfloat block? Running this code gives me an error that **! Paragraph ended before \lst@next was complete.**               \begin{figure}     \subfloat[subcaption 1]{          \begin{lstlisting}     text here     \end{lstlisting}          }     \hspace{80pt}          \subfloat[subcaption 2]{     \begin{lstlisting}     text here     \end{lstlisting}     }          \caption{Global caption}     \end{figure}      I want to display code side by side


title: Drawing an arrow tip to every node of a path

text: I want to draw an arrow tip to every node/coordinate in a path. But tikz draws them only to the first and last point. Is there an option for that purpose? Or have I to splitt the path into its single parts? Here is an example: ![enter image description here](http://i.stack.imgur.com/1hmCw.png)               \documentclass{article}          \usepackage{tikz}          \begin{document}     \begin{tikzpicture}         % What should I add to this:         \draw  [|<->|] (0.4,2.4) to node[right] {$L$} ++(0,-1.5)                 to node[right] {$d$} ++(0,-1)                 to node[right] {$h$} ++(0,-1);         % To get:         \draw  [|<->|] (0.8,2.4) to node[right] {$L$} (0.8,0.9);         \draw  [|<->|] (0.8,0.9) to node[right] {$d$} (0.8,-0.1);         \draw  [|<->|] (0.8,-0.1) to node[right] {$h$} (0.8,-1.1);              \end{tikzpicture}     \end{document}


title: Use tabularx in LyX instead of default tabular

text: I recently got into LyX and I’m getting along quite well. The only thing that bothers me is that LyX’s table feature produces really sloppy-looking tables by default, i.e. double borders and stuff like that. I would love to tell LyX to use the `tabularx` environment by default for the tables I enter via the GUI element, so I can get tables with 100% width matching the justified paragraphs. Concerning the borders, I would like to remove all of them but a `\toprule` above and beneath the first row of the table and a `\bottomrule` beneath the last row. These features are added by the `ctable` package which is included in my document preamble. Is there any way I can achieve these things without performing crazy stuff like regex? Thanks in advance!


title: Possible to use certain delimiters for macros with fancyvrb?

text: In this document:               \documentclass{article}     \usepackage{fancyvrb}     \DefineVerbatimEnvironment{AVerb}{Verbatim}{commandchars=\\\{\}}     \def\foo#1-#2;{}     \begin{document}     \begin{AVerb}       \foo x-z;     \end{AVerb}     \end{document}      The use of `\foo` in `AVerb` produces an error:               ! Argument of \foo has an extra }.     <inserted text>                     \par     l.11   \foo x-z;      The catcode for `-` in the `AVerb` environment is 13 (active), but in normal text it is 12 (other). I tried setting the catcode for `-` to 12 using `fancyvrb's` `codes` option but that didn't help. I believe this is because `-` can be a ligature and `fancyvrb` overrides my setting. Is there a way to make this work?


title: How to use Cambria with MiKTeX 2.8?

text: I'm trying to use Cambria in an article; I'm using Windows (XP, but I have the font installed), MiKTeX 2.8 and WinEdt 6.0. (Yes, I know Cambria is not available on all machines, but it's not a concern this time, it's a document for only a few people). I have               \usepackage{fontspec}     \setmainfont{Cambria}      in my article, but receive the following error.               ("C:\Program Files\MiKTeX 2.8\tex\xelatex\fontspec\fontspec.sty"     ("C:\Program Files\MiKTeX 2.8\tex\latex\ifxetex\ifxetex.sty")     !       ********************************************      * XeTeX is required to compile this document.      * Sorry!      ********************************************.     \RequireXeTeX ...********************************}                                                       \endgroup \fi      l.18 \RequireXeTeX          ?       I've also tried to load the font without `fontspec` as seen at http://tex.stackexchange.com/a/10714               \font\x="Cambria" at 12 pt \x hello      but receive a different error:               Running miktex-makemf.exe...     miktex-makemf: The Cambria source file could not be found.          Running hbf2gf.exe...               hbf2gf (CJK ver. 4.8.0)                    Couldn't find `Cambr.cfg'          miktex-maketfm: No creation rule for font Cambria.          ! Font \x=Cambria at 12.0pt not loadable: Metric (TFM) file not found.     l.9 \font\x="Cambria" at 12 pt