title: edit LyX nomenclature command extensions

text: I want to edit LyX's nomenclature command to use `makeglossaries` in stead of `makeindex`. This can be don the the settings menu under Output > LaTeX. Here I can change               makeindex -s nomencl.ist -o      to               makeglossaries      however, I cannot specify that LyX uses the `[filename].glo` as an input instead of `[filename].nlo`, and that is uses `[filename.gls]` as in output in stead of `[filename].nls`. Is there any way to change this manually? EDIT: I found that the preferences file only says:               \nomencl_command "makeglossaries"      but the log output says:               makeglossaries "[filename].nlo" -o [filename].nls      So where is `\nomencl_command` defined further?


title: Puzzling error while using sunitx (in a tabular environment)

text: I've been working on writing a contingency table in LaTeX (I've prepared myself for a long battle to get multi-line and multi-column cells to appear as I need).               \usepackage{booktabs}     \usepackage[detect-all]{siunitx}     \usepackage{multirow}          \begin{table}[htp]         \centering         \begin{tabular}{                @{}                l                S[table-format=3.2]                S[table-format=3.2]                S[table-format=3.2]                S[table-format=3.2]                S[table-format=3.2]                S[table-format=3.2]                @{}                }             \toprule             \multicolumn{7}{|c|}{Factor B} \\             & Alpha & Beta & Gamma & Delta & Epsilon & Row Total \\                  \midrule             \multirow{2}{*}{Alpha} & 1 & 1 & 1 & 1 & 1 & 1 \\             & 11.11 & 2.11 & 3.11 & 4.11 & 5.11 & \\             \multirow{2}{*}{Beta} & 2 & 2 & 2 & 2 & 2 & 2 \\             & 22.22 & 2.22 & 3.22 & 4.22 & 5.22 & \\             \multirow{2}{*}{Gamma} & 3 & 3 & 3 & 3 & 3 & 3 \\             & 33.33 & 2.33 & 3.33 & 4.33 & 5.33 & \\             \multirow{2}{*}{Delta} & 4 & 4 & 4 & 4 & 4 & 4 \\             & 44.44 & 2.44 & 3.44 & 4.44 & 5.44 & \\             \multirow{2}{*}{Epsilon} & 5 & 5 & 5 & 5 & 5 & 5 \\             & 55.55 & 2.55 & 3.55 & 4.55 & 5.55 & \\             Column Total & 111 & 222 & 333 & 444 & 555 & 666 \\                  \bottomrule         \end{tabular}         \caption {Table Caption}\label{my-table}     \end{table}      I receive the following error:               ! siunitx Error          (siunitx) Invalid numerical input 'e'.          For immediate help type H <return>.      ...                                                        l.157          & Alpha & Beta &                                     Gamma & Delta & Epsilon & Row Total \\      I admit I don't understand it. The non-numerical text is in the header of the table. To see the table, replace the line                   & Alpha & Beta & Gamma & Delta & Epsilon & Row Total \\      with                   1 & 2 & 3 & 4 & 5 & 6 & 7 \\      just to allow it to render. I'm puzzled. Why "e"? Suggestions are very appreciated. Thanks in advance.


title: Active characters in linguistics

text: What are the pros and cons of using active characters instead of macros in text? Would it make sense to implement a “simplified markup” parser in Latex to make code more readable? # Rationale Latex-style inline markup can get distracting quickly. Most people, like me, probably only use a limited set of commands. (We’ll ignore environments for now.) One can define shorter mnemonic macros like `\bold` to alias `\textbf`, but that hardly saves any keystrokes – not for `\`, `{` and `}` in particular, which are difficult to access in some keyboard layouts. At the same time, many (ASCII) punctuation marks are not used much or only in specific spatial scenarios, i.e. some are surrounded by whitespace characters, others have a space on one side and a letter on the other, yet others only follow or precede digits (maybe separated by a space) or are only useful in math mode altogether. French differs as usual. Many people, like me, are used to **markdown** (as used e.g. on SX), **reStructuredText** (rST), **textile** , **ASCIIdoc** , Emacs **org-mode** , **Haddock** or some variant of **wiki markup** (e.g. MediaWiki or MoinMoin syntax). They all reuse punctuation characters to mark-up plain text without adding too much visible noise. Some of these are already active characters in Latex, e.g. `\`, `{`, `}`, `'`, `&` and `$`, `^` and `_` in math mode, with some `babel.sty` variants or `enquote.sty` options `"` and `~`, too. One could activate many more to do away with verbose macros. I think that is how `wiki.sty` works. The `tipa.sty` magic may work in a similar way. (I prefer direct Unicode entry, though.) The thing is, everyone has slightly different needs so these shortcuts should be configurable. I’m considering to try to write some code that makes it easy to add such shortcuts to one’s documents, maybe even up to the point where the source between `\begin{document}` and `\end{document}` becomes indiscernible from markdown or the like. Alas, I really don’t know much about active characters and catcodes yet. If everybody thinks what I want to do is a Bad Idea, I will spare myself the hassle. If someone more knowledgeable would do (or actually has done) it instead, all the better. # Background I’m writing linguistic texts about grapheme–phoneme interrelations, therefore I frequently need to include phonologic or graphematic notation, often in runs of normal prose. I defined macros like `\grapheme{}` and `\phoneme{}` for that, because graphemes are by convention enclosed in angular brackets `\langle…\rangle` which are cumbersome to include otherwise. The slashes of phonemic transcription would be easy to input on the other hand, but I also prefer a sans-serif font for that, so a command makes sense not only for structural reasons. There’s also `\phone{}` for phonetic notation of phones enclosed in square brackets, which are also used for properties (whose identifiers are uppercase or set in small capitals). Since I’m into grammatology, I sometimes even need to discriminate categoric letters and characters from actual graphs and glyphs, but let’s assume I surround them all by vertical bars with the help of `\graphe{}`. Mostly for completeness, I also define `\morph{}` and `\morpheme{}` in curly braces as well as `\lexeme[]{}` which just typesets the mandatory argument in italic and the optional one in single quotes.               \newcommand\wrong[1]{*#1}     \newcommand\ambig[1]{\textsuperscript{?}#1}     \newcommand\phone[1]{\mbox{[\textsf{#1}]}}     \newcommand\phoneme[1]{\mbox{/\textsf{#1}/}}     \newcommand\graphe[1]{\mbox{|#1|}} % SIC!     \newcommand\grapheme[1]{\mbox{$\langle$#1$\rangle$}}     \newcommand\morph[2][]{\mbox{\textup{\{}#2\textup{\}}\textsubscript{#1}}}     \newcommand\morpheme[1]{\morph{\textsc{#1}}}     \newcommand\property[2][±]{\mbox{\textup{[}$#1$#2\textup{]}}}     \newcommand\lexeme[2][]{\textit{#2}\ifthenelse{\isempty{#1}}{}{ ‘#1’}}}      For my needs, I would hence try to get these mappings (subject to change):   * `[x]` → `\phone{x}`   * `/x/` → `\phoneme{x}`   * `<x>` → `\grapheme{x}`   * `|x|` → `\graphe{x}`   * `\{x\}` ? → `\morph{x}`   * `((x))` ? → `\morpheme{x}`   * `[[x]]`, `[y[x]]`, `[[x]y]` → `\property[y]{x}`   * `>x<`, `>x<y>`, `<y>x<` → `\lexeme[y]{x}`   * `*x*` or `*x` → `\wrong{x}`   * `?x?` or `?x` → `\ambig{x}` Some of the following mappings may also make sense for more generic use:   * `_x_` or `~x~` → `\emph{x}`     * `__x__` or `~~x~~` → `\textit{x}`   * `*x*` → `\alert{x}` or `\strong{x}`     * `**x**` `\textbf{x}`     * `\NL*` → `\item` with automatic `itemize` environment if necessary, also `#` for `enumerate` and `;` or `:` for `description`   * `+x+` → `\textsc{x}` / `\person{x}` or `{\large x}`     * `++x++` → `\MakeUppercase{x}` or `{\Large x}`   * `=x=` → `\chapter{x}`     * `==x==` → `section{x}` etc.   * `§x§` → `\autocite{x}`   * `@x@` → `\ref{x}`, `\cref{x}`   * `^x^` → `\footnote{x}` PS: I know I could use **pandoc** and similar tools to generate make `.tex` files, but they’re usually hard to adapt to ones individual Latex needs, too.   PPS: I also know I might encounter problems with `beamer.cls`, because of its ubiquitous use of `<` and `>`.


title: Getting lbr frame lines in a listing up to the caption box above it

text: I have a document similar to this:               \documentclass[twoside,11pt,titlepage,a4paper]{report} %unterscheidung zwischen gerade und ungerade seite, 11pkt, kp, kp     \usepackage[T1]{fontenc} %inputcodierung     \usepackage[latin1]{inputenc} %inputcodierung     \usepackage[ngerman]{babel} %deutscher sprachschatz, alte rechtschreibung und vor allem -trennung     \usepackage[babel,german=guillemets]{csquotes} %deutsch mit >><<-anführungszeichen     \usepackage{listings} \lstset{numbers=left, numberstyle=\tiny, numbersep=5pt}  %einfache listings     \usepackage{caption}    %bildunterschriften     \usepackage{beramono}   %schriftart fÃ¼r code     \usepackage{color}     \usepackage{xcolor}               %code-listings     \definecolor{javared}{rgb}{0.6,0,0} % for strings     \definecolor{javagreen}{rgb}{0.25,0.5,0.35} % comments     \definecolor{javapurple}{rgb}{0.5,0,0.35} % keywords     \definecolor{mygrey}{HTML}{575757}           \lstloadlanguages{              [Sharp]C      }      \lstset{              language=[Sharp]C,              basicstyle=\footnotesize\ttfamily, % Standardschrift              numberstyle=\tiny,          % Stil der Zeilennummern              numbersep=9pt,              % Abstand der Nummern zum Text              tabsize=2,                  % Groesse von Tabs              extendedchars=true,         %              breaklines=true,            % Zeilen werden Umgebrochen              frame=lrb,              keywordstyle=\color{javapurple}\bfseries,              stringstyle=\color{javared},              commentstyle=\color{javagreen},              rulecolor=\color{mygrey},              showspaces=false,           % Leerzeichen anzeigen ?              showtabs=false,             % Tabs anzeigen ?              xleftmargin=25pt,              framexleftmargin=21.5pt,              framexrightmargin=-4pt,              framexbottommargin=3pt,              framextopmargin=3pt,              %backgroundcolor=\color{lightgray},              showstringspaces=false      % Leerzeichen in Strings anzeigen ?              }               %----------captions     \DeclareCaptionFont{white}{\color{white}}     \DeclareCaptionFormat{listing}     {\colorbox{mygrey}     {\parbox{0.985\textwidth}{\hspace{14pt}#1#2#3}}}     \captionsetup[lstlisting]{format=listing,labelfont=white,textfont=white, singlelinecheck=false, margin=0pt, font={bf,footnotesize}}               \begin{document}     \begin{lstlisting}[caption=My caption]     Lorem     ipsum     \end{lstlisting}     \end{document}      The resulting PDF looks like this: ![enter image description here](http://i.stack.imgur.com/iQtLf.png) You'll notice the strange margin values; I experimented with them until I got (mostly) the result I wanted (caption and bottom line aligning with the text margins left and right). Until recently I only had a b-frame, but now I want a lbr-frame. As you can see, the left and right frame don't get up to the caption but there's a little space left. Any idea how to change that? I got the full document settings here so you can see all the packages I use, if that is any help. Any advice would be greatly appreciated. If you can get the listing and caption to look like above without all the weird margin settings, even better, but I'd be happy enough if the left and right lines would go up to the box.


title: Parametrized circle node with a cross symbol

text: I am trying to get that result: ![enter image description here](http://i.stack.imgur.com/efxKF.png) with a parametrized node that has 4 args for the 4 circle sections. I managed to achieve the following code:               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{positioning,calc}          \tikzset{add/.style n args={4}{         draw,         circle,         minimum width=6mm,         path picture={             \draw                 (path picture bounding box.south east) -- (path picture bounding box.north west)                 (path picture bounding box.south west) -- (path picture bounding box.north east);             \node at ($(path picture bounding box.center)+(0,0.17)$)        {\tiny #1};             \node at ($(path picture bounding box.center)+(0.17,0)$)        {\tiny #2};             \node at ($(path picture bounding box.center)+(0,-0.17)$)       {\tiny #3};             \node at ($(path picture bounding box.center)+(-0.17,0)$)       {\tiny #4};             }         }     }          \begin{document}          \begin{tikzpicture}[node distance=0.4cm]         \node[add={1}{2}{3}{4}] (add1)  {};          \node[add={1}{2}{3}{4},above=of add1]   (add2)  {};          \begin{scope}[xshift=1cm,color=red]             \node[add={1}{2}{3}{4}] (add3)  {};              \node[add={1}{2}{3}{4}]  at (0,1) (add4)    {};          \end{scope}     \end{tikzpicture}          \end{document}      which outputs: ![enter image description here](http://i.stack.imgur.com/iqRxe.png) As can be seen, there is a problem when a node is positioned relatively to another. Any idea of how to fix this?


title: \ifmmode check in section caption

text: To assure the correct usage of newcommands which only shall be used in mathmode, I have introduced a `mathcommand`, which checks mathmode by `\ifmmode`. Now I want to use such a **mathcommand in a section caption** , and the math environment warning appears although the command is used in mathmode:               \documentclass{scrbook}          % provide mathcommand environment     \newcommand{\assuremath}{%       \relax\ifmmode\else\message{LaTeX Warning: Mathmode command used outside of math mode on input line \the\inputlineno}\fi     }     \newcommand{\newmathcommand}[2]{\newcommand{#1}{#2\assuremath}}     \newcommand{\renewmathcommand}[2]{\renewcommand{#1}{#2\assuremath}}          % define some mathcommand     \newmathcommand{\someMathCommand}{e^x}          \begin{document}       % use mathcommand in a caption       \section{I love $\someMathCommand$}     \end{document}      I am not familiar with the mechanisms of math mode in section captions. I guess that is the reason why the problem occurs...


title: multicols - different column widths

text: How can I set the width of the 1st column to 70%, and the width of the 2nd column to 30% of the pagewidth?               \usepackage{multicol}          \begin{multicols}{2}         text in column 1         \columnbreak         text in column 2     \end{multicols}


title: Split the reference counter for any numbered item (like with subequations)

text: Not sure how to otherwise formulate this: in the MWE below, I can use `{subequations}` from `amsmath`, so I get two equations with the same equation number, and "a" and "b" added instead - and I can refer both to the "master" equation number, and to the "a" and "b" parts individually. My question is: how could I do this with other types of Latex-numbered items; in the case of MWE below, that being `{lstlisting}`? This is the output of the MWE: ![test02a.png](http://i.stack.imgur.com/q0y4w.png) ... and I would like to have "Listing 1a" and "Listing 1b" generated, instead of "Listing 1" & "Listing 2"; and ability to insert refs to "master listing 1", as well as the inner "... 1a" and "...1b" ones. Here is the code:               \documentclass{article}     \usepackage{amsmath}     \usepackage{listings}     \usepackage{xcolor} % \pagecolor     \usepackage{hyperref}     \pagecolor{yellow!15}          \begin{document}          Hello...          \begin{subequations}\label{eq:ex1}     \begin{minipage}{0.45\textwidth}     \begin{align}     \label{eq:ex1a}     a = b + c     \end{align}     \end{minipage}     \begin{minipage}{0.45\textwidth}     \begin{align}     \label{eq:ex1b}     x = y + z     \end{align}     \end{minipage}     \end{subequations}          \vspace{\baselineskip}     Ref'ing: master eq.~\ref{eq:ex1};     inner a eq.~\ref{eq:ex1a}, inner b eq.~\ref{eq:ex1b} ...          \noindent\begin{minipage}[t]{.325\textwidth}     \begin{lstlisting}[basicstyle=\scriptsize\ttfamily,     caption={[short] Some instructions here; the font here is \texttt{\ttdefault}.},     escapechar=!,     showlines=true,     label=lst:ex1a,     columns=fixed,     frame=tlrb]     080484c4 <list>:      80484c4: cmd one      80484c7: cmd two      80484ca: cmd three, four      80484cf: cmd five      80484d6: cmd six, seven      80484dd: cmd more than enough      80484e0: cmd  not_even_joking     \end{lstlisting}     \end{minipage}     \hspace{1cm}     \noindent\begin{minipage}[t]{.325\textwidth}     \begin{lstlisting}[basicstyle=\scriptsize\ttfamily,     caption={[short] Some instructions here; the font here is \texttt{\ttdefault}.},     escapechar=!,     showlines=true,     label=lst:ex1b,     columns=fullflexible,     % basewidth=\tlen,     frame=tlrb]     080484c4 <list>:      80484c4: cmd one      80484c7: cmd two      80484ca: cmd three, four      80484cf: cmd five      80484d6: cmd six, seven      80484dd: cmd more than enough      80484e0: cmd  not_even_joking     \end{lstlisting}     \end{minipage}          Ref'ing:     inner a listing~\ref{lst:ex1a}, inner b listing~\ref{lst:ex1b} ...          \end{document}


title: How to break headers with `sideways` into more than one line?

text: I have following table:               \begin{table}[ht]\footnotesize     \centering     \begin{tabular}{|lp{1cm}p{1cm}}     \hline        \begin{sideways}Parameter\end{sideways} &         \begin{sideways}Long header name ... \end{sideways} &         \begin{sideways}Long header..\end{sideways} \\ \hline      \end{tabular}          \caption{Summary}     \label{tab:summary}     \end{table}      How to break side-wayed headers, so the can take two lines?


title: How do I add a circumflex?

text: I want to write words in Greek that have circumflexes, like 'νοῦς'. Is there any way to add the circumflex on top of the letters?


title: Problem with headers, footers

text: I have a problem on even pages with header and footer lines. Line shifted towards by text. Another problem is that heads of `article`'s sections appear on headers and footers, but I don't use it in `fancyhead`, `fancyfoot`. Have you any ideas? I use `combine` class for combine articles at single file. Structure of article:               \documentclass[12pt]{article}     \usepackage{mathtext}     \usepackage{amsfonts}     \usepackage{amssymb}     \usepackage{amsmath}     \usepackage{graphicx}     \usepackage{courier}     \usepackage{subfig}     ...newcommand(for math)     \begin{document}     ...title     ...text     \end{document}      Main code:               \documentclass[report,twoside,11pt,a4paper,notitlepage]{combine}     \usepackage{fancyhdr}     \usepackage{amsfonts}           \title{Quantum computers and computing}     \author{Editors}          \pagestyle{fancy}     \fancyhead[CO]{}     \fancyhead[CE]{}     \fancyfoot[CO,CE]{QUANTUM COMPUTERS AND COMPUTING}     \fancyfoot[LE,RO]{\thepage}     \newcommand{\authortochead}[1]{%         \coltocauthor{#1}         \fancyhead[CE]{#1}     }     \newcommand{\titletochead}[1]{%         \coltoctitle{#1}         \fancyhead[CO]{#1}     }     \renewcommand{\headrulewidth}{0.4pt}     \renewcommand{\footrulewidth}{0.4pt}          \renewcommand{\thesection}{\arabic{section}}     \renewcommand{\thechapter}{\Roman{chapter}}          \begin{document}     \maketitle          \begin{papers}          \titletochead{Paper 1}     \authortochead{A. N. Author}         \import{article1}     \end{papers}          \begin{papers}     \cleardoublepage     \titletochead{Paper 2}     \authortochead{A. N. Other}         \import{article1}          \end{papers}          %% Acknowledgements etc          \end{document}      Sorry for my bad english. Example: ![enter image description here](http://i.stack.imgur.com/cyYb8.jpg) ![enter image description here](http://i.stack.imgur.com/NNOdL.jpg)


title: How can I remove "thebibliography" from the Table of Contents (TOC)?

text: I want to use a manual Bibliography but I need it as a subsection. In order to do this I did:               \documentclass[12pt]{article}          \begin{document}          \section{My Section}          \subsection{References}          \begingroup          \renewcommand{\section}[2]{}%          \begin{thebibliography}{}          \bibitem{notes} John W. Dower {\em Readings compiled for History       21.479.}  1991.          \end{thebibliography}     \endgroup          \end{document}      By doing this, I am hiding the default "References" section title and replacing it with my manual `\subsection{References}` title. This works great, but the problem I am having right now is that the default "References" title shows up on my Table of Contents when I use `\tableofcontents`. How can I remove the default title (the one created by `\begin{thebibliography}{}`) from my Table of Contents?


title: mdframed being cut across pages

text: Is there a way to prevent this (see image) from happening when you are going onto another page? ![enter image description here](http://i.stack.imgur.com/3rRAi.png)


title: "Could not identify document class." error when trying to count words

text: I'm trying to count words in a cyrillic LaTeX document with Texcount. I run the command `perl texcount.pl index.tex` and get following output:               D:\wd>perl texcount.pl index.tex          !!! Could not identify document class. !!!     File: index.tex     Encoding: utf8     Words in text: 0     Words in headers: 5     Words outside text (captions, etc.): 0     Number of headers: 1     Number of floats/tables/figures: 0     Number of math inlines: 0     Number of math displayed: 0          (errors:1)      `index.tex` starts with following line:               \documentclass[a5paper,pagesize,10pt,bibtotoc,pointlessnumbers,     normalheadings,DIV=9,twoside=false]{scrbook}      So `documentclass` tag is present. How can I fix this error?


title: Creating a Title Page for Maths dissertation

text: I'm a third year maths undergrad, and am currently writing my dissertation using TexMaker. I'm not that familiar with the program, and am struggling to create an appropriate cover page (including title/name/uni etc and abstract) Is there a particular way I can achieve this? Everything just keeps grouping together and looks rather unsightly for a dissertation to be handed in!


title: Ideal width of figures compared to the text width

text: Are there some rules of the thumb to define the ideal width of an image in a printed work? Made up examples:   * The figure width should be around 0.61803 * text width. (Golden ratio)   * Never use figure width = text width as that is unprofessional. Or are there no general approaches, as every image can be very different to another. **Edit:** To provide you with a bit more context: I am writing a thesis in LaTeX and I am using `scrreprt` as document class from the KOMA–script bundle.


title: stackoverflow like resume based on res.cls

text: I have created a stackoverflow like CV, based on many snippets scattered here and some other sites (e.g. tags and so on). Right now, I have something that looks quite OK, although not as powerful as using the `moderncv` package. However, I have still a few problems that bother me:   1. tags look really funny if I have a mix of lower and upper case names, see for example `gcc` and `GCC` below, or `MySQL` and `Python..`   2. because the `position` environment is very hard to control, I still do a lot of manual formating, . e.g.: `{{\bf {\large Scietific Programmer }}{\em \small Uni. British Columbia, Vancuver }, \hfill May, 2010 - Oct., 2010 } \\` I would like to create some new environment to define this formatting, in such a way that the user can specify the order or the arguments and their format, for example, I want to define just one time how the environment should look like: `\Stelle[\Large][\normal,\italic][\normal][\normal]` the usage shoule be something like this: `\Stelle{Programmer}{CoolComany}{Chicago}{2012-Current}` As a side note, I think the German translation to "job position", "Stelle", is better than `position` , since the word `position` can be misunderstood as related to `location` and formating. Here is my code so far:               \documentclass[a4papper,overlapped,line]{res}     % \documentclass[a4papper,margin,line]{res}     \newsectionwidth{.7cm}     \usepackage{color}     \definecolor{SOrange}{rgb}{1,0.44,0.04}     \usepackage{scalefnt}     \usepackage{tikz}     \usetikzlibrary{shapes.geometric}     \newcommand{\tagf}[2][]{     {\scalefont{0.8}     \begin{tikzpicture}[baseline={(TAG.base)}]     \node[draw,#1] (TAG) {#2};     \node[font=\tiny,draw,#1] (TAG) {#2};     \end{tikzpicture}     }}          \begin{document}     \name{{\color{SOrange}Big Bird, M.Sc. }}      \address{ \begin{tabular}{ll}     Seasamestr. 1            & {\it Land-line:}  +49 321 1231234 \\                 80337 Munich & {\it Mobile:}                \\               & {\it E-mail:}  bigbird@gmail.com\\             & {\it WWW:} bigbird.blogspot.com\\       &\hspace{2.7em}             \\          \end{tabular}}          \begin{resume}          \begin{changemargin}{-0.7cm}{-2.3cm}     {\setlength{\fboxsep}{18pt}     \colorbox{blue!20}{     \begin{minipage}{0.95\textwidth}          \rmfamily     \begin{flushleft}     \hspace{-0.54cm}{\scalefont{1.2}\textbf{\begin{Huge}\textquotedblleft\end{Huge}}}     \\     \vspace{-0.65cm}     \begin{small}     I have a dream: decent looking CV, for everyone! Good looking Resumes should be available,      sould be documented and easy to use!     \textquotedblright     \end{small}\end{flushleft}     \end{minipage}     }     }     \end{changemargin}          \vspace{0.50cm}     \setlength\parindent{0pt}     \section{\sc {\color{SOrange}\vspace{-0.60cm} \textbf{Professional Experience} }}     \vspace{0.20cm}     {{\bf {\large Systems Engineer }}{\em \small SomeCompany}, \hfill January, 2011 - Current       }     \vspace{.13cm}     \\     Responsibilities include installation and configuration of Linux clusters and workstations, as well .....     % \hspace{-0.8cm}     \par     \tagf[blue!80, fill=blue!20,  rounded corners, font=\fontsize{0.1}{.1}]{SAMBA}\hspace{-0.25cm}     \tagf[blue!80, fill=blue!20,  rounded corners, font=\fontsize{0.1}{.1}]{Red Hat}\hspace{-0.25cm}     \tagf[blue!80, fill=blue!20,  rounded corners, font=\fontsize{0.1}{.1}]{Windows}\hspace{-0.25cm}     \tagf[blue!80, fill=blue!20,  rounded corners, font=\fontsize{0.1}{.1}]{NFS}\hspace{-0.25cm}     \tagf[blue!80, fill=blue!20,  rounded corners, font=\fontsize{0.1}{.1}]{Python}\hspace{-0.25cm}     \tagf[blue!80, fill=blue!20,  rounded corners, font=\fontsize{0.1}{.1}]{Shell}\hspace{-0.25cm}     \tagf[blue!80, fill=blue!20,  rounded corners, font=\fontsize{0.1}{.1}]{MySQL}\hspace{-0.25cm}          {{\bf {\large Scietific Programmer }}{\em \small Uni. British Columbia, Vancuver }, \hfill May, 2010 - Oct., 2010      }     \\     The main task was to implement ...The results were submitted as M.Sc thesis.     \par     \vspace{-0.3cm}     \tagf[blue!80, fill=blue!20,  rounded corners, font=\fontsize{0.1}{.1}]{Fortran95}\hspace{-0.25cm}     \tagf[blue!80, fill=blue!20,  rounded corners, font=\fontsize{0.1}{.1}]{Make}\hspace{-0.25cm}     % THIS LOOKS UGLY     \tagf[blue!80, fill=blue!20,  rounded corners, font=\fontsize{0.1}{.1}]{gcc}\hspace{-0.25cm}     \tagf[blue!80, fill=blue!20,  rounded corners, font=\fontsize{0.1}{.1}]{GCC}\hspace{-0.25cm}     \tagf[blue!80, fill=blue!20,  rounded corners, font=\fontsize{0.1}{.1}]{Python}\hspace{-0.25cm}          \section{\sc {\color{SOrange}\vspace{-0.60cm} \textbf{Education} }}     {\bf University of Life},  \hfill {\bf October, 2008 - October, 2011}\\     \vspace{-.7cm}          {\em M. Sc. Sociology }\\     Thesis Title:  ``How demographics won Romney'',  final GPA 1.3.     \end{resume}     \end{document}        Here is the output with funny looking tags: ![Stackoverflow like CV](http://i.stack.imgur.com/SPKeF.png) I would appreciate it, if someone helped me solving the issues with tags and the new `Stelle` environment. ### update of results: see the difference between both suggestions: ![strut vs vphantom](http://i.stack.imgur.com/9IQZb.png) `gcc without strut` is actually `with vphantom`. ## update of the results: full source code based on the answers below and some extras can be found in my github latex resume repository. I hope you find use to it ...


title: next, previous and up links

text: This question must have been asked and answered before on this forum, but I can't find the discussion. Sorry. I have a document that has a natural tree structure. So I want "next", "previous" and "up" links, and a clickable menu when there are downlinks. What latex package(s) should be used? The most useful thing would be to point me to a simple example of such latex source. Excuse the ignorance, but will all (or most) pdf readers be able to handle this, or should the latex source be converted into something else (html perhaps)? I might decide to learn how to use vim in text-folding mode, but this wouldn't solve my problem as I want the material to be read by other people and they will not want to learn vim.


title: Cannot get large centered text vertically aligned with flushed text

text: I cannot get the name to vertically align with the text on the left or the right. Using a table seems better but its still off. Just to clarify below are my two attempts to vertically align the name with the contact info on both sides. The first way is using a new command i created The second uses a table ![Sample](http://i.imgur.com/SPZVlEA.png)               \documentclass[letterpaper]{article}     \usepackage[margin=0.75in]{geometry}     \usepackage[colorlinks=true,urlcolor=cyan]{hyperref}     \usepackage{tabularx}          \def\name{John Doe}     \def\email{john.doe@gmail.com}     \def\phone{(123) 456-7890}          \def\address{123 Main St}     \def\city{Toronto}     \def\province{ON}     \def\country{Canada}     \def\postalCode{M5Y\thinspace4Z7}               \newcommand{\rTitle}{         \noindent         \centerline{\Huge \textsc \name} \\         \href{mailto:\email}{\nolinkurl{\email}} \hfill \address \\         \texttt{\phone} \hfill \city, \province \space \postalCode \\     }          \begin{document}         \rTitle          \noindent       \begin{tabularx}{\linewidth}{l >{\centering}X r}         \href{mailto:\email}{\nolinkurl{\email}} & \Huge \textsc \name & \address \\         \texttt{\phone} && \city, \province \space \postalCode \\       \end{tabularx}               \end{document}


title: Change font size and indentation in reference section

text: I am writing a paper for a conference. They provided the a LaTeX style file however the compiled reference section is different from their own requirement. They require font size 8, no indentation, and the index number should have a square bracket like `[1] xxx` My compiled output on the other hand, is font size 10, has indentation, and no square bracket, so it's like `1. xxx`. Could some one take a look in the style file and tell where I fix this problem? I couldn't find anything that's related to font size, or indentation, or the bracket. I don't know much about the LaTeX style file. I can't upload file so I'll have to post the entire style file code here:               %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     %                   File: osameet2.sty                %     %                  Date: March 21, 2007               %     %                                                     %     %       (c) 2007 Optical Society of America           %     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%          \NeedsTeXFormat{LaTeX2e}     \ProvidesPackage{osameet2}[2007/03/21 LaTeX package for submission to OSA's conferences]          %% packages     \usepackage{cite}     \RequirePackage{geometry}     \usepackage{color}     \usepackage{graphicx}     %% fonts     \usepackage{mathptmx,courier,textcomp}     \usepackage[scaled=.92]{helvet}          \geometry{letterpaper,nohead,margin=1in} %% uses geometry.sty     \parindent1em %% em tied to font     \parskip0pc     \linespread{1}     \pagestyle{empty}     \sloppy          %%Title page elements          \newcommand\MEETtitle[1]{\LARGE \bf \hskip2.25pc \parbox{.8\textwidth}{ \noindent%        \LARGE \bf \begin{center} #1 \end{center}\rm } \vskip.1in \rm\normalsize }          \newcommand\MEETauthor[1]{\hskip2.25pc \parbox{.8\textwidth}{ \noindent%        \normalsize \bf \begin{center} #1 \end{center}\rm } \vskip-1pc }          \newcommand\MEETaddress[1]{\hskip2.25pc \parbox{.8\textwidth}{ \noindent%        \footnotesize \it \begin{center} #1 \end{center}\rm }  \normalsize \vskip-.2cm }          \newcommand\MEETemail[1]{\vskip-.3cm \parskip0pc\hskip2.25pc \footnotesize%        \parbox{.8\textwidth}{\begin{center}\textit{#1}  \end{center} } \normalsize  \vskip-.2cm}          \newcommand\url[1]{\textcolor{blue}{\underline{#1}}}          \newcommand\homepage[1]{\vskip-1pt \parskip0pc\hskip2.25pc \footnotesize %% CHANGE 8-3-99        \parbox{.8\textwidth}{\begin{center}\it \textcolor{blue}{\underline{#1}} \rm \end{center} } \normalsize\vskip-.2cm}          \newcommand\ocis[1]{\vskip-2.75pc \begin{center}\parbox{.8\textwidth}{\footnotesize\bf OCIS codes: \ \rm #1 \hfill} \end{center}\vskip3pt}%          \let\title\MEETtitle     \let\author\MEETauthor     \let\affil\MEETaddress     \let\address\MEETaddress     \let\email\MEETemail     \let\pacs\ocis          \renewenvironment{abstract}%%     {\vskip1pc\noindent\begin{center} \begin{minipage}{.8\textwidth} {\bf Abstract: \ } }     { \\ \vskip-.75pc \noindent \small \copyright \, \number\year \hskip.05in        Optical Society of America \\ \hfil \end{minipage}\end{center}\normalsize\vskip-1.75pc}%          %%Various customizations          \renewcommand\maketitle{\vskip0pt} %%deactivates \maketitle in LaTeX     \def\affiliation{\address}     \def\onlinecite{\citeonline}     %Fig. and Table Labels          \renewcommand\figurename{Fig.}     \def\fps@table{h}%\def\fps@table{!htbp}     \renewcommand\tablename{Table}          %% New caption command     \newcommand\@MaxCapWidth{5.5in}     \setlength\belowcaptionskip{.1in}     \setlength\abovecaptionskip{.15in}     \long\def\@makecaption#1#2{%       \normalsize       \vskip\abovecaptionskip       \sbox\@tempboxa{#1. #2}%       \ifdim \wd\@tempboxa >\@MaxCapWidth         \hskip.5in\parbox{5.5in}{#1. #2}       \else         \global \@minipagefalse         \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%       \fi       \vskip\belowcaptionskip\normalsize}          %%References          \renewcommand\refname{\normalsize References \rm}     \setlength\bibindent{.3in}     \renewenvironment{thebibliography}[1]          {\section*{\refname             \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}}%           \list{\@arabic\c@enumiv .}                {\settowidth\labelwidth{.25in}%                 \leftmargin\labelwidth       \setlength{\parsep}{0pc}       \setlength{\labelsep}{0.5em}       \setlength{\itemsep}{0.05pc}%{-0.06in}       \setlength{\listparindent}{0in}       \setlength{\itemindent}{0in}       \setlength{\leftmargin}{.3in}       \setlength{\rightmargin}{0in}                 \advance\leftmargin\labelsep                 \@openbib@code                 \usecounter{enumiv}%                 \let\p@enumiv\@empty                 \renewcommand\theenumiv{\@arabic\c@enumiv}}%           \sloppy           \clubpenalty4000           \@clubpenalty \clubpenalty           \widowpenalty4000%           \sfcode`\.\@m \normalsize}          {\def\@noitemerr            {\@latex@warning{Empty `thebibliography' environment}}%           \endlist \vskip.2in}     \let\@openbib@code\@empty     \newcommand\OSAJNLReferences{\thebibliography{}}     \newcommand\OSAJNLReflinks{\thebibliography{}}     \newcommand\References{\thebibliography{}}     \newcommand\references{\thebibliography{}}     \let\endOSAJNLReferences\endthebibliography     \let\endOSAJNLlinks\endthebibliography     \let\endReferences\endthebibliography          %%Section parameters     \renewcommand\@seccntformat[1]{\csname the#1\endcsname.\quad }     \renewcommand\thesubsection{\thesection.\arabic{subsection}}     \renewcommand\thesubsubsection{\thesubsection.\arabic{subsubsection}}          \renewcommand\section{\@startsection {section}{1}{0pt}%                                        {-2.5ex plus -1ex minus -.2ex}%                                        {1.3ex plus .2ex}%                                        {\normalsize\bfseries}}     \renewcommand\subsection{\@startsection{subsection}{2}{0pt}%                                          {-2.25ex plus -1ex minus -.2ex}%                                          {1ex plus .2ex}%                                          {\normalsize\itshape}}     \renewcommand\subsubsection{\@startsection{subsubsection}{3}{0pt}%                                          {-2.25ex plus -1ex minus -.2ex}%                                          {1ex plus .2ex}%                                          {\small\upshape}}          \frenchspacing          \hyphenation {ac-cord-ing                allow                back-scat-ter                back-scat-te-ring                back-scat-tered                scat-te-ring                Based based                cases                cen-tered                changed                co-incide                con-cerning                con-ven-tional                de-creased                de-po-lar-iz-ation                de-tector de-tectors                de-vi-ation                dis-cussion                dis-tribu-tion                dis-tribu-tions                dis-trib-ute                dis-trib-uted                Ehhalt                extinc-tion                found                Geest-hacht                ground                Hink-ley                il-lus-trated                il-lus-trate                Intro-ducing                Klap-heck                lati-tude                measure-ment                measure-ments                meas-ured                measuring                mixing                north-east                orig-inated                op-er-ating                out-flow                pres-ence                primary                rather                rela-tive                sig-nal                sig-nals                solid                tem-pera-ture                Tem-pera-ture                trans-ported                tropo-pause                Tropo-pause                tropo-sphere                Tropo-sphere                tube                tubes                Values                varies                Weather}          \def\opex{ Opt.\ Express }     \def\ao{ Appl.\  Opt.\ }     \def\ap{ Appl.\  Phys.\ }     \def\apa{ Appl.\  Phys.\ A }     \def\apb{ Appl.\  Phys.\ B }     \def\apl{ Appl.\ Phys.\ Lett.\ }     \def\apj{ Astrophys.\ J.\ }     \def\bell{ Bell Syst.\ Tech.\ J.\ }     \def\jqe{ IEEE J.\ Quantum Electron.\ }     \def\assp{ IEEE Trans.\ Acoust.\ Speech Signal Process.\ }     \def\aprop{ IEEE Trans.\ Antennas Propag.\ }     \def\mtt{ IEEE Trans.\ Microwave Theory Tech.\ }     \def\iovs{ Invest.\ Ophthalmol.\ Visual\ Sci.\ }     \def\jcp{ J.\ Chem.\ Phys.\ }     \def\jmo{ J.\ Mod.\ Opt.\ }     \def\jon{J.\ Opt.\ Netw.\ }     \def\josa{ J.\ Opt.\ Soc.\ Am.\ }     \def\josaa{ J.\ Opt.\ Soc.\ Am.\ A }     \def\josab{ J.\ Opt.\ Soc.\ Am.\ B }     \def\jpp{ J.\ Phys.\ (Paris) }     \def\nat{ Nature (London) }     \def\oc{ Opt.\ Commun.\ }     \def\ol{ Opt.\ Lett.\ }     \def\pl{ Phys.\ Lett.\ }     \def\pra{ Phys.\ Rev.\ A }     \def\prb{ Phys.\ Rev.\ B }     \def\prc{ Phys.\ Rev.\ C }     \def\prd{ Phys.\ Rev.\ D }     \def\pre{ Phys.\ Rev.\ E }     \def\prl{ Phys.\ Rev.\ Lett.\ }     \def\rmp{ Rev.\ Mod.\ Phys.\ }     \def\pspie{ Proc.\ SPIE\ }     \def\sjqe{ Sov.\ J.\ Quantum Electron.\ }     \def\vr{ Vision Res.\ }     \def\cleo{ {\it Conference on Lasers and Electro-Optics }}     \def\assl{ {\it Advanced Solid State Lasers }}     \def\tops{ Trends in Optics and Photonics }          %% end osameet2.sty


title: How change type of remark title in amsthm?

text: How can I easily change the typeface of remark titles in `amsthm` without having to define a completely new style using `\newtheoremstyle`. More precisely, I have the following code:               \usepackage{amsthm}                 \theoremstyle{remark}          % in order to avoid content to be printed in italics     \newtheorem{remark}{Remark}       PS: I have to use `amsthm` because coauthors want to use it. So solutions involving different theorem packages will not be helpful.


title: Grouping Many Images in One Page

text: I have a section which describes a set of 6 images. After adding the section and the images just below it, the images were not placed in the correct place. Some of them were placed after the section, which is the correct thing, but the others were placed after the next section. Is there anyway to solve that? Here is how I want my page to look:               Image 1  |  Image 4     Image 2  |  Image 5     Image 3  |  Image 6              |     .......  |   .......     .......  |   .......      The dots represent the text of the page. Obviously, the page is in two- columns. Finally, here is the code I am using.               \section{....}          <Section Text Referencing The 5 Figures Below>          \begin{figure}[h]         \begin{center}         \includegraphics[width=3.0in]{example1_scene.png}         \end{center}     \end{figure}          \begin{figure}[h]         \begin{center}         \includegraphics[width=3.0in]{example1_topview.png}         \end{center}     \end{figure}          \begin{figure}[h]         \begin{center}         \includegraphics[width=3.0in]{on_smith_and_screen.png}         \end{center}     \end{figure}          \begin{figure}[h]         \begin{center}         \includegraphics[width=3.0in]{example1_2.png}         \end{center}     \end{figure}          \begin{figure}[h]         \begin{center}         \includegraphics[width=3.0in]{example1_3.png}         \end{center}     \end{figure}          \begin{figure}[h]         \begin{center}         \includegraphics[width=3.0in]{example1_4.png}         \end{center}     \end{figure}


title: rotating vs lscape vs pdflscape

text: I'm asking this looking for the _`ultimate`_ answer. What are the main differences between the three of them? When should I use anyone in particular? I know there is this question: Should I prefer {pdflscape} over [pdftex]{lscape}?, but it doesn't address the issue with the `rotating` package. Also, there is this question: Rotating text by -90 degrees , but once gain: no reference about the `rotating` package. Furthermore, I'm trying to get a figure (packages: `graphicx`, `float`, `subcaption`), and later on a Gantt diagram (packages: `tikz`, `pgfgantt`) on landscape layout. Which one of the three should I use? What are the advantages of one over the other? (I have already gone through this question: Rotate Gantt Chart Figure, but the only answer is with `lscape`). * * * UPDATE: I ran some tests and it seems that when using a `longtable` environment `pdflscape` modifies all the pages along the table, whereas `[pdftex]{lscape}` only modifies the last one. Code:               \documentclass{article}          \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage{array}     \usepackage{longtable}     \usepackage{pdflscape}     %\usepackage[pdftex]{lscape}  % Uncomment if you want to see the output with [pdftex]{lscape}          \begin{landscape}     \begin{longtable}{l p{0.8\linewidth}}          WEFAPS          & \hspace{5mm} Wearable Fall Assessment \& Prediction System\\     WHO                 &   \hspace{5mm} World Health Organization\\     GDP                 & \hspace{5mm} Gross Domestic Product\\     PPP                 & \hspace{5mm} Purchasing Power Parities\\     MEMs                &   \hspace{5mm} Micro-Electromechanics\\     BDN                 & \hspace{5mm} Bayesian Dynamic Networks\\     ADL                 & \hspace{5mm} Activities of Daily Life\\     STST                &   \hspace{5mm} Sit-To-Stand Test\\     PPA                 &   \hspace{5mm} Physiological Profile Assessment\\     TUGT                &   \hspace{5mm} Timed Up-and-Go Test\\     DFRAC               & \hspace{5mm} Demura's Fall Risk Assessment Chart\\     STRATIFY        & \hspace{5mm} Saint Thomas's Risk Assessment Tool in Falling Elderly Inpatients\\     USUST               & \hspace{5mm} Unstructured and Unsupervised Test\\     WEFAPS          & \hspace{5mm} Wearable Fall Assessment \& Prediction System\\     WHO                 &   \hspace{5mm} World Health Organization\\     GDP                 & \hspace{5mm} Gross Domestic Product\\     PPP                 & \hspace{5mm} Purchasing Power Parities\\     MEMs                &   \hspace{5mm} Micro-Electromechanics\\     BDN                 & \hspace{5mm} Bayesian Dynamic Networks\\     ADL                 & \hspace{5mm} Activities of Daily Life\\     STST                &   \hspace{5mm} Sit-To-Stand Test\\     PPA                 &   \hspace{5mm} Physiological Profile Assessment\\     TUGT                &   \hspace{5mm} Timed Up-and-Go Test\\     DFRAC               & \hspace{5mm} Demura's Fall Risk Assessment Chart\\     STRATIFY        & \hspace{5mm} Saint Thomas's Risk Assessment Tool in Falling Elderly Inpatients\\     USUST               & \hspace{5mm} Unstructured and Unsupervised Test\\     WEFAPS          & \hspace{5mm} Wearable Fall Assessment \& Prediction System\\     WHO                 &   \hspace{5mm} World Health Organization\\     GDP                 & \hspace{5mm} Gross Domestic Product\\     PPP                 & \hspace{5mm} Purchasing Power Parities\\     MEMs                &   \hspace{5mm} Micro-Electromechanics\\     BDN                 & \hspace{5mm} Bayesian Dynamic Networks\\     ADL                 & \hspace{5mm} Activities of Daily Life\\     STST                &   \hspace{5mm} Sit-To-Stand Test\\     PPA                 &   \hspace{5mm} Physiological Profile Assessment\\     TUGT                &   \hspace{5mm} Timed Up-and-Go Test\\     DFRAC               & \hspace{5mm} Demura's Fall Risk Assessment Chart\\     STRATIFY        & \hspace{5mm} Saint Thomas's Risk Assessment Tool in Falling Elderly Inpatients\\     USUST               & \hspace{5mm} Unstructured and Unsupervised Test\\     WEFAPS          & \hspace{5mm} Wearable Fall Assessment \& Prediction System\\     WHO                 &   \hspace{5mm} World Health Organization\\     GDP                 & \hspace{5mm} Gross Domestic Product\\     PPP                 & \hspace{5mm} Purchasing Power Parities\\     MEMs                &   \hspace{5mm} Micro-Electromechanics\\     BDN                 & \hspace{5mm} Bayesian Dynamic Networks\\     ADL                 & \hspace{5mm} Activities of Daily Life\\     STST                &   \hspace{5mm} Sit-To-Stand Test\\     PPA                 &   \hspace{5mm} Physiological Profile Assessment\\     TUGT                &   \hspace{5mm} Timed Up-and-Go Test\\     DFRAC               & \hspace{5mm} Demura's Fall Risk Assessment Chart\\     STRATIFY        & \hspace{5mm} Saint Thomas's Risk Assessment Tool in Falling Elderly Inpatients\\     USUST               & \hspace{5mm} Unstructured and Unsupervised Test\\     WEFAPS          & \hspace{5mm} Wearable Fall Assessment \& Prediction System\\     WHO                 &   \hspace{5mm} World Health Organization\\     GDP                 & \hspace{5mm} Gross Domestic Product\\     PPP                 & \hspace{5mm} Purchasing Power Parities\\     MEMs                &   \hspace{5mm} Micro-Electromechanics\\     BDN                 & \hspace{5mm} Bayesian Dynamic Networks\\     ADL                 & \hspace{5mm} Activities of Daily Life\\     STST                &   \hspace{5mm} Sit-To-Stand Test\\     PPA                 &   \hspace{5mm} Physiological Profile Assessment\\     TUGT                &   \hspace{5mm} Timed Up-and-Go Test\\     DFRAC               & \hspace{5mm} Demura's Fall Risk Assessment Chart\\     STRATIFY        & \hspace{5mm} Saint Thomas's Risk Assessment Tool in Falling Elderly Inpatients\\     USUST               & \hspace{5mm} Unstructured and Unsupervised Test\\               \end{longtable}     \end{landscape}     \end{document}


title: Apply Templates in Microsoft Word

text: I usually use TeX to write my documents, but say for some reason I want to use Word Document (e.g. sending the document to a friend for editing). So is it possible to apply templates in Microsoft Word?


title: Combination of \verb and \texttt

text: Also I read: When should one use \verb!! and when \texttt{} My issue at hand is that I would like to write a little more than just "small pieces" (wording in linked question) of program code, but without having to escape all the special characters. On the other hand, `\verb` does not have `{}`-style delimiters, besides being said to have issues with moving arguments. Is there something I can do such that (sample text follows) "As a user, do `\texttt{if (!(last\_cond \&\& (last\_flags \& (O\_CREATE | O\_EXCL))))}`, but as root, do `\texttt{if (!(last\_cond \&\& (last\_flags \& (O\_RDONLY))))}` until..." can be written as "As a user, do `\texttt{if (!(last_cond && (last_flags & (O_CREATE | O_EXCL))))}`, but as root, do `\texttt{if (!(last_cond && (last_flags & (O_RDONLY))))}` until..." edit: Defining a new command as in `\verbdef` and having to write "As a user, do `\verbdef\demo1{\texttt{if (!(last_cond && (last_flags & (O_CREATE | O_EXCL))))}}\demo1`, but as root, do `\verbdef\demo2{\texttt{if (!(last_cond && (last_flags & (O_RDONLY))))}}\demo2` until..." does read strangely (in the tex source file).


title: Parts (node) with the same height Tikz

text: How do I keep the two parties with the same height of 53mm?               \documentclass[a4paper,10pt]{book}     \usepackage{tikz}     \usetikzlibrary{positioning,shapes}     \begin{document}     %Tikz styles     \tikzset{>=latex,inner sep=0pt,       cx1/.style={rectangle,draw,rounded corners=1cm,orange,text centered},     }          \begin{tikzpicture}[remember picture,overlay]         \node[cx1,rectangle split,rectangle split parts=2,rectangle split parts,text width=5.3cm,text height=5.3cm] at (13.35,3.25) {aula\nodepart{second} $09$};     \end{tikzpicture}     \end{document}      I want it part1=53mm,part2=53mm.


title: Hyperref: Both Bibliography and Index entries in ToC are linked to Bibliography

text: ## Problem Statement I use `BibTeX` for the Bibliography, `makeindex` for the Index and `hyperref` to create the hyperlinks. In the `.pdf` file that I get after compiling, all hyperlinks (e.g., ToC entries, page references in the Index, citations of Bibliography entries,...) work, except for the Index entry in the ToC, which instead points to the Bibliography (the Bibliography ToC entry also links to the Bibliography). ## How to reproduce the problem Here is my `example.tex` file, reduced to a MWE:               \documentclass[a4paper]{book}          \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage[italian]{babel}     \usepackage{lipsum}     \usepackage{makeidx}     \usepackage[nottoc,numbib]{tocbibind}     \usepackage{hyperref}          \makeindex          \begin{document}          \bibliographystyle{unsrt}     %\nocite{*}          \frontmatter          \title{Title}     \author{Author}     \date{}     \maketitle          \tableofcontents          \mainmatter          \chapter{First chapter}     \section{First section\index{section}}     \lipsum[1-2]     \section{Second section}     \lipsum[1-2]          Cite-example\cite{ref1}          \backmatter          \bibliography{biblio.bib}          \printindex          \end{document}      and my `biblio.bib` file:               @book{ref1,       author = "Author",       title  = "Title",       year   = 1490     }      Finally, here is the routine I use in compiling (I am running TeXLive in GNU/Linux Fedora20):               pdflatex example.tex     makeindex example.idx     bibtex example.aux     pdflatex example.tex     pdflatex example.tex      What am I doing wrong?


title: is it posible to make a multiline itemize justifying the text inside

text: I am writing technical specs of a programming API. I am using itemize to highlight the method signature as it follows:               \begin{itemize}         \item[\texttt{packeteer.send(message)}] \hfill \\          is used to send a given \texttt{message}           through \texttt{packeteer} object.     \end{itemize}      Usually, a signature can be longer than page width and it runs out of margins:               \begin{itemize}         \item[\texttt{packeteer.send(message, offset, length, port, direction, [function(error, bytes)\{ \}])}] \hfill \\          is used to send a portion of a given           \texttt{message} through          \texttt{packeteer} object.     \end{itemize}      Is it possible to have the text inside item multilined and those lines to be justified too? It's something like this, but having the first line justified and a properly space between them:               \item[{\parbox[t]{1.0\linewidth}{\texttt{packeteer.send(message, offset, length, port, direction, \\ [function(error, bytes)\{ \}])}}}]


title: How do I make a circled frame?

text: I'm using LYX at XyMatrix. If I'm writing in one of the cells a code like that:               \save"1,1"."1,2"*+[r][F]\frm{}\restore      I get a rectangle frame. If want to get a circled frame what should I write? If I'll write something like:               \save"1,1"."1,2"*+[o][F]\frm{}\restore      I will get the first cell (1,1) circled.


title: Best practice for typesetting Knuth's up-Arrow notation

text: What's the best practice to typeset Knuth's up-Arrow notation? `\uparrow` and `\upuparrow` are relation symbols (according to `unimath- symbols.pdf`). But in Knuth's up arrow notation, these should be a binary operator. So, how should on treat this difference? Secondly, should double up arrows be typeset as `\upuparrow` or as `\uparrow\uparrow`, which illustrates the double nature better.


title: \em of ulem package surrounding by environment does not compile

text: The following code does not compile if any `%` is removed. It reports _run away argument_.               \documentclass{article}     \usepackage{ulem}     \begin{document}         \begin{center} %\em             This is center         \end{center}         \begin{quote} %\em             This is quote         \end{quote}         \begin{itemize} %\em             \item This is itemize         \end{itemize}         \begin{tabular}{c} %\em             This is tabular         \end{tabular}     \end{document}      My question is whether it is possible to fix it so that `\em` of `ulem` (as an underlining `\em`) works everywhere `\em` of LaTeX works.


title: How to edit the title page of the beamer?

text: I would like to edit the title page of the beamer presentation template in order display my name and my project supervisor's name in the title slide. Is this possible? Can it be achieved easily? Thanks in advance


title: Is there a comprehensive and complete LaTeX reference?

text: When I dived into Python, I went through the beginner's tutorials. Of course, these tutorials cover only the basics and present only a shallow exhibition of what I can do with Python. Right now I'm going through Getting to grips with LaTeX by Andrew Roberts. After this, I will want to see a complete LaTeX reference. For Python, I can immediately go to http://docs.python.org, then I am presented with a host of comprehensive documents about the Python standard core. Is there a similar site for the LaTeX core? Something that I can "keep under my pillow", like The Python Standard Library? I want to be well-versed with the standard installation first (I have MikTeX) before I go out and use additional packages.


title: Whole page table with tabularx

text: I am trying to make a full page table using tabularx. As far as I can understand, the second parameter specifies the entire size and the "X" columns self-stretch to fill it up. What I run into is a table that is split at the end of the page and I cannot seem to make it shift to the right. What am I doing wrong here? I should also mentioned I've tried experimeting with _textheight_ and _textwidth_ but could not figure out how to force the width. Example code below:               \documentclass[a4paper,12pt]{scrartcl}     \usepackage{pdflscape}     \usepackage{tabularx}     \usepackage{lipsum}          \begin{document}       \begin{landscape}             \begin{tabularx}{290mm}{|c|c|c|X|}        \hline        Lorem & Lorem & Lorem & \lipsum[1] \\        \hline        \end{tabularx}            \end{landscape}     \end{document}


title: Disable scientific notation for Y-axis and data in pgfplots?

text: I've been trying to figure out how to change the chart from scientific notation to just show the 5 digit numbers. I've tried scale and scale ticks with not success. How can I change the y-axis and data values to show the decimals not in scientific notation?               \begin{tikzpicture}     \centering     \begin{axis}[         width=300pt,         height=250pt,         axis lines*=left, % Don't display the top and right lines         ybar, % Display it as a bargraph         enlarge y limits={upper,value=0.2},         legend style={at={(0.5,-0.20)}, % -.20 y-axis         anchor=north,legend columns=-1},         ylabel={Densities},         nodes near coords,         every node near coord/.append style={ anchor=mid west, rotate=90},         symbolic x coords={Class1,Class3,Class5,Class7,Class9,Class11,Class13,Class15,Class17,Class19,Class21,Class23},         xtick=data,         xticklabel style={ inner sep=0pt, anchor=north east, rotate=70 },         nodes near coords align={vertical},     ]     \addplot coordinates { (Class1,0.0968) (Class3,0.0887) (Class5,0.1452) (Class7,0.0726)         (Class9,0.0403) (Class11,0.0081) (Class13,0.0161) (Class15,0.0000)         (Class17,0.0161) (Class19,0.0081) (Class21,0.0000) (Class23,0.0081) };     \end{axis}     \end{tikzpicture}


title: Biblatex, apa-style, polyglossia and multilingual-bibliography

text: For my scientific article I need to use some sources that are in Korean, which is why I've switched from using `pdflatex\bibtex` to `xelatex` and `biber`. I've managed to get `biblatex` with `apa` style working (through other posts on this site). But I've encountered several problems so far and I am not sure whats causing them. I am facing the following four problems now:   1. The bibliography is not sorted (even though I used sorting=nyt).   2. If there is more than one source from one year, biblatex automatically adds an sorting system (by adding an a, b, c and so on), how can I disable this?   3. The issue of the journal is not displayed in the bibliography.   4. The text is not adjusted correctly, as can be seen in the pdf. My MWE:               \documentclass[a4paper,12pt]{article}     \usepackage{polyglossia}     \usepackage{csquotes}     \usepackage[backend=biber,style=apa,sorting=nyt]{biblatex}     \DeclareLanguageMapping{american}{american-apa}     \DefineBibliographyExtras{english}{%       \protected\def\mkbibdateapalong#1#2#3{%         \iffieldundef{#1}%           {}%           {\thefield{#1}}%         \iffieldundef{#2}%           {}%           {\iffieldundef{#1}%             {}%             {\addcomma\addspace}%            \mkbibmonth{\thefield{#2}}}%         \iffieldundef{#3}%           {}%           {\ifthenelse{\iffieldundef{#2}\OR\iffieldundef{#1}}%             {}%             {\addspace}%            \stripzeros{\thefield{#3}}}}%       \protected\def\mkbibdateapalongextra#1#2#3{%         \iffieldundef{#1}%           {}%           {\thefield{#1}\printfield{extrayear}}%         \iffieldundef{#2}%           {}%           {\iffieldundef{#1}%             {}%             {\addcomma\addspace}%            \mkbibmonth{\thefield{#2}}}%         \iffieldundef{#3}%           {}%           {\ifthenelse{\iffieldundef{#2}\OR\iffieldundef{#1}}%             {}%             {\addspace}%            \stripzeros{\thefield{#3}}}}%       \protected\def\mkbibdateapalongdmy#1#2#3{%         \iffieldundef{#3}%           {}%           {\stripzeros{\thefield{#3}}}%         \iffieldundef{#2}%           {}%           {\iffieldundef{#3}%             {}%             {\addspace}%            \mkbibmonth{\thefield{#2}}}%         \iffieldundef{#1}%           {}%           {\ifthenelse{\iffieldundef{#2}\OR\iffieldundef{#3}}%             {}%             {\addspace}%            \thefield{#1}}}}     \addbibresource{BT.bib}     \usepackage{fontspec}     \usepackage{xeCJK}                      % package for Korean fonts     \setmainlanguage[variant=american]{english}     \setCJKmainfont{Dotum}              % For Korean font     \setmainfont{Times New Roman}           % Standard font     \begin{document}     \section{Introduction}     Three main things when talking about IPO research: underpricing, long-term overpricing and IPO waves \parencite{Ka91}.     This is a test \parencite{Ro86,TiTr86, Ch99, Ch11}.          \printbibliography[title=Bibliography]     \end{document}      Here my .bib file:               @article{Ro86,     author = {K. Rock},     title = {Why new issues are underpriced},     journaltitle = {Journal of Financial Economics},     volume = {15},     year = {1986},     pages = {187-212}     }     @article{TiTr86,     author = {S. Titman and B. Trueman},     title = {Information Quality and the Valuation of New Issues},     journaltitle = {Journal of Accounting and Economics},     volume = {8},     year = {1986},     pages = {159-172}     }     @article{Ch99,     author = {M.-S. Choi},     title = {A Study on Initial Returns and Underpricing of {IPOs}},     journaltitle = {The Korean Journal of Finance},     volume = {12},     year = {1999},     pages = {197-226},     origlanguage = {Korean},     origtitle = {신규공모주의 공모가격 할인과 초기성과에 대한 연구},     origpublisher = {재무연구}     }     @article{Ch11,     author = {M.-S. Choi},     title = {Review of Empirical Studies on {IPO} Activity and Pricing Behavior in Korea},     journaltitle = {Asian Review of Financial Research},     volume = {24},     issue ={2},     year = {2011},     pages = {621-663},     }     @article{Ka91,     author = {H. S. Kang},     title = {An Empirical Study on the Effect of the Activities of Investment banks on IPO Pricing},     journaltitle = {The Korean Journal of Financial Management},     volume = {8},     issue = {2},     year = {1991},     pages = {31-45},     origlanguage = {Korean},     origtitle = {투자은행이 IPO의 가격형성에 미치는 영향에 관한 실증분석},     origpublisher = {재무관리연구}     }


title: You've lost some text

text: I had several figures included in my `.tex` file with the use of `\usepackage{graphicx}` written like the following:               \begin{figure}[ht]     \center     \includegraphics{compton.jpg}     \caption{Compton scattering}     \end{figure}      They were all compiling fine yet after writing some basic text elsewhere on the page, when I tried to compile it said:               \begin{figure}[ht]     You've lost some text. Try typing return to proceed      Can anyone shed light as to what may have occured?


title: How to relatively position groups of nodes

text: I have a macro (example below) to create a 3x3 grid out of a list of 9 items, but if I try to draw two of them they sit on top of each other. I get that each is a different path and restarting at 0,0... looking for advice on the cleanest way to "package" them so I can draw them next to each other without thinking about their exact size. Eventually I want to put them into a tree layout algorithm to show a search tree for solving a 3x3 sliding puzzle (using this as an excuse to figure out how to use tikz). My guess is that I need to be able to package up the structure as one unit so that tikz can think of them as nodes to layout. Am I thinking about things the right way or not?               \documentclass{article}      \usepackage{tikz}          \usetikzlibrary[calc]     \usepackage[active,tightpage]{preview}     \PreviewEnvironment{tikzpicture}          \newcommand{\ninepuzzle}[1] {         \foreach [count=\i] \val in {#1} {              \draw  let \n{row}={int(mod(\i -1, 3))}, \n{col}={ int( ( \i - 1 ) / (-3) ) } in                  (\n{row}, \n{col}) rectangle  +(1,1)                  +(0.5, 0.5) node{\val};         }     }               \begin{document}          \begin{tikzpicture}[scale=1]         \ninepuzzle{1,2, ,3,4,5,6,7,8}         \ninepuzzle{8,5,6,3,2,4, ,1,7}     \end{tikzpicture}               \end{document}


title: Disabling single dots in ToC lines (one dot only between title and page)

text: In the Table of Contents (ToC) when the title is long, occasionally LaTeX inserts only one dot between the title and the page number, which I find ugly. Is it possible the disable the insertion of a single dot but keep more dots? An example:               This is a short title . . . . . . . . . . . . . . . 12     This is a long title and only one dot is inserted . 12      The latter one is ugly, it would look nicer without the dot, as:               This is a long title and only one dot is inserted   12


title: LaTeX error with footnotes

text: This is the MWE:               \documentclass[12pt,a4paper]{article}           \usepackage[utf8]{inputenc}     \usepackage[spanish]{babel}          \begin{document}          \begin{titlepage}                  \begin{minipage}{0.8\textwidth}      CaDeNTiA CDNs/DTNs sobre Android             \end{minipage}                  \LARGE Documento n\sptext{o}3 -- \textbf{Anexo}          \end{titlepage}          \clearpage          \section{Convenciones estil\'isticas}          Cuando no ha sido posible escribir un comando en una sola línea se ha escrito unque le indica al terminal que el comando continúa en la siguiente línea. Si bien ha habido algunos casos como, por ejemplo, al escribir URLs largas, donde no se ha escrito el símbo.\footnote{hola}          asfdsf a\footnote{dfasdf}          \end{document}      Which gives this error on the 2nd page: ![enter image description here](http://i.stack.imgur.com/l1fqt.png) It can be seen that something in the titlepage spoils the footnote number. I can remove the `minipage` or the `\sptext` command (related with Spanish `babel`), or even the `\LARGE` to solve it but, I would need all in my real final document.


title: How to install memoir package from ctan?

text: How do I download the memoir package from this page? http://www.ctan.org/tex- archive/macros/latex/contrib/memoir/ I can see the directory tex-archive/macros/latex/contrib/memoir/ but i'm not sure how to access it. Do I use ftp from the command line terminal? I was expecting to see a .zip file on the page. I am new to CTAN. Running OS X 10.8.4 MacTeX.


title: Problem with listings package for Python syntax coloring

text: I am implementing the method I learned here for putting Python code in Latex. Everything works great except that I have problems with comments. Here's the code from the link I mentioned:               \usepackage[utf8]{inputenc}     \DeclareFixedFont{\ttb}{T1}{txtt}{bx}{n}{9} % for bold     \DeclareFixedFont{\ttm}{T1}{txtt}{m}{n}{9}  % for normal     % Defining colors     \usepackage{color}     \definecolor{deepblue}{rgb}{0,0,0.5}     \definecolor{deepred}{rgb}{0.6,0,0}     \definecolor{deepgreen}{rgb}{0,0.5,0}               \usepackage{listings}          % Python style for highlighting     \newcommand\pythonstyle{\lstset{     language=Python,     backgroundcolor=\color{white}     basicstyle=\ttm,     otherkeywords={self},                 keywordstyle=\ttb\color{deepblue},     emph={MyClass,__init__},               emphstyle=\ttb\color{deepred},         stringstyle=\color{deepgreen},     commentstyle=\color{red}     frame=tb,                              showstringspaces=false                 }}          % Python environment     \lstnewenvironment{python}[1][]     {     \pythonstyle     \lstset{#1}     }     {}      I use the following function, `python`, defined in the code, to generate `Python` code:               \begin{python}      class MyClass(Yourclass):         def __init__(self, my, yours):             String = "String"             String2 = '5 1 2 3 4'             print String2             import numpy as np #Comment1             # Comment2     \end{python}      This is the result. I see two `frame` words for each comment. Do you know what can be wrong here? The link that I mentioned works perfectly in every other aspect. Thanks. ![enter image description here](http://i.stack.imgur.com/Evqdh.jpg)


title: Problem with savesym

text: MWE:               \documentclass[12pt,a4paper]{article}          \usepackage{savesym}          \begin{document}     content...     \end{document}      Gets the following error `You have requested package ``savesym',but the package provides ``savesymbol'.` If I look at the sty file it's clear the typo however in CTAN there's no mail to tell the developer.


title: Trouble with Bible Style page header lines

text: I'm attempting to typeset a Bible for my mom and I'm running into a few problems and I was hoping someone here could help. First I'll start with the easy question. I'm currently using two columns and adding a line to separate them in the center like this:               \documentclass[twoside,twocolumn]{book}     \setlength{\columnseprule}{0.5pt}      After I use `\maketitle` it inserts a blank page (since it doesn't want to start new content on a verso page) but the column separation line still shows up. How do I get the `\columnseprule` and `\headrule` to not show up on this blank page? It doesn't occur on any other blank pages in the document. Now the hard question... In the header I want the format to be < Book Name > < Chapter # >:< Verse # > where the Chapter and Verse numbers are the first chapter/verse that appears on the page (even [verso] page) or the last to appear on the page (odd [recto] page). I've almost gotten the odd page style to work but it isn't working quite right and I'm not sure why. I have pictures to show my problem, unfortunately since this is my first time contributing to this website I don't have enough reputation to post pictures. In general it seems to work OK. Most pages are shown correctly but occasionally the verse number displayed will be off by one, either one before or one after it should be. I suspect it has something to do with when LaTex decides to place a page break but I don't know how to account for that. And I don't have the first clue how to start the even (verso) page style. I'm trying to make my code very configurable so it is pretty complicated but I'll try to post the applicable parts here. [If you copy and paste this it wont compile due to the custom commands I've written for everything... sorry.] Descriptions for the main commands are below. Thanks for your help!               \newcommand{\jnumChapters}{0}          \newcommand{\jnumVerses}{0}          \newcommand{\jChapter}[1]{     \ifthenelse{#1=1}{\renewcommand{\jnumChapters}{#1}}     {\renewcommand{\jnumChapters}{#1}\par\bigskip\lettrine{{\textcolor{special}{#1}}}{}}}          \newcommand{\jverse}[3]{\ifthenelse{\boolean{ParaFormat}}     {\ifthenelse{#1=1}     {\noindent\jverseFormat{#1}{#3}}     {#2{\jChapterNumFormat{#1}} {\jverseFormat{#1}{#3}}}}     {\ifthenelse{#1=1}     {\noindent\jverseFormat{#1}{#3}\smallskip\newline}     {\noindent {\jChapterNumFormat{#1}} #2{\jverseFormat{#1}{#3}}\par\smallskip}}\renewcommand{\jnumVerses}{#1}}          \pagestyle{fancy}     \fancyhf{}     \fancyhead[RO]{{\chaplabel} {\jnumChapters}:{\jnumVerses}}      `\jChapter{< Chapter# >}` formats the chapter numbers for each chapter. I format the first chapter number of each book differently than all the others (thus the `\ifthenelse` statement). `\jverse{< Verse# >}{< Paragraph Indicator >}{< Verse Text >}` Formats each verse individually. The Paragraph Indicator just lets me know if that verse needs to start a new paragraph if the text is not going to be formatted in verse-by-verse format. * * * EDIT #1 11:16am EST, 8/24/2013: Thanks Mico, adding `\setlength{\columnseprule}{0pt}` _before_ `\maketitle` worked. I had been trying it afterwords. This is as minimal as I could make it to show in general what I'm attempting to do. Problem is in order to show the page numbering problem I'd have to input about 5 pages of verses and that would make this post even more ridiculously long. I'd be happy to post/email the Genesis.tex file that has all those versus if someone has a suggestion as to where I should post it. My reasoning for making custom commands was to give me the unfettered ability to modify and customize. I could still use `\section` or `\paragraph` by embedding them inside `\jverse` or `\jChapter` but this gives me the option of going other routes. It may be that using the already defined LaTex commands is better and in that case I'll just clean up the code later. Thanks again!               \documentclass[twoside,twocolumn,letterpaper]{book}     \usepackage[usenames,dvipsnames,svgnames,table]{xcolor}     \usepackage{lettrine}     \usepackage{fancyhdr}          \newcommand{\jChapter}[1]{\par\bigskip\lettrine{{\textcolor{red}{#1}}}{}\renewcommand{\jnumChapters}{#1}}          \newcommand{\jverseFormat}[1]{#1}     \newcommand{\jChapterNumFormat}[1]{\textcolor{cyan}{\textbf{#1}}}          \newcommand{\jverse}[3]{\noindent{\jChapterNumFormat{#1}} #2{\jverseFormat{#3}}\par\smallskip\renewcommand{\jnumVerses}{#1}}          \newcommand{\jBracketWord}[1]{\emph{#1}}          \newcommand{\jParaSymbol}[0]{{}}          \raggedright          \setlength{\columnseprule}{0.5pt}          \pagestyle{fancy}     \fancyhf{}     \fancyhead[RO]{{\chaplabel} {\jnumChapters}:{\jnumVerses}}     \renewcommand{\headrulewidth}{0pt}     \setlength{\headwidth}{\textwidth}     \addtolength{\headwidth}{\marginparsep}     \addtolength{\headwidth}{\marginparwidth}          \newcommand{\chaplabel}{}     \newcommand{\jnumChapters}{0}     \newcommand{\jnumVerses}{0}          \begin{document}          \frontmatter          \title{The Holy Bible}     \date{}     \author{}     \setlength{\columnseprule}{0pt}     \maketitle     %\tableofcontents     \mainmatter          \part*{The Old Testament}          \renewcommand{\jnumChapters}{0}     \chapter{Genesis}     \renewcommand{\chaplabel}{Genesis}     \jChapter{1}     \jverse{1}{}{In the beginning God created the heaven and the earth.}     \jverse{2}{}{And the earth was without form, and void; and darkness \jBracketWord{was} upon the face of the deep. And the Spirit of God moved upon the face of the waters.}     %\input{./Genesis.tex}     \end{document}      Now that I have 10 rep I can post a picture. ![Numbers not working, even though last verse ends on page.](http://i.stack.imgur.com/1UC04.jpg)


title: Different languages in headings

text: I am using `babel` with `Greek` and `English` languages. I don't use `XeLaTeX`. I have the following configuration for the header:               \usepackage{fancyhdr}     \renewcommand{\chaptermark}[1]{\markboth{#1}{}}     \renewcommand{\sectionmark}[1]{\markright{#1}}     \pagestyle{fancy}     \fancyhf{}     \fancyhead[LE,RO]{\thepage}     \fancyhead[LO]{\itshape\nouppercase{\rightmark}}     \fancyhead[RE]{\itshape\nouppercase{\leftmark}}     \renewcommand{\headrulewidth}{0.5pt}     \renewcommand{\footrulewidth}{0pt}     \setlength{\headsep}{10pt}      The problem is that I have some title text with both languages and it is not expanding correct in the headers. Example: `\section{\texorpdfstring{Η Συσκευή \eng{Kinect}}{}}` and the result is `H Συσκευή Κινεςτ`               \documentclass[12pt, a4paper]{book}          \usepackage[T1]{fontenc}     \usepackage{ucs}     \usepackage[utf8x]{inputenc}     \usepackage[english, greek]{babel}          %Fonts     \usepackage[version=3]{mhchem}          %Hyper reference     \usepackage[unicode]{hyperref}               %headings     \usepackage{fancyhdr}     \renewcommand{\chaptermark}[1]{\markboth{#1}{}}     \renewcommand{\sectionmark}[1]{\markright{#1}}     \pagestyle{fancy}     \fancyhf{}     \fancyhead[LE,RO]{\thepage}     \fancyhead[LO]{\itshape\nouppercase{\rightmark}}     \fancyhead[RE]{\itshape\nouppercase{\leftmark}}     \renewcommand{\headrulewidth}{0.5pt}     \renewcommand{\footrulewidth}{0pt}     \setlength{\headsep}{10pt}          %Commands     \newcommand{\eng}[1]{\selectlanguage{english}#1\selectlanguage{greek}}     \newcommand{\gre}[1]{\selectlanguage{greek}#1\selectlanguage{english}}          \newcommand{\en}{\selectlanguage{english}}     \newcommand{\gr}{\selectlanguage{greek}}               \begin{document}          \section{\texorpdfstring{Η Συσκευή \eng{Kinect}}{}}     Δοκιμή          \end{document}


title: set tikz options through pgfkeys

text: I'm using `tcolorbox` and using `pgfkeys` to set some of the tikz options. But they do not seem to be working. Consider the MWE given below. If I set draw color using `\pgfkeys{/tikz/.cd, fill=red, draw=green, color=blue}` the color is not set and the overlay has black color, as if no color is set. Neither the `\tikzset` nor the `\pgfkeys` seems to be working. If I set color in `\draw` command, it is working. What's missing ?               \documentclass{book}     \usepackage{tcolorbox}     \usepackage{lipsum}     \usepackage{hyperref}          \tcbuselibrary{breakable}     \tcbuselibrary{skins}     \tcbuselibrary{listings}          \begin{document}     \tikzset{fill=red, draw=brown}     \begin{tcolorbox}[enhanced,       overlay={%         \begin{tcbclipinterior}%           \pgfkeys{/tikz/.cd, fill=red, draw=green, color=blue}           \draw[line width=0.5cm] (interior.north west) -- (interior.south east);%           \draw[line width=0.5cm] (interior.south west) -- (interior.north east);%         \end{tcbclipinterior}%     }]     \lipsum[1]     \end{tcolorbox}          \end{document}


title: Big Space Before and After Enumerate

text: I am typing an enumerated list, and when I compile there is about half a page of space between the list and the text surrounding it. The code:               and $a,b\in\R$.  Then          \begin{enumerate}              \item $\vecv+(\vecw+\vecu)=(\vecv+\vecw)+\vecu$              \item $\vecv+\vecw=\vecw+\vecv$              \item $\zvect+\vecv=\vecv$              \item $\vecv+(-\vecv)=\zvect$              \item $(a+c)\vecv=a\vecv+c\vecv$              \item $a(\vecv+\vecw)=a\vecv+b\vecw$              \item $(ab)\vecv=a(b\vecv)$              \item $1\vecv=\vecv$              \end{enumerate}          We have proven      It happens for every list I type. I am working within a theorem environment, with newtheoremstyle                \newtheoremstyle{mytheorem}      {12pt}      {12pt}      {}      {1.27cm}      {\bf}      {}      {.5em}      {}


title: Hooking into the header/footer mechanism

text: I have a switch I'd like to turn off for the headers and footers but keep on for the main body text. What commands actually tell TeX to write the headers and footers after the body text has been set and how would I add a switch before and after these commands (with `etoolbox` or similar?). What I'm looking for is something like `\AtBeginPrintHeader`. In analogy to `\AtBeginDocument`, or the hooks from `everyhook` which allow you to do something at the beginning of each paragraph, mathmode etc. I know there's `bophook` for doing stuff at the beginning of the page, but I need something that does something between the main body text being written and the headers and footers being written. Patching `\ohead` with `\apptocmd` from `etoolbox` obviously doesn't work because it's not `\ohead` that is called when TeX tries to set a header. `\ohead` sets the relevant internal macros to be what they should so that the header you want is set. So I guess what I want to know is what actually happens when the header is being set: what command should I `\appto` in order to have something happen right before the header is set? Is there such a mechanism? Is it compatible with `scrpage2` and `fancyhdr`? Here's the example. I've used `everyhook` to add input line numbers to each paragraph. Awkwardly, this includes paragraphs in the header and footer.               \documentclass{article}     \usepackage{everyhook,marginnote}     \newif\ifnotmarginhook     \notmarginhooktrue     \PushPostHook{par}{%       \ifnotmarginhook%       \notmarginhookfalse%       {\marginnote{\small\ttfamily\the\inputlineno}}%       \notmarginhooktrue%       \fi%     }     \usepackage{scrpage2}     \pagestyle{scrheadings}     \newcounter{firstline}     \newcommand\nolineno[1]{\notmarginhookfalse #1\notmarginhooktrue}     \ohead{Problem $\to$}     \begin{document}     Some text     \end{document}      So I want to turn `\notmarginhookfalse` for the headers, and then turning it back on before I set more body text... Using `\ohead{\notmarginhookfalse Text}` doesn't seem to work. So is there either a way to hook into the headers or some internal switch so I could do something like `\ifheaders` and modify things that way


title: Why does \nodexn{(1,1)}{A} produce strange N-A.x and N-A.y?

text: \documentclass[preview,border=2cm]{standalone}     \usepackage{pst-tools}     \usepackage{pst-node}     \psset{saveNodeCoors}               \begin{document}     \section*{With pnode}          \begin{pspicture}(3,3)         \pnode(1,1){A}         \rput(0,3){\psPrintValue{N-A.x}}         \rput(0,0){\psPrintValue{N-A.y}}     \end{pspicture}          \section*{With nodexn}          \begin{pspicture}(3,3)         \nodexn{(1,1)}{A}         \rput(0,3){\psPrintValue{N-A.x}}         \rput(0,0){\psPrintValue{N-A.y}}     \end{pspicture}     \end{document}      ![enter image description here](http://i.stack.imgur.com/O1iAT.png) ## Edit I strongly believe by inspection that `\nodexn` does not respect the existence of `saveNodeCoors` so the variable `N-<node_name>.x` and `N-<node_name>.y` are left uninitialized.               \documentclass[preview,border=1cm]{standalone}     \usepackage{pst-tools}     \usepackage{pst-node}     \psset{saveNodeCoors}               \begin{document}     \psLoop{5}{%     \begin{pspicture}(3,3)         \pnode(1,1){A}         \rput(0,2){\psPrintValue{N-A.x}}         \rput(0,1){\psPrintValue{N-A.y}}         %         \nodexn{(1,1)}{B}         \rput(2,2){\psPrintValue{N-B.x}}         \rput(2,1){\psPrintValue{N-B.y}}     \end{pspicture}     \qquad}     \end{document}      ![enter image description here](http://i.stack.imgur.com/tXJJM.png)


title: Gnuplot - Reduce the space between graph and axis label

text: I'm using the minipage package to position two graphs, generated by gnuplot, side-by-side. I use the epslatex terminal. The graphs are rather small, and I'd like to increase their size by reducing the gap between each graph and its (vertical) y-axis label. How can I do this?


title: fonts (class, styles) for new academic journal

text: I am involved with starting a new academic economics and finance journal. Thus, the world is our oyster---we can choose whatever looks we want to choose. Since I have a role, LaTeX is going to be our typesetting system. Now, I want my authors to be able to install the latest TexLive and be able to format the article themselves, although we will do this for many of them. This means that I do not want any fonts or other required inputs that are proprietary, and that require anything unusual. It should work out of the box. For fonts, I need a full complement of math with the text. `cmr` is out. Even though it is now scalable, it just has acquired too much of a "texy working paper" look at this point. I am thinking `mathptmx`. I also like the idea of sticking to one font for headings and text, if only because this won't create a garish amateurish look, and I can see myself committing a _faux pas_ if I had to mix fonts. TUG `lucida` is out, not because it requires a purchase, but because it requires an installation. Would the TeX Gyre fonts offer some good suitable alternative to `mathptmx`? Again, I need something fairly complete. What is considered to be the most sane BiBTeX `bst` format? (we use `harvard.sty` in economics.) The publisher itself is a small boutique. They use a style file obvious in http://www.qjps.com/prod.aspx?product=QJPS&vol=1&nr=1. Any critiques of this style would be welcome, too. Any other recommendations are appreciated, too. (yes, I did an extensive search of this forum before I posted and read a couple of related posts.)


title: Animation in beamer stopping at the end?

text: I'm working on a beamer presentation where I have many animations to show. I have `*.avi` videos and I'm using the `multimedia` package:               \movie[height=XXpt,width=XX,poster]{\includegraphics[height=XXpt,width=XXpt]{image.png}}{video.avi}      with this command I get the image on the slide, and after clicking it the video starts. Once finished playing, on the slide reappers the initial image. My question is: is there a way to make the video stop on its last frame? Or to put the last frame as an image that will appear automatically at the end of the video? I tried to use the 'open' option, and it works, but then I have to click elsewhere to go on with the slides and the presentation.. can I avoid this? Thanks!


title: marginnote vertical alignment

text: I've run into a problem using the marginnote package; the vertical position changes if the note is wider than the margin. An MWE:               \documentclass{article}     \usepackage{lipsum,marginnote}     \setlength{\marginparwidth}{0.5in}     \begin{document}          \leavevmode%     \marginnote{Overlong}%     \lipsum[1]          \leavevmode%     \marginnote{Not Overlong}%     \lipsum[1]          \end{document}      The first note, wider than the margin, is set about half a line lower than the second. Using vanilla `\marginpar` instead sets both margin notes at the correct vertical position. How can I get the vertical position to be set consistently using `\marginnote`? At this point, I'm using `\parbox`es, but then I lose the left/right justification.


title: Mathematica equations to LaTeX but equation is too long, how to split it?

text: I am new user of LaTeX. I have a problem of splitting long equation which I generate by Mathematica. I tried to use `\\`, `multiline`, and `split` commands but it gives error. Is there way to export equation from Mathematica written in `multiline` because the equation is too long? My equation is               \[\left(\text{xg} \text{Cos}\left[\alpha _2+\theta _1\right]+(g+\text{yg}) \text{Sin}\left[\alpha _2+\theta _1\right]\right) m_2 R_2+\left(\text{Cos}\left[\alpha     _c+\theta _1\right] \text{Cos}\left[\theta _1+\omega _c\right] d_c k_d+\left(\text{xg} \text{Cos}\left[\alpha _c+\theta _1\right]+(g+\text{yg}) \text{Sin}\left[\alpha     _c+\theta _1\right]\right) m_d-\text{Cos}\left[\alpha _c+\theta _1\right] \text{Sin}\left[\alpha _1\right] k_d R_1\right) R_c<\left(d \text{Cos}\left[\omega     -\alpha _2\right] m_2 R_2+\text{Cos}\left[\alpha _c-\omega _c\right] d_c m_d R_c\right) \left(\theta _1'\right){}^2+\left(\text{IG2}+d \text{Sin}\left[\omega     -\alpha _2\right] m_2 R_2-\text{Sin}\left[\alpha _c-\omega _c\right] d_c m_d R_c\right) \theta _1''\]


title: Wrong vertical spaces using bibentry within beamer

text: I would like to give some references using the `bibentry` package in a beamer presentation. But sometimes, e.g. if the list of authors spans over multiple lines, there is a wrong vertical space in the output (see Image below). Is there a way to adjust the wrong spacing? ![enter image description here](http://i.stack.imgur.com/iHlWd.png) Here the corresponding MWE:               \documentclass{beamer}          \usepackage{filecontents}         \begin{filecontents}{\jobname.bib}          @article{RefA,              author  = {AFirstName ALastName},              title   = {Title A},              journal = {Journal A},              volume  = {1},             pages   = {345--678},             year    = {9999},          }          @article{RefB,              author  = {BFirstName BLastName},              title   = {Title B},              journal = {Journal B},              volume  = {1},             pages   = {345--678},             year    = {9999},          }          @article{Problem,              author  = {ProblemFirstName ProblemLastName and NoSolutionFirstName NoSolutionLastName},              title   = {Title Problem},              journal = {Journal Problem},              volume  = {1},             pages   = {345--678},             year    = {9999},          }       \end{filecontents}          \usepackage{bibentry}     \nobibliography*          \begin{document}          \begin{frame}         \frametitle{Bibentry -- Spacing Problem}         \begin{itemize}             \item \bibentry{RefA}             \item \bibentry{RefB}             \item \bibentry{Problem}         \end{itemize}     \end{frame}          \begin{frame}         \frametitle{Bibliography -- No Problem}         \bibliographystyle{plain}         \bibliography{\jobname.bib}     \end{frame}          \end{document}


title: © not handle correctly by a verbatim

text: Is there a reason why the following verbatim section doesn't work as expected:               \begin{verbatim}     © copyright blahblah .....     \end{verbatim}      In fact I get: **Âl’ copyright blah blah** Instead of the nice **©**. I will use the **(c)** notation, but anyway if you have a better solution, it will be welcome. * * * Full MWE demonstrating problem:               \documentclass{article}     \usepackage[T1]{fontenc}     \begin{document}     \begin{verbatim}     © copyright blahblah .....     \end{verbatim}     \end{document}


title: NatBib plainnat with [round]: Get printed indirect citation look like citation

text: I have to use `natbib` (`\usepackage[round]{natbib}`) with `plainnat` style, because it is for lecture notes. (So I can't solve the following problem by using numeric or superscript options) When I have a direct citation, I use a footnote and cite there with `\citet`, but when I have an indirect citation, you only have a green box around author and year at the pdf, but at the printed pdf one doesn't recognize an indirect citation at first. e.g.: `\citet{Cortes}` had this idea:....   or: `\begin{theorem}[Vapnik (1982), \citet{Hush/Scovel}]` The reader (of the printed version) will not know that `Hush/Scovel` is actually a reference. (With numeric/superscript it would be obvious.) Thank you for your help in advance!


title: Adjust column width of a table

text: I am working on it:               \documentclass{article}     \newcommand\htext[1]{\texttt{0x\MakeLowercase{#1}}}          \begin{document}     \begin{table}[h]     \centering     \begin{tabular}{|l|l|l|l|l|l|l|}     \hline     \htext{FFFFFFFFFFFFFFFFF} & \htext{FFFFFFFFFFFFFFFFF} & \htext{FFFFFFFFFFFFFFFFF} &  &  &  &  \\      \hline     \end{tabular}     \end{table}     \end{document}      The empty 4 columns will have something very similar. Now, notice that, an `Overfull \hbox` error occurs. How can I adjust width of each column so that each `\htext{...}` entry is split in to more than one lines (I don't want to reduce font size)? Something like setting `p{2in}` did not help (as it just created one cell entry overlapping with other).


title: Problem with using tikzpicture command in latex zooming the portion

text: I am using windows MiKTeX compiler to run my latex files. I am trying to zoom and display the zoomed portion as `fig:b`, and the original image as `fig:a`. I am getting an error below:               ! Package pgfkeys Error: I do not know the key '/tikz/zoomboxarray' and I am go     ing to ignore it. Perhaps you misspelled it.          See the pgfkeys package documentation for explanation.     Type  H <return>  for immediate help.      for the code which i am testing below:               \documentclass{article}               \usepackage{graphics,graphicx}     \usepackage{tikz}     \usetikzlibrary{spy}          \begin{document}               \begin{figure}[ht]     \centering     \begin{tikzpicture}[     zoomboxarray,     zoomboxarray columns=1,         zoomboxarray rows=1,         connect zoomboxes,         zoombox paths/.append style={ultra thin, red} % line width=3pt     ]          \node [node image] { \includegraphics[scale=0.4]{disparity1} };     \zoombox[magnification=2]{0.5,0.5}          \end{tikzpicture}     \end{figure}          \end{document}      I have tried the code below:               \begin{tikzpicture}[spy using outlines={red,magnification=5,size=3cm, connect spies}] % circle          \node{ \includegraphics[scale=0.4]{disparity1} };     \spy on (-4,0) in node at (-4,5);     \spy on (4,0) in node at (3,5);          \end{tikzpicture}      But, its not giving the desired results.