title: How to change theme of fancytikzposter

text: Elena Botoeva has written a new package for creating posters with TikZ. I have already dowloaded the file _fancytikzposter sources_. I would like to modify file **fancytikzposter.sty** in order to have another background theme of julia set of the template but unsuccessfully. ![Juliaset](http://i.stack.imgur.com/upUYC.png) Here the code               >     % fancytikzposter.tex, version 2.1     % Original template created by Elena Botoeva [botoeva@inf.unibz.it], June 2012     %     % This file is distributed under the Creative Commons Attribution-NonCommercial 2.0     % Generic (CC BY-NC 2.0) license     % http://creativecommons.org/licenses/by-nc/2.0/               \documentclass{a0poster}          \usepackage{fancytikzposter}               %%%%% --------- Change here if you want ---------- %%%%%     %% margin for the geometry package, must be changed before using the geometry package     %% default value is 4cm     % \setmargin{4}          %% the space between the blocks     %% default value is 2cm     % \setblockspacing{2}          %% the height of the title stripe in block nodes, decrease it to save space     %% default value is 3cm     % \setblocktitleheight{3}          %% the number of columns in the poster, possible values 2,3     %% default value is 2     % \setcolumnnumber{3}          %% the space between two or more groups of authors from different institutions     %% used in \maketitle     % \setinstituteshift{10}          %% which template to use     %% N1 simple, standard look, with a colored background and gray boxes     %% N2 board with nodes     %% N3 another standard look     %% N4 envelope-like look     %% N5 with a wave-like head, original idea taken from     %%%% http://fc09.deviantart.net/fs71/f/2010/322/1/1/scientific_poster_by_nabuy-d333ria.jpg     %\usetemplate{6}          %% components of the templates     %% (the maximal possible numbers are mentioned as the parameters)     % \usecolortemplate{4}     \renewcommand\BackgroundPicture{%       \includegraphics[height=\paperheight,width=\paperwidth]{juliaset}}     %\renewcommand\backgroundtemplate{}     % \usetitletemplate{2}     % \useblocknodetemplate{5}     % \useplainblocktemplate{4}     % \useinnerblocktemplate{2}               %% the height of the head drawing on top     %% applicable to templates N3, 4 and 5     % \setheaddrawingheight{14}               %% change the basic colors     %\definecolor{myblue}{HTML}{008888}     %\setfirstcolor{myblue}% default 116699     %\setsecondcolor{gray!80!}% default CCCCCC     %\setthirdcolor{red!80!black}% default 991111          %% change the more specific colors     % \setbackgrounddarkcolor{colorone!70!black}     % \setbackgroundlightcolor{colorone!70!}     % \settitletextcolor{textcolor}     % \settitlefillcolor{white}     % \settitledrawcolor{colortwo}     % \setblocktextcolor{textcolor}     % \setblockfillcolor{white}     % \setblocktitletextcolor{colorone}     % \setblocktitlefillcolor{colortwo} %the color of the border     % \setplainblocktextcolor{textcolor}     % \setplainblockfillcolor{colorthree!40!}     % \setplainblocktitletextcolor{textcolor}     % \setplainblocktitlefillcolor{colorthree!60!}     % \setinnerblocktextcolor{textcolor}     % \setinnerblockfillcolor{white}     % \setinnerblocktitletextcolor{white}     % \setinnerblocktitlefillcolor{colorthree}                         %%% size of the document and the margins     %% A0     % \usepackage[margin=\margin cm, paperwidth=118.9cm, paperheight=84.1cm]{geometry}     \usepackage[margin=\margin cm, paperwidth=84.1cm, paperheight=118.9cm]{geometry}     %% B1     % \usepackage[margin=\margin cm, paperwidth=70cm, paperheight=100cm]{geometry}                    %% changing the fonts     \usepackage{cmbright}     %\usepackage[default]{cantarell}     %\usepackage{avant}     %\usepackage[math]{iwona}     \usepackage[math]{kurier}     \usepackage[T1]{fontenc}               %% add your packages here     \usepackage{hyperref}                              \title{Scientific Poster with TikZ \qquad version 2.1}     \author{Elena Botoeva\\       KRDB Research Centre, Free University of Bozen-Bolzano, Italy\\       \texttt{botoeva@inf.unibz.it}     }               \begin{document}          %%%%% ---------- the background picture ---------- %%%%%     %% to change it modify the macro \BackgroundPicture     \ClearShipoutPicture     \AddToShipoutPicture{\BackgroundPicture}          \noindent % to have the picture right in the center     \begin{tikzpicture}       \initializesizeandshifts       % \setxshift{15}       % \setyshift{2}                 %% the title block, #1 - shift, the default value is (0,0), #2 - width, #3 - scale       %% the alias of the title block is `title', so we can refer to its boundaries later       \ifthenelse{\equal{\template}{1}}{         \titleblock{47}{1}       }{         \titleblock{47}{1.5}       }            %% a logo can be added to the title block       %% #1 - anchor relative to the title block, #2 - shift, #3 - width, #3 - file name       % \ifthenelse{\equal{\template}{2}}{       %   \addlogo[south west]{(2,0)}{6cm}{unibz_b.png}       % }{       %   \addlogo[south west]{(2,0)}{6cm}{unibz_w.png}       % }                 %% a block node, with the specified position (optional), title and the content       %% #1 - where (optional), #2 - title, #3 - text       %%%%%%%%%% ------------------------------------------ %%%%%%%%%%       \blocknode%       {Starting}%       {Start with the following document:              \coloredbox{colorthree!50!}{           \textbackslash documentclass\{a0poster\}\\           \textbackslash usepackage\{fancytikzposter\} \% here most of the things are           defined \\                \% change parameters only after this line\\                \textbackslash usepackage{\small[margin=\textbackslash margin \ cm,             paperwidth=84.1cm, paperheight=118.9cm]\{ geometry\}} \\                \textbackslash title\{Title\}\\           \textbackslash author\{Author\textbackslash\textbackslash           Institution\textbackslash\textbackslash           \textbackslash texttt\{email\}\}\\           \textbackslash begin\{document\}\\           \textbackslash AddToShipoutPicture\{\textbackslash BackgroundPicture\}\\                     \textbackslash noindent \\           \textbackslash begin\{tikzpicture\} \\           \textbackslash initializesizeandshifts \\                \textbackslash titleblock\{50\}\{1\}\\           \textbackslash blocknode\{Block Title\}\{Block Content\}\\           \textbackslash startsecondcolumn\\           \textbackslash blocknode\{Block Title 2\}\{Block Content 2\}\\           \textbackslash end\{tikzpicture\}\\           \textbackslash end\{document\}         }       }                 %% a callout block       %% #1 - rotate angle (optional), #2 - from, #3 - where, #4 - width, #5 - text       %%%%%%%%%% ------------------------------------------ %%%%%%%%%%       \calloutblock{($(box.center)+(-2,-8)$)}       {($(box.center)+(10,-1)$)}       {19cm}       {\small         Macro for creating a block node:         \begin{itemize}         \item[] \textbackslash blocknode\{Block Title\}\{Block Content\}         \end{itemize}         Macro \textbackslash blocknode has three parameters. The first one is         optional and it is the position of the block. The first block will be         automatically placed to (\$(firstrow)-(xshift)-(yshift)\$), which is the         left corner below the title block. In most of the templates, (firstrow) is         set to (title.south), where \emph{title} is the alias for the title         block. Each subsequent block is automatically placed to         [(\$(box.south)-(yshift)\$)], i.e., below the previous block aliased         \emph{box}.  You can also use an explicit parameter, e.g., $(-10,30)$ (note         that (0,0) is the center of the poster). The second parameter is the title         of the block. Finally, the last parameter is the  actual content.       }                           %% by default, the position of the new block node is right below the previous       %% block node, stored in (currenty)       %% box is the alias of the previous block, so we can refer to its boundaries            %%%%%%%%%% ------------------------------------------ %%%%%%%%%%       \blocknode{Making Title}%       {To make title, use the standard commands \textbackslash title and         \textbackslash author in the preamble, and then the following macro:         \begin{itemize}         \item[] \textbackslash titleblock\{50\}\{1.5\}         \end{itemize}         Macro \textbackslash titleblock has three parameters. The first one is         optional and it specifies the shift of the title block w.r.t.\ its default         position, which is set to (\$0.5*(0,\textbackslash         paperheight)-(0,\textbackslash margin)\$). The second parameter is the width         of the title block, and the third parameter is the scaling ratio (to make         the title bigger or smaller).\\              \small         The syntax for specifying authors is similar to the one in aaai.sty.  Author         information can be set in various styles: For several authors from the same         institution:         \begin{itemize}\item[]           \textbackslash author\{Author 1 \textbackslash and ... \textbackslash and           Author n \textbackslash\textbackslash\\           Address line \textbackslash\textbackslash \           ... \textbackslash\textbackslash \ Address line\}         \end{itemize}              If the names do not fit well on one line use         \begin{itemize}\item[]           \textbackslash author\{Author 1 \textbackslash\textbackslash \           \{\textbackslash bf Author 2\} \textbackslash\textbackslash \           ... \textbackslash\textbackslash \           \{\textbackslash bf Author n\} \textbackslash\textbackslash\\           Address line \textbackslash\textbackslash \           ... \textbackslash\textbackslash \ Address line\}         \end{itemize}              For authors from different institutions:         \begin{itemize}\item[]           \textbackslash author\{Author 1 \textbackslash\textbackslash \ Address           line \textbackslash\textbackslash \ ... \textbackslash\textbackslash \           Address line \\ \textbackslash And ... \textbackslash And \\           Author n \textbackslash\textbackslash \ Address line           \textbackslash\textbackslash \ ... \textbackslash\textbackslash \ Address           line\}         \end{itemize}              To start a separate ``row'' of authors use \textbackslash AND, as in         \begin{itemize}\item[]           \textbackslash author\{Author 1 \textbackslash\textbackslash \ Address line           \textbackslash\textbackslash \ ... \textbackslash\textbackslash \ Address           line \textbackslash AND\\ Author 2 \textbackslash\textbackslash \ Address line           \textbackslash\textbackslash \ ... \textbackslash\textbackslash \ Address           line \textbackslash And\\ Author 3 \textbackslash\textbackslash \ Address line           \textbackslash\textbackslash \ ... \textbackslash\textbackslash \ Address           line\}         \end{itemize}         (though, I must say \textbackslash and ... \textbackslash and did not work for         me with more than 2 authors, so just use commas where you need if it does         not work for you either).       }                 %%%%%%%%%% ------------------------------------------ %%%%%%%%%%       \blocknodew[($(currenty)-(3.5,0)$)]{30}{Variable Width Block Nodes} %       { You can also create blocks of arbitrary width         \begin{itemize}         \item[] \textbackslash blocknodew[coordinate]\{Block width\}\{Block Title\}%           \{Block Content\}         \end{itemize}         %         In this case it is better to specify coordinate manually if you want to have         blocks aligned vertically. \\              Note that (xshift) and (yshift) are coordinates created in macro         \textbackslash initializesizeandshifts, and they allow to have relative         positioning of block nodes in an automatic fashion. If you want to define         your own shifts, set new values for (xshift) and (yshift) using commands         \textbackslash setxshift and \textbackslash setyshift.\\              Also, it might be useful to know the y-coordinate of the south border of the         previous block. You can retrieve it by using the command         \begin{itemize}         \item[] \textbackslash getcurrentrow\{box\} or \textbackslash getcurrentrow\{note\}         \end{itemize}         This coordinate will be stored in (currentrow), which can be used to         specify the location of the next block node.       }                 %%%%%%%%%% ------------------------------------------ %%%%%%%%%%       \plainblock[5]{($(currenty)+(4,2)$)}{35}{fancyTikZposter template} %       {              \vspace{0.3cm}         It is a template for scientific posters based on a0poster and TikZ         only. The current version contains five (plus one) different templates (see my         posters         %         \href{http://www.inf.unibz.it/~ebotoeva/presentations/abcrs-KR-12-poster.pdf}{%           \underline{here}} and         %         \href{http://www.inf.unibz.it/~ebotoeva/presentations/boto-RR-12-poster.pdf}{%           \underline{here}}). The sources of this pdf file can be found         \href{http://www.inf.unibz.it/~ebotoeva/tikz/tikzposter_sources.zip}{\underline{here}}.}                           %%%%%%%%%%%%% NEW COLUMN %%%%%%%%%%%%%%%       \startsecondcolumn            %%%%%%%%%% ------------------------------------------ %%%%%%%%%%       \blocknode%       {Block Nodes in the Second Column}%       {To start the second column or the third column use commands         \begin{itemize}         \item[] \textbackslash startsecondcolumn, and \textbackslash startthirdcolumn.         \end{itemize}         If the number of columns is 2, then the last command will not have         effect. \\              You can also start a new column with an arbitrary x-coordinate by specifying         explicitly the coordinate of the new block node as follows:         \begin{itemize}         \item[] \textbackslash blocknode[(\$(firstrow)-(yshift)+(x,0)\$)]\{Block           Title\}\{Block Content\}         \end{itemize}              %       }                      %%%%%%%%%% ------------------------------------------ %%%%%%%%%%       \blocknode{Useful Macro Within Block Nodes}%       {There are three types of colored boxes/blocks that you can use inside block         nodes to highlight information. \\              \begin{tabular}[t]{ll}           \begin{minipage}{0.5\linewidth}             \innerblock{Theorem} {Statement}           \end{minipage}           &           \textbackslash innerblock\{Theorem\}\{Statement\}\\                \begin{minipage}{0.5\linewidth}             \innerblockplain[colorone!80!]{Text}           \end{minipage}           &           \textbackslash innerblockplain[colorone!80!]\{Text\}\\                \begin{minipage}{0.5\linewidth}             \coloredbox{colorthree!50!}{Text}           \end{minipage}           &           \textbackslash coloredbox\{colorthree!50!\}\{Text\}         \end{tabular}              \vspace{0.5cm}         The default figure environment does not work within a tikzpicture. I created         a new figure environment that can be used instead, based on the code sent by         Stephan Thober.         \begin{itemize}         \item[] \textbackslash begin\{tikzfigure\}[Caption]\\           \ldots\\           \textbackslash end\{tikzfigure\}         \end{itemize}         %              \begin{tikzfigure}[A shaded circle]           \begin{tikzpicture}             \draw[draw=none,inner color=colorthree, outer color=colorone] (0,0) circle (2cm);           \end{tikzpicture}         \end{tikzfigure}       }                 %%%%%%%%%% ------------------------------------------ %%%%%%%%%%       \calloutblock{($(box.south east)-(8,-2)$)}       {($(box.south east)-(16,2)$)}       {30cm}       {         There are also callout blocks that allow for a more interesting layout of the         poster.         \begin{itemize}         \item[] \textbackslash calloutblock[rotate angle]\{from           coordinate\}\{coordinate\}\{Block Width\}\{Block Content\}         \end{itemize}         The alias for such blocks is \emph{note}.       }                 %% to place the next node centered vertically in the second column, we can       %% obtain the y-coordinate of the previous node using macro       %% \getcurrentrow{note}, where note is the alias of the callout node, and       %% then specify the coordinate of the next node using coordinate (currentrow)       \getcurrentrow{note}                 %% a plain block       %% #1 - rotate angle (optional), #2 - where, #3 - width, #4 - title, #5 - text       %%%%%%%%%% ------------------------------------------ %%%%%%%%%%       \plainblock{($(currentrow)+(xshift)-(yshift)$)}%[($(currenty)+(0,10)$)]%       {32}{Plain blocks} %       {These blocks are similar to callout blocks. They allow for specifying the         title of the block.         \begin{itemize}         \item[] \textbackslash plainblock[rotate angle]\{coordinate\}\{Block Width\}\{Block           Title\}\{Block Content\}         \end{itemize}       }                      %% the coordinate (currenty) is used in the default placing of the next blocknode      \getcurrentrow{note}      \coordinate (currenty) at ($(currentrow)+(xshift)-(yshift)$);                       %%%%%%%%%%%%% NEW COLUMN %%%%%%%%%%%%%%%       %% (if column number is 3)       \startthirdcolumn            %%%%%%%%%% ------------------------------------------ %%%%%%%%%%       \blocknode {Personalizing the Poster}%       {It is possible to adjust the layout of the poster. To impose your own         setting, you can use these macros:         \begin{itemize}         \item Macros for changing sizes           \begin{itemize}           \item[] \textbackslash setmargin\{4\},             %% the height of the head drawing on top             %% applicable to templates N2 and 4             \textbackslash setheaddrawingheight\{14\},             %% the space between two or more groups of authors from different             %% institutions             %% used in \maketitle             \textbackslash setinstituteshift\{10\},\\             %% the space between the blocks             %% default value is 2cm             \textbackslash setblockspacing\{2\},             %% the height of the title stripe in block nodes, decrease it to save space             %% default value is 3cm             \textbackslash setblocktitleheight\{3\}           \end{itemize}              \item Other structural macros           \begin{itemize}           \item[]  %% the number of columns in the poster, possible values 2,3             %% default value is 2             \textbackslash setcolumnnumber\{3\},             %% which template to use             %% N1 simple, standard look, with a colored background and gray boxes             %% N2 board with nodes             %% N3 another standard look             %% N4 envelope like look             %% N5 with a wave-like head, original idea taken from             %%%% http://fc09.deviantart.net/fs71/f/2010/322/1/1/scientific_poster_by_nabuy-d333ria.jpg             %% N6 experimental, oriental style, largely based on template N3             \textbackslash usetemplate\{6\},\\             \textbackslash usecolortemplate\{4\},             \textbackslash usebackgroundtemplate\{5\},             \textbackslash usetitletemplate\{2\},\\             \textbackslash useblocknodetemplate\{5\},             \textbackslash useinnerblocktemplate\{3\},             \textbackslash useplainblocktemplate\{4\}                \end{itemize}              \item Macro for adding logos to the title block           \begin{itemize}           \item[] \textbackslash addlogo[south west]\{(0,0)\}\{6cm\}\{filename\}           \end{itemize}              \item Macros for the basic colors           \begin{itemize}           \item[] \textbackslash setfirstcolor\{green!70!\}, % default 116699             \textbackslash setsecondcolor\{gray!80!\}, % default CCCCCC             \textbackslash setthirdcolor\{red!80!black\}% default 991111           \end{itemize}              \item Macros for specific colors:           \begin{itemize}           \item[] \textbackslash setbackgrounddarkcolor\{colorone!70!black\},             \textbackslash setbackgroundlightcolor\{{\small colorone!70!}\},\\             \textbackslash settitletextcolor\{textcolor\},             \textbackslash settitlefillcolor\{white\},             \textbackslash settitledrawcolor\{colortwo\},\\             \textbackslash setblocktextcolor\{textcolor\},             \textbackslash setblockfillcolor\{white\},\\             \textbackslash setblocktitletextcolor\{colorone\},             \textbackslash setblocktitlefillcolor\{colortwo\}, \\             \textbackslash setplainblocktextcolor\{textcolor\},             \textbackslash setplainblockfillcolor\{colorthree!40\},\\             \textbackslash setplainblocktitletextcolor\{textcolor\},             \textbackslash setplainblocktitlefillcolor\{colorthree!60\}, \\             \textbackslash setinnerblocktextcolor\{textcolor\},             \textbackslash setinnerblockfillcolor\{white\},\\             \textbackslash setinnerblocktitletextcolor\{white\},             \textbackslash setinnerblocktitlefillcolor\{colorthree\},           \end{itemize}         \end{itemize}       }                    \end{tikzpicture}               \end{document}      I got this ![fancytikzposter](http://i.stack.imgur.com/2XJxx.jpg) Any help is welcome.


title: Active characters let to a (non-active) character

text: It seems that if I `\let\amp&`, the alignment tab `&` can be replaced by `\amp` everywhere (e.g., in the preamble and in the body of an `\halign`). It is also possible to make the character `&` active, and give it the same meaning by `\catcode`\&=13` `\let&\amp`. It seems that that active `&` which has been let to the alignment tab `&` can be used wherever an alignment tab `&` was used. This idea is quite general: we can define macro which takes a character as its argument, lets its active version to itself (with its current catcode), and finally makes the character active. This uses an `\lccode` trick, described by Phillipe Goutet.               \def\activate#1{\begingroup       \lccode`\~=`#1%       \lowercase{\endgroup \let~#1}%       \catcode`#1=13\relax}      Here is an example to show that this operation does not break most uses I can think of for `$`, `&`, etc. In particular, `$$...$$` is still recognized, and macro parameters too.               \activate &     \halign{#&#\cr a&b\cr}          \activate $    \activate ^    \activate _     $$ x^2_2 + y^2_2 $$          \activate #     \def\myshow#1{\show#1}     \myshow #         \bye      So my question is: "what are the drawbacks of this approach?" It allows a fix for peeking ahead with `\futurelet` in alignments.


title: Stop non-English documentation returns from `mthelp`?

text: How do I stop non-English documentation returns from `mthelp`? `mthelp graphicx` returns a Polish manual. `mthelp amsldoc` returns an Italian manual. How do I stop this? How do I get a hold of the English manuals (whether in `.html`, `.pdf`, or whatever)? By the way, I'm running MikTeX 2.8 on a Vista32 UPDATE1: I was able to find the English amsmath documentation on my hard drive at `C:\Program Files\MiKTeX 2.8\doc\latex\ams\math\amsldoc.pdf`. So, I know it's there. I just don't know how to get `mthelp` to return the right documentation. I recall installing MikTeX and saying "yes" to some option to include all language specifications. I'm thinking, now, that this was a mistake. UPDATE2: `mthelp lshort` returns a Russian document :(


title: What's the best tutorial for beamer, sweave and ggplot2 combined?

text: I'm looking for the best example presentation publicly available on the Internet that uses beamer, sweave and ggplot2 all at the same time. Ideally it would be the actual example .Rnw file, along with associated data files, etc, rather than a user manual. Anyone have any suggestions?


title: Reference URLs with LaTeX and the chicago style manual?

text: I'm writing a paper with LaTeX and trying to get the `\bibliographystyle` to work correctly. I'm using the `chicago` manual reference style. In my `.tex` file a have declared:               \usepackage{chicago}     \bibliographystyle{chicago}      And I use BibDesk for Mac to generate my `.bib`-files. It works, but I have one problem. URLs are not referenced in the right way, according to the Chicago Manual. http://www.chicagomanualofstyle.org/tools_citationguide.html says it should look something like this: >   1. “Google Privacy Policy,” last modified March 11, 2009, > hxxp://www.google.com/intl/en/privacypolicy.html. >   2. “McDonald’s Happy Meal Toy Safety Facts,” McDonald’s Corporation, > accessed July 19, 2008, hxxp://www.mcdonalds.com/corp/about/factsheets.html. > But LaTeX only gives me something like this: >   * Bank, N. (2011, 04). Bruken av kort og nettbank øker fortsatt. > It does not include the URL to the site, even though I have defined the URL in my `.bib`-file. How can I get this to work correctly, with the correct style? Thanks for all answers. PS: I don't HAVE to use the Chicago Reference Style, I can use others, if that makes things simpler, but I read somewhere that It's a good style for writing engineering papers (computer science). (If you have other suggestions, that is also welcome). **Edit. Additional info:** This is the bib-file that BibDesk generates for a webpage:                @webpage{norges-bank-okning,        Author = {Norges Bank},        Date-Added = {2011-04-02 18:39:21 +0200},        Date-Modified = {2011-04-02 19:19:30 +0200},        Keywords = {web},        Lastchecked = {02.04.2011},        Month = {04},        Title = {Bruken av kort og nettbank {\o}ker fortsatt},        Url = {http://www.norges-bank.no/templates/article____16691.aspx},        Urldate = {02.04.2011},        Year = {2011}}


title: How do I make a subject with newlfm

text: I can't find in the documentation anything about how to make a subject in a newlfm style letter. What I would like is something like the following.      **Överklagande av Skatteverkets beslut om tilläggstaxering,   dnr 15-2008/0057** Jag vill överklaga Skatteverkets beslut om ...


title: Elisions in mathematics

text: Knuth incorporated many of the typographical rules for mathematics in the TeX engine. However some rules were left out. One such case is the use of elisions in equations. Sometimes `\cdots` are used and in other case `\ldots`. In general, after examining a number of maths papers, I inferred the following "rules": ![enter image description here](http://i.stack.imgur.com/IIpsW.png) ![enter image description here](http://i.stack.imgur.com/asnNN.png) ![enter image description here](http://i.stack.imgur.com/YqRdo.png) One could think of an `\xdots` type of command (similar to `\xspace` that could switch between the right type of ellipsis and allow the right space before and after it. A rough macro to do this is show in the MWE below:               \documentclass{article}     \usepackage{amsmath}     \makeatletter          \def\xdots{%       \newif\if@found       \@foundfalse       \def\ifPlus{\@ifnextchar+{\cdots}{\ifDot}}       \def\ifDot{\@ifnextchar.{\ldots\@foundtrue}{\ifSemicolon}}       \def\ifSemicolon{\@ifnextchar;{\cdots\@foundtrue}{\ifLeftBracket}}       \def\ifLeftBracket{\@ifnextchar){\ldots\,\@foundtrue}{\ifOpenBracket}}       \def\ifOpenBracket{\@ifnextchar({\dots\@foundtrue}{\ifNotFound}}       \def\ifNotFound{\if@found\relax\else\ldots\fi}       \ifPlus     }          \makeatother     \begin{document}     \begin{eqnarray*}     e^{xf(z)}-1     &=(z,z^2\!/2!,z^3\!/3!,\ldots\,)\,F\,(x,x^2,x^3,\xdots)^{\rm T}\\     \noalign{\smallskip}     e^{xg(z)}-1     &=(z,z^2\!/2!,z^3\!/3!,\ldots\,)\,G\,(x,x^2,x^3,\xdots)^{\rm T}     \end{eqnarray*}          \end{document}      `amsmath` has what I consider a partial solution with `\dots` and offers various commands for different cases. Unfortunately this is not a trivial problem, as one needs to consider both the symbol before the ellipsis as well as the one that follows it. I am looking for suggestions, solutions and or strategies. I am also looking for "rules" that I might have missed in the above description.


title: Vertical addition and multiplication and long division

text: Is there in existence packages that recreate the following environments: ![enter image description here](http://i.stack.imgur.com/KOOcI.png)![enter image description here](http://i.stack.imgur.com/euNUj.png)![enter image description here](http://i.stack.imgur.com/FYhUm.png) Some of the above have been discussed like in the How to present a vertical multiplication but what I am interested in is if there is a way to recreate the addition and division.


title: Ellipse with latitude and longitude circles in TikZ

text: Does anyone of you have a clever way of coding ![ellipse with dashed longitude and latitude cricles](http://i.stack.imgur.com/mH7bH.png) in Tikz? My own solution currently is to draw an ellipse, then to specify each dashed arc explicitly, a thoroughly plebeian technique.


title: Page numbers in beamer are sometimes covered up -- how to always display?

text: I'm displaying page numbers in a beamer document using this:               % my ``own'' boadilla, i.e. without the infolines     \usecolortheme{rose}     \useinnertheme[shadow]{rounded}     \usecolortheme{dolphin}     \setbeamertemplate{footline}[frame number]      and page numbers generally show up, as I want. But on some slides, when the text is written all the way to the bottom, page numbers are hidden, since they are probably "beneath" the level of the text. But since the text is usually on the left and the page numbers are on the right, I want the page numbers to show through. I don't know what to search for since I think of this as "overlay" or "beneath" or "under", but those words all have several meanings and I can't get the one I want. In web design terminology, what I want to do is change the "zIndex" of the footer. Any ideas? Thanks


title: Adding an [AuthorYear] block at the beginning of bibliography entries

text: I want to add a block at the beginning of my bib entries of the form > [Lastnameauthor(s) Year] When the shortauthor field is defined it should use this field +Year instead. The following example is fairly minimal:               \begin{filecontents*}{test.bbx}     \ProvidesFile{test.bbx}      [\abx@bbxid $Id: test.bbx,v 0.9d 2010/09/03 20:11:58 lehman beta $]      \RequireBibliographyStyle{authoryear}          \DeclareBibliographyDriver{article}{%       \usebibmacro{bibindex}%       \usebibmacro{begentry}%       %---add something here---       \usebibmacro{author/translator+others}%       \setunit{\labelnamepunct}\newblock       \usebibmacro{title}%       \newunit       \printlist{language}%       \newunit\newblock       \usebibmacro{byauthor}%       \newunit\newblock       \usebibmacro{bytranslator+others}%       \newunit\newblock       \printfield{version}%       \newunit\newblock       \usebibmacro{in:}%       \usebibmacro{journal+issuetitle}%       \newunit       \usebibmacro{byeditor+others}%       \newunit       \usebibmacro{note+pages}%       \newunit\newblock       \iftoggle{bbx:isbn}         {\printfield{issn}}         {}%       \newunit\newblock       \usebibmacro{doi+eprint+url}%       \newunit\newblock       \usebibmacro{addendum+pubstate}%       \setunit{\bibpagerefpunct}\newblock       \usebibmacro{pageref}%       \usebibmacro{finentry}}          \endinput      \end{filecontents*}     \begin{filecontents*}{MeineBib.bib}       @article{example,      author={Firstname Lastname and First Last},       title={Title},      journal={Journal},      year={Year},       pages={Pages},     }        \end{filecontents*}          \documentclass[12pt,ngerman,    ]{scrartcl}     \usepackage[ngerman]{babel}     \usepackage{filecontents}     \usepackage[babel,german=quotes]{csquotes}     \usepackage [bibstyle=test]{biblatex}     \bibliography{MeineBib}      \begin{document}     \tableofcontents     \cite{example}     \printbibliography\end{document}      I'm guessing the solution lies here               DeclareBibliographyDriver{article}{%           \usebibmacro{bibindex}%           \usebibmacro{begentry}%           %---add something here---           \usebibmacro{author/translator+others}%      but I can't find out how. It should look like this ![](http://i.stack.imgur.com/w011P.png) which is an existing style (`natdin`) in BibTeX, but not in `biblatex`.


title: Biblatex and apasoft style

text: > **Possible Duplicate:**   >  Adding an [AuthorYear] block at the beginning of bibliography entries I am trying to get the best of both worlds: I want to take advantage of the URL capabilitites of `biblatex`, and on the other hand I would like to have the bibliography style of the `apasoft` format known in `bibtex`. So I'd like to format citations like this: > [author year] Author, J.K. etc However I do not know how to change the `biblatex` style to achieve this.


title: biblatex: how to add a key with authoyear style

text: > **Possible Duplicate:**   >  Adding an [AuthorYear] block at the beginning of bibliography entries I use biblatex on Ubuntu 11.04 (TeXLive 2009, biblatex 0.9, no biber). The style is authoyear. In the bibliography, I would like to add a key [AuthorYear] in front of the citation (like the apalike style in bibtex). I think it's possible without updating everything but I don't understand the numerous options in biblatex. Thanks in advance.


title: How to run latexmk with LuaTeX on Windows?

text: This is a bit of a follow-up question to: Is there latexmk functionality for LuaTeX? I am trying to setup latexmk on Windows 7 together with LuaTeX but it does not work for some unknown reason. Latexmk in connection with pdftex runs without problems though. With the command line for luatex: `latexmk -pdflatex=lualatex -pdf test.tex` I get the following output:               Latexmk: This is Latexmk, John Collins, 30 March 2012, version: 4.31.     **** Report bugs etc to John Collins <collins at phys.psu.edu>. ****     Latexmk: applying rule 'pdflatex'...     Rule 'pdflatex': File changes, etc:        Non-existent destination files:           'test.pdf'     ------------     Run number 1 of rule 'pdflatex'     ------------     ------------     Running 'lualatex  -recorder  "test.tex"'     ------------     This is LuaTeX, Version beta-0.70.1-2012011814 (MiKTeX 2.9)     **      Other attempts at changing the latexmk command with the suggested values from the man-page also do not succeed (`latexmk -pdf -pdflatex="lualatex %O %S" test.tex`). Is there any chance of getting this to work?


title: Plain TeX Paragraphs in Tables

text: I want a small amount of information to be placed in columns. The problem is that the information contains paragraphs. Basically this is what I want:               Column 1 Line 1   Column 2 Line 1   Column 3 Line 1     Column 1 Line 2   Column 2 Line 2   Column 3 Line 2                       Column 2 Line 3      The issue is that all three columns use a different font size, so merely placing each line as a row in a typical `\halign` doesn't work. Here is my current attempt:               \def\Center#1{\hfil #1 \hfil}     \def\UseFont#1#2{\global\font\currentFont=#1 at #2 \currentFont}     \halign{         # & # & # \cr         \Center{Column 1 Line 1}\break\par %neither works         \Center{Column 1 Line 2}         &         \UseFont{cmb10}{18pt}         \Center{Column 2 Line 1}\break\par         \Center{Column 2 Line 2}\break\par         \Center{Column 2 Line 3}\break\par         &         \Center{Column 3 Line 1}\break\par         \Center{Column 3 Line 2}         \cr     }      The problem with that code is that the newlines don't transfer. I think that the problem is that I am stuck in restricted horizontal mode because of the `\halign` however if I toss each column into a `\vbox` the width of the vbox is far too wide and prevents the other columns from showing up. What can I do to implement this?


title: List Bibliography twice: numerical in order of appearance, then alphabetically

text: I am using BibTex and the natbib package. I have a numbered bibliography that lists citations in order of appearance. I'd like to reprint the bibliography at the end but in alphabetical order. What's the easiest way to do that without messing up my first list? I'm using the \cite{} command exclusively. Here's my relevant code: ` \usepackage[square,sort&compress,comma,numbers]{natbib} % Lots of writing here... \bibliographystyle{unsrt} \bibliography{refswhole}` Thanks!!!


title: More aesthetically wrap text in a table?

text: I have a table that I must fit in one page but have difficulty doing so in any aesthetically pleasing manner. A MWE is pasted below. Are there any suggestions to improve this? Regretfully I haven't a clue where to begin.               %----------------------------------------------------------------------------------------     %   DOCUMENT TYPE     %----------------------------------------------------------------------------------------     \documentclass[9pt]{article}          %----------------------------------------------------------------------------------------     %   PACKAGES     %----------------------------------------------------------------------------------------     \usepackage[T1]{fontenc} %Font     \usepackage{libertine}     %\usepackage{lmodern}     \usepackage{slantsc}          \usepackage{amsmath,amssymb,amsfonts,amsthm,textcomp,nicefrac} %Math          \usepackage{graphicx, subfigure} %graphics & nested graphics     \usepackage{float} %place graphics exactly where you desire with [H]     \usepackage[font=footnotesize]{caption}          \usepackage[usenames]{color}     \definecolor{Blue}{rgb}{0,0.08,0.8}          \usepackage{tikz} %graphs     \usetikzlibrary{arrows, shapes, calc, positioning}     \usepackage{array}          \usepackage{hyperref} %References          \usepackage{lscape} %for landscape orientation          \usepackage{titletoc} %Table of contents      \usepackage{titlesec}     \titleformat{\section}{\bfseries}{\thesection}{1em}{} %Section format     \titleformat{\subsection}{\bfseries}{\thesubsection}{1em}{} %Subsection format     \titleformat*{\subsubsection}{\bfseries\em} %Subsubsection format     \renewcommand*\footnoterule{} %Remove footnote separator line     \usepackage[bottom=0.1in]{geometry} %Margins     \usepackage{setspace}%Spacing     \usepackage{fancyhdr}%Header and footer     \pagestyle{fancy}     \lhead{}     \rhead{}     \cfoot{\thepage}     \renewcommand{\headrulewidth}{0pt}     \renewcommand{\footrulewidth}{0pt}     \renewcommand*\footnoterule{} %Remove footnote separator line     \usepackage{booktabs}          %----------------------------------------------------------------------------------------     %   Document     %----------------------------------------------------------------------------------------          \begin{document}          \thispagestyle{empty}          \begin{landscape}          {\bf \scshape Personal Record Table}          \begin{table}[H]     \centering           \begin{tabular}{|c|p{1.5cm}|p{1.5cm}|p{1.5cm}|p{1.5cm}|p{1.5cm}|p{1.5cm}|p{1.5cm}|p{1.5cm}|p{1.5cm}|p{1.5cm}|p{1.5cm}|p{1.5cm}|p{1.5cm}|p{1.5cm}|} \hline                   & {\bf Your Investment}              & {\bf Total Investment}              & {\bf Group 1 Invesment}              & {\bf Group2 Investment}              & {\bf Total payoffs from The Account}              & {\bf Your payoffs from The Account}              & {\bf Your private payoffs}              & {\bf Your initial payoffs}              & {\bf Cost of deduction points assigned}              & {\bf Number of deduction points received}              & {\bf Cost of deduction points received}              & {\bf Losses from deductions}              & {\bf Final payoffs for this period}              & {\bf Total payoffs for all periods}\\                   \hline\hline                   {\bf 1} & & & & & & & & & & & & & &\\[2ex]\hline              {\bf 2} & & & & & & & & & & & & & &\\[2ex]\hline              {\bf 3} & & & & & & & & & & & & & &\\[2ex]\hline              {\bf 4} & & & & & & & & & & & & & &\\[2ex]\hline              {\bf 5} & & & & & & & & & & & & & &\\[2ex]\hline              {\bf 6} & & & & & & & & & & & & & &\\[2ex]\hline              {\bf 7} & & & & & & & & & & & & & &\\[2ex]\hline              {\bf 8} & & & & & & & & & & & & & &\\[2ex]\hline              {\bf 9} & & & & & & & & & & & & & &\\[2ex]\hline              {\bf 10} & & & & & & & & & & & & & &\\[2ex]\hline                   \hline                \end{tabular}     \end{table}          \end{landscape}               %----------------------------------------------------------------------------------------     %   END     %----------------------------------------------------------------------------------------     \end{document}


title: Why does compiling this .dtx produce a blank page at the beginning?

text: This is my first time using `docstrip`. I've written the `attempt.dtx` file shown below. However, if I compile `attempt.dtx` using               pdflatex attempt.dtx      the generated documentation starts by a blank page (immediately followed by the title page). My TeX distro (TeX Live 2013) is up to date. I've compared my `dtx` to others on CTAN to identify what I'm doing wrong, but I seem to be doing everything right... Where is that blank page coming from and how can I get rid of it? ## attempt.dtx               % \iffalse meta-comment     %     % Copyright blah blah blah     %     % \fi     %     % \iffalse     %<package>\NeedsTeXFormat{LaTeX2e}[2011/06/27]     %<package>\ProvidesPackage{attempt}     %<package>  [2014/02/21 v0.1 test test test]     %     %<*driver>     \documentclass{ltxdoc}     \usepackage{attempt}     \EnableCrossrefs     \CodelineIndex     \RecordChanges     \begin{document}       \DocInput{attempt.dtx}     \end{document}     %</driver>     % \fi     %     % \CheckSum{0}     %     % ￼\GetFileInfo{attempt.sty}     %     % \title{attempt}     % \author{Jubobs}     % \date{\filedate}     % \maketitle     %     % \begin{abstract}     %   test test test     % \end{abstract}     %     % \section{Introduction}     %     % \StopEventually{\PrintIndex}     %     % \section{Implementation}     %     % \Finale     \endinput


title: Description items inside table?

text: I'm new to LaTeX and trying to create a resumé. I know there are alternatives like moderncv but I'd like to try creating it from scratch. I would like to have dates displayed on the left, sort of like this http://www.artbizblog.com/2010/11/tables-for-resume.html Is there an nice way of doing this? Tried to create description lists inside of a table but it doesn't work.               \begin{tabular}{l|c}         \textbf{date should be here} &         \begin{description}             \item[item should be here]             description should be here         \end{description} \\     \end{tabular}


title: parbox + itemize = empty space

text: Consider the following MWE               \documentclass[12pt,a4paper]{article}     \begin{document}     Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text:          \parbox[t][][t]{\textwidth}{          \begin{itemize}      \item More Text More Text More Text More Text More Text More Text More Text More Text More Text      \item  More Text More Text More Text More Text More Text More Text More Text More Text More Text       \end{itemize}}           \vspace{2cm}           Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text:               \begin{itemize}      \item More Text More Text More Text More Text More Text More Text More Text More Text More Text      \item  More Text More Text More Text More Text More Text More Text More Text More Text More Text       \end{itemize}     \end{document}      How can I remove the space that appears between "Text Text.." and the first bullet containing "More Text..." when using `parbox` _and_ `itemize` so that it looks just like below, when using _only_ `itemize`. (I have good reasons to use `parbox` not illustrated by this MWE, so telling me to just use `itemize` to solve my problem isn't a solution :)


title: limits for hooked right arrow in the equation not working

text: help me to code this equation with limits for hookedrightarrow   limits for hookedright arrow not coming ![enter image description here](http://i.stack.imgur.com/wTPEF.png)       Tried codes               \underset{\hookedrightarrow}{i}<br/>      but not getting correct format.


title: Adjusting S column in siunitx

text: I am a beginner in LaTeX, trying to use it for an industrial test report. I have numerous tables in my document, and I have recently discovered the capabilities of `siunitx`. I would like to use `S` column whenever possible. I have tentatively modified one table to experiment, but I find that the options I have choosen make a table with fairly large columns and some no longer fit the page. Also, it does not seem the `S` columns are well centered in the attached example. What fix can be applied?               \documentclass[a4paper, oneside,11pt, english, numbers=noenddot, captions=tableheading]{scrreprt}      \usepackage[T1]{fontenc} % Usual fonts     \usepackage{tgheros,textcomp}% Fonts     \usepackage{siunitx}% Handling Si units     \usepackage{tabularx} % More elaborate form of tables     \usepackage{multirow} %handling of fusionned cells in tables     \renewcommand{\familydefault}{\sfdefault}%selecting default font (clone of helvetica)     %-----------------------------------------------------------------     %BEGIN CONFIG 2 CAVITIES--------------     \newcommand{\ConfigTwoGang}[3]{%     AAAAAAA &   1-20        &#1     &1-20       &#1\\     BBBBBBBB    &   1-8     &#2     &1-20       &#1\\     CCCCCCC&    1-20        &#1     &Power      &#3\\     }%     %-------------------------------------------------------     %END CONFIG 2 CAVITIES--------------     %------------------------------------------------------     % BEGIN INSERT  TABLE TWO CAV      \newcommand{\TableIRTwoGang}[4]{%     \begin{table}[#4]%     \noindent      \begin{center}     \sisetup{table-number-alignment=center,table-figures-integer = 4}     \caption{Insulation resistance (\si{\mega\ohm}) - 2 gang versions}     \begin{tabular}{|c|cS[table-comparator = true]|cS[table-comparator = true]|}     \hline     \multirow{2}{*}{Part number}&\multicolumn{2}{c|}{{Cavity 1}}&\multicolumn{2}{c|}{{Cavity 2}}\\     %\hline     &Position&{Ins. Res.}&Position&{Ins. Res.}\\     \hline\hline     \ConfigTwoGang{#1}{#2}{#3}%     \hline     \end{tabular}     \end{center}     \end{table}     }%     %------------------------------------------------------     \begin{document}     \TableIRTwoGang{> 1500}{> 2000}{> 5000}{H}     \end{document}


title: Using Gnumeric tables with classicthesis

text: Just a quick question. I am finishing my PhD using Latex of course and I have been writing the chapters separately. In each of the chapters tex files I use tables that I exported from Gnumeric These are added using /input and work very well by themselves The problem is when I collate everything using classicthesis. the following message appears               ! Missing = inserted for \ifdim.     <to be read again>                         >     l.138 {\def\gnumericScale{1}}      I am not entirely sure what is the problem any ideas?                \documentclass[a4paper]{report}         \usepackage{classicthesis}          \usepackage[spanish,english,es-noquoting]{babel}         \usepackage{ucs}         \usepackage{color}         \usepackage{array}         \usepackage{longtable}         \usepackage{calc}         \usepackage{multirow}         \usepackage{hhline}         \usepackage{ifthen}         \usepackage{lscape}            \def\inputGnumericTable{}         \begin{document}         input{the_GNUMERIC_table.tex}         \end{document}


title: how to create bibliography in latex using bibdesk

text: I am a new user of BibDesk, so I realize that this will be a very primitive question, but I have difficulties creating bibliography in TeXworks (MacOSX) using BibDesk. I create reference with \cite{...} and it works just fine, but I haven't found a way to automatically generate bibliography at the end of my paper. I will be very thankful for your help!


title: eqparbox causes error for \hline and \hdashline

text: When compiling the MWE below, I get presented with the errors "Undefined control sequence \hline" and "Undefined control sequence \hdashline". The problem is caused by the `eqparbox` package, as code compiles fine without it - with the exception of aligning the comments in the algorithm section (which is exactly why I used `eqparbox`). Compiling the table and algorithm separately (see below) does not give any errors.               \documentclass[12pt]{report}     \usepackage{arydshln}     \usepackage{algorithm}     \usepackage{algpseudocode}     \usepackage{trimspaces}     \usepackage{eqparbox}     \renewcommand{\algorithmiccomment}[1]{\hfill\eqparbox{COMMENT}{\% #1}}          \begin{document}          \begin{table}[htbp]     \caption{A simple table with horizontal and dashed horizontal lines.}     \label{tab:Simple}     \begin{center}     \begin{tabular}{l|c|c|c|c|c|c|}           & \textbf{A} & \textbf{B} & \textbf{C} & \textbf{D} & \textbf{E} & \textbf{F} \\         \hline         \textbf{A} & 0 & 1 & 0 & 0 & 1 & 1 \\         \hdashline         \textbf{B} & 1 & 0 & 1 & 0 & 1 & 0 \\         \hdashline         \textbf{C} & 0 & 1 & 0 & 1 & 0 & 0 \\         \hdashline         \textbf{D} & 0 & 0 & 1 & 0 & 1 & 0 \\         \hdashline         \textbf{E} & 1 & 1 & 0 & 1 & 0 & 0 \\         \hdashline         \textbf{F} & 1 & 0 & 0 & 0 & 0 & 0 \\         \hline     \end{tabular}     \end{center}     \end{table}          \begin{algorithm}     \caption{Euclid's algorithm}\label{alg:Euclid}     \begin{algorithmic}[1]     \Procedure{Euclid}{$a,b$}     \Comment{The g.c.d. of a and b}     \State $r \gets a \bmod b$     \While{$r \neq 0$}     \Comment{We have the answer if r is 0}         \State $a \gets b$         \State $b \gets r$         \State $r \gets a \bmod b$     \EndWhile\label{euclidendwhile}     \State \textbf{return} $b$     \Comment{The gcd is b}     \EndProcedure     \end{algorithmic}     \end{algorithm}          \end{document}      Any idea's on how to solve this issue so that the table looks like:               \documentclass[12pt]{report}     \usepackage{arydshln}          \begin{document}          \begin{table}[htbp]     \caption{A simple table with horizontal and dashed horizontal lines.}     \label{tab:Simple}     \begin{center}     \begin{tabular}{l|c|c|c|c|c|c|}           & \textbf{A} & \textbf{B} & \textbf{C} & \textbf{D} & \textbf{E} & \textbf{F} \\         \hline         \textbf{A} & 0 & 1 & 0 & 0 & 1 & 1 \\         \hdashline         \textbf{B} & 1 & 0 & 1 & 0 & 1 & 0 \\         \hdashline         \textbf{C} & 0 & 1 & 0 & 1 & 0 & 0 \\         \hdashline         \textbf{D} & 0 & 0 & 1 & 0 & 1 & 0 \\         \hdashline         \textbf{E} & 1 & 1 & 0 & 1 & 0 & 0 \\         \hdashline         \textbf{F} & 1 & 0 & 0 & 0 & 0 & 0 \\         \hline     \end{tabular}     \end{center}     \end{table}          \end{document}      and the algorithm like this:               \documentclass[12pt]{report}     \usepackage{algorithm}     \usepackage{algpseudocode}     \usepackage{trimspaces}     \usepackage{eqparbox}     \renewcommand{\algorithmiccomment}[1]{\hfill\eqparbox{COMMENT}{\% #1}}          \begin{document}          \begin{algorithm}     \caption{Euclid's algorithm}\label{alg:Euclid}     \begin{algorithmic}[1]     \Procedure{Euclid}{$a,b$}     \Comment{The g.c.d. of a and b}     \State $r \gets a \bmod b$     \While{$r \neq 0$}     \Comment{We have the answer if r is 0}         \State $a \gets b$         \State $b \gets r$         \State $r \gets a \bmod b$     \EndWhile\label{euclidendwhile}     \State \textbf{return} $b$     \Comment{The gcd is b}     \EndProcedure     \end{algorithmic}     \end{algorithm}          \end{document}


title: Command with semi-arbitrary characters

text: Is there a way to define TeX commands with names containing (almost) arbitrary characters, like `:`, `-`, `_`, numbers etc., perhaps even spaces? These are the characters I shall need apart from the standard letters, but of course, if it can be made to support more characters, that wouldn't hurt. What I want is a command like `\newmycommand` that works a bit like in the following code. Preferably, it should be possible to use it also outside the preamble. I don't need the commands it defines to support arguments, but if it does not make everything harder, I suggest that you include it in an answer for the sake of other people who may need this.               \documentclass{memoir}          \def\newmycommand#1#2{%define a new command as #1 with code #2     }          \def\usemycommand#1{%apply command #1     }          \newmycommand{my-first-command:day-one}{Day one is a great day}%defines the command "my-first-command:day-one" to be the text "Day one is a great day"          \begin{document}          \usemycommand{my-first-command:day-one}%use the command defined above          \newmycommand{my-second-command}{Last command}%define another command inside the document          \usemycommand{my-second-command}%use this command          \end{document}


title: How to customize page numbering style

text: It is a nice style to put page numbers in a filled black (or grey) box which touch the edge of the paper. How to create such a book? Further, how to create hanging out boxes and how to put _crop signs_ in the corners (it is necessary for printing).


title: align base of triangle and rectangle

text: I am drawing a process flow diagram using TikZ. My code is the following:               \documentclass{minimal}          \usepackage[a4paper, landscape]{geometry}     \usepackage{tikz}          \usetikzlibrary{shapes.geometric}     \usetikzlibrary{positioning}          \begin{document}     \begin{tikzpicture}       [queue/.style={isosceles triangle,isosceles triangle apex angle=60,          anchor=north,shape border rotate=90,draw,minimum width=15mm},        activity/.style={rectangle,draw,          anchor=north,minimum width=25mm,minimum height=15mm,          text width=20mm,align=center}]       \node[queue]    (tortilla queue) at (0,0) [label=below:queue 1]           {wait};       \node[activity] (tortilla station) [right=of tortilla queue]           {tortilla\\station};            \draw [->] (tortilla queue.east) -- (tortilla station.west);     \end{tikzpicture}     \end{document}      And this is the output ![enter image description here](http://i.stack.imgur.com/ZY7T7.png) The problem with the output is that I want the base of the triangle to be aligned with the base of the rectangle. How do I do this? I have tried to vary the `anchor`, or to use `yshift` but this doesn't work. Of course I could place the nodes manually, but this would mess up the location of the arrows.


title: Why doesn't my Chinese character display properly?

text: I'm trying to produce the character , which is in unicode and as far as I'm able to ascertain included in my font HanaMinA. The character displays properly in Firefox as well as when I copy it into the `.tex` document. But in the PDF output, it's replaced by a square. Does anyone know what I'm doing wrong? I've also tried with HanaMinB and with the font Han Nom A; still a square. MWE:               \documentclass[utf8,12pt,letterpaper]{article}     \usepackage{xeCJK}     \setCJKmainfont{HanaMinA}     \begin{document}      這些字打的出來，問題是： %These character appear properly            %This one does not     \end{document}      I'm compiling with `xelatex`.


title: How to write a LaTeX command that could discriminate if it's being called with pdfLaTeX in order to use PSTricks?

text: I'm writing a class for LaTeX, and I need to make it general. I want to include a simple image, a logo, within the class, which would be inserted into the document as a simple command `\insertCompanyLogo`. To avoid extra files, I added the PostScript definition of the logo in the `.sty` file.               % Include PSTricks package     \usepackage{pstricks}     % Create new command to insert logo     \newcommand{\insertCompanyLogo}{       \psset{xunit=.5pt,yunit=.5pt,runit=.5pt}       \begin{pspicture}(180,180)          \psline(0,0)(180,180) %The actual image is far more complex       \end{pspicture}     }      This works good when I compile the document with `latex <filename>`. However, it fails when I try to use `pdflatex`. In order to use PSTricks with `pdflatex`, some modifications are required. For example, I can add in the `.sty` file `\usepackage[pdf]{pstricks}`. Then compile the document using `pdflatex -shell-escape <filename>`. But this won't be general, and it won't work using the regular `latex` command. My question is: Is there any way to define a command that understand if the document is being compiled with `pdflatex` or `latex`? That way I can add a couple of `\ifthenelse{}{}{}` to the include line of PSTricks. Thus, the document that uses this `.sty` class and calls the `\insertCompanyLogo` could be compiled with both commands without any modification. I hope I was clear enough. And any solution, tip, recommendation or workaround, as always, is more than welcome. EDIT: Forgot to mention, I think that packages like `xelatex` and `asymptote` that could make this easier. But I would like this to work with a standard TexLive or MiKTeX installation, which is probably what 95% of the users of this class will have installed EDIT 2: This question was marked as duplicate. The other questions address the engine issue (pdflatex vs. latex). Helpful information. But they leave out the PSTricks part, and how to make its use flexible and multi-engine, and that was the reason of my question. EDIT 3: At the end, I opted for a completely different solution. What I wanted was to put a logo with a macro that works with both engines, `latex` and `pdflatex`. I used `TiKz`               \documentclass{article}     % Include package TiKz     \includepackage{tikz}     % Create new command to insert logo     \newcommand{\insertCompanyLogo}{       \begin{tikzpicture}         \draw[thick,rounded corners=8pt] (0,0) -- (0,2) -- (1,3.25)          -- (2,2) -- (2,0) -- (0,2) -- (2,2) -- (0,0) -- (2,0);       \end{tikzpicture}     }     \begin{document}     \insertCompanyLogo     \end{document}      The actual logo, and the contents of the `tikzpicture` environment, I got them from Inkscape, with an extension to export to `TiKz` format.


title: How can I manually install a package on MiKTeX (Windows)

text: I'm new to LaTeX, investigating using it for some work projects. I'm using MiKTeX on Windows. My employer's locked-down network blocks the application's automatic installation function. I can take my laptop home and successfully install from there, but if I need a package in the middle of the day I'm stuck. I am able to access the CTAN website and download the package files (.dtx or .ins?), but I don't know what do do with them. How can I do a manual package installation?


title: Installing and using user-defined package

text: > **Possible Duplicate:**   >  How can I manually install a package on MiKTeX (Windows) I have put together a user-defined package stored in a `.sty` file. Using MiKTeX 2.9 on Windows 7, I've placed the file in the same directory as all other `.sty` files and I've run `initexmf --update-fndb`, yet `pdflatex` is still giving me the `mypackage.sty not found` error. What am I doing wrong?


title: How can I install MiKTeX packages that are not found in the Package Manager?

text: > **Possible Duplicate:**   >  How can I manually install a package on MikTex (Windows) I am new to LaTeX and looking to convert my undergraduate thesis to LaTeX format for practice. This community wiki answer suggests that a document class `puthesis` from Purdue University would be a good starting point. I already know how to install packages using the MiKTeX Package Manager. However, I could not find `puthesis` there. Also, I could not find beginner- class instructions on the `puthesis` page


title: Step-by-step guide for installing a `.cls` file on Windows 8 with TeXnicCenter

text: I'm trying to install a `.cls` file on a Windows 8 machine, using the editor TeXnicCenter and the distribution MikTex 2.9. I have been directed to other threads, but find them incomprehensible. **This is not a duplicate. None of the threads I have found have answered my question.** I installed the out-of-the-box version of TeXnicCenter from CTAN. I have downloaded the `exam.cls` class file which I would like to use. But I have no idea how to install it. Every other thread I could find uses language I do not understand, e.g. local file trees, etc. Moreover, the instructions say "click start, ...". While Windows 8 does not have a start button. I need a step-by-step guide on how to get this class file installed and working. I don't even know where the files are kept. I really am a newbie when it comes to doing anything other than typesetting. _Please be kind and patient. Karma will reward you!_


title: how to install Tikz and PGF on WinEdt6.0

text: > **Possible Duplicate:**   >  How can I manually install a package on MiKTeX (Windows) Now I want to use Tikz and PGF， and I referred this instruction How to install a current version of TikZ? However, I don't know where the settings of MikTeX on WinEdit?


title: Using the xcolor package

text: When I use the command `\usepackage{xcolor}` I get an error saying `xcolor.sty` was not found. Even though other commands like `\usepackage{amsmath}` have worked. I am very new to LaTeX and am not sure why this is happening, and help would be greatly appreciated.


title: I got an error "stata.sty not found

text: > **Possible Duplicate:**   >  How can I manually install a package on MiKTeX (Windows) I got the error : `file stata.sty not found`. I am using MiKTeX 2.9, Texmaker in Windows 7. I followed the installing instruction on the website: http://www.ats.ucla.edu/stat/stata/latex/verbatim.htm#install but still no luck. In the instruction, it says the `sjlatex` package should be installed in the below path: sjlatex install using `d:\texmf\tex\latex\sjlatex` but I don't have the folder called `texmf`, is it the problem? I also looked at the answer of another similar question, it suggests putting all the `sjpackage` file in a local working folder, but I have no idea where is the local working folder. Could anyone help me with this problem? Thank you very much.


title: Manually Install tikz.sty

text: > **Possible Duplicate:**   >  How can I manually install a package on MiKTeX (Windows) I have MiKTeX 2.9. My questions is my Latex prompts me to install tikz.sty from the package pgf however its automatic install cannot seem to find the package, so I manually went to install it. Now I have found the file that I am looking for (tikz.sty) however I do not know how to install it. Thanks.


title: Updating a .cls file with MiKTeX

text: > **Possible Duplicate:**   >  How can I manually install a package on MiKTeX (Windows) I recently installed MiKTeX 2.9 and also installed a .cls-file. I did this by copying the .cls-file to the directory "C:\Program Files (x86)\MiKTeX 2.9\tex\latex\sim\simauth.cls" and ran Refresh FNDB + Update Formats in MiKTeK Options (Admin). This worked perfectly, and my documents compiled just fine. This .cls turned out to be an old version, and so I found the newest version of the .cls-file (also called simauth.cls). I just copied this .cls-file to the same directory and the old .cls-file was overwritten. Again I ran Refresh FNDB + Update Formats, but when I compile, the documentclass has not been updated. I also tried deleting the .cls, but I were still able to compile perfectly. The .cls-file in question is this, and it is because of the update-date, \def\update{2010/03/10 v3.00}, that I am sure the .cls has not been updated properly. Any help is much appreciated, thanks.


title: How can I install a .cls file with MikTeX?

text: > **Possible Duplicate:**   >  How can I manually install a package on MiKTeX (Windows) I am new to LaTeX, but need to write up a report pretty soon. Anyway, the instruction for authors state that I should include this line:               \documentclass{svmult}      Okay, easy enough, I have the `svmult.cls` file. However, where do I include this? I tried putting in the same directory as other `.cls` files and even in the same folder where my project exists. However, no luck. I do have a bunch of other files: ![enter image description here](http://i.stack.imgur.com/m9ex2.jpg) Not really sure what to do with these though. Any help is greatly appreciated.


title: Installing handlatex in miktex 2.9

text: I’ve been trying to get handlatex (http://code.google.com/p/handlatex/) to work with miktex 2.9 and texnicCenter on windows 7. I tried copying it in the miktex directories: tex/latex and tex/xelatex without success. Unfortunatly I was not successful finding any hints on google. The latex code I’m using right now is:               \documentclass[a4paper,11pt, titlepage,]{scrartcl}       \usepackage[T1]{fontenc}     \usepackage[lowwordangle=-3,highwordangle=3]{hand}     \usepackage{amssymb}          \begin{document}          \thispagestyle{empty}          \section*{\texttt{hand}\LaTeX\ Demo}          \vfill          \begin{handpar}          Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Duis ut libero et arcu interdum varius. Nam bibendum, mi sed consequat malesuada, nunc diam condimentum massa, sit amet egestas nibh ligula sit amet dui. Vestibulum eu urna. Etiam vestibulum. Aenean nisi nulla, fringilla at, laoreet eu, iaculis id, diam. Mauris aliquet vehicula lacus. Maecenas id nisl ac justo sodales dictum. Phasellus eget eros. In hac habitasse platea dictumst. Nam ut tortor vitae dui mollis egestas. Nullam sagittis libero quis nibh. Donec aliquam. Donec tincidunt. Aliquam eget nisl. Suspendisse mollis pellentesque nunc.          \end{handpar}          \vfill          \noindent $\blacksquare$          \end{document}      This is the error Message I’m getting:               ! LaTeX Error: File `hand.sty' not found.          Type X to quit or <RETURN> to proceed,     or enter new name. (Default extension: sty)          Enter file name:      ! Emergency stop.      It would be great if somebody could tell me how to install handlatex correctly in miktex. Greetings betlor


title: acmsmall.cls not found

text: > **Possible Duplicate:**   >  How can I manually install a package on MiKTeX (Windows) I am writing this because I need a more efficient way to use the `acmsmall` class. The problem is when I add the `.cls` and `.bst` files within my folder everything works just fine, but when I remove them from the folder the message `acmsmall.cls not found` appears. Is there a way to add the class into my MiKTeX or TeXnicCenter?


title: Problem with poker package

text: I am new to latex and i have the following problem. When i use the poker package the following error occurs "poker.sty" not found. I'm using miktex and texmakerx. What is wrong ?


title: Installing manual package with MiKTeX

text: > **Possible Duplicate:**   >  How can I manually install a package on MiKTeX (Windows) I'm trying to install a custom-made package from Heiko Oberdiek's answer here, which I saved as `amssizes.sty`. I put it in `C:\Program Files (x86)\MiKTeX 2.9\tex\latex\misc` as necessary, and went to MiKTeX's "Settings (Admin)" application and proceeded to `Refresh FNDB` and `Update Formats`. However, I then go into the "Package Manager (Admin)" application, and I still can't find `amssizes`. As far as I know, I've proceeded with all the correct steps, and I've tried all sorts of different combinations (without `Update Formats`, with/without (Admin), etc.). If it helps, I also have `Install missing files on-the-fly` denoted with `Yes` and `C:\Program Files (x86)\MiKTeX 2.9` is indeed in the root directory. I appreciate any help!


title: Alignment of the Margin notes

text: I use the class article with two sides. I also use a dozen of \marginpar per page to place my QED symbol in "the margin" or rather, on the right of the page. The code is from this website:               \newcommand{myqed}{\unskip\removelastskip\marginpar{qed}}          \makeatletter     \patchcmd{\@addmarginpar}{\ifodd\c@page}{\ifodd\c@page\@tempcnta\m@ne}{}{}     \makeatother     \reversemarginpar      and it puts my \marginpar always on the right of the page. The problem is that the floats mess with the footnotes and their numbers=> my footnotes are on the wrong pages (4 pages later on, sometimes in the next section...) So a solution would be to create a command for my QED symbol which changes the type of the marginpars. Sometimes \marginnote is recommanded for this problem but I do not know how to make it always display the note on the right of the page. \marginnote seems not to place the note on the same line as the text: it is one line below the text and I cannot remove the vspace with \unskip\removelastskip. This is my example, it does generate the problem with the footnote since this one is hard to replicate:               \documentclass[twoside,a4paper]{article}     \usepackage{amsmath}     \usepackage{lipsum}     \usepackage{showframe}     \usepackage{parskip}               \setlength{\oddsidemargin}{20mm}     \setlength{\evensidemargin}{40mm}          \newenvironment{trivlist2}     {\begin{list}     {}     {     \setlength{\labelwidth}{0ex}     \setlength{\leftmargin}{0ex}     \setlength{\labelsep}{0ex}     \setlength{\itemindent}{1\parindent}     \setlength{\listparindent}{1\parindent}     \setlength{\itemsep}{0ex}     \setlength{\topsep}{0.5\parskip plus 0\parskip minus 0.5\parskip}     %\setlength{\topsep}{0ex}     \setlength{\parsep}{0ex}     %useless only \topsep counts anyway as there is no \[ ]\ alone in an environment     \setlength{\partopsep}{\parskip}     }}     {\end{list}}               \makeatletter          \renewcommand\]{%     %\relax     \ifmmode%     %\par     %\vgl@\nointerlineskip     \nopagebreak%     \endgroup%     \hfill%     $ %$%     \endgroup%     %\@endparpenalty\postdisplaypenalty     \end{trivlist2}%     \@endparpenalty\postdisplaypenalty%     \else \@badmath%     \fi}%          \renewcommand\[{%     %\relax%     \ifmmode\@badmath%     \else%     %\dotfill     \@beginparpenalty\predisplaypenalty%     \begin{trivlist2}%     %\@beginparpenalty\predisplaypenalty     \item[]%     \leavevmode%     \begingroup%     $ %$%     \displaystyle%     \hfill%     \begingroup%     %\par     %\vgl@\nointerlineskip     \nopagebreak%     \fi}          \makeatother                    \usepackage{marginnote}          \newcommand{\qed}{%     \unskip\removelastskip%     %\marginpar{%     %%\hspace*{-0.5\marginparsep}%     %\makebox[0pt][c]{$\heartsuit$}%     %}     \marginnote[$\heartsuit$]{$\diamondsuit$}     \par     }          %%%put the marginpar always on the right page     %\usepackage{etoolbox}     %\makeatletter     %\patchcmd{\@addmarginpar}{\ifodd\c@page}{\ifodd\c@page\@tempcnta\m@ne}{}{}     %\makeatother     %\reversemarginpar                    \begin{document}     blabla,     \[     A \hspace{0.5\textwidth}  B     \]     \qed          blabla,     \[     A \hspace{0.5\textwidth}  B     \]     \hfill blabla.     \qed                    \begin{align*}     \alpha \colon T &\longrightarrow A \\     t &\longmapsto \# t \hspace{0.8\textwidth} B     \end{align*}     \qed               \lipsum[33]     \qed               \newpage          blabl,     \[     A \hspace{0.5\textwidth}  B     \]     \qed          blabla,     \[     A \hspace{0.5\textwidth}  B     \]     \hfill blabla.     \qed                    \begin{align*}     \alpha \colon T &\longrightarrow A \\     t &\longmapsto \# t \hspace{0.8\textwidth} B     \end{align*}     \qed               \lipsum[33]     \qed          \end{document}      I redefine the \[ and \] (just the list used is modified) to apply my own spacing around them. Involuntarily, It places the qed symbol right in front of the line for the displays. This is desired of course. My problem is that with \marginnote I lose this feature plus the position on the right.


title: table notes in memoir

text: How do I have footnotes in a table while using memoir? I tried ctable, but I get the following errors:               /usr/local/texlive/2008/texmf-dist/tex/latex/hyperref/hyperref.sty:4022: No room for a new \dimen .     /usr/local/texlive/2008/texmf-dist/tex/latex/hyperref/hyperref.sty:4022: leading text: \newdimen\Field@Width     /usr/local/texlive/2008/texmf-dist/tex/latex/hyperref/hyperref.sty:4023: No room for a new \dimen .     /usr/local/texlive/2008/texmf-dist/tex/latex/hyperref/hyperref.sty:4023: leading text: \newdimen\Fld@charsize     /usr/local/texlive/2008/texmf-dist/tex/context/base/supp-pdf.tex:137: No room for a new \dimen .     /usr/local/texlive/2008/texmf-dist/tex/context/base/supp-pdf.tex:137: leading text: ... \csname newdimen\endcsname \scratchdimen     /usr/local/texlive/2008/texmf-dist/tex/context/base/supp-pdf.tex:1253: No room for a new \dimen .     /usr/local/texlive/2008/texmf-dist/tex/context/base/supp-pdf.tex:1253: leading text: \newdimen\MPscratchDim


title: hyperlink name with biblatex authoryear

text: I am using biblatex with the authoryear styles. So far I've been able to find everything I need easily in the excellent documentation, but I'm stuck on one thing. With my current settings (below) citations only have the year hyperlinked to the bibliography entry. I think prior to using biblatex I would have the whole citation (authors + year) as a reference - I think this is easier to click etc. when browsing. Is there an easy way to get this (or does it involve creating a new style).               \usepackage[style=authoryear,                 bibstyle=authoryear,                 citestyle=authoryear,                 natbib=true,                 hyperref=true,                 backref=true,                 abbreviate=true]{biblatex}


title: Emphasize one row in a table created with pgfplotstable

text: I read this article on "How to change a whole row of a table" but my problem is that I have my table created with pgfplotstable from an external file. How could I set **bold** the characters of row number 7? This is in my preamble               % For tables     \usepackage{pgfplotstable}     \usepackage{booktabs}     \usepackage{array}     \usepackage{caption}          \newcolumntype{C}{>{\centering\arraybackslash}m{2.5em}}     \newcolumntype{D}{>{\arraybackslash}m{15em}}     \newcolumntype{E}{>{\centering\arraybackslash}m{3.4em}}     \newcolumntype{F}{>{\centering\arraybackslash}m{4.4em}}          \pgfplotstableset{         font={\small},         empty cells with={--}, %  replace empty cells with ’--’         every head row/.style={before row=\toprule,after row=\midrule},         every last row/.style={after row=\bottomrule}     }      Then locally               % Add table     \begin{table} [h]     \caption{Breakdown of participation by gender (dependent variable) (percentage)}     \centering     \pgfplotstabletypeset[         columns/Form of participation/.style={string type, column type=D},         col sep=comma] {/my/path/power_distortions_off_online/gender_dependent.csv}     \captionsetup{font={footnotesize,bf,it}}     \caption*{Source: p. 196}     \label{gender_dependent}     \end{table}      This is my table file               Form of participation,No answer,Male,Female,Total     No reply,8.3,58.3,33.3,100     I attended one or more public meetings,3.7,63.9,32.4,     I attended other meetings about the public meetings,10.3,69,20.7,     I posted to the CPDP blog,11.1,66.7,22.2,     I asked a question on the DPOP Web site,7.7,84.6,7.7,     I asked a question by letter or prepaid postcard,22.2,55.6,22.2,     I asked a question or commented at a public meeting,10,83.9,16.1,     I looked for more information by mail or in documents,12.2,69.4,18.4,     I visited the CPDP Web sire,6.5,71.4,22.1,     Other,14.3,71.4,14.3,     Total,7.4,62.6,30.1,


title: How do I repeat a theorem number?

text: Often in my papers I want to mention theorems in the introduction that are introduced in more detail and proved in a later section. I'd like to include the statement of these theorems twice over, each time numbered as the theorem would naturally appear in its later section. My current solution (using amsthm) is, e.g.               %(in the introduction)     \newtheorem*{thm:associativity}{Theorem \ref{thm:associativity}}     \begin{thm:associativity}     Lorem ipsum ...     \end{thm:associativity}          %(in a later section)     \begin{thm}     \label{thm:associativity}     Lorem ipsum ...     \end{thm}      > Can anyone think of a cleaner solution?


title: how do I refer back to counters?

text: > **Possible Duplicate:**   >  How do I repeat a theorem number? I want to set up a simple macro that would do the following: It would be very similar to \label{XX}, (say, \relabel{XX}) only instead of setting the environment/equation/section/etc. to a new number, it will set the counter for that location to \ref{XX}, which already appears previously in the .tex file. It should set the counter to XX according to the current environment setcounter settings. If possible, when leaving the environment, it should restore the counter back. Is that possible? Does such a macro/command already exist? The closest I could find is setcounter, but that requires stating the type of counter and I am also not sure how to specify a value which is a reference previously in the text.


title: compilation error with `legend entries={...}` and `y filter/.code={...}`

text: The following example doesn't compile, unless I remove either the `y filter/.code={...}` or the `[legend entries={...}]` option: Is it a bug?               \documentclass{article}     \usepackage{pgfplots}     \pgfplotsset{width=7cm,compat=1.9}          \begin{document}     \begin{tikzpicture}     \begin{axis}[legend entries={$T_2$}]     \addplot [       black, mark=o,       y filter/.code={\pgfmathadd{#1}{-273.15}}     ] table [x index=0, y index=2] {     % Z [ m ], T_1 [ K ], T_2 [ K ], T_3 [ K ]     8.82351398e-03 5.59299194e+02 5.59402649e+02 5.59561707e+02     6.17647171e-02 5.59371826e+02 5.59538818e+02 5.59796021e+02     1.14705920e-01 5.59466797e+02 5.59699219e+02 5.60057556e+02     1.67647123e-01 5.59586304e+02 5.59883911e+02 5.60343323e+02     2.20588207e-01 5.59727844e+02 5.60091980e+02 5.60654602e+02     2.73529410e-01 5.59903564e+02 5.60327087e+02 5.60982483e+02     3.26470613e-01 5.60062622e+02 5.60573364e+02 5.61363403e+02     3.79411817e-01 5.60223877e+02 5.60828369e+02 5.61762695e+02     4.32352901e-01 5.60391724e+02 5.61091370e+02 5.62172058e+02     };     \end{axis}[     \end{tikzpicture}          \end{document}


title: Changing fonts for a section of the document

text: I'm looking for an example of changing the font for just **one** TikZ node (in a picture). I tried `[font=\augie]` but a big part of problem is that I can not find how to to load the font in the document. The MWE is:               \documentclass{beamer}     \usepackage{tikz}     \usetikzlibrary{positioning}     \begin{document}     \begin{tikzpicture}     \node at (current page.center) [font=\augie] {$2+2=4$};     \end{tikzpicture}     \end{document}


title: Equation in Table Too Large

text: I have a table where one of the formulas is simply too long. Is there a way to break up an equation in Latex in a table? It's already rotated and I tried p{5cm} but it simply overlaps the text as it can't find a place to break the equation, even with spaces added. Which packages might be useful? The one relevant answer on here that I found was frustratingly unhelpful. Thanks in advance! The code for my table:               \begin{sidewaystable}     \begin{center}     \begin{tabular}{|l|l|l|l|} \hline     Objekt & Trägheitsmoment & Fehler Formel & Trägheitsmoment [$kg\cdot m^{2}$] \\ \hline     Hantelkörper &&& \\ \hline     Hohlzylinder & $J=\frac{m}{2}\left(r_{a}^{2}+r_{i}^{2}\right)^{2}$ & $\sqrt{\sigma_{m}^{2}\left(\frac{1}{2}\left(r_{a}^{2}+r_{i}^{2}\right)\right)^{2} +\sigma_{r_{a}}^{2}\left(r_{a}m\left(r_{a}^{2}+r_{i}^{2}\right)\right)^{2} +\sigma_{r_{i}}^{2}\left(r_{i}m\left(r_{a}^{2}+r_{i}^{2}\right)\right)^{2}}$ & $0.00057668 \pm 0.00000000$ \\ \hline               \end{tabular}     \end{center}     \end{sidewaystable}


title: Footnotes in tabular environments within multicols

text: I'm running into a strange inconsistency when I use footnotes in and out of tabular environments within multicols. In particular, I'm declaring a savenotes environment in a style file as follows:               \makesavenoteenv[tabunote]{tabular}      Then, in the same two-column page of my document, I'm using a footnote from within a `tabunote` environment ![](http://i.stack.imgur.com/pYFrr.png) and another footnote in a bare paragraph ![](http://i.stack.imgur.com/fxbkX.png) producing the following results: ![](http://i.stack.imgur.com/kCrLm.png) It appears that my first footnote, from within the savenotes tabular environment, wraps to the column, whereas the bare footnote wraps to the page (which is the behavior I expect under `multicols`). Moreover, since the `savenotes` footnote comes first, it causes the footnote separator line to be half the expected length—on pages where I reverse the order of footnotes (bare, then `tabunote`), the separator is normal-length. The following should yield similar results:               \documentclass{article}     \usepackage{footnote}     \usepackage{multicols}          \makesavenoteenv[tabunote]{tabular}          \begin{document}     \begin{multicols}{2}          \begin{center}       \begin{tabunote}{c|c}         foo & bar%         \footnote{A long enough footnote here will wrap to the column         rather than to the page---this is easily illustrated by the use         of lots of filler text.}       \end{tabunote}     \end{center}          On the other hand, this footnote will be fine.%     \footnote{Here is the aforementioned example of the footnote that is     fine and represents the expected behavior for footnotes in a multicols     environment.}          \end{multicols}     \end{document}      Is there a way to rectify this issue? In particular, how can I use both bare and tabular/`savenotes` footnotes such that both wrap to the page, rather than the column?


title: Extra spacing around restatable theorems

text: I'm learning how to use the thmtools package, and I came across a strange quirk. A minimal example is as follows:               \documentclass{article}          \usepackage{amsthm}     \usepackage{thmtools}          \declaretheorem{theorem}          \begin{document}          \begin{restatable*}{theorem}{mythm}     This is a restated theorem.     \end{restatable*}               \begin{theorem}     This is a regular theorem.     \end{theorem}     \begin{theorem}     This is a regular theorem.     \end{theorem}          \mythm     \mythm     \mythm          \begin{theorem}     This is a regular theorem.     \end{theorem}     \begin{theorem}     This is a regular theorem.     \end{theorem}     \begin{theorem}     This is a regular theorem.     \end{theorem}          \mythm*     \mythm*     \mythm*          \end{document}      When I compile this, there is extra space above the restated, renumbered theorem (the \mythm commands). There is not extra space below these theorems (as you can see between Theorems 5 and 6). The \mythm* commands do not create any extra space. Realistically, the restatable* environment would be used to state a result at the beginning of a paper. There would only be one accompanying \mythm command (and possible any number of \mythm* commands). So this extra space would only be an issue once. Still, I'd like to know what's going on here. ![enter image description here](http://i.stack.imgur.com/8Ovl0.png)


title: "makeindex" in Mac OS X (Snow Leopard)

text: I use LaTeX on a Mac, using TeXShop. It is possible to compile an index from within the TeXShop interface, except when I have more than one index (say, people and concepts) for the same text. In this case I used to compile it from Terminal:               makeindex MyIndex      say. But since I went from Mac OS 10.5 to 10.6 (Snow Leopard), the latter does not work anymore (albeit normal, single-index compilation from within TeXShop works fine). Any idea?


title: Text looks thinner after rotation

text: I want to rotate math text at 45 deg for a picture, but the text looks thinner. Here is a small piece of code with the same text, one "un-rotated" and the other rotated by 45 deg.               \documentclass[12pt]{book}     \usepackage{amssymb} %maths     \usepackage{amsmath} %maths     \usepackage{tikz}     \begin{document}     \begin{tikzpicture}     \node at (0,0) {$f_1-f2$};     \node[rotate=45] at (1,1) {$f_1-f2$};     \end{tikzpicture}     \end{document}      Do you know what is wrong ? ![enter image description here](http://i.stack.imgur.com/CqcYj.png)


title: Is there a better way to draw parallel lines between two nodes that are neither aligned vertically or horizontally

text: I know how to draw parallel lines between two nodes that are either aligned horizontally or vertically.               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{calc}     \begin{document}          \begin{tikzpicture}[myn/.style={circle,draw,inner sep=0.25cm,outer sep=3pt}]       \node[myn] (A) at (0,0) {A};       \node[myn] (B) at (5,0) {B};       \node[myn] (C) at (5,3) {C};       \node[myn] (Z) at (10,-5) {Z};            \draw[->] (A.10) -- (B.170);       \draw[<-] (A.-10) -- (B.190);            \draw[->] (B.80) -- (C.-80);       \draw[<-] (B.100) -- (C.-100);          \end{tikzpicture}          \end{document}      ![enter image description here](http://i.stack.imgur.com/8dp3d.png) What I'd like to know is how to do something similar between nodes that are not so aligned such as between nodes `A` and `Z` in the above diagram where I don't necessarily know exactly where `Z` will be placed beforehand. I'm able to get something like                 \path let \p1=($(Z)-(A)$),                 \n1={atan(\y1/\x1)},                 \n2={\n1+180},                 \n3={\n1+90},                 \n4={1ex*cos(\n3)},                 \n5={1ex*sin(\n3)}             in             [draw,blue] ([yshift=\n5,xshift=\n4]A.\n1) -- ([yshift=\n5,xshift=\n4]Z.\n2);      to work, but this just seems way more complicated than necessary (or, is it?). Incidentally, though this is perhaps starting to look like a commutative diagram, that's not what it's supposed to be.


title: how can I Cite the DSM if BibDesk does not allow for the proper format?

text: I would like to cite in my list of References DSM III, however, none of the format in BibDesk would work! The problem is not how to cite Dsm III in APA, but what type of BibDesk entry("Manual" would not work) should I use to produce the proper outcome.I am using BibDesk Version 1.6.1 (2861).


title: Hiding arrow in xymatrix?

text: I want to enlarge a `xy`-diagram. Using the `\invisible` command, I got some strange spacing. That's why I decided to redraw the complete diagram using the `\only` and the `\phantom` command. But there is an arrow, which does not react on `\phantom` and which I need for correct spacing. In my picture it is the arrow with label `\Psi`. How can I hide it? Here is my - not so minimal - example:               \documentclass{beamer}       \usetheme{Copenhagen}       %Packages       \usepackage{amsmath}       \usepackage{amssymb,bbm,amsthm}       \usepackage[ngerman]{babel}       \usepackage[all,knot,color]{xy}       \xyoption{arc}         %Some personal commands, that should not matter       \newcommand{\C}{\mathbbm{C}}       \renewcommand{\H}{\mathbbm{H}}       \newcommand{\Exp}{\operatorname{Exp}}       \newcommand{\QL}[2]       {{\left.\raisebox{-.1em}{\ensuremath{#1}}\middle\backslash\raisebox{.1em}{\ensuremath{#2}}\right.}}          % Arrow for a bijective mapping       \newcommand{\bijar}[1][]{%        \ar[#1]        \ar@<0.4ex>@{}[#1]|-*=0[@]{\sim}}        \let\varpi\pi       \newcommand{\ggruppe}{{<\!\! g \!\! >}}         \begin{document}       \begin{frame}        \only<1>{\[       \xymatrix@R=13pt@C=12pt{       \H\times\C \ar @{>>} [rr]^{\Exp} \ar @{>>} [rd]_{\varpi_1}        \ar @{>>}[dd]_{\varepsilon_N}&  & D^\times\times\C^\times  \\       & \QL{G_1}{\H\times\C} \ar @{>>}[dl]^{\varepsilon_{N,1}} \bijar [ur]_-{\Phi_1}& &   {\phantom{\QL{\ggruppe}{D^\times\times\C^\times}}}       \ar @/^5pc/ @{-->>} [dlll]^{\Psi}  \\       E^0(N) & & {\phantom{\QL{G_2}{\H\times\C}}}        }       \]}       \only<2>{\[       \xymatrix@R=13pt@C=12pt{       \H\times\C \ar @{>>} [rr]^{\Exp} \ar @{>>} [rd]_{\varpi_1}        \ar @{>>}[dd]_{\varepsilon_N}&  & D^\times\times\C^\times \ar @{>>} [dr]_-{p_g} \\       & \QL{G_1}{\H\times\C} \ar @{>>}[dl]^{\varepsilon_{N,1}} \ar @{>>} [dr]_{\varpi_2} \bijar [ur]_-{\Phi_1}& & \QL{\ggruppe}{D^\times\times\C^\times}        \ar @/^5pc/ @{-->>} [dlll]^{\Psi}  \\       E^0(N) & & \QL{G_2}{\H\times\C} \ar @{>>} [ll]^{\varepsilon_{N,2}} \bijar [ur]_{\Phi_2}       }       \]}       \end{frame}       \end{document}


title: How to re-define \space using \space in its definition

text: I am trying to implement a counter that counts the white spaces in order to give a rough estimate of the number of words contained in a paragraph. In order to do so, I set a new counter               \newcounter{spacenumber}      and I would like for it to step forward every time a `\space` command is invoked. Looking at `@egreg`'s answer in this post: Can I redefine a command to contain itself?, I wrote               \LetLtxMacro{\oldspace}{\space}     \renewcommand{\space}{\oldspace%       \stepcounter{spacenumber}     }      but it doesn't work so far. Here is the complete code:               \documentclass{article}% it does NOT work          \usepackage{letltxmacro}     \newcounter{spacenumber}     \LetLtxMacro{\oldspace}{\space}     \renewcommand{\space}{\oldspace%       \stepcounter{spacenumber}%     }          \begin{document}     \setcounter{spacenumber}{0}     This is an example. \thespacenumber     \end{document}      I took a look at the `etoolbox` package, but I still didn't find an answer because I don't know how `\space` is defined. In fact, I get               > \space=macro:     -> .      The question is: Am I wrong about the whole counter setup or am I wrong about how `\space` has to be re-defined?


title: How does the counter in TikZ \foreach work?

text: I want to partition a line segment into 5 segments of equal length and put tick marks at the new partition points. I want the tick marks to appear in black. Next I want to partition each new segment into 5 segments of equal length and want to color only the new tick marks in blue. To achieve this task, I used TikZ and following is the code.               \documentclass[11pt]{amsart}     \usepackage{pgf,tikz}          \begin{document}     \begin{tikzpicture}     \draw (0,10)-- (15,10);     \foreach \x in {0,...,5}     \draw (3*\x,10)--(3*\x,9.8);     \foreach \x in {1,...,4,6,...,9,11,...,14,16,...,19,21,...,24}     \draw[draw=blue] (3*\x/5,10)--(3*\x/5,9.8);     \end{tikzpicture}          \end{document}        However, the outcome is not the desired outcome. ![enter image description here](http://i.stack.imgur.com/hPINA.png) So I read the manual and it suggests that I should include at least two starting numbers. I edited the code accordingly, and obtained the desired outcome. The new code is given below.               \documentclass[11pt]{amsart}     \usepackage{pgf,tikz}          \begin{document}     \begin{tikzpicture}     \draw (0,10)-- (15,10);     \foreach \x in {0,...,5}     \draw (3*\x,10)--(3*\x,9.8);     \foreach \x in {1,...,4, 6,7,...,9, 11,12,...,14,16,17,...,19, 21,22,...,24}     \draw[draw=blue] (3*\x/5,10)--(3*\x/5,9.8);     \end{tikzpicture}          \end{document}       ![enter image description here](http://i.stack.imgur.com/oYs6A.png) Here is my puzzle. If you give the starting number and the ending number to a counter that knows the increment is by 1(by default) then you do not have to give two starting numbers. This seems to be the case, as the following works.               \foreach \x in {0,...,5}     \draw (3*\x,10)--(3*\x,9.8);      But, the counter seems to loose this capability the second time around as I have to give two numbers to remind the counter that the increment is by 1. (This is my hypothesis.) What is the reason behind this?


title: Incorrect table array

text: I want to build a table like this: ![enter image description here](http://i.stack.imgur.com/11fWa.png) I have tried a code but it doesn't work properly:                 \begin{table}[htp]     \caption{The temporal outlier detection accuracy of hourly mean values with respect to the Mos in 2007-09-30}         \label{tab:todh30}                 \centering                     \footnotesize\setlength{\tabcolsep}{2.5pt}     \begin{tabular}{|c|c|c|c|c|c|c|c|c|}     \hline     Node ID   & \multicolumn{2}{c|}{Density-based} & \multicolumn{2}{c|}{Mahalanobis distance-based}    & \multicolumn{2}{c|}{Running average-based} \\          & DR\%  &  FPR\%     & DR\%  &  FPR\%      & DR\%  &  FPR\% \\ \hline     25   & 100    & 14            & 100    & 14           & 66   & 20      \\ \hline              \end{tabular}     \end{table}


title: is there a minimal converter of well-defined latex to xhtml?

text: is there a good clean **minimal** converter of well-defined latex code into html (preferably perl)? I have played with htlatex and latex2html, but they are too ambitious and too complex in their goals and insufficient in their results. they and their output are hard to modify and to clean up or process further. I need something simpler. I even looked at writing my documents in md, primarily because markdown can generate both latex and xhtml. but my main motivation is to be able to create new clean documents. going to markdown for my own purposes loses a lot of latex features without gaining me the xhtml features I want. now, when I looked at some of my old sample documents, I realized that most of what I want a converter to do is to understand simple standard latex documents. I do not need it to understand user-defined macros. I need the quasi-parser to create valid xhtml and to facilitate eventually conversion to epub. my guess is that this has been written many times, so if someone knows of a (perl-) parser that does this, please let me know. I thought a little about my list of needs:   * intelligence about comments (%), escapes (\%, $, \\), etc., and paragraph starts. it should be reasonably smart, but does not have to be perfectly protected against clever bad latex input. (what does \%\\%$%\% mean? the program can just complain.)   * knowledge of special characters for conversions into html entities (e.g., \"a, \gamma, \cdot)   * font shapes, sizes, weights, colors, underline, overline, strikethrough   * knowledge of direct equivalence environments (e.g., \begin{quote} and <quote>, or \section and h1)   * environments (such as \begin{table} ... \end{table} to <div class="table", or theorem to div class=theorem.)   * tabulars to table, graphicx to img   * tabular intelligence (e.g., & to <td>, \\ to <tr>, multicolumn to rowspan, etc); **(if anyone has a standalone perl .pm program to do this intelligently standalone, please let me know.)**   * enumerate/itemize/description lists   * passing math into mathjax (or better yet creating the rescaleable html+css-mathjax final output)   * hrefs, both internal and external   * (maybe some spacing, bigskip, medskip, smallskip, \;)   * some pragma features to direct the converter to include bits of raw html, or to ignore parts of the latex.   * some features to decide on unrecognized items. for example, this could be to put these into special divs with classes or into comments and css stylability, with options for complaints, and/or printing rather than in comments. the main idea is that one can then write another unix filter program to hook into the output of this program and do further processing. the tasks are compact and definable. is there a good starter perl program for this? my problem is that I have too many other tasks, so I start writing a program and then neglect it for so long that I barely remember it, and then the program suffers from bitrot. keeping it standalone and with this level of understanding as its own command-line program should mean that such a converter is more likely to remain maintainable. tabular to table conversion seems to be the most complex part. many of the above tasks seem to require primarily clever regex's, and not much more. (PS: for me, it could also serve as a lint-checker for what I deem to be good latex documents, aka usepackage{nag}. if a converter can produce nice html, pandoc can then convert to other formats, too.) sincerely, iaw


title: Add a section to beamer table of contents but not to navigation bar

text: This question has been asked before, but for a different beamer theme. The answer there did not make it clear to me how to deal with my case, illustrated in this example (which I think is close to minimal):               \documentclass[compress]{beamer}     \usetheme{Singapore}         \setbeamercolor{section in head/foot}{bg=white}         \useoutertheme{miniframes}           % ^ dots up top         \setbeamertemplate{navigation symbols}{}         % ^ disable annoying footer     \newcommand{\mytoc}{         \tableofcontents[              currentsubsection,              hideothersubsections,              subsectionstyle=show/shaded/hide,             ]}          \newcommand{\mytocslide}{         \begin{frame}             \mytoc         \end{frame}}     \begin{document}     \section{Introduction}\subsection{}     \begin{frame}{hiya}         yo     \end{frame}     \mytocslide     \section{Second section}\subsection{}     \begin{frame}         yoyo     \end{frame}     \addcontentsline{toc}{section}{Section not in top nav}     \begin{frame}         yoyoyo     \end{frame}     \end{document}      The resulting document includes the extra section in the TOC but not the nav bar (as desired), but it looks weird in the TOC.


title: How to add supporting material link together with cited reference when using bibtex?

text: I am going to cite a research article which also has useful supporting data by authors in their website. How can I add the link into Bibtex? Or do I have to cite the supporting data link as an individual reference?