title: Is there any side effect in using \immediate in the definition of \protected@write?

text: In `latex.ltx`, `\protected@write` is defined as:               \long\def \protected@write#1#2#3{%           \begingroup            \let\thepage\relax            #2%            \let\protect\@unexpandable@protect            \edef\reserved@a{\write#1{#3}}%            \reserved@a           \endgroup           \if@nobreak\ifvmode\nobreak\fi\fi     }      Is there any side effect in using `\immediate` before `\write` in the definition of `\protected@write`?


title: Configure arrows in pgf-umlsd

text: A standard diagram produced by `pgf-umlsd` uses only basic arrows, for example:               \documentclass{article}     \usepackage{float}     \usepackage{tikz}     \usetikzlibrary{positioning, fit, calc, shapes, arrows}     \usepackage[underline=false]{pgf-umlsd}     \begin{document}          \begin{figure}[H]         \centering         \begin{sequencediagram}             \newinst{c}{Client}             \newinst[6]{s}{Server}                  \mess[1]{c}{Longer label}{s}             \mess[1]{s}{label}{c}             \mess[1]{c}{label}{s}             \mess[1]{s}{Longer label}{c}         \end{sequencediagram}         \caption{Client-Server messaging}     \end{figure}     \end{document}      ![enter image description here](http://i.stack.imgur.com/GDPju.png) I would like to adjust the length and the tip of any given arrow. For example, being able to draw something like: ![enter image description here](http://i.stack.imgur.com/gTJq2.png) Can this be done by applying local changes to a figure?


title: Fix message about outdated xelatex

text: I'm a new to (La)Tex. The problem I'm having it that every output document (pdf) starts with > Your xelatex format appears to be outdated!Please update your system and > recreate it with fmtutil. I'm using LuaTeX (I need unicode) and TeXlipse on Arch Linux. Here is the output from the command: http://pastie.org/5351646 (out of the Eclipse console) and here is the output from `lualatex small2e`: http://pastie.org/5351655 Here is the preamble:               \documentclass{article}          \usepackage[Ligatures=TeX]{fontspec}     \setmainfont[Ligatures=TeX]{DejaVu Serif}     \setsansfont[Ligatures=TeX]{DejaVu Sans}     \setmonofont[Ligatures=TeX]{DejaVu Sans Mono}          \usepackage{polyglossia}     \setmainlanguage{bulgarian}          \usepackage{minted}               \begin{document}     % ... rest of document with Cyrillic in it      * * * _I will update the question with more details as soon as I know what they should be_


When writing `there are $n!$ possible permutations of $n$ objects`, lacheck complains that "punctuation mark should be placed after the end of math mode". Why is this, and how should I do this properly?


title: economic circuit

text: Having seen some examples of electronic circuits, I would like to make an economic one like this one: ![enter image description here](http://i.stack.imgur.com/EWFTb.png) I haven't found any relevant example, so would like your help. In case that somebody is interested in economics, a more representative circular flow is the following one: ![enter image description here](http://i.stack.imgur.com/WCR4c.gif)


title: breaking many long numbered equations

text: I am having trouble with listing a couple of hundreds of long equations. Most of them need to be broken. The equations should be numbered. I tried many things such as `eqnarray` in combination with `multline` and as well I tried `dmath`. Here is what I have;               \documentclass{article}          \usepackage{amsmath}     \usepackage{mathtools}     \usepackage{breqn}          \begin{document}          \begin{dgroup}     \begin{dmath}     \frac{dCitrate_{00000}}{dt} = ((Acetate_{00} * (J_{TCA} * (1 - P_{dil})) + DilutingPool_{00} * (J_{TCA} * P_{dil}))/(J_{TCA} *     (1 - P_{dil}) + J_{TCA} * P_{dil}) * (Oxaloacetate_{0000} + Oxaloacetate_{0001}) * J_{TCA} - J_{TCA} *     Citrate_{00000})/[Citrate]       \end{dmath}     \begin{dmath}     \frac{dCitrate_{00001}}{dt} = ((Acetate_{00} * (J_{TCA} * (1 - P_{dil})) + DilutingPool_{00} * (J_{TCA} * P_{dil}))/(J_{TCA} *     (1 - P_{dil}) + J_{TCA} * P_{dil}) * (Oxaloacetate_{1000} + Oxaloacetate_{1001}) * J_{TCA} - J_{TCA} *     Citrate_{00001})/[Citrate]      \end{dmath}     \begin{dmath}     \frac{dAcetylCoa_{01}}{dt} = 0      \end{dmath}     \end{dgroup}               \end{document}      My first question is : Do I have to have `\begin{dmath} ... \end{dmath}` for each single equation? Also, the numbering does not look good: ![enter image description here](http://i.stack.imgur.com/YOLH8.jpg) Further, I would like to have the numbers in front of the equations and a numbering as 1,2,3... instead of 1a, 1b, 1c... Does anyone know of a way to achieve this?


title: How to change the background color only for the current page?

text: How can I change the background color only for the current page? I found that I can change the color with `\pagecolor{color}` but that unfortunately changes the color for all pages after this command. Any ideas how to limit this command only to the current page?


title: Classicthesis chapter title formatting

text: How can I modify ClassicThesis to format chapter headings with the word "Chapter" followed by the roman numeral chapter number, a verticle space, and the chapter title? As many know, the default looks like: ![Default beginning of a chapter](http://i.stack.imgur.com/rc1a6.png) While the desired (nay, required) would look like: ![Desired beginning of a chapter](http://i.stack.imgur.com/GCI66.png) I have written the whole thing using lyx, and have been able to change many things to match required formatting.


title: How to add an extra level of sections with headings below \subsubsection

text: I have a document which requires many levels of sectioning. I have sections, subsections and subsubsections, but require one more level below that. I can't change the sections to be parts and move everything up a level, as this document will eventually be included in another document which has parts/chapters already. I see that the `\paragraph` command is used for defining the section level below subsubsection, but that doesn't produce headings in the same way that subsection and subsubsection do. Is there any way to either (1) change the `\paragraph` command so that it works like subsubsection but just adds another number - ie. 1.2.3.4 or (2) create a `\subsubsubsection` command to do the same thing?


title: Creating subsubsubsection and using \ref and \label (+hyperref)

text: I'm writing on my thesis and need more levels of sections. This seems to be not a rare problem. So, after some search on the web i defined my custom deeper sections in terms of the following code.               \newcommand{\csubsubsubsection}[1]{ {     \paragraph{#1}$\;$\\%$\;$\\     }}          \newcommand{\csubsubsubsubsection}[1]{ {     \subparagraph{#1}$\;$\\$\;$\\     }}      The problems I'm facing are twofold. The first issue is that a pair of `\label` and `\ref` is pointing to the correct place, but the link name is wrong. So when the `\label`-command is positioned like                   \section{Top Section}          This is a nice section and the link          to \ref{sec:mydeepersec} points correctly,          but the link name shows the number of \ref{sec:mymidsec}.         \subsubsection{Mid Section}         \label{sec:mymidsec}         \csubsubsubsection{My deeper section}         \label{sec:mydeepersec}      and is called with `\ref` somewhere else, the displayed number of the link is wrong. It shows the number of the upper `\subsubsection`. I played around with the `\refstepcounter` command and tried to put `\phantomsection` in the command definition of my custom deeper sections. This did not fix the problem. Same with increasing the `\setcounter{secnumdepth}`. The second issue is, that the `\csubsubsubsection` and `\csubsubsubsubsection` seems to not to be treated like a `section` or `subsubsection`. Sometimes those deeper sections will start at the end of one page and the the first sentence is displayed on the next page. So it seems like LaTeX treats them like standard text, so like `\textbf{}` formated text. And some options i use:               \documentclass[a4paper]{scrartcl}     \usepackage[utf8]{inputenc}  \usepackage[T1]{fontenc}     \usepackage{lmodern}         \usepackage[ngerman]{babel}     \setcounter{tocdepth}{4}         \setcounter{secnumdepth}{4}     \hypersetup{linkbordercolor={1 1 1}, citebordercolor={1 1 1},                  pdfborder={0 0 0}, final=true, naturalnames=true}      I use `pdflatex` and and an upgraded TexLive on Ubuntu 10 Lucid. So the package versions are recent.


title: Creating a subsubparagraph

text: I want to create a `subsubparagraph` heading (in order to comply with phd guidlines for formatting). I've copied code from `article.cls` and just made everything 'lower'. However, when I do, although the `subsubparagraph` exists, it prints the title twice. MWE               \documentclass{article}     \makeatletter     \newcounter{subsubparagraph}[subparagraph]     \renewcommand\thesubsubparagraph{\thesubparagraph.\@arabic\c@subsubparagraph}     \newcommand\subsubparagraph{\@startsection{subsubparagraph}{6}{\parindent}%                                            {3.25ex \@plus1ex \@minus .2ex}%                                            {-1em}%                                   {\normalfont\normalsize\bfseries}}     \newcommand*\l@subsubparagraph{\@dottedtocline{6}{10em}{5em}}     \makeatother          \begin{document}     \paragraph{Foo}     \subparagraph{Bar}     \subsubparagraph{Foo bar!!!}          \end{document}      ![seeing double when defining subsubparagraph](http://i.stack.imgur.com/2xOxb.png) The `subsubparagraph` needs to have all the properties of `subparagraph`, with possible additional indentation (which currently I've omitted to keep the new code as close to that found in `article.cls`)


title: subsubsubparagraph

text: In a LaTeX `article` we have `\section`, `\subsection`, `\subsubsection`, `\paragraph`, `\subparagraph`. What do I do if I want to go deeper and want to use `\subsubparagraph` or `\subsubsubparagraph`and avoid the arbitrary restriction imposed by LaTeX? Or what if I want to do instead `\subsubsubsubsubsubsubsection`?


title: Is there a \subsubsubsection command?

text: I could do `\subsection{}` and `\subsubsection{}` but not `\subsubsubsection{}`. This command does not seem to be available in LaTeX. Is there an alternative command?


title: Lyx beamer titles on new frames

text: I am using Lyx and Beamer in order to write my thesis presentation. When i insert a title/section in a new frame , it does not appear in preview.. why is that ? How can i add titles in each frame of my presentation ?


title: How to fix \min in beamer?

text: If I use `\min` in a regular document, it shows correctly: ![enter image description here](http://i.stack.imgur.com/Ad4xq.png) However, if I use the same command in a beamer presentation I get: ![enter image description here](http://i.stack.imgur.com/W3Pd6.png) Here's my header:               \documentclass[mathserif]{beamer}     \mode<presentation>{     \usetheme{Berlin}     \setbeamercovered{transparent}      \setbeamertemplate{navigation symbols}{} %no nav symbols     }     \usepackage{graphicx}     \usepackage{booktabs}     \usepackage[spanish]{babel}     \usepackage[utf8]{inputenc}     \usepackage{times}     \usepackage[T1]{fontenc}     \usepackage{amsmath}     \usepackage{amsthm}     \usepackage{verbatim}      For the moment I defined a new operator, namely,               \def\Min{\operatornamewithlimits{min\vphantom{p}}}      but I really would like to know why `\min` doesn't work.


title: Probsoln & Sweave

text: I just started learning the probsoln package so I can create problem sets. I have a basic example that is working:               \documentclass{article}     \usepackage{probsoln}     \showanswers          \begin{document}       \ifthenelse{\boolean{showanswers}}{\textbf{Solution Sheet}}{\textbf{Homework problems}}            \loadallproblems{HW_Descriptive.rnw}            \useproblem{comparing_rates1}     \end{document}      where the problem set HW_Descriptive.rnw contains               \begin{defproblem}{comparing_rates1}       If 136,670,000 persons were wage and salary workers and 10,544,000 persons were self-employed, what is the fatal injury rate per 100,000 workers for each group?      \begin{onlysolution}%       \begin{solution}       Wage and salary workers have a fatal injury rate per 100,000 workers of 136670000/100000 =  1366.7       Self-employed workers have a fatal injury rate per 100,000 workers of  10544000/100000 = 105.44       \end{solution}     \end{onlysolution}     \end{defproblem}      What I would like to do is include R code into the problems (sometimes in the question, most often in the solution). Unfortunately the most direct approach of               \begin{defproblem}{comparing_rates2}     If 136,670,000 persons were wage and salary workers and 10,544,000 persons were self-employed, what is the fatal injury rate per 100,000 workers for each group?      \begin{onlysolution}%         \begin{solution}         <<>>=         136670000/100000         10544000/100000         @         \end{solution}     \end{onlysolution}     \end{defproblem}      Did not work, the output looking like **Solution:** !!??=136670000/100000 10544000/100000 @ Can anyone point me to a working example of Sweave + probsol?


title: output generated macro content with newline

text: I would like to debug a latex macro, but I do not really know how. I got the following MWE which replaces the `\\\` in a string. I would like to print the value of generated string to check the result. The first output of `\show` is as expected `\textbf {Test123\\\Test234}`. Now I would like to output the macro `\addrGlobal`, so that it shows `\textbf {Test123\newline Test234}`, but it does not work as expected. How can this output be archieved? Thanks in advance!               \documentclass{article}          \usepackage[a4paper,top=1.27cm,left=1cm,right=1cm,bottom=2cm]{geometry}     \usepackage{ifpdf}     \usepackage[utf8x]{inputenc}     \usepackage{xstring}               \def\address{\textbf{Test123\\Test234}}          \newcommand{\addrGlobal}{%     \ifx\@empty\address\else     \saveexpandmode\expandarg     \StrSubstitute{\address}{\empty\\}{\empty\newline}[\addr]%     \restoreexpandmode\addr%     }%          \relax     \show\address     \show\addrGlobal               \begin{document}          \end{document}


title: How can I shift shapes?

text: I would like to declare a custom shape               \radius \pgf@xa=\pgf@x      \centerpoint \pgf@xb=\pgf@x \pgf@yb=\pgf@y     \pgfpathcircle{\centerpoint}{\radius/10}     \pgfpathmoveto{\centerpoint}     \pgfpathellipse{\centerpoint}{\pgfpoint{\radius/2-\radius/10}{0}}{\pgfpoint{0}{\radius/10}}     \pgfpathellipse{\centerpoint}{\pgfpoint{\radius/2-\radius/10}{0}}{\pgfpoint{0}{\radius/10}}      The custom shape will inherit from circle. I have the following questions:   1. How can I fill the circle,ellipse etc with the given color?   2. How can I shift the center point of the first ellipse with radius/2 left and the second radius/2 right?


title: Prevent biblatex date output for online citations

text: I'd like to not print the year (nor a possible author), but only for `Online` types of citations. Here's an illustration of what I would like to remove (in red): ![enter image description here](http://i.stack.imgur.com/IAxq2.png) Here's my MWE:               % arara: xelatex     % arara: biber     % arara: xelatex          \documentclass{scrartcl}     \usepackage[backend=biber,style=authoryear,sorting=nty]{biblatex}     \addbibresource{mwe.bib}          \begin{document}     Example\cite{tab:test}          \printbibliography     \end{document}      `mwe.bib`:               @Online{tab:test,       Url                      = {http://www.example.com/images/image.jpg},       Urldate                  = {2014-02-25},       Timestamp                = {2014.06.13},       Note                     = {Table \ref{tab:test}}     }      _This question is motivated with difficulties in resolvingCustom biblatex style for citing images and tables, and represents a narrower requirement_


title: Customizing the list of figures (LOF) style using tufte-latex

text: I'm using the tufte-latex class and would like to change the List of Figures style. When choosing the `\tableofcontents` I supply the `notoc` argument so that it uses the standard `LaTeX` style:               \documentclass[justified, notoc, symmetric]{tufte-book}      Is there a similar command to override the `LOF`? I did try:               \documentclass[justified, notoc, nolof, symmetric]{tufte-book}      but it did not seem to change them. To illustrate the differences, here is the Table of Contents: ![enter image description here](http://i.stack.imgur.com/psJAy.png) and here is the List of Figures: ![enter image description here](http://i.stack.imgur.com/X8Gox.png) The other customization that I wanted was for the numbers to be hyperlinked, instead of the text. I'm not sure if that is possible to easily do, though so I may just make all of the hyperlinks black instead. I'm using the following command for the hyperlink colors `\hypersetup{colorlinks}`. The final customization, is that I wanted hyperlinks to websites to appear in another color. I can't figure out where to tweak that. Usually I use the `hyperref` package, but `tufte-latex` already chose colors using the `colorlinks` arguement. Is there a way that I can edit these options?


title: Beamer: How text wrapping around a graphic right aligned?

text: I want to include a graphic in beamer presentation with right alignment and this graphic should be wrapping by text. I tried three packages but non of them works correct (minimal example below). `picins`: the text superimposed on the graphic. `wrapfig`: the graphic is inserted in principle to a new page following `floatflt`: the graphic is moved to the area where the frametitle is Another possibility to achieve this is to put the graphic into a column, but then it's not wrapping by text. Is there anyone who knows how I can solve this?                   \documentclass[11pt,t,handout]{beamer}              \usepackage[utf8]{inputenc}         \usepackage[T1]{fontenc}         \usepackage{lmodern}         \usepackage[ngerman]{babel}         \usepackage{graphicx}         \usepackage{amsmath,amssymb}              \usepackage{picins}         \usepackage{wrapfig}         \usepackage{floatflt}              \author{Max Mustermann}              \begin{document}              \begin{frame}         \frametitle{Folientitel}         \piccaption{Caption}         \parpic[r]{\includegraphics{grafik}}         \begin{itemize}[<+->]           \item Punkt 1 = text blah blah foo bar, text blah blah foo bar, text blah blah         foo bar           \item Punkt 2           \item Punkt 3         \end{itemize}         \end{frame}                   \begin{frame}         \frametitle{Folientitel}         \begin{wrapfigure}{r}{5cm}         \includegraphics{grafik}         \end{wrapfigure}         \begin{itemize}[<+->]           \item Punkt 1           \item Punkt 2           \item Punkt 3         \end{itemize}         \end{frame}                   \begin{frame}         \frametitle{Folientitel}         \begin{floatingfigure}[r]{5cm}         \includegraphics{grafik}         \end{floatingfigure}         \begin{itemize}[<+->]           \item Punkt 1           \item Punkt 2           \item Punkt 3         \end{itemize}         \end{frame}              \end{document}


title: What is the best side-by-side preview method for Emacs24 AUCTeX?

text: I am new to the Emacs world. I did this transition from one of the best latex editors and despite of the complexity of Emacs at every turn, I can still see there is future in learning it on the long run. I installed windows version of GNU Emacs24 as it offers all-in-one bundle kindly authored by Vincent Goulet. I installed the AUCTeX according to its manual. I wrote a small tex file, but I did not figure out how to get a side-by-side preview like that of TeXStudio for example. I found one here called `latex-preview-pane`. It works but still do not get a PDF only bohemic script instead (see image below). Another issue when I put the code `(latex-preview-pane-enable)` in the .emacs default.el, it throws an error, so this means I have to activate it each time from mini buffer area. When I press `M-P` (shift + p) it opens pdf in the default external pdf viewer I have on machine which is Foxit in this case without any problem. So what am I missing here? How can I get a decent side-by-side preview in Emacs24? By the way I want to compile every time with xelatex and not pdflatex is it possible to define this option in the .el file? **Screenshot** ![enter image description here](http://i.stack.imgur.com/BRmBg.png) **Note**   * Window seven 32bit   * Texlive 2013 distribution   * Emacs 24.3.1   * AUCTeX 11.87.5 **Update** The latex-preview-pane worked by when I press `M-p` it does not update the preview. Other issue the right margin is partially hidden whreas too much white space on the left (see screenshot below). How to fix that? ![enter image description here](http://i.stack.imgur.com/2cLhW.png)


title: Is there a program/script to check BibTeX files against compliance (e.g. APA style)?

text: Is there a program or a script to check BibTeX files against compliance against a standard (e.g. APA style)?   1. For example, author with two initials should be stored with the two initials separated by a space, e.g. Alistair Balthasar Smith should be stored as `Smith, A. B.`, not `Smith, A.B.` However, Google Scholar always returns the two initials together without the space between them, and causes the reference section in the output to miss the second initial.   2. Another example: APA style requires both the start and end pages for a journal article, but Google Scholar sometimes does not return the end page.   3. A third example: all words in the name of a journal should be capitalized but once in a while it is not formatted as so.   4. A fourth (new) example: I found that in a very small number of references I had "---" instead of "--" in the page number field, turning it into a long dash. I have been doing the checks myself manually but am hoping for an automated solution.


title: Natbib of DOI with bad characters

text: I have a BibTeX file with the following entry:               @article{Garbrecht1998,       title={The treatment of flat areas and depressions in automated drainage analysis of raster digital elevation models},       author={Martz, L.W. and Garbrecht, J.},       journal={Hydrological processes},       volume={12},       number={6},       pages={843--855},       year={1998},       publisher={Wiley Online Library},       doi={{10.1002/(SICI)1099-1085(199805)12:6<843::AID-HYP658>3.0.CO;2-R}}     }      I'm creating my bibliography with `natbib`:               \documentclass[twocolumn]{article}     \usepackage[numbers]{natbib}     \usepackage[colorlinks,linkcolor=black,anchorcolor=black,citecolor=black]{hyperref}          \bibliographystyle{plainnat}     {\scriptsize     \bibliography{refs}}          \end{document}      You'll note that the DOI of the BibTeX entry contains some "bad" characters such as `<` and `>`. These should be displayed verbatim in the resulting PDF, but, instead, they are processed into large-angle symbols which cannot be copied and pasted. How can I get BibTeX+natbib+LaTeX to give me my DOIs verbatim? Thanks!


title: Depth and height confusion

text: I create two equations:   1. `$x \notin \mathbb{N}$`; and    2. `$x \in \mathbb{N}$`. As it turns out, both have the same depth value:   1. Depth = 0.39098pt   Height = 7.5pt   2. Depth = 0.39098pt   Height = 6.88889pt Clearly the first equation should have a larger depth than the second one, because the `\notin` sign goes deeper. How can this be? This is the code that is used to generate the two:               \documentclass[10pt]{article}     \usepackage{amsmath}     \usepackage{amssymb}     \usepackage[usenames]{color}               \pagestyle{empty}     \newsavebox{\eqbox}     \newlength{\width}     \newlength{\height}     \newlength{\depth}          \begin{lrbox}{\eqbox}     {$ x \notin \mathbb{N} $}     \end{lrbox}          \settowidth {\width}  {\usebox{\eqbox}}     \settoheight{\height} {\usebox{\eqbox}}     \settodepth {\depth}  {\usebox{\eqbox}}     \newwrite\file     \immediate\openout\file=\jobname.bsl     \immediate\write\file{Depth = \the\depth}     \immediate\write\file{Height = \the\height}     \addtolength{\height} {\depth}     \immediate\write\file{TotalHeight = \the\height}     \immediate\write\file{Width = \the\width}     \closeout\file     \begin{document}     \usebox{\eqbox}     \end{document}      Could anyone tell me why that is?


title: classic title and banking body style mixed (moderncv)

text: I was hesitating between `classic` and `banking` style:   * Personal Information Part: `banking` < `classic`, because `banking` took lots of space, way too many lines.    * Body Part: `banking` > `classic`, because `banking` style is more compact with comfortable space.  I want personal information with classic style but body still in banking style. Copy/paste/replace certain lines in `banking.sty` file will work? I am not sure, hope you guys could help me out. Attached is the expected snapshot. Header and body are generated with `\moderncvstyle{classic}` and `\moderncvstyle{banking}` flags respectively. Crop them and upload here. ![classic title](http://i.stack.imgur.com/mqI0X.png) ![banking body](http://i.stack.imgur.com/xxpdx.png)


title: LuaTeX renames the .log, .aux, etc

text: When I ran LuaTeX on my resume, it renamed all the files produced from pdfing the file. This is the first time it has every done this. The file was called resume and it renamed the pdf `texput.pdf`. Has anyone experienced this before? When I ran LuaTeX a few months back on my resume, this wasn't the case. Tex file as requested:               \documentclass[10pt]{article} % Font size - 10pt, 11pt or 12pt                           \usepackage[hmargin=1.25cm, vmargin=1.5cm]{geometry} % Document margins                       \usepackage{marvosym} % Required for symbols in the colored box                          \usepackage{ifsym} % Required for symbols in the colored box                                  \usepackage[usenames,dvipsnames]{xcolor} % Allows the definition of hex colors                % Fonts and tweaks for XeLaTeX                                                           \usepackage{fontspec,xltxtra,xunicode}     \defaultfontfeatures{Mapping=tex-text}     \setromanfont[Mapping=tex-text]{inconsolata} % Main document font                        \setsansfont[Scale=MatchLowercase,Mapping=tex-text]{Kurier}     % Font for your name at the top                                                          %\setmonofont[Scale=MatchLowercase]{Andale Mono}                 % Colors for links, text and headings                                                    \usepackage{hyperref}     \definecolor{linkcolor}{HTML}{506266} % Blue-gray color for links                        \definecolor{shade}{HTML}{F5DD9D} % Peach color for the contact information box          \definecolor{text1}{HTML}{2b2b2b} % Main document font color, off-black                  \definecolor{headings}{HTML}{701112} % Dark red color for headings                       % Other color palettes: shade=B9D7D9 and linkcolor=A40000; shade=D4D7FE and              % linkcolor=FF0080                                                                            \hypersetup{colorlinks, breaklinks, urlcolor=linkcolor, linkcolor=linkcolor}     % Set up links and colors                                                                     \usepackage{fancyhdr}     \pagestyle{fancy}     \fancyhf{}     % Headers and footers can be added with the \lhead{} \rhead{} \lfoot{} \rfoot{}          % commands                                                                               % Example footer:                                                                        %\rfoot{\color{headings} {\sffamily Last update: \today}. Typeset with XeLaTeX}               \renewcommand{\headrulewidth}{0pt} % Get rid of the default rule in the header                \usepackage{titlesec} % Allows creating custom \section's                                     % Format of the section titles                                                           \titleformat{\section}{\color{headings}     \scshape\Large\raggedright}{}{0em}{}[\color{black}\titlerule]          \titlespacing{\section}{0pt}{0pt}{5pt} % Spacing around titles                                \begin{document}          \color{text1} % Sets the default text color for the whole document to the color          % defined as 'text1'                                                                          %----------------------------------------------------------------------------------\     ---                                                                                %       TITLE                                                                            %----------------------------------------------------------------------------------\     ---                                                                                \par{\centering{\sffamily\Huge Name Here}\\ % Your name                               %{\color{headings}\fontspec[Variant = 2]{Arial}                                          % Curriculum {Vit\fontspec[Variant = 3]{Arial}\ae}\\[15pt]\par}                                    %----------------------------------------------------------------------------------\     ---                                                                                \begin{minipage}[t]{0.5\textwidth} % Start the left-hand side of the page                \vspace{0pt} % Trick for alignment                                                            %----------------------------------------------------------------------------------\     ---                                                                                %       WORK EXPERIENCE                                                                  %----------------------------------------------------------------------------------\     ---                                                                                \section{Work Experience}          %------------------------------------------------                                        % WORK EXPERIENCE 1                                                                      %------------------------------------------------       {\raggedleft\textsc{Current, from March 19, 2012}\par}          {\raggedright\large classified\\     \textit{xxxxxxx}\\[5pt]}          \normalsize{xxxxxxxxxxxxxxxxxxxx}\\          %------------------------------------------------                                        % WORK EXPERIENCE 2                                                                      %------------------------------------------------                                             {\raggedleft\textsc{Current, from January 2013}\par}          {\raggedright\large Grader for Continuum Mechanics, ME336\\     \textit{University of Vermont}\\[5pt]}          \normalsize{Grade the homework for Continuum Mechanics as well as ran one review     session.}\\          %------------------------------------------------                                        % WORK EXPERIENCE 3                                                                      %------------------------------------------------                {\raggedleft\textsc{December 2011, from May 2011}\par}          {\raggedright\large Graduate Teaching Assistant\\     \textit{Florida Atlantic University}\\[5pt]}          \normalsize{Selected as teaching assistant for Engineering Calculus 1.     Led review session prior to tests and held office hours to help students with     their homework.     Tutored in the math tutor lab for 10 hours a week.}\\          %------------------------------------------------                                        % WORK EXPERIENCE 4                                                                      %------------------------------------------------                                             {\raggedleft\textsc{October 2009, from June 2008\\                                       August 2010, from June 2010}\par}          {\raggedright\large Intern\\     \textit{Merrill Lynch}\\[5pt]}          \normalsize{Analyzed the IRS 5500 Form in order to find a competitive advantage     to market to prospective business clients.     Set up appoints for new business acquisitions in the 401(k) market.}\\          %------------------------------------------------                                        % WORK EXPERIENCE 5                                                                      %------------------------------------------------                                        {\raggedleft\textsc{May 2007, from June 2006}\par}          {\raggedright\large Club Mate\\     \textit{Pacific Islands Club, Guam}\\[5pt]}          \normalsize{Selected by the Guam Visitor's Bureau to attend the international     travel fair in Taipei, Taiwan for one week.     Passed intermediate speaking test in both Japanese and Korean administered by     representative of the University of Guam.     Multi duty lifeguard, taught windsurfing, sailing, kayaking, and snorkeling.}\\          %----------------------------------------------------------------------------------\     ---                                                                                \end{minipage} % End the left-hand side of the page                                      \hfill     \begin{minipage}[t]{0.44\textwidth} % Start the right-hand side of the page              \vspace{0pt} % Trick for alignment                                                            %----------------------------------------------------------------------------------\     ---                                                                                %       COLORED BOX                                                                      %----------------------------------------------------------------------------------\     ---                                                                                \colorbox{shade}{\textcolor{text1}{     \begin{tabular}{c|p{7cm}}     \raisebox{-4pt}{\textifsymbol{18}} & xxx Woodhaven Dr., Unit xxxx,     White River, Nowhere, 99999 \\     % Address                                                                                \raisebox{-3pt}{\Mobilefone} & +1 (727) xxx xxxx \\ % Phone number       \raisebox{-1pt}{\Letter} & \href{mailto:xxxxx.xxxx@uvm.edu}     {xxxxx.xxxxx@uvm.edu} \\ % Email address                                                \end{tabular}     }     }\\[10pt]          %----------------------------------------------------------------------------------\     ---                                                                                %       EDUCATION                                                                        %----------------------------------------------------------------------------------\     ---                                                                                \section{Education}          \begin{tabular}{rl}     % Start a table with two columns, one for dates and one for qualifications                    %------------------------------------------------                                        % EDUCATION 1                                                                            %------------------------------------------------                                             2012 -- \textsc{Present} & \textbf{Master of Science} \\     & \textsc{Mechanical Engineering} \\     & \textit{The University of Vermont}\\     &\\          %------------------------------------------------                                        % EDUCATION 2                                                                            %------------------------------------------------                                             2011 & \textbf{Master of Science Candidate} \\     & \textsc{Mathematics} \\     & \textit{Florida Atlantic University}\\     &\\          %------------------------------------------------                                        % EDUCATION 3                                                                            %------------------------------------------------                                             2011 & \textbf{Bachelor of Science}\\     & \textsc{Mathematics, Finance} \\     & \textit{The University of Tampa}                                                                                \end{tabular}\\[10pt]          %----------------------------------------------------------------------------------\     ---                                                                                %       COMPUTER SKILLS                                                                  %----------------------------------------------------------------------------------\     ---                               \section{Computer Skills}          \begin{tabular}{rl}     Basic Knowledge     & \textsc{Matlab}, Python,\\     & Linux, Vim\\     & \\     Intermediate Knowledge     & \textsc{Mathematica},  \LaTeX,\\     & Microsoft Windows, Emacs     \end{tabular}          %----------------------------------------------------------------------------------\     ---                                                                                %       EXTRACURRICULAR                                                                  %----------------------------------------------------------------------------------\     ---                                                                                \section{Extracurricular}          \begin{tabular}{rl}     \textsc{Societies}     & Pi Mu Epsilon\\     & Phi Theta Kappa\\     & Florida Engineering Society\\     & Shotokan Karate     \end{tabular}     %----------------------------------------------------------------------------------\     ---                                                                                \end{minipage} % End right-hand side of the page                                              \end{document}


title: Disable indentation in enumerate temporarily

text: I would like to place an unindented `\fbox` inside an `enumerate` environment.               \begin{enumerate}         \item Some text.         \par\fbox{a}         \item Some more text.     \end{enumerate}      The above code produces:               1. Some text.        a     2. Some more text.      Is there a way to get the following?               1. Some text.     a     2. Some more text.      Of course I could fiddle around with `\hspace{somenegativelength}`. However, is there nothing like `\reallynoindent`?


title: interaction between mhchem \ce command and square brackets

text: So I have a number of equations with concentrations in them... and using `mhchem` I find an anomaly (probably in my understanding!) when I use `\ce` with `[]` `\ce{[OH-]}` does not give me `[OH^{-}]`, but gives me `[OH-]`, but `\ce{[H+]}` does give me `[H^{+}]`. `[\ce{OH-}]` does give `[OH^{-}]`. I am not sure what I don't understand here... with thanks for the help Chris


title: About numbering of figures and tables in appendix {elsarticle.cls}

text: When I am using `elsarticle.cls` to write papers, I always meet the following problem. If I already have one picture (table) in main text and then I put another picture (table) in appendix, the numbering of the picture (table) in appendix is not Figure A.1 (Table A.1) but Figure A.2 (Table A.2). I tried to modify the `elsarticle.cls` by adding               \renewcommand\appendix{\par       \setcounter{section}{0}%       \setcounter{subsection}{0}%       \setcounter{equation}{0}       \setcounter{figure}{0}       \setcounter{table}{0}       ....      But I failed, always encountering warnings and errors. Here is the test code:               \documentclass[preprint,12pt]{elsarticle}     \begin{document}     \section{Test}     \begin{table}[h]       \caption{Test}\label{Tab_1}       \centering{}       \begin{tabular}{c|c}       \hline       $E(\mathrm{Mpa})$ & $\nu$\\       \hline       $6.8\times10^4$ & 0.21\\       \hline       \end{tabular}     \end{table}     \appendix     \section{Test}     \begin{table}[h]       \caption{Test}\label{Tab_2}       \centering{}       \begin{tabular}{c|c}       \hline       $E(\mathrm{Mpa})$ & $\nu$\\       \hline       $6.8\times10^4$ & 0.21\\       \hline       \end{tabular}     \end{table}     \end{document}      If we put picture we meet also the same problem.I do not know why this happen. Does mean that in appendix we can not put any table or figure? Can anyone help me out?


title: Making a summation sign adjust to contents of summation

text: I'd like to make my summations adjust in size just as brackets and parenthesis do when using `\left` and `\right` - in principle, something like this:               \left\sum_i \frac{a+b}{x+y}\right.      This example, however, doesn't compile. I've seen this question, and others like it, that detail how to make the summation sign larger, but it's not dynamic. Is there a way to do this dynamically?


title: Should "axis" be italicized in LaTeX captions?

text: This seems more a grammar question than a LaTeX but here it is. It would be stranger if I posted it in the English stack site. What is the correct way to say see x axis:                   (1) see $x-axis$         (2) see $x$-axis      In (1) x-axis appears italicized, in (2) it does not. I am following the general rule that variables should be italicized.


title: Latex pdf output does not show miter line joins drawn in Ipe editor

text: I am using Ipe to draw eps figures to include in my latex document. I use dvipdfm as the package. I just discovered a nice feature in Ipe to make line joints sharp by choosing "Line join = miter". However, when the eps figure is included in my Latex document and I zoom in on the output pdf, I still see the normal soft corners. Does anyone know if/how this is fixable without resorting to completely changing how I do my images such as switching to pdflatex? Perhaps I could do something in Ipe or use a Latex package or an option for dvipdfm?


title: Why are \twoheadleftarrow and \leftarrow so different? [Sweave, listings]

text: I am wondering why the `\twoheadleftarrow` in the code below looks so much different from (worse than) the `\leftarrow`, although according to the `LaTeX` symbol list, the arrow heads should be of the same height etc. ![output](http://i.stack.imgur.com/HuH93.png)               \documentclass{article}          \usepackage{amssymb}     \usepackage{bm}     \usepackage{Sweave}     \usepackage{listings}          \lstset{       language=R,       basicstyle=\ttfamily,       literate={<-}{{$\bm\leftarrow$}}2{<<-}{{$\bm\twoheadleftarrow$}}2     }          % undefine Sinput, and Soutput (due to missing 'lstrenewenvironment')     \expandafter\let\csname Sinput\endcsname\relax     \expandafter\let\csname endSinput\endcsname\relax     \expandafter\let\csname Soutput\endcsname\relax     \expandafter\let\csname endSoutput\endcsname\relax          \lstnewenvironment{Sinput}[1][]{#1}{}          \begin{document}     <<foo>>=     x <- 1     x <<- 1     @     \end{document}


title: missing symbols in mathmode

text: I'm trying to insert a couple of numbered equations into a latex document, the equation is very basic yet all the normal operators =, + and - don't appear when I compile the document. I commented everything out except for the equation and still get the same output so I don't think it is as a result of anything before it in the document. This is the first document I'm writing using latex so chances are its something really basic!! the two equations are               \begin{equation}      Z = \frac{c_o - 4c_p}{c_{Si} + Rc_M } - 2     \end{equation}      and               \begin{equation}      NC = 4 - 2Z     \end{equation}      This is the header to the document               \usepackage{baththesis}     \usepackage[small,it]{caption}     \usepackage[usenames, dvipsnames]{xcolor}     \usepackage[a4paper, top=2.5cm, bottom=2.5cm, left=4cm, right=2.5cm,includeheadfoot,head=3cm, headsep=6ex, headheight=4ex]{geometry} % setting page to A4     \usepackage[sort&compress]{natbib}     \usepackage{multirow, array, textcomp, placeins, rotating, amsmath, amsthm, amssymb, acronym, graphicx, subfig, setspace}     \usepackage{isotope}% package for isotopes [#]{element}     \usepackage{fouriernc}     \usepackage{txfonts}     \usepackage[version=3]{mhchem} %package for checmical compositions ce{composition}


title: Jabref: can it export a subset of the bibliography in BibTeX format?

text: Jabref supports exporting the selected entries in different formats, but I wonder if it can actually export to BibTeX format. It is useful to select some of the references to create a smaller database that contains, for instance, only the references of some topic or the ones you are citing in a specific paper. Is there any option to automatically do that?


title: PDFTeXify opens GSview

text: I have a MikTeX/WinEdt installation and I'd been using the "PDFTeXify" button to create PDF's that automatically open in Adobe Reader. Somewhere along the line I opened GSView and accidentally told it to associate PDF's with GSView, and now whenever I "PDFTeXify" it tries to open the PDF in GSView but fails for some reason. I uninstalled and reinstalled both GSView and WinEdt, and made sure that Windows recognizes PDFs to be opened with Adobe Reader (right click a PDF file in Windows Explorer -> properties -> Open with...). When I reinstalled GSView I made sure to tell it NOT to associate PDF's with GSView. However, somehow the change seems to have stuck and PDFTexify still insists on opening in GSView and not Adobe Reader. Any ideas on how to fix this? I'm assuming/hoping there's an option somewhere that sets the default program/reader to open PDF's when you compile but for the life of me I can't find it.


title: pdfTeX font expansion error - \SetExpansion in microtype package

text: I am trying to hammer in some stacked matrix notation to fit the paragraph by shrinking the font. To do so I am using the `\SetExpansion` option from the `microtype` package. But pdfTeX is spitting out this error every-time:               ! pdfTeX error (font expansion): using fonts with different step of expansion i      I have provided one such instance in the MWE below. The text will be out of place when the MWE is run as is. On un-commenting the the `microtypecontext` part the error pops up.                   % START PREAMBLE     \documentclass[12pt]{report}     \usepackage[margin=1.25in]{geometry}          %Required math packages     \usepackage{amsmath}     \usepackage{amssymb}     \usepackage{bm}     \newcommand\vect[1]{\bm{#1}}%bm{#1}          %For experimenting     \usepackage{verbatim}          %Document and typesetting     \usepackage{setspace}     \linespread{1.5}     \setlength{\parindent}{0in}          %Microtyping     \usepackage{microtype}          \SetExpansion     [ context = sloppy,         stretch = 0,         shrink  = 100,         step    =  5  ]     { encoding = {OT1,T1,TS1,OML,OMS,OMX,U} }     { }          % END PREAMBLE          \begin{document}          To proceed forward, we first write the equation system in the equation compactly. To do so, define the following ($S$ x 1) vectors of vertically stacked propensities, count outcome indices, observed count outcomes, and combined error terms $\left[ {\eta_{qj}^*\,\,( = {v_q} + {u_{qj}} + {\omega_{qs}} + {\varepsilon_{qjs}})} \right]$;     $\vect{y}_{qj}^* = (y_{qj1}^*,{\text{ }}y_{qj2}^*,\dots,{\text{ }}y_{qjS}^*)'$,     $\vect{y}_{qj}^{} = (y_{qj1}^{},{\text{ }}y_{qj2}^{},\dots,{\text{ }}y_{qjS}^{})'$,     $\vect{m}_{qj}^{} = (m_{qj1}^{},{\text{ }}m_{qj2}^{},\dots,{\text{ }}m_{qjS}^{})'$, and     ${\vect{\eta }}_{qj}^* = (\eta _{qj1}^*,{\text{ }}\eta _{qj2}^*,\dots,{\text{ }}\eta_{qjS}^*)'$.          \begin{comment}     {\microtypecontext{expansion=sloppy}%     To proceed forward, we first write the equation system in the equation compactly. To do so, define the following ($S$ x 1) vectors of vertically stacked propensities, count outcome indices, observed count outcomes, and combined error terms $\left[ {\eta_{qj}^*\,\,( = {v_q} + {u_{qj}} + {\omega_{qs}} + {\varepsilon_{qjs}})} \right]$;     $\vect{y}_{qj}^* = (y_{qj1}^*,{\text{ }}y_{qj2}^*,\dots,{\text{ }}y_{qjS}^*)'$,     $\vect{y}_{qj}^{} = (y_{qj1}^{},{\text{ }}y_{qj2}^{},\dots,{\text{ }}y_{qjS}^{})'$,     $\vect{m}_{qj}^{} = (m_{qj1}^{},{\text{ }}m_{qj2}^{},\dots,{\text{ }}m_{qjS}^{})'$, and     ${\vect{\eta }}_{qj}^* = (\eta _{qj1}^*,{\text{ }}\eta _{qj2}^*,\dots,{\text{ }}\eta_{qjS}^*)'$.}     \end{comment}          \end{document}        What am I missing here?


title: Maintaining two similar versions without duplication

text: I have a long paper which I currently keep in two versions: one version for submission to a journal and another version for publication as a working paper. The working paper version is slightly longer - it includes some sections I omitted from the submitted version. It also uses a slightly different style sheet and styling options. Currently, whenever I want to make a change, I have to make it in both versions, which is very inefficient. How can I maintain both versions together efficiently, without text duplication? NOTE: In case that matters, I work with LyX.


title: How to draw revolved disk shape using TikZ?

text: Is there an elegant way to rotate this shape about the axis and draw in 3D? Ideally I would like to be able to draw a revolved view of this as 180 deg, 270 deg and the full revolution at 360 deg. ![enter image description here](http://i.stack.imgur.com/1aws6.png)               \begin{tikzpicture}          \def \scalex {0.02};     \def \scaley {0.02};          %Input Variables     \def \DA {1000};     \def \EL {200};     \def \TM {20};     \def \HA {25};     \def \HI {60};     \def \DN {500};     \def \DS {325};     \def \BN {100};     \def \N {-4.026};     \def \S {1.342 };          %Draw shell     \draw (-\HA/2*\scalex, \DA/2*\scaley - \TM*\scaley) -- (-\EL /2*\scalex, \DA/2*\scaley -     \TM*\scaley) --  (-\EL /2*\scalex, \DA/2*\scaley)  --  (\EL /2*\scalex, \DA/2*\scaley) -- (\EL /2*\scalex, \DA/2*\scaley - \TM*\scaley) -- (\HA/2*\scalex, \DA/2*\scaley - \TM*\scaley);           % Draw hub     \draw (-\HI/2*\scalex, \DN/2*\scaley) --  (-\BN/2*\scalex, \DN/2*\scaley) -- (-\BN/2*\scalex, \DS/2*\scaley) -- (\BN/2*\scalex, \DS/2*\scaley) -- (\BN/2*\scalex, \DN/2*\scaley) -- (\HI/2*\scalex, \DN/2*\scaley) ;          % Draw disk     \draw[scale=0.02,domain=\DN/2:\DA/2 - \TM, variable=\r, black ] plot ({-\HA/2*(( \r/ (\DA/2 - \TM))^(-\N/3))}, {\r} );     \draw[scale=0.02,domain=\DN/2:\DA/2 - \TM, variable=\r, black ] plot ({\HA/2*(( \r/ (\DA/2 - \TM))^(-\N/3))}, {\r} );          % Draw centerline     \draw (-2,0) -- (2,0);          % Draw labels     \draw (-\HA/2*\scalex, \DA/2*\scaley - \TM*\scaley) -- ++ (-1,-1) node [left] {a};     \draw (\HA/2*\scalex, \DA/2*\scaley - \TM*\scaley) -- ++ (1,-1) node [right] {b};     \draw (-\HI/2*\scalex, \DN/2*\scaley)  -- ++ (-1, 1) node [left] {c};     \draw (\HI/2*\scalex, \DN/2*\scaley)  -- ++ ( 1, 1) node [right] {d};          \end{tikzpicture}


title: AucTeX insert-environment C-c C-e (no label prompt)?

text: Does anybody know how to configure Emacs or Auctex such that when you insert an environment for example with C-c C-e equation RET? Avoid having to type RET for (Optional) What label? question? Or completely stop being asked for any kind of label? Thanks.


title: Searching within lyx documents

text: I have a bunch of lyx docs in a folder. I want to search within* the document for few terms so that I can select the documents of my interest. eg I have cv's of 20 persons in lyx format. I have to search which of these cv's mention xml? The winodws* utility does not allow search within the lyx file. What are my options. I do not want to generate pdf and do so. Also is there any latex package, which generates tags from document content?


title: Print two-sided B5 book on A4 "corners"

text: I have a B5 thesis to print and the printing houses proposed me to print and bind it on A4 paper and then make two cuts. I've used the crop package but the problem is for twoside document, you can only use the "center" option with this package, and I need to have the odd pages in the top-left corner and the even pages in the top-right corner to print recto-verso and make only two cuts. Any hint ?


title: How to draw graphs in tikz/latex?

text: > **Possible Duplicate:**   >  Using LaTeX to draw time series graphs and histograms I have never drawn any graphs in latex/tikz. What is the best and the simplest way to draw graphs in latex. I want to draw graphs like this: ![enter image description here](http://i.stack.imgur.com/v3FtB.png) ![enter image description here](http://i.stack.imgur.com/hcEBC.png)


title: Equals sign in the pdftitle using hyperref

text: I have a paper with an equation in the title, and I would like to include the equals sign in the pdf metadata by using the hyperref key "pdftitle", by including it as in the following:               \hypersetup{pdftitle={P = NP}}      But when I typeset this, the metadata stops just after the P. So my question is, _how can I get the symbol = to appear in the pdf metadata with hyperref?_   I'm using TeX+DVI, in case that matters. * * * After Ulrike kindly pointed out the there was no problem. I tried to just restart to see if the problem evaproated... and it did! I'll leave this up in case someone else has something similar happen.


title: texdoc can't find pgf

text: While I have the indispensable `pgfmanual.pdf` located in `/usr/share/doc/texmf/pgf/`,               texmf/pgf$ pwd     /usr/share/doc/texmf/pgf     texmf/pgf$ ls     pgfmanual.pdf     texmf/pgf$      texdoc cannot find it.               ~$ texdoc -l pgf      1 /usr/share/texlive/texmf-dist/doc/latex/pgf-soroban/pgf-soroban-doc.pdf        = Package documentation      2 /usr/share/texlive/texmf-dist/doc/latex/pgf-umlsd/pgf-umlsd-demo.pdf        = Package demo      3 /usr/share/texlive/texmf-dist/doc/latex/pgf-umlsd/pgf-umlsd-demo2.pdf        = Package demo (2)      4 /usr/share/texlive/texmf-dist/doc/latex/pgf-blur/pgf-blur.pdf      5 /usr/share/texlive/texmf-dist/doc/latex/pgf-soroban/README        = Readme      6 /usr/share/texlive/texmf-dist/doc/latex/pgf-blur/README        = Readme      7 /usr/share/texlive/texmf-dist/doc/latex/pgf-umlsd/README     Please enter the number of the file to view, anything else to skip:      ~$ texdoc -l tikz      21 results.  Display them all? (y/N) y      1 /usr/share/texlive/texmf-dist/doc/latex/tikz-3dplot/tikz-3dplot_documentation.pdf        = Package documentation      2 /usr/share/texlive/texmf-dist/doc/latex/tikz-cd/tikz-cd-doc.pdf        = Package documentation      3 /usr/share/texlive/texmf-dist/doc/latex/tikz-dependency/tikz-dependency-doc.pdf        = Package documentation      4 /usr/share/texlive/texmf-dist/doc/latex/tikz-inet/tikz-inet-doc.pdf        = Package documentation      5 /usr/share/texlive/texmf-dist/doc/latex/tikz-qtree/tikz-qtree-manual.pdf        = Package documentation      6 /usr/share/texlive/texmf-dist/doc/latex/tikz-timing/tikz-timing.pdf        = Package documentation      7 /usr/share/texlive/texmf-dist/doc/latex/sa-tikz/sa-tikz-doc.pdf      8 /usr/share/texlive/texmf-dist/doc/latex/hf-tikz/hf-tikz.pdf      9 /usr/share/texlive/texmf-dist/doc/latex/tikz-timing/README        = Readme     10 /usr/share/texlive/texmf-dist/doc/latex/tikz-cd/README        = Readme     11 /usr/share/texlive/texmf-dist/doc/latex/tikz-3dplot/README        = Readme     12 /usr/share/texlive/texmf-dist/doc/latex/tikz-inet/README        = Readme     13 /usr/share/texlive/texmf-dist/doc/latex/tikz-qtree/README        = Readme     14 /usr/share/texlive/texmf-dist/doc/latex/hf-tikz/README.txt     15 /usr/share/texlive/texmf-dist/doc/latex/tikz-dependency/README     16 /usr/share/texlive/texmf-dist/doc/latex/sa-tikz/README     17 /usr/share/texlive/texmf-dist/doc/latex/hf-tikz/README     18 /usr/share/texlive/texmf-dist/doc/latex/tikz-bayesnet/README.rst     19 /usr/share/texlive/texmf-dist/doc/latex/tikz-dependency/AUTHORS     20 /usr/share/texlive/texmf-dist/doc/latex/tikz-3dplot/CHANGELOG     21 /usr/share/texlive/texmf-dist/doc/latex/tikz-dependency/VERSION     Please enter the number of the file to view, anything else to skip:               EDIT per comment:               ~$ kpathsea     zsh: command not found: kpathsea     ~$ kpsewhich --var-value TEXMF     {/home/mrkelly/.texmf-config,/home/mrkelly/.texmf-var,/home/mrkelly/texmf,!!/etc/texmf,!!/var/lib/texmf,!!/usr/local/share/texmf,!!/usr/share/texmf,!!/usr/share/texlive/texmf-dist}      The whole texlive distribution has been installed through `apt-get`. The one exception here is the `pgfmanual.pdf` proper, which I un-archived because `texdoc` was having trouble reading archived manuals. That said, until I updated to saucy, `texdoc pgf` worked just fine. How do I point texdoc in the right direction?


title: How to typeset times in regular text

text: How should I enter in a time of day in latex in order to have it typeset properly, if I am using the amsmath package? I am using pdflatex. say I want to write "12:00". In math mode, this gives a space after the colon, as below:               %MWE     \documentclass{article}     \usepackage{amsmath}     \begin{document}          Should it be $4\colon 00$, $5:00$, or 6$\colon$00? They all have a space.          \end{document}      ![withamsmath](http://i.stack.imgur.com/pUa7Q.png) Without the package, it looks fine:               %MWE     \documentclass{article}     \begin{document}          Without the amsmath package, 6$\colon$00 looks correct.          \end{document}      ![withamsmath](http://i.stack.imgur.com/YrODw.png)


title: pgfplot: 3d function plot

text: After my previous question, I want to plot a 3d surface; as a simple function I tried to render the bellow plot but I was not successful.               \documentclass{standalone}     \usepackage{blindtext}     \usepackage{pgfplots}     \pgfplotsset{compat=1.9}          \begin{document}     \begin{tikzpicture}         \directlua{             q = function(x)                 return x-1             end                 z = function(x,y)                 return x^2+y^2+q(x)             end         }         \pgfmathdeclarefunction{z}{2}{%             \edef\pgfmathresult{\directlua{tex.print(z(\pgfmathfloatvalueof{#1},\pgfmathfloatvalueof{#2}))}}%         }%         \begin{axis}         [         axis lines=center,         enlargelimits,         tick align=inside,         domain=-1:1,         samples=200,         minor tick num=5,         ]         \addplot3 [surf] {z(x,y)};         \end{axis}     \end{tikzpicture}     \end{document}


title: Include Page Number in Abstract

text: I'm trying to include a page number on my abstract page. Here is how I have it set up so far (cutting out some extra things):               \documentclass[letterpaper,12pt]{report}     \usepackage[style=numeric]{biblatex}     \usepackage[pdftex]{graphicx}     \usepackage{verbatim}     \usepackage{framed}     \usepackage{setspace}          \begin{document}          \pagenumbering{roman}     \title{The Title}     \author{The Name}     \maketitle          \setcounter{page}{2}     \begin{abstract}     \pagenumbering{roman}     Lorem Ipsum etc, etc.     \end{abstract}      This generates a document without page numbers on either the title or the abstract. I don't need to put one on the title, but is there a way I can force it to insert a page number for the abstract? Thanks! Edit for clarification: I needed to use roman numbering for all the intro sections (abstract, index, etc), then switch to arabic for the rest of the paper. I ended up with the following:               \begin{abstract}     \thispagestyle{plain}     \pagenumbering{roman}     \setcounter{page}{2}     \end{abstract}


title: A command line Latex calculator?

text: I often need to check what a length expression like "20pt + 2 cm" would resolve to -- and of course, I'd rather do something quick on the command line / shell / terminal, than typing `\documentclass{article} ...` in a file, and running Latex on that. Is there anything like that out there?


title: Macro for Declaring Variables in Class Files

text: I'm designing a new LaTeX class, and trying to write a convenient helper command for declaring new 'variables' for use in the class. Specifically, say I want to use a variable called `\foo`. I'd like an author to be able to write `\foo{bar}`, and then be able to use `\@foo` in the class file (which would itself expand to `bar`. This can be accomplished with the following code:               \let\@foo\relax     \def\foo#1{\def\@foo{#1}}      and the author can define it with `\foo{bar}`. I want to create a helper command that allows the variable declaration to be done with a command like `\DeclareAuthorVariable`, which I would use in the LaTeX class file to declare variables. For example, I would like to be able to write `\DeclareAuthorVariable{foo}` in the class file instead of the ugly two line mess above. I've tried a number of different approaches, but I'm having trouble figuring out how to do this, since the commands that I'm trying to replace themselves involve arguments. I'm wondering if anyone knows how to do this or if it isn't possible? Thanks! (Also, apologies, I'm very new to LaTeX class design!)


title: Displaying Natbib generated bibliography in the form: Surname, Name, Title, Publisher, Year

text: I have been using the natbib package for a couple of years and I am rather satisfied; however, I have a problem that Google search hasn't solved, nor seems it already answered here... I would like the bibliography generated by natbib to be displayed in the form: Surname, Name, Title, Publisher, Year. For example, the entry:               @book{Bec1970,      address              = {Paris},      author               = {Bec, Pierre},      publisher            = {A. \& J. Picard},      title                = {Manuel pratique de philologie romane},      year                 = {1970},      }      produces: Pierre Bec. Manuel pratique de philologie romane. A. & J. Picard, Paris, 1970. I would like that it be displayed: Bec, Pierre. Manuel pratique de philologie romane. A. & J. Picard, Paris, 1970. instead. I use:               \documentclass[reqno, psamsfonts, draft, titlepage, twoside]{amsbook}     \usepackage{amsmath}     \numberwithin{equation}{subsection}     \usepackage{ipa}     \usepackage{xyling1}     \usepackage{dashrule}     \makeatother     \usepackage{natbib}     \bibliographystyle{plainnat}     \usepackage{geometry}     \geometry{papersize={170mm,240mm},total={124mm,185mm}}     \usepackage[a4,cam,center]{crop}      in the preamble, and               \bibliographystyle{plainnat}     \bibliography{bibliography}      just before               \end{document}      Many thanks!


title: Modifying the appearance of bookmarks through the 'bookmark' and 'hyperref' packages

text: I'm adding bookmarks to my PDF document, but I'm not completely satisfied with how they appear. I found this thread, which recommends the `bookmark` package, and shows an example of how to group all appendices. I'd like to have the bookmarks appear as shown in the answer to the linked thread. I.e.               1. First chapter     |-- 1.1. First section     |----- 1.1.1. First subsection     |----- 1.1.2. Second subsection     |-- 1.2. Second section     2. Second chapter     Appendices     |-- A. First appendix     |-- B. Second appendix      However, when I try the same, I get no group named "Appendices", and appendix B shows up as the child of appendix A. Below is an MWE.               \documentclass[11pt]{scrreprt}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage[hidelinks]{hyperref}     \usepackage[numbered,open]{bookmark}     \usepackage[page,titletoc]{appendix}     \usepackage{lipsum}          \renewcommand{\appendixpagename}{Appendices\thispagestyle{empty}}          \begin{document}          \tableofcontents          \chapter{First chapter}     \lipsum[1-2]          \section{First section}     \lipsum[3-6]          \subsection{First subsection}     \lipsum[7-10]          \subsection{Second subsection}     \lipsum[11-14]          \section{Second section}     \lipsum[15-18]          \chapter{Second chapter}     \lipsum[19-22]          \begin{appendices}          \bookmarksetupnext{level=part}     \chapter{First appendix}     \lipsum[23-26]          \chapter{Second appendix}     \lipsum[27-30]          \end{appendices}          \end{document}      _Question 1:_ What am I doing wrong in the above code? _Question 2:_ I haven't fully decided on the appearance of the table of contents yet, and I am contemplating having the appendices listed as section-level entries within an "Appendices" chapter. Would this solve the problem? How can I lower the table of contents entry by one level for the appendix chapters only? The appendix chapters should still appear as chapters for all other purposes. Edit: These questions appear to have answers here and here. _Question 3:_ Also, I'd like to have the bookmark numbering end with a period (e.g. "A. First appendix" instead of "A First appendix"). How can I achieve this?


title: Save default file content in texmaker

text: I have been fiddling with texmaker for the last day. I am getting the hang of it, but writing the basic structure of a document is tedious and requires me to constantly look at the cheat sheet, so I want to save a document to be used as default. My idea is to write the basic structure of most of the documents I will be doing and then make texmaker paste everything in that document in every new .tex file I create (Unless I specify otherwise). Is this possible? How can it be done? I've searched extensively but I haven't found any way of doing this. Any help would be appreciated.


title: LyX 2.1 on Windows 8 fails to install fonts

text: I'm new to Windows 8 and just installed LyX 2.1.0. but many of the fonts show as "not installed" I did the full installation including MikTex etc. Only a few of the fonts actually installed with LyX, such as Computer Modern and URW Garamond. Others, for instance Libertine, Bookman, New Century Schoolbook, Palatino have (not installed) besides their name in the Roman fonts drop down menu. Also, I couldn't find the MikTex update wizard or MikTex 2.9 anywhere in Windows 8. The only anomaly during installation is that my laptop/tablet kept powering down every few minutes, and I'd wake it up. But I installed and uninstalled twice. When I installed LyX on another laptop, with Windows 7, all the fonts installed properly. How do I get everything to install under Windows 8?


title: Useful macro definitions

text: This question is related to Question: linebreak in macros, however it is not asking for the same information and I separated it out: In my documents, I make use of commands like the following:               \newcommand{\AND}[2]{\left(#1 \vee #2 \right)}      The advantages are quite obvious:   * better readable code   * no forgotten parenthesis   * the possibility to redefine later without searching each occurrence   * always the correct number of arguments   * uniform design The only disadvantage that I found so far is, that the whole environment doesn't work any more when its contents becomes to large, i.e. in nested occurrences of the command. So here's the question: Is the way I do it considered to be best practice? If yes, how should I handle the problem mentioned above? If no, should I type all the mathematics code explicitely, i.e. without shortcut macros? How could I keep at least some of the advantages?


title: How to set the dimensions of the document?

text: I would like to create with LaTeX a PDF document whose pages have prescribed dimensions. For instance, I would like to create a document whose pages have dimension 5cm x 5cm. Is it possible, and if yes how would do that?


title: Multilevel enumerate inside tabularly environment generates incorrect numbering

text: I'm trying to include a `enumerate` list in an `tabularly` environment, but the numbering gets wrong when I add more than one level of depth to the list.               \begin{table}[H]     \begin{minipage}{\linewidth}     \setlength{\tymax}{0.8\linewidth}     \centering     \small     \begin{tabulary}{\textwidth}{@{}LL@{}}     Wrong row&     \begin{enumerate}     \item First.     \begin{enumerate}     \item Second     \end{enumerate}     \end{enumerate}\\     \end{tabulary}     \end{minipage}     \end{table}      This code generates the following output for the row:               Wrong row                 1   1.1 First                        1.1 Second      If i add another nested level the output gets messy with overlapping numbers. Outside of any table, enumerate is being working fine thorught all my document. EDIT: I have simplified the example to the maximum and I could make it work, think it was the column type, which now is set to P.               \documentclass[11pt]{book}     \begin{document}     \begin{tabular}{|Lp{10cm}|}         row1&value\\         row2&         \begin{enumerate}             \item First             \begin{enumerate}                 \item Second             \end{enumerate}         \end{enumerate}     \\     \end{tabular}     \end{document}      Which now generates the correct output:               row1     value     row2     1. First                 1.2 Second


title: Someone knows a xml2tex converter?

text: I've already Googled it, without concrete success. So, I'd like to know if someone knows a converter from XML to TeX. Something "simple" as `latex2rtf`.


title: put two algorithm side by side

text: I want to put two algorithm side by side to gain place in the document, but when I use `\documentclass{llncs}` instead of `\documentclass{article}`, the following code does not work (errors):               \documentclass{article}     \usepackage[margin=1in]{geometry}% http://ctan.org/pkg/geometry     \usepackage{lipsum}% http://ctan.org/pkg/lipsum     \usepackage{algorithm}% http://ctan.org/pkg/algorithm     \usepackage{algpseudocode}% http://ctan.org/pkg/algorithmicx     \usepackage{caption}% http://ctan.org/pkg/caption     \begin{document}     \lipsum[1]          \medskip          \noindent\begin{minipage}{.5\textwidth}     \captionof{algorithm}{Euclid’s algorithm}\label{algo1}     \begin{algorithmic}[1]       \Procedure{Euclid}{$a,b$}\Comment{The g.c.d. of a and b}         \State $r\gets a\bmod b$         \While{$r\not=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         \State \textbf{return} $b$\Comment{The gcd is b}       \EndProcedure     \end{algorithmic}     \end{minipage}%     \begin{minipage}{.5\textwidth}     \captionof{algorithm}{Euclid’s algorithm}\label{algo2}     \begin{algorithmic}[1]       \Procedure{Euclid}{$a,b$}\Comment{The g.c.d. of a and b}         \State $r\gets a\bmod b$         \While{$r\not=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         \State \textbf{return} $b$\Comment{The gcd is b}       \EndProcedure     \end{algorithmic}     \end{minipage}          \medskip          On the left is Algorithm~\ref{algo1}. On the right is Algorithm~\ref{algo2}.          \lipsum[2]          \end{document}


title: Beamer overlays and counters: compiling loop

text: I tried to compile               \documentclass{beamer}     \usepackage[english]{babel}          \newcounter{xxslide}          \begin{document}     \begin{frame}       \addtocounter{xxslide}{2}        \visible<\value{xxslide}>{blabla}     \end{frame}     \end{document}      But the compiler generated an infinite amount of slides. How can I control number of overlays while programming a slide? The point is that I'm making a complicated drawing. During the presentation things need to appear and disappear. I want to make macro's that say: show blabla during 5 overlays of a slide. Now, we go to the next overlay. Show blabla for the next 3 overlays and so on ... When I switch to the next overlay, I want to increment a counter that expresses the number of the current overlay and then use \visible < xxslide, xxslide+5 > { blabla } commands.


title: How to include/import only specific sections when using a multiple file structure

text: I am writing a rather large document of which I am planning on using multiple input files. I have previous work that I would like to reuse without copying the data (for purposes of maintainability). For example, I have a document `linear_algebra.tex`, and I would only like to include the section Eigen Value Decomposition (label `eigenDecomp`). Is there a package that would allow me only to include the labeled section `eigenDecomp` instead of the whole document? Thank you


title: Blockdiagram with dsp library

text: I am using the dsp library, http://www.texample.net/tikz/examples/fir-filter/, to create a blockdiagram. Now I got 2 problems.   1. I defined two labels, r and d_i however they are not visible on the screenshot because I believe the standalone package cuts down to the current shape (does not see the labels?).    2. Is anyone capable of changing the plus symbol in the library. I namely want a plus symbol like in matlab or can give a different solution such that I can create e.g.                       -         -----O-----             +|              |              |_____      ![enter image description here](http://i.stack.imgur.com/Sreim.png) code:               \documentclass{standalone}     \usepackage{graphics}     \usepackage{siunitx}     \usepackage{tikz}     \usetikzlibrary{dsp,chains}     \usepackage{pgfplots}     \usepgfplotslibrary{groupplots}     \pgfplotsset{compat=newest}     \pgfplotsset{plot coordinates/math parser=false}          \DeclareMathAlphabet{\mathpzc}{OT1}{pzc}{m}{it}     \newcommand{\z}{\mathpzc{z}}          \begin{document}     \begin{tikzpicture}         \matrix[row sep=2.5mm, column sep=5mm] {                                                   &                                                   &                                                   &                                                   &                                                   &                                                   &                                                   &                                                   &             \node[dspnodeopen,dsp/label=above] (m08) {$d_i$};     &                                                   &                                                   &                                                   \\             %--------------------------------------------------------------------             \\             %--------------------------------------------------------------------             \node[dspnodeopen,dsp/label=left]  (m10) {$r$};       &             \node[coordinate]                  (m11) {};          &             \node[dspadder]                    (m12) {};          &             \node[coordinate,dsp/label=above]  (m13) {$e$};       &             \node[dspsquare]                   (m14) {$K$};       &             \node[coordinate]                  (m15) {$u$};       &             \node[dspsquare]                   (m16) {$T_u$};     &             \node[coordinate]                  (m17) {};          &             \node[dspadder]                    (m18) {};          &             \node[coordinate]                  (m19) {};          &             \node[dspsquare]                   (m1A) {$G$};       &             \node[coordinate]                  (m1X) {};          \\             %--------------------------------------------------------------------             \\             %--------------------------------------------------------------------                                                   &                                                   &             \node[coordinate,dsp/label=left]   (m22) {$t$};       &                                                   &                                                   &                                                   &                                                   &                                                   &                                                   &                                                   &             \node[dspsquare]                   (m2A) {$T_y$};     &             \node[coordinate]                  (m2X) {};          \\             %--------------------------------------------------------------------             \\         };              % Draw connections         \begin{scope}[start chain]             \chainin (m10);             \chainin (m12) [join=by dspconn];             \chainin (m14) [join=by dspconn];             \chainin (m16) [join=by dspconn];             \chainin (m18) [join=by dspconn];             \chainin (m1A) [join=by dspconn];             \chainin (m1X) [join=by dspline];             \chainin (m2X) [join=by dspline];             \chainin (m2A) [join=by dspconn];             \chainin (m22) [join=by dspline];             \chainin (m12) [join=by dspconn];         \end{scope}              \draw[dspconn] (m08) -- (m18);          \end{tikzpicture}     \end{document}


title: Using ulem package changes the style of my reference

text: I used this `\usepackage[normalem]{ulem}` in order to put underline in my file and the next thing I notice is that my reference are all messed up. Here is how I used my reference:               \include{Appendix}     \appendix     \renewcommand{\appendixname}{Appendix A}     \renewcommand{\thesection}{A.\arabic{section}}      I found that all the font and the styles of the reference are no longer the same as before. Then I tried to put a `\mbox` in front of my `\cite{}`; it still does not solve the problem. Does anyone experience something similar?


title: glossaries, glossary-longragged: problem with redefining \glossaryentryfield

text: I'm encountering a weird problem when changing my list of acronyms from the `long` to the `longragged` style. This is an example for illustration:               \documentclass{article}          \usepackage[acronym,nomain,sanitize={description=false,symbol=false}]{glossaries}     \usepackage{glossary-longragged}     \makeglossaries          \newglossarystyle{longraggeduc}{%     %  \glossarystyle{long}%  <-- works       \glossarystyle{longragged}%  <-- does not work       \renewcommand*\glossaryentryfield[5]{%         \glstarget{##1}{##2} & \makefirstuc{##4}##3\glspostdescription\space##5\\       }     }          \newacronym{acr:abc}{ABC}{a b c}     \newacronym{acr:def}{DEF}{d e f}          \begin{document}     \gls{acr:abc} \gls{acr:def}          \printglossary[type=\acronymtype,style=longraggeduc,nonumberlist=true]     \end{document}      I'm redefining `\glossaryentryfield` because of a special style I need to have, including the capitalization of the first letter of the description. That stuff works with the `long` style, but stops working with the `longragged` style (see the commented line). LaTeX (`pdflatex`) complains `! Extra alignment tab has been changed to \cr.` when processing the `.acr` file generated by `makeglossaries`. I'm kind of stuck with that problem since I'm unable to identify the reason. Any ideas?


title: Typesetting one symbolic coord differently than the others

text: In my plots, I have one bar (labelled `dummy` below) whose tick label needs to be typeset differently. Here's my current attempt (and minimal example), which doesn't quite work yet:               \documentclass{article}          \usepackage{pgfplots}     \usepackage{etoolbox}          \begin{document}     \begin{tikzpicture}     \begin{axis}[       ybar,       symbolic x coords={foo,bar,dummy},       xtick=data,       xticklabel={\ifdefstrequal{\tick}{dummy}{\textcolor{gray}{\tick}}{\tick}}]       \addplot coordinates {         (foo,2)         (bar,4)         (dummy,3)       };     \end{axis}     \end{tikzpicture}     \end{document}      Now, I definitely need matching on the `symbolic x coords` name; comparing the `\ticknum` is unfortunately not an option, as the position of the `dummy` bar changes from plot to plot, and I don't want to touch the definition of `xticklabel` each time. So is there a way to do an appropriate string comparison with `\tick`?


title: mdframed-Put something on the start of one vertical left rule

text: I would like to obtain something like in the following picture (I've put Z! instead of the danger symbol). ![Formatting](http://i.stack.imgur.com/YtIPI.png) In the following code, I would like to put the danger symbol on the vertical rule. I think that can be done by putting one kind of box on the start of the vertical rule, the box would have a white background and would contain the symbol. If the symbol can be add at every new page where the verical rule is broken, it would be great.               \documentclass[a4paper,10pt]{article}         \usepackage[utf8]{inputenc}         \usepackage[x11names, svgnames]{xcolor}         \usepackage{mdframed}         \usepackage{graphicx}         \usepackage{fourier-orns}              \definecolor{warningColor}{named}{Red3}         \newcommand{\warningSymbol}{\raisebox{\depth}{\danger}}              \newenvironment{Warning}{%             \bigskip             \begin{mdframed}[%                 topline=false,%                 rightline=false,%                 bottomline=false,%                 innertopmargin=0.4em,%                 innerbottommargin=0.4em,%                 innerrightmargin=0.7em,%                 rightmargin=0.7em,%                 innerleftmargin=0.7em,%                 leftmargin=0.7em,%                 linewidth=.2em,%                 linecolor=warningColor%             ]             \color{warningColor}         }{%             \end{mdframed}%             \bigskip         }              \usepackage{lipsum}          \begin{document}          \lipsum[1]          \begin{Warning}         \lipsum     \end{Warning}          \lipsum[1]          \end{document}


title: Problem with top alignment in beamer columns

text: I am trying to place two images in top of two columns in a `columns` environment, in a beamer presentation. The first column consists of one image on top and a enumeration list bellow the image. The thing is that I want the column to start at the top of the frame, which isn't happening in my case. My code is               \documentclass[slidestop,compress,mathserif,11pt,xcolor=dvipsnames]{beamer}     \usepackage{beamerthemebars}     \usepackage[bars]{beamerthemetree}     \usepackage{multicol}     \setbeamercovered{higly dynamic}     \usetheme{Ilmenau} % Beamer theme v 3.0     \useoutertheme[subsection=true]{smoothbars}%Beamer Outer Theme-circles on top     \usefonttheme{serif}     \useinnertheme{circles}          \begin{document}             \section{Εισαγωγή}     \begin{frame}             \frametitle{Nuclear Propulsion}             \begin{columns}                     \begin{column}{0.48\textwidth}                             \begin{figure}[t]                             \includegraphics[width=\textwidth]{AtomicSubmarine}%\vspace{0.5cm}                             \end{figure}                             \tiny{\begin{enumerate}                                     \item Item1$\rightarrow$ Conclusdion                                     \item Item2$\rightarrow$ Conclusdion                                     \item Item3$\rightarrow$ Conclusdion                                     \item Item4$\rightarrow$ Conclusdion                                     \item Item5$\rightarrow$ Conclusdion                                     \item Item6$\rightarrow$ Conclusdion                             \end{enumerate}}                             %\begin{minipage}[t]{0.99\textwidth}                                     %\includegraphics[width=\textwidth]{AtomicSubmarine}                             %\end{minipage}                     \end{column}\hfill                     \begin{column}{0.48\textwidth}                             %\begin{minipage}[b]{0.99\textwidth}                             \begin{figure}[t]                                     \includegraphics[width=0.9\textwidth]{SubmarineSnorkel}                             \end{figure}                             %\end{minipage}                     \end{column}             \end{columns}             %\begin{minipage}[b]{0.5\textwidth}                     %\includegraphics[width=\textwidth]{SubmarineSnorkel}             %\end{minipage}     \end{frame}     \end{document}      The output of this code is ![enter image description here](http://i.stack.imgur.com/MRkVu.jpg) It is clear that a few lines upper would be ideal, as the real presentation frame, states! ![enter image description here](http://i.stack.imgur.com/UCCDH.jpg) I've tried to remove the `figure` environment, to use `minipage` but the right image is aligned with the list, resulting in a very bad format. One solution is to remove the `frametitle` but I'm afraid I need it... Another idea is to use `\vspace{-1cm}` but I am not sure if this is the optimum solution... Any ideas on that?


title: How to typeset a complex layout like a page of the Talmud?

text: I need help for typesetting a complex typographic layout comparable to the Talmud, yet not necessarily in Hebrew. I found the `parcolumns` package, but it does not support footnotes and it also does not provide a way for columns overflowing into one single column at the end of a page. I am trying to create a layout that looks similar to that of the Talmud: ![Talmud](http://i.stack.imgur.com/O9g4m.jpg) Having a main chunk of text in the middle and commentary surronding it, footnotes at the bottom and margin notes on one side... I couldn't find anything helpful so any help would be very much appreciated.


title: Switch Between Bibliography and Appendix in fancyhdr

text: What I am trying to accomplish is a `fancyhdr` that places `Appendix` or `Bibliography` in the header with one single definition. So if I am in the bibliography it should display `Bibliography`, but should display `Appendix` otherwise.               \documentclass{report}     \usepackage{fancyhdr}     \usepackage{etoolbox}          \newcommand{\backmatter}{         \fancyhdr[C]{\ifstrequal{\leftmark}{\MakeUppercase{\bibname}}             {\bibname}{\appendixname\ \thechapter}}          \begin{document}        \backmatter               \bibliography{my.bib}        \appendix        \chapter{Appendix}     \end{document}      The `ifstrequal` always evaluates as false and so always produces `Appendix` in the header. Thank you in advance for your help. EDIT: My new solution is as follows               \documentclass{report}     \usepackage{fancyhdr}     \usepackage{etoolbox}          \preptocmd{\bibliography}{\fancyhead[C]{\bibname}}{}{}     \preptocmd{\appendix}{\fancyhead[C]{\appendixname\ \thechapter}}{}{}          \begin{document}               \bibliography{my.bib}        \appendix        \chapter{Appendix}     \end{document}      However, when my bibliography hits the third page it displays Appendix again. Edit 2: The following works               \documentclass{report}     \usepackage{fancyhdr}     \usepackage{etoolbox}          \preptocmd{\bibliography}{\cleardoublepage \fancyhead[C]{\bibname}}{}{}     \preptocmd{\appendix}{\cleardoublepage \fancyhead[C]{\appendixname\ \thechapter}}{}{}          \begin{document}               \bibliography{my.bib}        \appendix        \chapter{Appendix}     \end{document}


title: Incorrect figure numbering when using subfloats in a subfloatrow

text: I have a document with a lot of subfigures which are different heights and need to be placed side-by-side and centered vertically. It seems like the floatrow package is ideal for this. After much trial and error, I finally made it through the documentation enough to get the subfloats to center correctly, but now every time there is a subfloat, the figure counter gets incremented, so I have figure 10 followed by figure 13, when figure 10 has two subfloats in it. In the minimal example, notice that the single figure in the document is labelled Figure 3! There was a similar question floating around the web about 5 years ago, but I didn't see an answer. Here's minimal code:               \documentclass[11pt]{article}     \usepackage{subfig}       \usepackage{tikz}          \usepackage[]{floatrow}      \floatsetup[figure]{floatrowsep=qquad,valign=c }     \floatsetup[subfloat]{subfloatrowsep=qquad,valign=c}     \usepackage{graphicx}          \begin{document}          \begin{figure}[htbp]     \centering     \ffigbox{     \begin{subfloatrow}[3]     \subfloat[First, we see an empty green circle]{     \begin{tikzpicture}[scale=1] \draw[green]  (0,0) circle (1.2cm);\end{tikzpicture}     }          \subfloat[A large orange circle is the middle picture]{     \begin{tikzpicture}[scale=1]\draw[orange] (0,0) circle (2cm);\end{tikzpicture}}          \subfloat[Finally, a beautiful red circle with a black border]{     \begin{tikzpicture}[scale=1]\draw[fill=red]  (0,0) circle (.75cm);\end{tikzpicture}}     \end{subfloatrow}     }     {\caption{``Gadgets'' in reduced Levi graphs found as a consequence of using the construction in the configuration construction lemma.}     \label{CCLvolt}     }     \end{figure}     \end{document}


title: New line and no indent after \paragraph?

text: I tried to use a `\paragraph`-environment, but I do want a new line after the title and no indent in the first textline. New line is easy, but the first line is indented even if I use `\noindent`, `\setlength{\parindent}{0pt}` and `\hangafter=0` I extracted an example:               \documentclass[12pt,a4paper,twoside]{scrreprt}          \usepackage[ngerman]{babel}      \usepackage[T1]{fontenc}     \usepackage[latin9]{inputenc}     \usepackage{blindtext}          \setlength{\parindent}{0pt}     \hangafter=0          \begin{document}         \subsection{subsection}             \blindtext         %\noindent %does not bring any effect         \paragraph{paragraphNewline\newline}             \blindtext     \end{document}      The first block is ok, but the second is not. I expect to try a `\renewcommand` / `\renewenvironment`, but I do not know what to write in. In general: Is there an overview, where I can see the implementation of LaTeX- commands and -environments?


title: Ignoring Punctuation during Comparison

text: I am trying to compare two strings and ignore punctuation during the comparison. I thought that catcode redefinition would be a good way to proceed. But, obviously, the use of `\catcode` has a great deal of nuance. I make my MWE below by comparing two strings, one "x" and the other "x,". In the MWE, you will see three separate places where I could invoke the catcode to ignore commas (catcode 9). Only the invocation before the definition of the comma'd string makes the comparisons equal. Obviously, that is not what I'm looking for. When I put the catcode change in my routine, the comma remains in the earlier defined string. So, I thought maybe if I re-edef the comma'd string within my routine, following the catcode change, the comma would be removed from the updated `\edef`. Not so. As you can see, I tried several different ways of redefining the comma'd string, employing various combinations of `\xdef`, `\edef` and `\expandafter`. I'm not tied to a catcode approach. If there is a way to redefine the comma temporarily to nothing with a `\def` command, I'd be more than happy to use that approach. The key is that that the two strings come to the check routine with their commas intact, and I have to develop a way to discard the comma on the fly.               \documentclass{article}     \usepackage{ifthen}     \parindent 0in     \begin{document}     \edef\x{x}     %  \catcode`,=9 % ONLY THIS EXTERIOR INVOCATION GIVES EQUALITY     \edef\xcomma{x,}     %  \catcode`,=9 % THIS EXTERIOR INVOCATION DOES NOT GIVE EQUALITY     \def\testequalignorecomma#1#2{%       \catcode`,=9 % THIS INTERIOR INVOCATION DOES NOT GIVE EQUALITY       \ifthenelse{\equal{#1}{#2}}{#1~equals #2}{#1~does not equal #2}\\%       \edef\xx{#1}\expandafter\edef\expandafter\xxc\expandafter{#2}%       \ifthenelse{\equal{\xx}{\xxc}}{\xx~equals \xxc}{\xx~does not equal \xxc}\\%       \xdef\xx{#1}\xdef\xxc{#2}%       \ifthenelse{\equal{\xx}{\xxc}}{\xx~equals \xxc}{\xx~does not equal \xxc}%       \catcode`,=12 %     }     \testequalignorecomma{\x}{\xcomma}     \end{document}


title: How can I make German characters from \input file display correctly?

text: I'm working with a `Rnw` file in RStudio and `knitr`. Everything works correctly so far, but I stumbled upon a problem when I included a chapter to the report that is written in German. I wrote the German language section in Texmaker and all the German characters are displaying correctly. However when I tried to incorporate it into report using: `\input{myGermanFile.tex}` German characters are gone. The character encoding in RStudio's options is specified as UTF-8. What can be causing such behaviour?


title: vertical alignment in a row

text: I have a one-row table with a number of columns. Each cell in this row is another table, which can be either 2x1 or 3x1. I want to make sure that all these sub-tables are aligned to the top of the main row. e.g.:               -------------------     |  1  |  2  |  3  |     |  a  |  b  |  c  |     |  A  |     |  C  |     -------------------      A simple enough solution would be to add a phantom line to middle cell. However, if all the cells are 2x1 I don't want to have an empty row:               -------------------     |  1  |  2  |  3  |     |  a  |  b  |  c  |     |     |     |     |     -------------------      The above is not good for me, and should be               -------------------     |  1  |  2  |  3  |     |  a  |  b  |  c  |     -------------------      Any ideas how to accomplish this?


title: How can I render a large number of tables in succession?

text: In the following code an error               !h' float specifier changed to !ht`      I think because my tables span multiple pages. How can I get them to display properly one after the other?               \documentclass{article}     \begin{document}     \section{Database Design}           \begin{table}[!h]     \centering         \begin{tabular}{ | l |  l |}         \hline         Field & Type \\ \hline         id & Primary key \\ \hline         firstName & String \\ \hline         lastName & String \\ \hline         email & String \\ \hline         password & String \\ \hline         \end{tabular}     \caption{User2}     \end{table}          \begin{table}[!h]     \centering         \begin{tabular}{ | l |  l |}         \hline         Field & Type \\ \hline         id & Primary key \\ \hline         firstName & String \\ \hline         lastName & String \\ \hline         email & String \\ \hline         password & String \\ \hline         \end{tabular}     \caption{User}     \end{table}          \begin{table}[!h]     \centering         \begin{tabular}{ | l |  l |}         \hline         Field & Type \\ \hline         id & Primary key \\ \hline         title & String \\ \hline         postedAt & Date\\ \hline         email & String \\ \hline         author & Foreign key from 'User' table\\ \hline         tags & Foreign key from 'Tag' table\\ \hline         \end{tabular}     \caption{Post}     \end{table}          \begin{table}[!h]     \centering         \begin{tabular}{ | l |  l |}         \hline         Field & Type \\ \hline         id & Primary key \\ \hline         author& String \\ \hline         content& String \\ \hline         postedAt & Date\\ \hline          post& Foreign key from 'Post' table\\ \hline         \end{tabular}     \caption{Comment}     \end{table}          \begin{table}[!h]     \centering         \begin{tabular}{ | l |  l |}         \hline         Field & Type \\ \hline         id & Primary key \\ \hline         name & String         \end{tabular}     \caption{Tag}     \end{table}          \begin{table}[!h]     \centering         \begin{tabular}{ | l |  l |}         \hline         id & Primary key \\ \hline         Field & Type \\ \hline         post& Foreign key from 'PostTag' table\\ \hline         tag& Foreign key from 'Tag' table\\ \hline         \end{tabular}     \caption{PostTag}     \end{table}               \end{document}


title: New line in code with no white space in output?

text: I would like to put my `\footnotes{}` on a separate line in code, to make code easier to maintain and read. But I don't want any whitespace in between the foot note, and the preceeding word in the output. Is this possible?


title: CircuitTikZ splitting input into two gates

text: I have LaTeX code using the `CircuitTikZ` package for drawing a simple logic circuit, but I'm not convinced that my code is the correct way to do what I'm trying to do. Essentially, I have two inputs that each need to go to two gates. Here's what the code looks like:                   \begin{circuitikz} \draw             (2,1) node[or port] (myor) {}             (2,-1) node[nand port] (mynand) {}             (4,0) node[and port] (myand) {}             (myor.out) -| (myand.in 1)             (mynand.out) -| (myand.in 2)                  (0,1) |- (myor.in 1)             (0,1) |- (mynand.in 1)             (-1,0) to[short, -*] (0,0)                  (0,-1) -| (myor.in 2)             (0,-1) -| (mynand.in 2)             (-1,-1) to[short, -*] (0.62,-1)         ;\end{circuitikz}      Output: ![enter image description here](http://i.stack.imgur.com/gnHEN.png) The output looks correct, but I don't feel very good about the last line where I draw to `(0.62,-1)`. Is there a cleaner way to do this?


title: How to add another dictionary in LaTeX/TeXnicCenter?

text: In the options menu in TexnicCenter you can go to the tab Spelling. There is the option to download a dictionary. I did that, but I still cannot choose this dictionary as default language. How can I change the language?