title: Appendix in thesis

text: I am compiling my thesis in latex and I want to add appendices, but I'm not quite getting it right. In particular the Appendix chapters get the right name for example Appendix A. But sections, figures and tables all get the wrong name. For example the first section in Appendix A is not A.1 but 1.1, which was already a section in the chapter before Appendix A. This is the code I use:                \documentclass[12pt, a4paper]{book}      \usepackage[titletoc]{appendix}      \chapter{bla}      some bla      \secion{bla}      etc      \begin{appendices}      \chapter{bla}      \section{blabla} (This is the culprit being named 1.1 instead of A.1)      \end{appendices}      etc etc.      Can somebody help me out? Thank you very much.


title: Align text in the table

text: I have a following table:               \def \p {\circle*{7}}     \def \s {$\bullet$}     \def \j {\circle{7}}     \def \m {$\circ$}     \def \n {$\otimes$}          \begin{table}[h]      \centering     \small     \def\arraystretch{1.05}     \rotatebox{90}{%        \begin{tabular}[b]{|l|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|}\hline     Aplikace&\rotatebox{270}{Elektrická energie s~časovým posunem}&\rotatebox{270}{Kapacita elektrické dodávky}&\rotatebox{270}{Zatížení}&\rotatebox{270}{Oblast regulace}&\rotatebox{270}{Rezervovaná kapacita dodávky}&\rotatebox{270}{Napěťová podpora$^1$}&\rotatebox{270}{Transientní přetížení$^1$}&\rotatebox{270}{Odložení přenos. a distrib. obnovy$^1$}&\rotatebox{270}{Doba využití energie -- nákladový management$^1$}&\rotatebox{270}{Poptávaný výkon$^1$}&\rotatebox{270}{Elektrická spolehlivost$^1$}&\rotatebox{270}{Kvalita energie$^1$}&\rotatebox{270}{OZE -- časový posun dodávky}&\rotatebox{270}{Kapacita OZE -- zpevnění}&\rotatebox{270}{Integrace větrných el.}\\     \hline     Elektrická energie s~časovým posunem&&\p&\s&\j$^\ast$&\s&\p&\p$^\dagger$&\p$^\dagger$&\n&\n&\n&\n&\s&\s&\j \\ \hline     Kapacita elektrické dodávky&\p&&\s$^\ast$&\j$^\ast$&\s$^\ast$&\p&\s$^\dagger$&\p$^\dagger$&\n&\n&\n&\n&\j$^{X\ast}$&\j$^{X\ast}$&\n \\ \hline     Zatížení&\s&\s$^\ast$&&\j$^\ast$&\s$^\ast$&\s&\j$^X$&\s$^{X\ast}$&\j$^{\ast \ddagger}$&\j$^{\ast \ddagger}$&\n&\n&\j&\n&\n \\ \hline     Oblast regulace&\j$^\ast$&\j$^\ast$&\j$^\ast$&&\j$^\ast$&\n&\j$^{X\ast}$&\n&\n&\n&\n&\n&\m&\m&\n \\ \hline     Rezervovaná kapacita dodávky&\s&\s$^\ast$&\s$^\ast$&\j$^\ast$&&\p&\j$^\ast$&\s$^\ast$&\s$^{\ast \ddagger}$&\s$^{\ast  \ddagger}$&\n&\n&\j$^{\ast}$&\j$^{\ast}$&\m$^{\ast}$\\ \hline     Napěťová podpora$^1$&\p&\p&\s&\n&\p&&\s&\p&\s$^\ddagger$&\s$^\ddagger$&\s$^\ddagger$&\s$^\ddagger$&\s$^{\diamond\ddagger}$&\s$^{\diamond\ddagger}$&\n \\ \hline     Transitní přetížení$^1$&\p$^\dagger$&\s$^\dagger$&\j$^X$&\j$^{X\ast}$&\j$^\ast$&\s&&\s$^{X\ast}$&\j$^{\ast}$&\j$^{\ast}$&\m&\n&\s$^\diamond$&\s$^{\dagger}$&\n \\ \hline     Odložení přenos. a distrib. obnovy$^1$&\p$^\dagger$&\p$^\dagger$&\s$^{X\ast}$&\n&\s$^\ast$&\p&\s$^{X\ast}$&&\s$^{\ast}$&\s$^{\ast}$&\m&\n&\s$^\diamond$&\s$^{\dagger}$&\n \\ \hline     Doba využití energie -- nákladový management$^1$&\n&\n&\j$^{\ast \ddagger}$&\n&\s$^{\ast \ddagger}$&\s$^{\ddagger}$&\s$^{\dagger}$&\s$^{\dagger}$&&\p$^{\dagger}$&\p&\p&\s$^{\diamond}$&\s$^{\diamond \dagger}$&\n \\ \hline     Poptávaný výkon$^1$&\n&\n&\j$^{\ast \ddagger}$&\n&\s$^{\ast \ddagger}$&\s$^{\ddagger}$&\s$^{\dagger}$&\s$^{\dagger}$&\p$^{\dagger}$&&\p&\p&\s$^{\diamond}$&\p$^{\diamond \dagger}$&\n \\ \hline     Elektrická spolehlivost$^1$&\n&\n&\n&\n&\n&\s$^{\ddagger}$&\m&\m&\p&\p&&\p&\s$^{\diamond}$&\s$^{\diamond}$&\n \\ \hline     Kvalita energie$^1$&\n&\n&\n&\n&\n&\s$^{\ddagger}$&\n&\n&\p&\p&\p&&\n&\n&\n \\ \hline     OZE -- časový posun dodávky&\s&\j$^{X\ast}$&\j&\m&\j$^{\ast}$&\s$^{\diamond \ddagger}$&\s$^{\diamond}$&\s$^{\diamond}$&\s$^{\diamond}$&\s$^{\diamond}$&\s$^{\diamond}$&\n&&\p&\j$^{X}$ \\ \hline     Kapacita OZE -- zpevnění&\s&\s$^{X\ast}$&\n&\m&\j$^{\ast}$&\s$^{\diamond \ddagger}$&\s$^{\dagger}$&\s$^{\dagger}$&\s$^{\dagger\diamond}$&\p$^{\dagger\diamond}$&\s$^{\diamond}$&\n&\p&&\j$^X$ \\ \hline     Integrace větrných el.&\j&\n&\n&\n&\m$^\ast$&\n&\n&\n&\n&\n&\n&\n&\j$^X$&\j$^X$& \\     \hline \hline     \multicolumn{16}{|c|}{     {\p} -- excelentní \; \s -- dobrý \; \j -- ucházející \; \m -- nepříliš vhodný \; \n -- nekompatibilní}\\     \hline     \end{tabular}}     \caption{Aplikační synergická matice \cite{eyer2010}}     \label{tab-aplik}     \end{table}      ![enter image description here](http://i.stack.imgur.com/f9S5W.png) And now I would like to align the text "Apliace" in the first table cell to the bottom of baseline. How can I do it?


title: Putting my name ahead of my co-authors on a latex title page

text: Grad student here, getting ready to submit a paper. I've done 92% of the work on a paper I'm submitting, but I've got three (senior) co-authors. I want to put my name up top, and put their names in a row below mine. Right now, it has the names all in a row, with the last author on the bottom:               \documentclass[11pt]{article}     \usepackage{graphicx}     \usepackage[margin=1in]{geometry}     \usepackage{amsmath,amssymb, amsfonts, amsthm, amstext, setspace, color, geometry, enumitem, hyperref, versions, tikz, cite, tabularx,tabulary, subfig, lscape, parskip}     \usepackage{lineno}         \addtolength{\textheight}{.125in}     \usepackage{pslatex}     %\usepackage[T1]{fontenc}     %\usepackage{mathptmx}     \usepackage{draftwatermark}          %\usepackage{setspace}\onehalfspace     \newcommand{\E}{\mathbb{E}}     %Expectation operator     \title{My excellent paper about Science}     \author{Lead Author\\Dept\\ School \and Co-Author1\\Dept\\ School \and Co-Author2\\Dept\\ School \and Co-Author3\\Dept\\ School}     \date{This version: April 9, 2013}     \begin{document}          \maketitle     \end{document}      How would I change this to put myself at the top?


title: Orphans when using the SIGCHI LaTeX style

text: The current SIGCHI template does contain some instructions to prevent orphans (`\clubpenalty` and `\widowpenalty`) but for some reason that isn't working for me. I tried increasing the penalties but that didn't prevent orphans for me either. Not loading the `microtype` package solves this for one document I have but not for others. I've put together a short example file that produces an orphan ("Section 1" section heading on first page, rest of section on second one) for me:                   \documentclass{sigchi}              \special{papersize=8.5in,11in}         \setlength{\paperheight}{11in}         \setlength{\paperwidth}{8.5in}         \setlength{\pdfpageheight}{\paperheight}         \setlength{\pdfpagewidth}{\paperwidth}              \usepackage[english]{babel}         \usepackage{times}         \usepackage{lipsum}              \begin{document}              \title{The Title}         \author{Anonymous}         \maketitle              \begin{abstract}         \lipsum[1]         \end{abstract}              \section{Section 0}         \lipsum[2-8]              \section{Section 1}         \lipsum[8-12]              \end{document}      Does anybody have some experience with that template and what needs to be changed to get this to work? # Update: \@startsection at fault? I poked around a bit and the _sigchi class_ provides its own version of `\@startsection`. Removing that pushes the orphaned section name in my example document to the next page. However, as this is potentially a rather drastic change, I'd be curious as to what specifically is the reason for that behavior. I'm not familiar with most of the commands used there, but maybe somebody else can help out. LaTeX \@startsection:                   \def\@startsection#1#2#3#4#5#6{%           \if@noskipsec \leavevmode \fi           \par           \@tempskipa #4\relax           \@afterindenttrue           \ifdim \@tempskipa <\z@             \@tempskipa -\@tempskipa \@afterindentfalse           \fi           \if@nobreak             \everypar{}%           \else             \addpenalty\@secpenalty\addvspace\@tempskipa           \fi           \@ifstar             {\@ssect{#3}{#4}{#5}{#6}}%             {\@dblarg{\@sect{#1}{#2}{#3}{#4}{#5}{#6}}}}      Sigchi \@startsection:                   \let\@period=.         \def\@startsection#1#2#3#4#5#6{%                 \if@noskipsec  %gkmt, 11 aug 99                 \global\let\@period\@empty                 \leavevmode                 \global\let\@period.%             \fi             \par             \@tempskipa #4\relax             \@afterindenttrue             \ifdim \@tempskipa <\z@                 \@tempskipa -\@tempskipa                 \@afterindentfalse             \fi             %\if@nobreak  11 Jan 00 gkmt                 %\everypar{}             %\else                 \addpenalty\@secpenalty                 \addvspace\@tempskipa             %\fi             \parskip=0pt             \@ifstar                 {\@ssect{#3}{#4}{#5}{#6}}                 {\@dblarg{\@sect{#1}{#2}{#3}{#4}{#5}{#6}}}%         }


title: Unbold referenced label

text: I'm fetching references from an enumeration. The problem is that I want the labels of the enumeration to be bold (hence, I've added a `\textbf` command) but I want the references in the text to be plain text. Can I achieve this in anyway? Minimal (non)working example:               \documentclass[12pt]{article}     \usepackage{enumitem}     \begin{document}          \begin{enumerate}[label=(\textbf{\Roman{*}})]     \item \label{Your}Your     \item \label{Mama}Mama     \end{enumerate}          'Your' is at \ref{Your} and 'Mama' is at \ref{Mama}.      (I'd like these references to be in plain text, not bold.)     \end{document}


title: How to locally use an old package (e.g. biblatex) with TexLive?

text: I need some old deprecated options from an old package (biblatex: local maxbibnames, version 1.5 (current 2.4)). So I do not want to mess up my texlive installation. How can I use an old package locally just for one document? I guess putting the .sty files is insufficent, as e.g. biblatex is supposed to be installed in a texmf folder and its archive contains a lot of other files.


title: Customized tabular environment

text: we've quite often have to write tables in our CI layout (colors, borders, fonts, etc). At the moment we use the standard tabular environment with lots of extra instructions (in the environment parameters as well as individual cells). I'd like to code my own environment, which handles everything on its own, so I can simply type it like that:               \begin{myTable}{lll}         head a &  head b  & head c \\         data a1 & data b1 & datac1 \\         data a2 & data b2 & datac2 \\         ...     \edd{myTable}      And this will automatically produce my CI-formatted table (eg. including horizontal line under head, specific colors for head and body cells, etc, etc). Could anyone please enlighten me on how do that ? thx.


title: Not generating the .aux for the bibliography to run

text: I'm trying to generate my bibliography and, for what I read, I need to run my `main.tex`, then `bib.aux` and then, again `main.tex` twice, right? I have created my `.bib` file and the name on the `\bibliography{bib}` is the same as my file. The thing is, although I have saved the `bib.bib`, when I run `main.tex` the `bib.aux` is not generated. I saved the bib file as a TeX bib file. It's correct, right? I'm working on a Mac OS, does this make it different? I don't know what am I doing wrong.


title: Defining plural form for glossaries entries

text: Based on the following answer, How shall I define plural form of glossaries? Two separate acronym list using package glossaries For example,               \newglossaryentry{LED}     {       name={LED},       description={light emitting diode},       first={\glsentrydesc{LED} (\glsentrytext{LED})},     }      The first instance in plural form should print > light emitting diodes (LEDs). Second instance of plural form should print > LEDs 3rd instance of singular form should print > LED and so on ... .


title: Disable automatic kerning

text: I want to disable automatic kerning for a few lines in my text as the `\textwidth` before `kerning` and after `kerning` is not the same. And I'm sure there is a simple command to do so, but just can't figure it out.   * Which command do I use to stop XeLaTeX from doing automatic `kerning`?   * Or better still which command do I use to get the `\textwidth` after automatic `kerning` has been applied?   * And does the same command also work for `\columnwidth`?


title: text alignment with center environment

text: I am going to include some scripts (programming) in my document and I used `\texttt` to make them look different from the rest of the document and I am gonna move them to the center of page with `center` environment but I don't have any clue how to align them (like the alignment used for equations):               \begin{center}     \texttt{kmeans=: 3 :0 \\     Nr=: \$,smp \\     dis=: \%: @ +/"1(initial -"1/ grid)\^ 2 \\     index=:(|:dis) i."1 (,.<./"1 (|:dis)) \\     }     \end{center}


title: Latex-Suite Mapping Using Fullwidth Characters

text: Currently I am using Latex-Suite to edit an document that contains CJK characters for more than 90%, and therefore mainly using an input method that outputs fullwidth characters. I tried to define some mappings that use fullwidth characters but in vain; for example,               call IMAP('￥ｅｔ', '\Expectation <++>', 'tex')      So is it possible to define mappings with fullwidth characters?   Or I always have to change to a English input method for typing commands and then change back(that would keep using `ctrl+space`.......)?


title: Does LyX support hyperlink and hypertarget commands?

text: Does LyX support `\hyperlink` and `\hypertarget` commands, or do I have to access them through ERTs? Is there any other way to make text links without `hyperlink`/`hypertarget` that LyX supports? I want to have a sentence that I can click on to move to another part of the document.


title: \cee command (from mhchem package) doesn't allow \\[10pt]

text: when using `\cee` command (from mhchem package) within align environment, `\\[10pt]` doesn't work. It works in align environment without `\cee`. Is there a workaround? here is a MWE:               \documentclass{article}      \usepackage{amsmath}     \usepackage{mhchem}          %with \cee command     \begin{document}     \begin{align}     \cee{     A &-> B \\[10pt] %"[10pt]" is printed, no vertical adjustment     A &-> B      }     \end{align}          %without \cee command     \begin{align}     A &\rightarrow B \\[10pt] %vertical adjustment works     A &\rightarrow B      \end{align}          \end{document}      prints: ![enter image description here](http://i.stack.imgur.com/ahWbK.png)


title: Renaming section levels?

text: I have several reports I've written up in `article` format. I want to keep them in separate files but combine them into a larger report. I've removed the headers, but don't want to go through each file and relabel each section as a subsection, and so on. Is there a way to handle this programatically? For instance, in my main file I might have               \section{Section1}     \input{file1}      and in `file1.tex` I have               \section{File1Section1}     ...     \section{File1Section2}      I think some solution might be the redefinition of `\section` before and after each `\input` invocation, or an environment in which I can wrap the `\input` invocation where each `\section` is renamed as `\subsection` and so on. Help?


title: How to Reverse Clip on Custom Path Defined by Ellipse Intersections

text: Suppose I have two ellipses with known locations, major and minor axes, and rotation angles. What I would like to do is define a custom path that primarily uses one ellipse but follows the other at their intersection. A picture is helpful here: ![custom path for two ellipses](http://i.stack.imgur.com/mv0RW.png) So I want my custom path to start at A, follow the black ellipse clockwise to B, then follow the pink ellipse back to A. I know I'll need to use TikZ to compute the intersections for me automatically (I have some experience with this). As for creating the path itself, this Batman post indicates I'd have to use \pgfpatharcto commands: Using TikZ, how to draw an elliptical arc starting from point A to point B with the origin as its center where both radii are given? Once I get this path, I want to be able to use it for reverse clipping, as described here: How can I invert a 'clip' selection within TikZ?. I also have experience doing this, but I don't understand how I would use it with the lower level pgf commands used to define the path. This isn't the exact problem I am working on. Generally, I will have a number of shapes and I want to use clipping and reverse clipping to draw isolated regions. So this question really boils down to: how do I create a custom path that can be used with reverse clipping?


title: Create LaTeX tables from plain numerical data?

text: I have a bunch of MATLAB results like this                                  0  -2.000000000000000   2.000000000000000        1.000000000000000  -1.926829268292683   3.707317073170731        2.000000000000000   0.716910656478955  -6.475399900458298        3.000000000000000   0.718921416773616   0.516843960338833      Here leftmost column is always 0,1,2,3,... so I have to get rid of those trailing zeros or to do row-numbering in LaTeX somehow. However I want to convert all of them results to something like ![Table](http://i.stack.imgur.com/wbeb3.png) But anything simple and informative would do. I generated the table above using MathType editor, so I'm not even sure what some of those commands mean               \begin{array}{*{20}{c}}     i&\vline& {{x_i}}&{{y_i}}\\     \hline     0&\vline& {{\rm{ - 2}}{\rm{.000000000000000}}}&{{\rm{2}}{\rm{.000000000000000}}}\\     1&\vline& {{\rm{ - 1}}{\rm{.926829268292683}}}&{{\rm{3}}{\rm{.707317073170731}}}\\     2&\vline& {{\rm{0}}{\rm{.716910656478955}}}&{{\rm{ - 6}}{\rm{.475399900458298}}}\\     3&\vline& {{\rm{0}}{\rm{.718921416773616}}}&{{\rm{0}}{\rm{.516843960338833}}}     \end{array}      What would you suggest?


title: pdflatex commandline hide compilation output

text: My program produces multiple outputs: I have a .tex file compiled, and some of them are produced in the command-line. The compilation info of pdf-latex is useless to me and I would like to hide it to make my command-line output readable. I have seen this site mention some box-thicking should do it, but I haven't found a command-line equivalent.


title: error with tikz (bounding box) on ubuntu

text: I created a latex beamer presentation on my Mac OSX and there I included some pictures using tikz. Due to my job I migrated to Ubuntu and now I want to use that presentation with Texmaker (Latex via sudo apt-get install texlive-full). Strangely now I get an error when I want to run Latex on my .tex file:               ! LaTeX Error: Cannot determine size of graphic in images/title_minnow.png (no     BoundingBox).      For me this is very strange as the code works on my Mac with out problems. What do I need to change, or do I need some extra installatoin etc. Here the code:               \documentclass{beamer}          \usepackage[ngerman]{babel}     \usepackage[latin1]{inputenc}     \usepackage{tikz}     \usetheme{Frankfurt}          \begin{document}          \begin{frame}     \begin{tikzpicture}[remember picture,overlay]         \node[anchor=south west,inner sep=0pt] (img1) at (current page.south west)              {\includegraphics[width = 3.5 cm, height=2.5cm]{images/title_minnow.png}};     \end{tikzpicture}     \end{frame}          \end{document}      Any suggestions?


title: Beamer: \qed at the end of align*

text: I finish a proof sketch on beamer slides with a formula, e.g.,               \begin{align*}     P\leq n^{-\alpha}      \end{align*}      How can I get a qed symbol at the end of this line? Using `\qed` as well as `\hfill\ensuremath{\square}` puts the symbol right at the end of the formula. I can't use `\qedhere`since I am not in a proof environment. What other options are there? Edit: barbara beeton's answer pointed my in the right direction. For future reference, here is a solution:               \newcommand{\xqedhere}[2]{%        \rlap{\hbox to#1{\hfil\llap{\ensuremath{#2}}}}}               \begin{align*}     P \leq n^{-\alpha} \xqed{5cm}     \end{align*}


title: How to make a tidy grouped and stacked barchart?

text: I found this chart in a recent paper. I've emailed the author about it but they didn't reply. I want to create something similar but I don't know what the correct software to use is. I need the following:   * category grouping (small/medium/large)   * column/bar labelling (1, 2, 4)   * stacked bars (comp/mem/TLB/idle) <\-- maybe stacked isn't the right word, but I also need to show a percentage breakdown in the same way.   * grayscale. This image is very printer-friendly Can this be done with pgfplots? If not, what software could I use? ![barchart](http://i.imgur.com/8tXTajc.jpg)


title: \input only part of a file

text: I would like to include part of the contents of a .tex file into a different .tex file. I don't have the option of modifying the file to include. The file to include may change so simply copying and pasting the part I need is not ideal. Essentially, I'm wondering if there is something that would work like               \input[start-end]{file.tex}      where `start` and `end` are the first and last lines to include from the file?


title: beamer struggling with subfig   (subfig doesn't work!)

text: I want to put multiple figures in one frame. I am trying different combinations but neither works. I used `subfigure` (worked) but I didn't manage to put in a proper way the figures. As I read, it's better to use `subfig` (and also it's easier for me), but it seems `subfig` always throw a lot of errors (and it opens the `subfig.sty` file).               \documentclass[10pt,blue]{beamer}           \setbeamertemplate{navigation symbols}{}      \usepackage[caption=false]{subfig}                    \usepackage{fontspec}     \setsansfont{DejaVuSans}     \usepackage{polyglossia}     \setmainlanguage{greek}      \setotherlanguage{english}          \usepackage{url}                %\usepackage{caption}%,subcaption}                     \usepackage{ graphicx, amsmath, amssymb, lettrine}               \newcommand{\EN}[1]{\foreignlanguage{english}{#1}}     \mode<presentation>          \begin{document}          \begin{frame}     \frametitle{\EN{title}}     \setbeamercovered{transparent}               \begin{figure}     \centering          \subfloat[][]{\includegraphics[scale=0.55]{cad-}\label{lab1}}     \subfloat[][]{\includegraphics[scale=0.55]{grid}\label{lab2}}     \subfloat[][]{\includegraphics[scale=0.55]{grid}\label{lab3}}     \subfloat[][]{\includegraphics[scale=0.55]{grid}\label{lab4}}     \subfloat[][]{\includegraphics[scale=0.55]{grid}\label{lab5}}     \subfloat[][]{\includegraphics[scale=0.55]{grid}\label{lab6}}          %\caption{\EN{text} \protect\subref{lab1} \EN{some text}      %  \protect\subref{lab2} \EN{ text}}          \end{figure}          \end{frame}          \end{document}      \---------------UPDATE---------------------------------- Even with that setup doesn't work.. It seems `subfig` doesn't work. It opens the `subfig.sty` file.               \documentclass{beamer}          \usepackage[utf8x]{inputenc}     \usepackage{default}     \usepackage[caption=false]{subfig}               \begin{document}     Hello     \end{document}      \---------------UPDATE 2--------------------------------------- Beginning of `log` file:               This is XeTeX, Version 3.1415926-2.2-0.9995.2 (TeX Live 2009/Debian) (format=xelatex 2012.7.6)  9 SEP 2012 17:49     entering extended mode      %&-line parsing enabled.     **forstack.tex     (./forstack.tex     LaTeX2e <2009/09/24>     Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh     yphenation, ibycus, monogreek, greek, ancientgreek, loaded.     (/usr/share/texmf-texlive/tex/latex/graphics/graphicx.sty     Package: graphicx 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)          (/usr/share/texmf-texlive/tex/latex/graphics/keyval.sty     Package: keyval 1999/03/16 v1.13 key=value parser (DPC)     \KV@toks@=\toks14     )     (/usr/share/texmf-texlive/tex/latex/graphics/graphics.sty     Package: graphics 2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)          (/usr/share/texmf-texlive/tex/latex/graphics/trig.sty     Package: trig 1999/03/16 v1.09 sin cos tan (DPC)     )     (/etc/texmf/tex/latex/config/graphics.cfg     File: graphics.cfg 2009/08/28 v1.8 graphics configuration of TeX Live     )     Package graphics Info: Driver file: xetex.def on input line 91.          (/usr/share/texmf-texlive/tex/xelatex/xetex-def/xetex.def     File: xetex.def 2009/11/22 v0.94 LaTeX color/graphics driver for XeTeX (RRM/JK)          ))     \Gin@req@height=\dimen102     \Gin@req@width=\dimen103     )     (/usr/share/texmf/tex/latex/beamer/base/beamer.cls     (/usr/share/texmf/tex/latex/beamer/base/beamerbasercs.sty     Package: beamerbasercs 2007/01/28 (rcs-revision 1.4)     )     Document Class: beamer 2007/03/11 cvs version 3.07 A class for typesetting pres     entations (rcs-revision 1.70)     (/usr/share/texmf/tex/latex/beamer/base/beamerbasemodes.sty      The first errors:               ! Missing \endcsname inserted.     <to be read again>                         \ext@figure      l.298 ...ined{c@subfigure}{\newsubfloat{figure}}{}          The control sequence marked <to be read again> should     not appear between \csname and \endcsname.               ! LaTeX Error: Missing \begin{document}.          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...                                                        l.298 ...ined{c@subfigure}{\newsubfloat{figure}}{}          You're in trouble here.  Try typing  <return>  to proceed.     If that doesn't work, type  X <return>  to quit.          ! Extra \endcsname.     \@ifundefined ...dafter \ifx \csname #1\endcsname                                                        \relax \expandafter \@firs...     l.298 ...ined{c@subfigure}{\newsubfloat{figure}}{}          I'm ignoring this, since I wasn't doing a \csname.          ! Missing \endcsname inserted.     <to be read again>                         \ext@figure      l.298 ...ined{c@subfigure}{\newsubfloat{figure}}{}          The control sequence marked <to be read again> should     not appear between \csname and \endcsname.          ! Extra \endcsname.     \newcounter ...ifdefinable \csname c@#1\endcsname                                                        {\@definecounter {#1}}\@if...     l.298 ...ined{c@subfigure}{\newsubfloat{figure}}{}          I'm ignoring this, since I wasn't doing a \csname.


title: from string to command

text: What exactly happens in:               \newcommand{\mystring}[1]{\gdef\@mystring{#1}}      when `\mystring{mystring}` is used later in the document? It is known that `mystring` will be put in `\mystring` but I would like to know how in a Latex sense. **Edit:** More information is given below. My programming skills in general and especially my Latex programming skills are decently low. I want to prepare a template for conference proceedings where specific information should be stored in appropriate strings that can be used later. Typically, authors' names could be stored in _a variable_ that we will call `\AuthorNames` so that `\AuthorNames` (or more exaclty `\@AuthorNames` as indicated by Ulrike) can be indicated in the right footer of the paper for instance. Since I do not know much, I decided to mimic existing Latex classes (probably the article class). By travelling through the class examples, I figured out that:               \newcommand{\AuthorNames}[1]{\gdef\@AuthorNames{#1}}      was doing was I needed. I can know reformulate my question through a comparison with FORTRAN. What is the LaTeX version of:                CHARACTER :: AuthorNames      Or in other terms, is there a LaTeX guide somewhere saying: "if you want to declare a string of characters in LaTeX", use this: [blablabla]. I should probably read "texbytopic", that's all.


title: Combine ipe and beamer presentation (font identification)

text: I am trying to transition from an existing ipe presentation to beamer by combining slides from both into the same presentation. To do this I need to match the existing slides in beamer, a job that shouldn't be too hard I thought. However, can anyone tell me how to reproduce the following please. My first problem is the font. Using acroread or pdffonts to determine the fonts used I get a long list that I can't interpret. whatthefont.com gives a few options and the closest is http://www.myfonts.com/fonts/processtype/seravek/extra-light/ which I find hard to believe.


title: Alignment in pst-tree

text: In this example, using `pst-tree` package:               \def\psedge{\ncangles[armA=.5, angleB=180, linearc=.2]}     \pstree[treemode=R, levelsep=3cm] {\Toval{ root }} {       \Toval{ Tom }       \Toval{ Cat }       \Toval{ Very very very very very long entry }       \Toval{ Jerry }     }      The output is ugly because the nodes are aligned by center, how can I make it align to the left?


title: Strange recursive macro output

text: Strange recursive macro output The code that follows describes a macro that can iterate recursively (i.e, a forloop) and uses e-TeX `numexpr`. It is based on an example found in the e-TeX manual (page 9) The first part of the code is pretty straight forward. In the second definition of `foo`, it appears that the macro loops twice!               0,1,2,3,4,5     TeX     TeX     TeX     TeX     TeX      Something does not look correct here! It reminds me of closures in JavaScript. Can you explain this behaviour? There is also a second part to the question. The e-TeX manual defines a similar function as:               \def\foo#1#2{\noindent\number#1     \ifnum#1<#2,     \expandafter\foo     \expandafter{\number\numexpr#1+1\expandafter}%     \expandafter{\number#2\expandafter}%     \fi}      What are all these `\expandafters` used for? They seem unecessary. Shouldn't also the comma be after `\number#1` on line one rather than after the `ifnum`? Here is my code with all three examples:               \documentclass[11pt]{article}     \begin{document}          \def\foo#1#2#3{\noindent\number#1, \TeX\par     \ifnum#1<#2          \foo{\number\numexpr#1+\number#3}{\number#2}{\number#3}%     \fi}          \foo{0}{5}{1}     \bigskip               \def\foo#1#2#3{\noindent\number#1,      \ifnum#1<#2       \foo{\number\numexpr#1+\number#3}{\number#2}{\number#3}%        %\else\relax          \noindent\TeX\par     \fi}               \foo{12}{18}{1}               \bigskip     \def\foo#1#2{\number#1, \TeX\par     \ifnum#1<#2     \expandafter\foo     \expandafter{\number\numexpr#1+1\expandafter}%     \expandafter{\number#2\expandafter}%      \fi}                    \foo{12}{18}          \end{document}


title: Strange chapter influence on quotation environment

text: The code below give a strange result when I comment out the `\begingroup` end `\endgroup`: the quotation environment has different vertical space to the text before ("Some text"). What is it that chapter defines that the quotation environment behaves different?               \documentclass{book}     \parindent 0pt     \begin{document}          %\begingroup  % <--- remove      \chapter{abc}     %\endgroup    % <--- remove          Some text          \begin{quotation}     quotation with(out) vertical distance to the previous text     \end{quotation}          \end{document}


title: PGF/TikZ and Sans Serif Fonts

text: I have a TikZ/PGF file created directly by a graphing package of the form `\begin{tikzpicture}{dimensions} ... \end{tikzpicture}`. The file uses `\pgftext[...]{\selectfont{Some text here or \boldmath$math$}}` to render text. By default, when I include the file in my document, the text is typeset in the default font for my document (Latin Modern Serif). However, I wish for all of my figures/graphs to be typeset in a sans-serif font (Latin Modern Sans). How can I go about this? Ideally, I would like to accomplish this without having to edit the file directly (so just changing the LaTeX around where I include it). **Update: Minimal Example**               \begin{tikzpicture}      \pgftext{\selectfont{Hello \boldmath$W \times orld$}}     \end{tikzpicture}      Anything which can correctly set that piece of text to be sans-serif should do the trick.


title: How do I implement eps2pgf command line tool?

text: I use MiKTeX 2.8 on a Windows 7 (64bit) machine and I would like to use the `eps2pgf` interpreter. I have no idea how to proceed after downloading `eps2pgf.zip`. ![list of errors](http://i.stack.imgur.com/sEuRi.png) state.eps file


title: Math font to match Helvetica

text: Is there any package to change the math font (amsmath Computer Modern) to match the Helvetica font I am using as default in my document (`helvet` or `tgheros` package)? (In the same way as `mathpazo` for Palatino math)


title: Shift line connecting anchors

text: How can I shift a line the endpoints of which are defined by anchors like this?               \draw (i0) -- (i1);      The following approach does not work:               \draw[xshift=2pt] (i0) -- (i1);


title: How to prevent a page break between section title and colored rule?

text: I use `\usepackage[explicit]{titlesec}` to customize the design of my sections, subsections... In particular, i have :               \titleformat{\section}%     {\large\sffamily\bfseries}%     {My Section \arabic{section} }%     {0.5em}%     {#1}% \\ \hspace*{-1.5cm}     [{\color{blue}\titlerule[2.5pt]}]      where the `{\color{blue}\titlerule[2.5pt]}` produces an underline. The problem is, that a page breaking can happen just after the section title, and the line would appear on the next page. Is there a way to prevent that ? EDIT : Minimal Example:               \documentclass[12pt]{article}     \usepackage[explicit]{titlesec}     \usepackage[dvipsnames]{xcolor}          \titleformat{\section}%     {\large\sffamily\bfseries}%     {Section \arabic{section}}%     {0.5em}%     {#1}% \\ \hspace*{-1.5cm}     [{\color{blue}\titlerule[2.5pt]}]          \begin{document}          \section{titre1}     blabla       \vspace{16cm}\\     blabla       \section{titre2}     blabla blabla      \end{document}


title: Unable to change the text of PGF decoration

text: A follow up to the answer of @TomBombadil on Circular Arrows and Text on Path. I am trying to tweak the text's size and/or color and the compilation gets stuck on:               (/usr/local/texlive/2013/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))      In particular, I tried to replace the `text={#8}` in the last line of the definition of the macro `\arcarrow` to something like `\text={\large #8}` but it didn't work. Any ideas? For completeness, here is the code I try to compile:               \documentclass[border=10pt]{standalone}     \usepackage{tikz}     \usetikzlibrary{decorations.text}          \newcommand{\arcarrow}[8]% inner radius, middle radius, outer radius, start angle, end angle, tip protusion angle, options, text     {   \pgfmathsetmacro{\rin}{#1}       \pgfmathsetmacro{\rmid}{#2}       \pgfmathsetmacro{\rout}{#3}       \pgfmathsetmacro{\astart}{#4}       \pgfmathsetmacro{\aend}{#5}       \pgfmathsetmacro{\atip}{#6}       \fill[#7] (\astart:\rin) arc (\astart:\aend:\rin) -- (\aend+\atip:\rmid) -- (\aend:\rout) arc (\aend:\astart:\rout) -- (\astart+\atip:\rmid) -- cycle;       \path[decoration={text along path, text={\large #8}, text align={align=center}, raise=-0.5ex},decorate] (\astart+\atip:\rmid) arc (\astart+\atip:\aend+\atip:\rmid);     }          \begin{document}     \begin{tikzpicture}       \arcarrow{3}{4}{5}{10}{110}{10}{red,draw=red!20!black,very thick}{Parameterization}       \arcarrow{3}{4}{5}{130}{230}{10}{red,draw=red!20!black,very thick}{Approximation}       \arcarrow{3}{4}{5}{250}{350}{10}{red,draw=red!20!black,very thick}{Implementation}     \end{tikzpicture}     \end{document}


title: Entering figure in the header in exam class

text: I am using the exam class for preparing a question paper. Can anyone tell me how to insert a figure in the header? My aim is to insert the university's letterhead at the top of the paper. regards Leo


title: Change the margin twice on one page

text: I am attempting to change the margin on a section of the first page of my report.               \documentclass[10pt]{article}     \usepackage[left=25.4mm, right=25.4mm, top=12.7mm, bottom=25.4mm]{geometry}               %\setlength\parindent{12pt} % Indentation          \begin{document}     \newgeometry{left=12.7mm, right=12.7mm, top=12.7mm, bottom=25.4mm}     \begin{flushright}     \begin{figure}[H]     \begin{flushright}        \includegraphics[width=3in]{Some-place.jpg}         \end{flushright}     \end{figure}     \large A conference title     \end{flushright}     \begin{centering}     \LARGE {A generic title}\\[0.5cm]     \large \textsc{The author\\     \small \textit{The author's address}\\[0.75cm]     \end{centering}     \noindent\makebox[\linewidth]{\rule{\textwidth}{0.4pt}}     \end{minipage}          \begin{multicols*}{2}          \section*{ABSTRACT}     Exciting text to sell the abstract!      This is the code I am using which works except the abstract begins on the next page with a load of white space after the title. Is there any way to get the title to be full page with 1.27cm left and right margins then the 2 columns start immediately after with 2.54cm margins? Thanks.


title: Where in the world is tikzlibraryhobby.code.tex?

text: I was trying to reproduce Claudio Fiandrino's answer to How can we draw a Hannukah Menorah with decorations, using TikZ?. However, I do not have the _hobby package_ by Andrew Stacey in my local distribution. After reading Update TikZ/PGF on mac and How to install a current version of TikZ?, I looked at the latest TikZ/PGF CVS (build on December 7, 2012) but could not located the hobby package in it. I found the hobby directory but do not know where each file is supposed to go in my distribution. How do I add the hobby package? In general, what would be the easy way to get any new TikZ package installed in a Mac? EDIT: I have used the drag-and-drop (mac) method as described below. (1) Drag `pml3array.sty` file to `/Users/Username/Library/texmf/tex/latex` folder.   (2) Drag `hobby.code.tex` file to `/Users/Username/Library/texmf/tex/generic/pgf/math` folder.   (3) Drag `pgflibraryfpu.code.tex` to `/Users/Username/Library/texmf/tex/generic/pgf/libraries` folder.   (4) Drag `tikzlibraryhobby.code.tex` to `/Users/Username/Library/texmf/tex/generic/pgf/frontendlayer/tikz/libraries` folder. I no longer get the `hobby cannot be found` error message. But, is this correct?


title: Toeplitz matrix in LaTeX

text: How do I create a Toeplitz matrix like the following in LaTeX? ![matrix](http://i.stack.imgur.com/ESAur.jpg)


title: Organisation-produced references in JabRef

text: Using Jabref and Libreoffice, via Jabref's 'OpenOffice connect' feature. I have a source that includes spaces and the word 'and' in a single author's name. Jabref parses this according to the usual rules - spaces separate first and last names, 'and' separating multiple authors. I have wrapped the name in an extra set of braces like so:               @Book{Innovation2011,       Title                    = {ICAICT203A - Operate application software packages},       Author                   = {{Innovation and Business Skills Australia}},       Publisher                = {Australian Government},       Year                     = {2011},       Url                      = {https://training.gov.au/Training/Details/ICAICT203A}     }      Which causes it to be treated as one symbol in the reference list (it appears as "Innovation and Business Skills Australia" rather than "Innovation and Australia, B. S"). But, my in-text citations for it still appear as "(Innovation & Australia, 2011)" rather than "(Innovation and Business Skills Australia, 2011)". This also happens with, for example, this source, where the author is two words which don't comprise a person's name:               @Book{BlackwaterProjects2013,       Title                    = {Certificate IV Training and Assessment Participant Manual - Design},       Author                   = {{Blackwater Projects}},       Year                     = {2013}     }      Is properly included in the reference list as "Blackwater Projects" rather than "Projects, B" (as it is without the extra braces), but the in-text references are "(Projects, 2013)". Using other fields such as 'organisation' instead of 'author' behaves the same way. Is there a way to convince Jabref to use the full author name for in-text references for these sources?


title: Forcing figure with 4 subfigures to span over twocolumns

text: I tried:               \begin{figure*}             \centering             \begin{subfigure}[b]{0.25\textwidth}                     \includegraphics[width=\textwidth]{figures/a}                     \caption{a}                     \label{fig:a}             \end{subfigure}%                  \begin{subfigure}[b]{0.25\textwidth}                     \includegraphics[width=\textwidth]{figures/b}                     \caption{b}                     \label{fig:b}             \end{subfigure}                  \begin{subfigure}[b]{0.25\textwidth}                     \includegraphics[width=\textwidth]{figures/c}                     \caption{c}                     \label{fig:c}             \end{subfigure}              \begin{subfigure}[b]{0.25\textwidth}                     \includegraphics[width=\textwidth]{figures/d}                     \caption{d}                     \label{fig:d}             \end{subfigure}             \caption{Pictures of ABCD}\label{fig:ABCD}     \end{figure*}      but the figures appeared on one column vertically! How can I force these 4 figures to span horizontally on both columns


title: Unexpected page breaks with parallel package

text: I am trying to use the package parallel to typeset some text in two languages. The text in language A should appear on even pages, the text in language B on odd pages. I typeset               \documentclass{article}          \usepackage{parallel}          \begin{document}     \begin{Parallel}[p]{}{}     \ParallelLText{Hello}     \ParallelRText{Hallo}     \ParallelPar     \ParallelLText{Hello}     \ParallelRText{Hallo}     \ParallelPar     \end{Parallel}     \end{document}      Does anybody know why the parallel package breaks the page after the first `\ParallelPar`? That is, why do I get 5 pages output instead of 3? Is this a feature or a bug of the package or did I do something wrong?


title: How to open log window in QTikZ

text: Unluckily for me, I close the log window in QTikZ (small window which stand below main editor window). Does anybody know how to open it again?. I try with `View -> View Log` but without success.


title: listing package and vbox warning

text: I have this many (see below) underfull warnings that are caused by using the listing package and creating `\begin{lstlisting}\end{}` to make code appear presentable. Is there a may to fix the warnings? I am using IEEETran document class and the `lstlisting` set up (see below). Can this be adjusted to fix the issues?               \lstset     {       breaklines=true,       tabsize=3,       showstringspaces=false     }               \lstdefinestyle{Common}     {       extendedchars = \true,       language = {Python},       frame = single,       % ===========================================================                             framesep = 3pt,%expand outward.                                                           framerule = 0.4pt,%expand outward.                                                        xleftmargin = 3.7pt,%make the frame fits in the text area.                                xrightmargin = 3.5pt,%make the frame fits in the text area.                               % ===========================================================                             rulecolor=\color{Red}     }          \lstdefinestyle{B}     {       style = Common,       backgroundcolor = \color{Black},       basicstyle = \scriptsize\color{White}\ttfamily,       keywordstyle = \color{Orange},       identifierstyle = \color{Cyan},       stringstyle = \color{Red},       commentstyle = \color{Green}     }      Warngins:               Underfull \vbox (badness 10000) has occurred while \output is active [4]     Underfull \vbox (badness 10000) has occurred while \output is active     Underfull \vbox (badness 10000) has occurred while \output is active [5]     Underfull \vbox (badness 10000) has occurred while \output is active     Underfull \vbox (badness 10000) has occurred while \output is active [6]     Underfull \vbox (badness 10000) has occurred while \output is active [7]     Underfull \vbox (badness 10000) has occurred while \output is active     Underfull \vbox (badness 10000) has occurred while \output is active [8]     Underfull \vbox (badness 10000) has occurred while \output is active [9]     Underfull \vbox (badness 10000) has occurred while \output is active     Underfull \vbox (badness 10000) has occurred while \output is active [10]     Underfull \vbox (badness 10000) has occurred while \output is active     Underfull \vbox (badness 10000) has occurred while \output is active [11]


title: Add vertical line margin-aligned from a given point through subsequent pages

text: Using the memoir package, I would like to have a vertical line on my margin like this:               Some leading content                ... vertical space ...          ----------------------------------      XYZ  | Content A           |           | Content B           |           | Content C           |           | ...           |           | Content N             *** page break ***                | Content A1           |           | Content B1           |           | Content C2           |           | ...           |            ...      I would like the content XYZ to be in a margin note or paragraph (`marginpar`, and the vertical line to follow the margin of the page, with the content A being in a page the width of that area. The content will span multiple pages, and be somewhat complex - with e.g. multiple tables that may themselves span pages, and justified content. In essence, the body of the document will be Content * - so I would like to have that be the body of the page. So on my TODO list I have the following:   1. Set the margin of the page to be larger (`\oddsidemargin`);   2. Add lead-in content that is set at the standard margin position;   3. Add a vertical line along the page margin that spans multiple pages;   4. Add margin paragraphs (for "XYZ"). I had in fact figured this out before, but have since forgotten and lost how I worked it out, so am posting in part to preserve the solution but also because I'm sure just about everybody reading this will know better than I how to achieve the objective. I will post my own solution once I re-discover it. Though I will post my answer with more details, here are my initial thoughts:   1. Using `longtable` or equivalent to solve 1, 2, 3 and 4 had crossed my mind, instead of mucking around with page dimensions and such, but as mentioned the "Content *" will include tables and such. It can be worked around I am sure, but it struck me as less elegant than setting the page dimensions accordingly.   2. Otherwise problems 2, 3 and 4 seem to be mostly an implementation issue with `memoir`, notwithstanding the vertical line - I cannot recall if that    3. If the other can be achieved, I am tempted to use the `textpos` package to solve problem 2.   4. Vertical rules using the e.g. 'background' package to solve problem 3.


title: Chapter count not increasing

text: Consider the following MWE:               \documentclass[12pt,twoside,letterpaper]{report}          \usepackage{etoolbox}          \newcounter{totchapters}          \providecommand\totchap{}          \makeatletter     \AtEndDocument{%       \addtocounter{totchapters}{\value{chapter}}%       \immediate\write\@mainaux{%         \string\gdef\string\totchap{\number\value{totchapters}}%       }%     }     \makeatother          \pretocmd{\chapter}{\addtocounter{totchapters}{\value{chapter}}\setcounter{chapter}{0}}{}{}          \begin{document}     \totchap\     \chapter{one}     \chapter{two}     \chapter{three}     \chapter{four}     \end{document}      I am trying to gain access to the total number of chapters in a document. I got inspiration from http://tex.stackexchange.com/a/55583/10898. But for some reason or the other the chapter counter is affected and no longer increasing. Why is that the case and how can it be fixed? Note that I would like to use this total to make calculations.


title: BibTeX: citing a standard in IEEEtran style

text: This should really be a comment on BibTex: citing IEEE standard, but I only have enough rep to ask a new question. Here is how you can cite a standard in BiBteX using the IEEEtran style. The code is adapted from the accepted answer at BibTex: citing IEEE standard, which doesn't produce exactly the format given by the IEEE Citation Reference: > [1] _IEEE Criteria for Class IE Electric Systems_ , IEEE Standard 308, 1969. To get the desired format, I used the journal field and the month field to trick BiBteX into formatting the standard correctly.               \documentclass{article}     \usepackage{filecontents}     \usepackage{lipsum}     \begin{filecontents*}{testing.bib}     @article{mystandard,      journal="IEEE Criteria for Class IE Electric Systems",      month="{IEEE} Standard 308,",     year=1969,     }     \end{filecontents*}          \begin{document}     \lipsum[1]See \cite{mystandard} for more info      \bibliographystyle{IEEEtran}     \bibliography{testing}     \end{document}      The output matches the IEEE Citation Reference.


title: How to generate non-blanks between words?

text: In an otherwise-vanilla latex doc, I have a long list of strings that I need separated by `<space> <cdot> <space>`. The output needs to look like:               Lorem <cdot> ipsum  <cdot> dolor <cdot> sit     amet <cdot> consectetuer <cdot> adipiscing      It's trivial to write a `\newcommand{\foo}[1]{\mbox{#1} \ $\cdotp$\ \ }`, but that approach is unaware of TeX's newlines, and produces output like               Lorem <cdot> ipsum  <cdot> dolor <cdot> sit     <cdot> amet <cdot> consectetuer <cdot>  <<<--- <cdot> at beginning and end of line     adipiscing      If it makes any difference, the document is `\raggedright` throughout. This issue feels like it involves TeX's line and paragraph breaking, which, for me, is in the Land Of Monsters.


title: Indent in a customized enviornment

text: Hullo. I have a doc, and am using a customized environment. I have tried putting the title for the next section simply as a subsection, but like the customized environment I have created. However, I would like the text 'within' said environment to be indented (even the first paragraph) just like the rest of my doc (I use the package 'indentfirst'). Here is a MWE:               \documentclass{book}     \usepackage{xcolor}     \usepackage{amssymb}     \usepackage{indentfirst}          \begin{document}     \chapter{Weekday Morning Prayers}     \section{Morning Prayers of Light}     \begin{prayerheading}        Tuesday Morning-Prayer V     \end{prayerheading}          O Treasury of Good Things, Ever-flowing fountain, Holy Father, etc etc          For Thou art our God, and unto Thee do we send up glory: to the Father, and to the Son, and to the Holy Spirit, now and ever, and unto ages of ages. Amen.           \end{document}      And for the _prayerheading_ , I use the following environment:               \newenvironment{prayerheading}{%       \center\large\bfseries\color{red}%      }     {\endcenter}      Thanks for any help you all can be!


title: What LaTeX system should I use for an Ubuntu/Win7 dual boot environment?

text: I have a fresh install of a dual boot system with Windows 7 and Ubuntu 10.10. They live in separate partitions of the hard drive, invisible (unmounted...) to eachother, but have a common data partition which they can both reach. Now, I want to be able to use LaTeX regardless of which OS I've booted. I've previoulsy used MiKTeX and TeXWorks on Windows, and been pretty satisfied with it, but I'm new to LaTeX on Ubuntu, so I have no prejudice on editors etc for this half. What I liked most about TeXWorks was the ability to compile the document without leaving the program, and the split view (source code on one half of the screen, output from latest compile run on the other), so if that's available in an Ubuntu IDE that's a plus. The most important thing is that they share a package repository. In MiKTeX, packages I hadn't used before were automatically downloaded from CTAN when used the first time, which made things a lot simpler. I also had my own little collection of packages, in a separate root folder. Any setup that doesn't share all packages between the two operative systems, makes my life harder than it has to be =) How do I best set up this? On which OS should I install what, and how? Does the installation order matter? Any tips are welcome!


title: Force Picture to take up remaining space on a page

text: I have a picture that needs to be presented in as large a format as possible due to its intrinsic size and the fact that the graph is reltively dense with information presenting results at 255 points. I want to show one graph per page and the code below does this. However on the first page where I also want to include the header Results the graph is pushed onto the next page. How can I change the code so that the header and graph appear on the same page with the graph taking up as much of the remaining space as possible.               \Section{Results}          \begin{figure}[h!]     \includegraphics[width=\textwidth, height=\textheight, scale=1]{2002.eps}      \caption{Error Distributions and Distance between Median Solutions}\label{fig:2.1}      \end{figure}           \clearpage


title: Vertical path to node in TikZ trees

text: How can I set the path between two specific nodes to "vertical" rather than "direct"? Currently my tree looks like this:               \begin{tikzpicture}[level distance=1.5cm,         every node/.style={draw=black,very thick,minimum width=10mm,inner sep=2mm},         every path/.style={thick},         level 1/.style={sibling distance=4cm},         level 2/.style={sibling distance=2cm},         level 3/.style={sibling distance=0.5cm,level distance=10mm},         leaf/.style={fill=black,minimum width=2mm,minimum height=2mm,inner sep=0mm}]         \node{10}             child{node{8}                 child{node{5}                     child{node[leaf]{}}                     child{node[leaf]{}}                 }                 child{node{9}                     child{node[leaf]{}}                     child{node[leaf]{}}                 }             }             child{node{20}                 child{node{12}                     child{node[leaf]{}}                     child{node[leaf]{}}                 }                 child{node{21 29}                     child[edge from parent]{node[leaf]{}}                     child{node[leaf]{}}                     child{node[leaf]{}}                 }             };     \end{tikzpicture}      ![B-Tree](http://i.stack.imgur.com/r4Kzp.png) I would like to have the paths between the last row and the leafs to be vertical, rather than diagonal.


title: curly braces problem (garamondx package)

text: Sorry. i couldn't see another question about this. I'm using garamondx package. The problem is large curly bracket. It seems like the picture given. i want stg like { , but that's like ( . what can i do? ![enter image description here](http://i.stack.imgur.com/2Z0WE.png) Code:               \documentclass[11pt,a4paper]{article}     \usepackage[utf8x]{inputenc}     \usepackage{ucs}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}     \usepackage{graphicx}     \usepackage{xcolor}     \usepackage[T1]{fontenc}     \usepackage{garamondx}     \usepackage[garamondx,cmbraces]{newtxmath}     \DeclareSymbolFont{operators}{OT1}{txr}{m}{n}     \DeclareMathAlphabet{\mathbf}{OT1}{txr}{bx}{n}     \usepackage[left=2.00cm, right=2.00cm, top=2.00cm, bottom=2.00cm]{geometry}     \DeclareSymbolFont{largesymbols}{OMX}{yhex}{m}{n}          \begin{document}          $\{f(x)= \left\{ \begin{cases}       & 1 \\       & 2 \\       & 3 \\      \end{cases} \right.$ \\          $W(A,B)=\left\{ \begin{array}{l}         0 \quad \text{se $n$=0 ed $m$=0}\\         \infty \quad \text{se $n$=0 o $m$=0}\\            \end{array} \right.$          \end{document}


title: Is there a LaTeX package to format computer language grammars?

text: I need to display BNF grammars, but couldn't find any LaTeX package that does this.


title: Bundledoc tool showing error in OS Windows 7

text: As per the documentation of bundledoc, I have used a simple Tex file as mentioned in the document               \RequirePackage{snapshot}     \documentclass[11pt]{article}     \begin{document}     Hello, world! \ref{sec2}     \end{document}      Where it produces a file `hello.dep`. The content generated inside the `hello.dep` are:               \RequireVersions{       *{application}{TeX}     {1990/03/25 v3.x}       *{format} {LaTeX2e}     {2011/06/27 v2.e}       *{package}{snapshot}    {2002/03/05 v1.14}       *{class}  {article}     {2007/10/19 v1.4h}       *{file}   {size11.clo}  {2007/10/19 v1.4h}     }      I ran the following command               bundledoc --config=miktex.cfg hello.dep      but it produces the below mentioned error               initexmf: --find-latex-input: unknown option     bundledoc: "initexmf --find-latex-input %BDINPUTS%" (BDINPUTS="hello.tex") failed to find hello.tex      Can anyone please guide me how to solve this error. Thanks


title: Incorrect link in \listoftables after \setcounter{table}{0}

text: I'm trying to put together a statistical analysis plan using LaTeX. This is something I've never tried before. I want to create a section at the end called table shells, but I'm running into a couple of problems. The first happens when I use `\setcounter{table}{0}` followed by `\listoftables`. The idea is to list all of my table shells at the end without also listing tables that came earlier in the body of the document. I've included some sample code below to illustrate the problem. When I run this code, the link on page 5 that should point to the first table shell (\S1) actually points to the first table in the body of the document. Interestingly, the problem doesn't seem to crop up if I use a `tabular` environment instead of `longtable` for the tables in the body. My actual document has a multi-page table in the body though. So I can't solve my problem that way. I'm also curious to know what is going wrong. The second problem I'm struggling with is figuring out how to make my LoT look like a section with numbering. My understanding is that a LoT doesn't normally have this but I think it makes sense to have it in this particular context. Any help with this would be greatly appreciated. Thanks, Paul               \documentclass[12pt]{article}          %% Margins %%          \setlength{\textwidth}{6.25in}      \setlength{\oddsidemargin}{0in}          %%%% Packages %%%%          \usepackage[nottoc,numbib]{tocbibind}     \usepackage[font={bf}]{caption}     \usepackage[newcommands]{ragged2e}     \usepackage{array}     \usepackage{longtable}     \usepackage{threeparttablex}     \usepackage{booktabs}     \usepackage[       pdfstartpage=30,       pdfpagemode=UseOutlines,       bookmarks,       bookmarksopen,       pdfstartview=Fit,       pdfview=Fit,       colorlinks,       linktocpage,       linkcolor=blue,       citecolor=blue,       pagebackref=true     ]{hyperref}          \begin{document}          \newpage          \section{Text with Tables Before the Table Shells}          An initial table called Table \hyperref[tbl:another]{\ref{tbl:initial}}.          {     \footnotesize     \begin{longtable}{ *{3}{>{\centering}m{1.5in}} }       \caption[]{An Initial Longtable}  \\ \hline       \label{tbl:initial}       Column 1 & Column 2 & Column 3 \\ \hline     \endfirsthead        \caption[]{An Initial Longtable (Continued)}  \\ \hline       Column 1 & Column 2 & Column 3 \\ \hline     \endhead        \hline \multicolumn{3}{r}{\emph{Continued on next page}}     \endfoot        \hline     \endlastfoot     XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      \end{longtable}     }          \newpage          Another table called Table \hyperref[tbl:another]{\ref{tbl:another}}.          {     \footnotesize     \begin{longtable}{ *{3}{>{\centering}m{1.5in}} }       \caption[]{Another Longtable}  \\ \hline       \label{tbl:another}       Column 1 & Column 2 & Column 3 \\ \hline     \endfirsthead        \caption[]{Another Longtable (Continued)}  \\ \hline       Column 1 & Column 2 & Column 3 \\ \hline     \endhead        \hline \multicolumn{3}{r}{\emph{Continued on next page}}     \endfoot        \hline     \endlastfoot     XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      \end{longtable}     }          \newpage          %\section{Appendix B: Table Shells}     \setcounter{table}{0}     \renewcommand\listtablename{Appendix A: Table Shells}      \renewcommand\thetable{\S\arabic{table}}     \listoftables          \newpage          {     \footnotesize     \begin{longtable}{ *{3}{>{\centering}m{1.5in}} }       \caption[First Table Shell]{First Table Shell} \\ \hline       Column 1 & Column 2 & Column 3 \\ \hline     \endfirsthead       \caption[]{First Table Shell (Continued)} \\ \hline       Column 1 & Column 2 & Column 3 \\ \hline     \endhead        \hline \multicolumn{3}{r}{\emph{Continued on next page}}     \endfoot        \hline     \endlastfoot     XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      XXXXX & XXXXX & XXXXX \\      \end{longtable}     }          \newpage          \begin{table}[h]     \caption[Second Table Shell]{Second Table Shell}     \begin{center}     \begin{tabular}{lcc} \hline     Column 1   & Column 2   & Column 3 \\ \hline     Col1, Row1 & Col2, Row1 & Col3, Row1 \\          Col1, Row2 & Col2, Row2 & Col3, Row2 \\     Col1, Row3 & Col2, Row3 & Col3, Row3 \\ \hline     \end{tabular}     \end{center}     \end{table}          \newpage          \begin{table}[h]     \caption[Third Table Shell]{Third Table Shell}     \begin{center}     \begin{tabular}[c]{lcc} \hline     Column 1   & Column 2   & Column 3 \\ \hline     Col1, Row1 & Col2, Row1 & Col3, Row1 \\          Col1, Row2 & Col2, Row2 & Col3, Row2 \\     Col1, Row3 & Col2, Row3 & Col3, Row3 \\ \hline     \end{tabular}     \end{center}     \end{table}          \end{document}


title: ! LaTeX Error: Undefined color `BLACK'

text: i have written all the text in black color, but i get this error several times in the same page:               ! LaTeX Error: Undefined color `BLACK'.      i tried to solve it by writting this: `\definecolor{black}{gray}{0,0,0}` but it didn´t work. what should i do?


title: How can i change "Table" words in the list of table to bold?

text: I am preparing a thesis format for my university. They want bold all Table words in list of tables. Relevant part of the codes given below.               \def\listoftables{\thispagestyle{empty}     \oneandhalfspacing     \@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn     \fi     \prechapter*{\vskip-1mm \begin{flushleft}     \@lot      \end{flushleft}\@mkboth      {\@lot}{\@lot}}     \addcontentsline{toc}{leads}{\protect\numberline\MakeUppercase {}LIST OF TABLES}     \@starttoc{lot}\if@restonecol      \twocolumn\fi\newpage }     \def\l@table{\@mytabledottedtocline{1}{0em}{3.0em}}      The list seems below ![List of Tables](http://i.stack.imgur.com/bDQ4U.jpg) I want to transform "Table ....." to " **Table**. How can i do it?


title: Table of Contents is numbered. How to correct it?

text: I am using a template to write up a proposal. The only issue is when I try to have a table of Contents, it comes up numbered with a zero.               \documentclass{proposal}     \usepackage{epsfig}     \usepackage{fontspec}     \setsansfont{Roboto Condensed}     \usepackage{xcolor,lipsum}     \usepackage{titlesec}     \titleformat{name=\section}[block]       {\sffamily\large}       {}       {0pt}       {\colorsection}     \titlespacing*{\section}{0pt}{\baselineskip}{\baselineskip}     \usepackage[english]{babel}     \usepackage[utf8]{inputenc}     \usepackage{fancyhdr}          \pagestyle{fancy}     \fancyhf{}          \newcommand{\colorsection}[1]{%       \colorbox{blue!20}{\parbox{\dimexpr\textwidth-2\fboxsep}{\thesection\ #1}}}               \begin{document}     \begin{titlepage}         \begin{center}             \vspace*{1cm}              \Huge         \textbf{Research Proposal}              \vspace{1cm}         \LARGE         Project: ?              \vspace{2.5cm}              \textbf{Bla bla }              \vspace{6cm}              James Bond              \vspace{0.8cm}              \Large  A research initiative in collaboration with the .... \\          \end{center}          \end{titlepage}          \newpage          \tableofcontents                    \newpage               \section{Preliminary title}          Text ....          \section{Scientific Interest}          More text.          \section{Main Research Question(s)}          More text.  Cite an example \cite[]{sample_ref}          \section{Originality}          \section{Research Methodology}          \section{Viability}          \section{Practical Relevance}          \section{Work Plan for Three Years}     \subsection{First Year}     \subsection{Second Year}     \subsection{Third Year}     \section{Education of the PhD Candidate}     \bibliography{•}               \newpage     \end{document}


I see on the MiKTeX page, that "Yap: revival of the MiKTeX 2.4 render method" is planned. What does this mean?


title: Aligning matrix nodes in tikz

text: Another question about aligning nodes using matrices in `tikz`. Consider the following:               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{matrix}          \begin{document}     \begin{tikzpicture}          \matrix (m)[matrix of nodes, column  sep=5mm,row  sep=3mm, align=center,     nodes={rectangle,draw, text width = 2cm} ]{                     & \node{row1-2};    &                        \\     \node{row2-1};      &               & \node{row2-3 long in two rows};\\     };          \draw[->] (m-1-2) |- (m-2-1);     \draw[->] (m-1-2) |- (m-2-3);          \end{tikzpicture}     \end{document}      which yields me this: ![Unaligned nodes](http://i.stack.imgur.com/CeNI5.png) How can the boxes in the second row be aligned properly?


title: Blackboard bold variants for Greek letters

text: It is common (or it used to be) to use a blackboard-bold variant of `\mu` to denote roots of unity in some mathematical papers. However, despite searching (several times, periodically over several years) I have never been able to locate any package or technique that makes this possible, other than using Metafont or possibly hunting through the font definitions to see if it is something I can create a variant of (along the lines of the suggestions in Section 8 of the Comprehensive LaTeX symbol list). Thus far, I haven't been sufficiently motivated to learn how to do any of this (although it probably would have resulted in a net time savings), and I feel like I cannot be the only person who would have tried. Is anyone aware of an existing way to produce this character?


title: Use Libertine's discretionary and historical ligatures with pdfTeX

text: I know XeTeX can easily turn on and off Linux Libertine's different sets of ligatures as described in the Manual for Linux Libertine with XeTeX, but **is there a way to use the discretionary or the historical ligatures with pdfTeX?** Is this just the point where pdfTeX can't keep up with XeTeX anymore? The three sets of ligatures (standard and the two before-mentioned) as well as some examples of each are listed on page 8 of Libertine's German documentation for XeTeX, but I'd also be interested in a full list of each. As a reference: The pdfTeX package for Linux Libertine is called `libertine`, it doesn't have a real documentation on CTAN, just a readme; another sort-of documentation doesn't mention any ligature-related feature. So I might be looking for a solution outside the range of the package? Is this possible with whatever font tables are installed with the package?


title: How to write Russian text in a file?

text: I am writing Russian text in a file but it gives the error.               \documentclass{article}     \usepackage{amsmath}     \usepackage{amscd}     \usepackage[tableposition=top]{caption}     \usepackage{ifthen}     \usepackage[utf8]{inputenc}     \usepackage[T1,T2A]{fontenc}     \usepackage{CJKutf8}     \usepackage[english,russian]{babel}          \usepackage{Sweave}     \begin{document}     \newwrite\indexfile     \openout\indexfile=\jobname.index          \write\indexfile{Патологическая миопия является видом высокой степени близору^\thepage}     \end{document}


title: Longtable caption numbering

text: I am trying to prevent a table from showing up in the list of tables. I used long table to create the table. This is the first table in my document. I know `\caption*{}` command should do the trick but something weird is happening. Although the table doesn't show up in the list of tables but when I insert the next table it has a caption of "Table 2: _*_ *". I want the numbering to start with 1 rather than 2. Can someone help?                   \documentclass[12 pt]{article}         \usepackage{fullpage}         \usepackage{amsmath}         \usepackage{float}         \usepackage{longtable}         \usepackage{caption}              \begin{document}          First table is inserted here (longtable).         \begin{longtable}{l l}         \hline             A & A1 \\             B & B1 \\            \hline         \caption*{}\label{TableNomen}         \end{longtable}              \newpage         Second table inserted here.         \begin{table}          \centering         \caption{Influence of X}\label{TableC}         \begin{tabular}{c c c c}     \hline          $10^{-5}$ & $80\times40$ & 16 & 10 \\         $10^{-4}$ & $80\times40$ & 21 & 11 \\            \hline         \end{tabular}         \end{table}         \newpage         \listoftables          \end{document}


title: How can I open View PDF in the page the cursor is at TexMakerX?

text: I've been using TexMakerX for about a week. In the document I'm producing, I use pdfLaTeX (`F6`) to generate the output file, and then I use View PDF (`F7`). When I use View PDF, it's supposed to open at the page the cursor is at TexMakerX, but this doesn't happen for my document anymore. It used to work, but it just stopped working without apparent reason. When I open other documents, it works as expected. What can I do to force View PDF open in the current page of the cursor?


title: Increasing Letterspace for words in caps or small caps

text: Some typographers say it's a good habit to increase the letterspace when writing words in caps or small caps. So my question is, how to do it with pdflatex and/or xelatex? And while we're at it, which words would you alter this way? Acronyms like USA, NATO, IBM, GNU, etc.? How about words like PCs, UdSSR, FreeBSD or TV-Station?


title: Decide placement and content of header for the references when using apa.cls

text: I'm using apa.cls in conjunction with biblatex. When printing the reference list, "REFERENCES" gets printed in the header, flushed to the left. However, I would like the text to be centered and to say something else. How would I go about fixing this? Minimal (non)working example:               \documentclass[noapacite]{apa}          \usepackage{biblatex}          \usepackage{filecontents}          \begin{filecontents}{\jobname.bib}     @thesis{A01,       author = {Megalomanius, M.},       year = {1900},       title = {Why I am so great}},     }     \end{filecontents}          \addbibresource{\jobname.bib}          \nocite{*}          \begin{document}          \printbibliography          \end{document}


title: A grid of images to fill A4 -paper for economic printing with some space for scissors

text: I want to print a A4 paper full of the same QR image. I want more elegant way to this answer here, yes I can get it working like that but I want to leave just enough space for scissors and no space near the edges and equal spacing (and is it possible to do that with for -loop or otherwise simpler?) -- possible? ![enter image description here](http://i.stack.imgur.com/RbRiX.gif)


title: spreadtab out of memory using STCopy and macro

text: The following code fills a table using `\STCopy`. It generates an 'out of save size error'e [MiKTeX 2.9]. If I make the table smaller (by commenting a row out) or remove the `max` call (and use only the second argument of the call), it will work. Any ideas how to make it work 'as is'? Please note that the call to `max` is _not_ directly the issue, as the problem can be replicated by removing it and just adding more rows to the table. I've already set `save size=50000`. Thanks!               \documentclass[a4paper, 12pt]{article}          \usepackage{spreadtab}     \usepackage{multirow}     \usepackage{rotating}          \begin{document}          \begin{table}[h]     \centering     \STautoround{0}     \begin{spreadtab}{{tabular}{|l|r||c|c|c||c|c|c||c|c|c||}}     \hline     % Data rows (hidden)     & & :={65}kt & :={[-1,0]}kt & :={[-1,0]}kt & :={85}kt & :={[-1,0]}kt & :={[-1,0]}kt & :={95}kt & :={[-1,0]}kt & :={[-1,0]}kt \SThiderow \\     & & :={500}ft & :={800}ft & :={1500}ft & :={[-3,0]}ft & :={[-3,0]}ft & :={[-3,0]}ft & :={[-3,0]}ft & :={[-3,0]}ft & :={[-3,0]}ft \SThiderow \\     & & :={1.68780986}ft/s & & & & & & & & \SThiderow \\     % Output     @ \multirow{7}{*}{\begin{sideways}\bf . \end{sideways}} & \bf :={0} & \STcopy{>,v}{max(5,c!2/((c!1-!b4)*!c!3)+0.5)}s & :={}s & :={}s & :={}s & :={}s & :={}s & :={}s & :={}s & :={}s \\\cline{3-11}     & \bf \STcopy{v6}{b4+10} & :={}s & :={}s & :={}s & :={}s & :={}s & :={}s & :={}s & :={}s & :={}s \\\cline{3-11}     & \bf :={}               & :={}s & :={}s & :={}s & :={}s & :={}s & :={}s & :={}s & :={}s & :={}s \\\cline{3-11}     & \bf :={}               & :={}s & :={}s & :={}s & :={}s & :={}s & :={}s & :={}s & :={}s & :={}s \\\cline{3-11}     & \bf :={}               & :={}s & :={}s & :={}s & :={}s & :={}s & :={}s & :={}s & :={}s & :={}s \\\cline{3-11}     & \bf :={}               & :={}s & :={}s & :={}s & :={}s & :={}s & :={}s & :={}s & :={}s & :={}s \\\cline{3-11}     & \bf :={}               & :={}s & :={}s & :={}s & :={}s & :={}s & :={}s & :={}s & :={}s & :={}s \\\cline{3-11}     & \bf :={}               & :={}s & :={}s & :={}s & :={}s & :={}s & :={}s & :={}s & :={}s & :={}s \\\hline     \end{spreadtab}     \end{table}          \end{document}      **Edited to add:** I need all those `:={}<unit>` to display units of measure.


title: Filling area between two lines and an arc

text: I have the following diagram I would like to convert (approximately) to tikz: ![enter image description here](http://i.stack.imgur.com/sEVWT.png) So far, I've succeeded at doing everything except the shading. I am a newbie to tikz and learning the best I can so please bear with me - horrible code patched up from various tutorials ahead:               \begin{tikzpicture}     \tikzstyle{mark coordinate}=[minimum size=0pt,inner sep=0,outer      sep=0,fill=none,circle]          \coordinate[mark coordinate] (M) at ( 0,0);      \coordinate[mark coordinate] (L) at (-4,0);     \coordinate[mark coordinate] (R) at ( 4,0);     \coordinate[mark coordinate] (N) at ( 0,4);          % Horizontal axis (surface)     \draw[solid] (L) to (R);          % Normal vector (+ label)     \draw [ultra thick,-latex,black] (M) to (N);     \node[anchor=west] (note1) at (-0.5,3.5) {$\mathbf{n}$};           % Draw arc      \coordinate[mark coordinate] (P) at (-4,0);      \coordinate[mark coordinate] (Phat) at (4,0);      \draw[solid] let \p1=(P), \p2=(Phat), \n0={0.5*veclen(\x1-\x2,\y1-      \y2)} in      [rotate={atan((\y1-\y2)/(\x1-\x2))}] (P) arc (180:0:\n0);          % The area delimiters     \coordinate[mark coordinate] (left) at (-0.5,0);     \coordinate[mark coordinate] (right) at (0.5,0);          % The two destination point pairs     \coordinate[mark coordinate] (left_d) at (3.696844, 1.527526);     \coordinate[mark coordinate] (right_d) at (3.813822, 1.206132);          \coordinate[mark coordinate] (left2_d) at (-2.363246, 3.227237);     \coordinate[mark coordinate] (right2_d) at (-1.613246, 3.660250);          % The parallel lines     \definecolor{darkgreen}{rgb}{0,0.5,0}     \draw[red] (left) to (left_d);     \draw[red] (right) to (right_d);     \draw[darkgreen] (left) to (left2_d);     \draw[darkgreen] (right) to (right2_d);          \end{tikzpicture}      The result is this: ![enter image description here](http://i.stack.imgur.com/AZC2T.png) I am unsure how to get the shading working - I have looked around but I only see examples on how to shade the area between two or more curves, however I am not using curves but geometric objects. How would I go about achieving this? And if my original code can be rewritten more elegantly to simplify shading, please go ahead!


title: Long formula in align environment

text: Usually, if I have a very long formula, I will use two lines in the align environment and \qquad to space things out nicely. For example,               \begin{align*}     % First line     \rho\left(\frac{\partial u_{r}}{\partial t}+u_{r}\frac{\partial u_{r}}{\partialr}+\frac{u_{\phi}}{r}\frac{\partial u_{r}}{\partial\phi}+u_{z}\frac{\partial u_{r}}{\partial z}-\frac{u_{\phi}^{2}}{r}\right) & =-\frac{\partial p}{\partial r}+\mu\Biggl[\frac{1}{r}\frac{\partial}{\partial r}\left(r\frac{\partial u_{r}}{\partial r}\right)+\frac{1}{r^{2}}\frac{\partial^{2}u_{r}}{\partial\phi^{2}}     \\     % Second line     & \qquad\qquad\qquad\qquad     +\frac{\partial^{2}u_{r}}{\partial z^{2}}-\frac{u_{r}}{r^{2}}-\frac{2}{r^{2}}\frac{\partial u_{\phi}}{\partial\phi}\Biggr]+\rho g_{r}     \end{align*}      produces ![offset-aligned formula](http://i.stack.imgur.com/MUKGk.png) However, this method of alignment is tedious, and not offsetting the second line usually results in something that looks poor. Is there an environment which facilitates this automatically?


title: Telling Emacs to mark \iffalse...\fi blocks?

text: Do you know a simple way to tell GNU Emacs to recognize LaTeX `\iffalse ... \fi` blocks and to display them in a special way, e.g., using a lighter font, or using font-lock-comment-face. Is there a LaTeX style package that already knows how to do this? I understand that correctly recognizing valid `\iffalse's` and their matching `\fi's` in arbitrary LaTeX source file is a non-trivial problem, but I am happy with an approximate solution that works in most easy cases, e.g., that assumes no nesting of `\if\fi's` and requires these commands to appear alone on their source line.


title: BibTex Error - .bbl' not created by bib latex

text: I've been trying to use this post to create a bibliography (natbib: use the harvard referencing system) but am receiving the error `.bbl' not created by bib latex.` My `.tex file`               \documentclass{article}          \usepackage[style=authoryear,backend=biber]{biblatex}     \usepackage[utf8]{inputenc}     \usepackage{filecontents,hyperref}          \title{Assignment \#1}     \author{}     \date{March 29, 2014}               \begin{filecontents}{bibtest.bib}     @online{zappone2009supermarketduopoly,     author = {Zappone, C.},     title = {Supermarket duopoly blamed for soaring food prices},     year = {2009},      url = {http://www.smh.com.au/business/supermarket-duopoly-blamed-for-soaring-food-    prices-20091109-i3tn.html},     urldate = {2014-29-03}     }          \end{filecontents}          \bibliography{bibtest}               \begin{document}               \maketitle              \section*{Question 1}          \subsection*{Woolworths}          \textit{Core Business:}          \parencite{zappone2009supermarketduopoly}.                         \printbibliography          \end{document}      Would anyone know what the problem is? Thank you for your help.


title: colored full width box with some verbatim text inside?

text: I would like to create a text box of "reminders" for my readers. I'd like the box to be gray, go full text width, and have both normal and verbatim text in it.               Reminder          ensure blah blah \underline{before} running \verb!-egrmaclean-!.      make blah blah ``\emph{2. TEMP filename.dta}'' \emph{2. country project.do} file.


title: How to change table numbering scheme at a new section?

text: I am trying to implement a style to name tables and figures depending on the section for a thesis and can't figure out how to do it with LaTeX. In the end it should look like this: ![enter image description here](http://i.stack.imgur.com/znUZp.png) and my document:               \documentclass{article}          \begin{document}          \section{Start}     Start text     \section{Middle}     Middle text     \begin{table}[h]         \centering         \begin{tabular}{l}         first table\\         \end{tabular}     \caption{A normal table}     \end{table}          \section*{Supplemental}          \begin{table}[h]         \centering         \begin{tabular}{l}             table in supplemental part\\         \end{tabular}     \caption{This should read: ``Table S1: caption text''}     \end{table}          \end{document}         I don't want to change the naming permanently, it should continue normally in the next chapter. Is there any easy way to accomplish something like this?


title: Modified Section Labeling with Theorem Environment

text: I am writing up solutions to qualifying exams at my school, and want to label the sections according to the corresponding solutions. The issue, is that each year there are two quals--one in January, one in August. There is an added complexity in that some years, there are also different exams for the Ph.D. and masters program. Labeling the sections is no issue, I can just write               \section{Ph.D. January 2007}      The issue, is that I am also using the "theorem" environment, and I want to the theorem environment to reflect these complexities. For example, supposing that my very first section is "Ph.D. August 2004", then I'd like some preamble such that               {\section{Ph.D. August 2004}          \begin{problem} Whatever     \end{problem}      Would output               Ph.D. August 2004               2004.1 (Aug)(Ph.D.): Whatever


title: How to make appendices like section in bookmarks

text: I had a problem as I wanted to make my appendices look like sections. I already found a solution to do this for the table of contents by using this code just before the `\chapter` command in the appendix environment :               \makeatletter     \addtocontents{toc}{\let\protect\l@chapter\protect\l@section}     \makeatother      Now, I would like to make the bookmarks "realize" it. When I open the PDF file the Appendices appears at a chapter level, but the title of the appendix appears at chapter level too. All the bookmarks I have come from the `hyperref` package, so I guess I can't use the `bookmark` package to find a solution. Is there any way to make it look like a section of the chapter Appendices in the bookmarks? Here is the code I use in my LaTeX program:               \begin{appendices}      \makeatletter      \addtocontents{toc}{\let\protect\l@chapter\protect\l@section}      \makeatother      \chapter{Appendix1}      \chapter{Appendix2}      ...      \end{appendices}      I already tried to use the `\section` function instead of `\chapter`, but it doesn't seem to work.


title: Using \typeout behaviour different with \newtoks vs. \def

text: I feel as I really should know this, but sadly I don't. Why is the output of `\typeout{\the\myToken}` not the same as having it printed in the PDF as `\the\myToken`. No problem with a `\def`, just with something declared via `\newtoks`. The PDF shows: ![enter image description here](http://i.stack.imgur.com/cNKTc.png) but the console shows > DefaultValue=1-9 > > MyToken=\DefaultValue Expansion issue? Well, that is what I thought, but then `\expandafter\typeout{\the\myToken}` should have worked? ## Questions:   * Why is this happening?   * How do I define a `\MyTypeout{}` (or preferably _redefine_ `\typeout{}`) macro so that the actual current expanded value is output in the console the same was it would be displayed in the PDF. ## Code:               \documentclass{article}          \newtoks\myToken          \edef\CurrentValue{1-9}     \edef\DefaultValue{\CurrentValue}     \myToken={\DefaultValue}          \begin{document}     \typeout{DefaultValue=\DefaultValue}  DefaultValue=\DefaultValue          \typeout{MyToken=\the\myToken}        MyToken=\the\myToken     \end{document}


title: Stripping off non-alpha characters before calling \csname ... \endcsname

text: I have a big text referring to 500+ scientific epynoms like e.g. "Maxwell's equations". These eponyms should go into the main index and they should also show up in footnotes - but only once-per-chapter. I have written a macro that so far does 90% of the job. I can for instance write               \eponym{le Chatelier}     \eponym{Le Chatelier}     \eponym{L e C h a t e l i e r}     \eponym{Le Chat'elier}     \eponym{Le Chat\'elier}      and have the command sequence \@eChatelier defined such that it keeps the current chapter number. The first line does then produce a footnote - the others do not - as long as \thechapter does not change. This is fine. The problem I am facing is connected to the use of foreign accents. E.g.               \eponym{Le Chat{\'e}lier}      produces the error:               ! Missing = inserted for \ifnum.     <to be read again>                         e     l.70  \eponym{Le Chat{\'e}lier}      I hope the question is reasonably well formulated. The MWE is here:               \documentclass{report}           \makeatletter          % Convert first letter in string to uppercase.      % Then call \@tail on remaining string.          \def\@head#1{%      \ifx\relax#1      \else       \ifnum \the\catcode`#1 = 11     %    \uppercase{#1}%          *** this line gives an error - I am not 100% sure why     %    #1%                     *** OK but makes eg "van der" different from "Van der"        @%    *** removes the semantics problem above at the cost of introducing a hack!       \else       \fi       \expandafter\@tail      \fi     }          % Keep a-z, A-Z.      % Ignore all other characters.          \def\@tail#1{%      \ifx\relax#1      \else       \ifnum \the\catcode`#1 = 11        #1%       \else       \fi       \expandafter\@tail      \fi     }          % To each eponym define a command sequence holding the chapter number.     % Print footonote.     % Do once-per-chapter only.     % Start over again when (if) the chapter counter is changed.          \newcommand{\eponym}[1]{%      \edef\@@az{\@az{#1}}%                                           *** shortcut      \ifcsname\@@az\endcsname%                              *** chapter 2, 3, etc       \ifnum \thechapter > \csname\@@az\endcsname%        *** counter has changed        \expandafter\edef\csname\@@az\endcsname{\thechapter}%        {\sc #1}\expandafter\footnote{CSname: \@@az}%       \else        {\sc #1}%                                    *** same chapter as last time       \fi      \else%                                                    *** chapter 1 only       \expandafter\edef\csname\@@az\endcsname{\thechapter}%       {\sc #1}\expandafter\footnote{CSname: \@@az}%      \fi     }          % Filter everything except a-z, A-Z from argument.     \def\@az#1{\@head #1\relax}          \makeatother          \begin{document}           \section*{Chapter~\thechapter}          \eponym{le Chatelier}\\     \eponym{Le Chatelier}\\     \eponym{L e C h a t e l i e r}\\     \eponym{Le Chat'elier}\\     \eponym{Le Chat\'elier}\\     \eponym{Le Chat\' elier}\\     \eponym{Le Chat{\'e}lier}%                 *** this line gives an error - why?          \end{document}


title: Working with keys instead of \def

text: I have looked around on TeX.SX and I have learnt a lot of things. One of the things I have not yet mastered is how to use the `key=value` function that packages like `keyval` or `xkeyval` offer or even `pgfkeys`. Here is a MWE with the style I designed last year based on something I read online, can't remember where. ![enter image description here](http://i.stack.imgur.com/qCOVQ.png) **MWE**               \documentclass{article}     \usepackage{tmpsty}         \university{University Name}         \department{Department Name}         \coursetitle{Course Name}         \coursecode{Course Code}         \coursesession{Semester Running}         \assessmenttitle{Assessment Title}     \begin{document}         \schoolheader         \course     sample test     \end{document}      **Syle File Used**               \NeedsTeXFormat{LaTeX2e}          \ProvidesPackage{tmpsty}[2013/09/24 Standard Style File For Assessments At SHJC]     \RequirePackage[T1]{fontenc}     \RequirePackage[latin9]{inputenc}     \RequirePackage[letterpaper,tmargin=2cm,bmargin=2cm,lmargin=2.5cm,rmargin=2.5cm]{geometry}     \RequirePackage{amsmath,amssymb,amsfonts}     \RequirePackage{booktabs,array}     \RequirePackage[dvipsnames,table]{xcolor}     \RequirePackage{graphicx}     \RequirePackage{mwe}     %----------------------------------------------------------------------------------     %                               Some Definitions     %----------------------------------------------------------------------------------     \def\university#1{\gdef\@university{#1}}     \def\department#1{\gdef\@department{#1}}     %     \def\coursetitle#1{\gdef\@coursetitle{#1}}     \def\coursecode#1{\gdef\@coursecode{#1}}     \def\coursesection#1{\gdef\@coursesection{#1}}     %     \def\coursesession#1{\gdef\@coursesession{#1}}     \def\assessmenttitle#1{\gdef\@assessmenttitle{#1}}     %----------------------------------------------------------------------------------     %                               Header     %----------------------------------------------------------------------------------     \newcommand{\schoolheader}{%         \global\let\university\@empty         \global\let\department\@empty         \global\let\coursetitle\@empty         \global\let\coursecode\@empty         \global\let\coursesection\@empty         \global\let\coursesession\@empty         \global\let\assessmenttitle\@empty         %         \global\let\university\relax         \global\let\department\relax         \global\let\coursetitle\relax         \global\let\coursecode\relax         \global\let\coursesection\relax         \global\let\coursesession\relax         \global\let\assessmenttitle\relax         %         \begin{center}             \begin{tabular}{>{\raggedright}m{2.65cm}>{\centering}m{10cm}>{\raggedleft}m{2.65cm}}                 %\includegraphics[scale=0.22]{example-image}                  &                   \textbf{\LARGE\@university}\par\vskip5pt%                  {\Large\bfseries\@department}%                  &                  \includegraphics[scale=0.22]{example-image}              \end{tabular}         \end{center}         %         }     %----------------------------------------------------------------------------------     %                               Assessment Information     %----------------------------------------------------------------------------------     \newcommand{\course}{%         \begin{center}             \textbf{%             \@coursetitle\ (\@coursecode)\\               \@coursesession\\             \@assessmenttitle%             }         \end{center}%         }     \newcommand{\handout}{%         \begin{center}             \textbf{%             \@coursetitle\ (\@coursecode)\\[1.5ex]             \@assessmenttitle%             }         \end{center}%         }     %----------------------------------------------------------------------------------%     %                               End of File                                        %     %----------------------------------------------------------------------------------%     \endinput      I know that it is a common understanding that using `\def` is a bad practice and that `\newcommand` is better but am willing to accept suggestions on how to tweak or achieve the definitions stated in the `tmpsty.sty` file in a different way or more importantly how to use the `key=value` style of defining user entries.