title: Geometry package causes LaTeX to raise strange error

text: I'm trying to submit my PhD thesis and everything is OK but the page layout. When I try to use `geometry` package by issuing               \usepackage[top=3cm, bottom=3cm, left=3.5cm, right=2.5cm]{geometry}      but it raises an error like:               ! You can't use `the character 1' after \the.      several times.               % this is the main file, consisting of definitions.     \documentclass[12pt,titlepage,a4paper]{report}     % IMPORTANT: With the very beginnig of the document, we begin numbering with   'romans'.     % We end it in the beginning of chapter-1 beginning to 'arabic' numbering'     \pagenumbering{roman} % Roman,roman,arabic,alph,Alph .     \renewcommand{\baselinestretch}{1.5} % 1.5 line space     \setcounter{secnumdepth}{5} % Change default depth of report class for heading  numbering          \usepackage[top=3cm, bottom=3cm, left=3.5cm, right=2.5cm]{geometry} % page layout     \usepackage{fancyhdr}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{mathptmx} % For enabling Times New Roman     \usepackage[turkish]{babel}     \usepackage{amsmath, amsfonts, amssymb} % AMS stuff     \usepackage[dvips]{graphicx}     \usepackage[all]{xy}      \usepackage{lscape}     \usepackage{longtable} % For long tables     \usepackage{tabularx} % and tabular environments     \usepackage{tabulary} % ... and same here.     \usepackage{apacite}     \usepackage{url}     \usepackage{verbatim}     \usepackage{textcomp}     \usepackage{titlesec} % For chapter, section ad subsection titles     %\usepackage{algorithm} % for enabling floating environment for algortihms     %\usepackage[noend]{algpseudocode} % For typesetting algortihms with 'algorithmicx' package      \usepackage[turkish]{algorithm2e} % For typesetting algorithms with 'algorithm2e' package     \usepackage{listings} % For source code listings     \usepackage{tocloft,titletoc, lipsum, etoolbox} % AU SOSBE standartlarında TOC üretmek için.     \makeindex          \pagestyle{fancy}%     \renewcommand{\headheight}{14.5pt}     \renewcommand{\headrulewidth}{0pt} % No header rule     \renewcommand{\footrulewidth}{0pt} % No footer rule     \fancyhead{} % Clear all header fields     %\fancyhead[RO,R]{\thepage} % Page number on right in header     \fancyfoot{} % Clear all footer fields     \fancyfoot[RO,R]{\thepage} % Page number on right in footer                    %%%%%%%% KUME FONTLARI %%%%%%%%%%%%     % Define mathematical set fonts.     \let\mathnumsetfont\mathbb     \newcommand\Nset{\mathnumsetfont N} % set of positive integer numbers     \newcommand\Zset{\mathnumsetfont Z} % set of integer numbers     \newcommand\Qset{\mathnumsetfont Q} % set of rational numbers     \newcommand\Rset{\mathnumsetfont R} % set of real numbers     \newcommand\Cset{\mathnumsetfont C} % set of complex numbers     \newcommand\Hset{\mathnumsetfont H} % set of quaternions               %%%%%%% ANADOLU SOSBE BASLIK AYARLARI %%%%%%     % \titleformat{\chapter}     % {\centering\normalfont\huge\bfseries}     % {\chaptertitlename\: \thechapter.}{20pt}{\Huge}          \titleformat{\chapter}[block]     {\centering\normalfont\sffamily}     {\thechapter.}{12pt}{\bfseries}          \titleformat{\section}[block]     {\raggedright\normalfont\sffamily}     {\thesection.}{12pt}{\bfseries}          \titleformat{\subsection}[block]     {\raggedright\normalfont\sffamily\normalfont}     {\hspace{1cm}\thesubsection.}{12pt}{\bfseries}          \titleformat{\subsubsection}[block]     {\raggedright\normalfont\sffamily\normalfont\it}     {\hspace{2cm}\thesubsubsection.}{12pt}{\bfseries}          % Builtin Title Page     % \title{}     % \author{}          \renewcommand\cfttoctitlefont{\hfill\normalsize\bfseries}     \renewcommand\cftaftertoctitle{\hfill\null\\\null\hfill       \textbf{\underline{Sayfa}}}          \renewcommand\cftlottitlefont{\hfill\normalsize\bfseries}     \renewcommand\cftafterlottitle{\hfill\null\\\null\hfill    \textbf{\underline{Sayfa}}}          \renewcommand\cftloftitlefont{\hfill\normalsize\bfseries}     \renewcommand\cftafterloftitle{\hfill\null\\\null\hfill\textbf{\underline{Sayfa}}}          \begin{document}          \makeatletter     \patchcmd{\@dottedtocline}{\leavevmode}{\leavevmode\bfseries\boldmath}{}{}     \patchcmd{\@dottedtocline}{\normalfont}{\normalfont\bfseries\boldmath}{}{}     \patchcmd{\l@part}{\bfseries}{\bfseries\boldmath}{}{}     \patchcmd{\l@chapter}{\bfseries}{\bfseries\boldmath}{}{}% report/book     %\patchcmd{\l@section}{\bfseries}{\bfseries\boldmath}{}{}% article     \patchcmd{\@part}{\bfseries}{\bfseries\boldmath}{}{}     \patchcmd{\@spart}{\bfseries}{\bfseries\boldmath}{}{}     \patchcmd{\@makechapterhead}{\bfseries}{\bfseries\boldmath}{}{}% report/book     \patchcmd{\@makeschapterhead}{\bfseries}{\bfseries\boldmath}{}{}% % report/book     \patchcmd{\section}{\bfseries}{\bfseries\boldmath}{}{}     \patchcmd{\subsection}{\bfseries}{\bfseries\boldmath}{}{}     \patchcmd{\subsubsection}{\bfseries}{\bfseries\boldmath}{}{}     \patchcmd{\paragraph}{\bfseries}{\bfseries\boldmath}{}{}     \patchcmd{\subparagraph}{\bfseries}{\bfseries\boldmath}{}{}     \makeatother          \addtocontents{toc}{\protect\thispagestyle{fancy}} % Protect fancy style in TOC     \addtocontents{lot}{\protect\thispagestyle{fancy}} % Protect fancy style in LOT     \addtocontents{lof}{\protect\thispagestyle{fancy}} % Protect fancy style in LOF          \tableofcontents\thispagestyle{fancy} % Create TOC     \newpage\listoftables\addcontentsline{toc}{chapter}{Tablolar Listesi}\thispagestyle{fancy} % Create LOT     \newpage\listoffigures\addcontentsline{toc}{chapter}{Şekiller Listesi}\thispagestyle{fancy} % Create LOF               % include chapters into document     \chapter{INTRODUCTION}\thispagestyle{fancy}     \pagenumbering{arabic} % This should be put just once, to the point     % where you desire the document to be numbered with Arabic numbers.          \par The problem is not with \LaTeX but with dinosaurs and Word jerks.      The problem is not with \LaTeX but with dinosaurs and Word jerks.     The problem is not with \LaTeX but with dinosaurs and Word jerks.      The problem is not with \LaTeX but with dinosaurs and Word jerks.     The problem is not with \LaTeX but with dinosaurs and Word jerks.      The problem is not with \LaTeX but with dinosaurs and Word jerks.               \section{Writing a PhD Thesis Should Not A Big Deal Indeed}     \par The problem is not with \LaTeX but with dinosaurs and Word jerks.      The problem is not with \LaTeX but with dinosaurs and Word jerks.     The problem is not with \LaTeX but with dinosaurs and Word jerks.      The problem is not with \LaTeX but with dinosaurs and Word jerks.     The problem is not with \LaTeX but with dinosaurs and Word jerks.      The problem is not with \LaTeX but with dinosaurs and Word jerks.          \subsection{It is at least harder than writing a MSc thesis}     \par \par The problem is not with \LaTeX but with dinosaurs and Word jerks.      The problem is not with \LaTeX but with dinosaurs and Word jerks.     The problem is not with \LaTeX but with dinosaurs and Word jerks.      The problem is not with \LaTeX but with dinosaurs and Word jerks.     The problem is not with \LaTeX but with dinosaurs and Word jerks.      The problem is not with \LaTeX but with dinosaurs and Word jerks.          \section{One More Section}          \par \par The problem is not with \LaTeX but with dinosaurs and Word jerks.      The problem is not with \LaTeX but with dinosaurs and Word jerks.     The problem is not with \LaTeX but with dinosaurs and Word jerks.      The problem is not with \LaTeX but with dinosaurs and Word jerks.     The problem is not with \LaTeX but with dinosaurs and Word jerks.      The problem is not with \LaTeX but with dinosaurs and Word jerks.          \chapter{THE EXPECTED SECOND CHAPTER}\thispagestyle{fancy}     \pagenumbering{arabic} % This should be put just once, to the point     % where you desire the document to be numbered with Arabic numbers.          \par The problem is not with \LaTeX but with dinosaurs and Word jerks.      The problem is not with \LaTeX but with dinosaurs and Word jerks.     The problem is not with \LaTeX but with dinosaurs and Word jerks.      The problem is not with \LaTeX but with dinosaurs and Word jerks.     The problem is not with \LaTeX but with dinosaurs and Word jerks.      The problem is not with \LaTeX but with dinosaurs and Word jerks.               \section{Writing a PhD Thesis Should Not A Big Deal Indeed}     \par The problem is not with \LaTeX but with dinosaurs and Word jerks.      The problem is not with \LaTeX but with dinosaurs and Word jerks.     The problem is not with \LaTeX but with dinosaurs and Word jerks.      The problem is not with \LaTeX but with dinosaurs and Word jerks.     The problem is not with \LaTeX but with dinosaurs and Word jerks.      The problem is not with \LaTeX but with dinosaurs and Word jerks.          \subsection{It is at least harder than writing a MSc thesis}     \par \par The problem is not with \LaTeX but with dinosaurs and Word jerks.      The problem is not with \LaTeX but with dinosaurs and Word jerks.     The problem is not with \LaTeX but with dinosaurs and Word jerks.      The problem is not with \LaTeX but with dinosaurs and Word jerks.     The problem is not with \LaTeX but with dinosaurs and Word jerks.      The problem is not with \LaTeX but with dinosaurs and Word jerks.          \section{One More Section}          \par \par The problem is not with \LaTeX but with dinosaurs and Word jerks.      The problem is not with \LaTeX but with dinosaurs and Word jerks.     The problem is not with \LaTeX but with dinosaurs and Word jerks.      The problem is not with \LaTeX but with dinosaurs and Word jerks.     The problem is not with \LaTeX but with dinosaurs and Word jerks.      The problem is not with \LaTeX but with dinosaurs and Word jerks.          \end{document}


title: I made a `box' float environment, and now I would like to put the caption inside the box

text: I made a box float using the following:               \usepackage{float}     \newfloat{Box}{t}{bx}[chapter]      and               \begin{Box}[htp]       \label{box:test}       \fcolorbox{black}{boxgray}{\parbox[c]{\textwidth}{The text goes here}}     \end{Box}      I would like to have the label, i.e. 'Box 1' appear inside the box in the first row of text. Does anyone have an idea of how to implement this? A basic version of the file I am using:               \documentclass[11pt]{article}          \usepackage{color}               \definecolor{boxgray}{RGB}{215,215,215}     \usepackage{hyperref}          \usepackage{float}     \newfloat{Box}{t}{bx}[section]               \begin{document}               \section{example}          Something about \ref{box:test}.          \begin{Box}[htp]       \label{box:test}       \fcolorbox{black}{boxgray}{\parbox[c]{\textwidth}{The text goes here}}     \end{Box}               \end{document}


title: Using index information to generate cross references

text: The idea is to use the index information to automatically generate cross references. If an index entry refers to more than 1 page (e.g., "Smith, John 5, 9"), then the index entry along with the other page numbers should show up in the margin at the place where I make the index entry ( _i.e._ , following the above example, on page 5 in the margin appears "Smith, John 9"). Is it possible to change the `showidx` package accordingly? In addition, the solution should be compatible with `hyperref` and the fact that I'm using `twosided` but the bigger margin is always on the right (I'm using `tufte-latex`). Thanks for any hints. And here my try of an MWE (not sure whether that helps):               %\documentclass[twoside]{tufte-book}     \documentclass{book}     \usepackage{makeidx,showidx,lipsum}     \makeindex     \begin{document}     John Smith\index{Smith, John}     \lipsum     John Smith\index{Smith, John}     \lipsum     \printindex     \end{document}


title: \(\(f(x)\)\) double \('s problem

text: Here is one problem I encountered with in Converting Mathematica Notebook to TeX:   http://mathematica.stackexchange.com/questions/25928/save-as-tex-fx-double-s- problem And I got some double `\\(`'s               \(\(f(x)\)\)      Is this a problem of Mathematica? I do not know where else would generate some similar `\\(`s And, if I cannot control Mathematica to generate single `\\(`, how to change the `\\(\\(` to `\\(` conveniently ? I sometimes use Find/Replace to remove that redundant `\\(` in WinEdt ![enter image description here](http://i.stack.imgur.com/PFKE8.png)


title: List across multiple rows of a table

text: Is it at all possible to create a table that contains a list that spans across multiple rows. That is the numbering must continue from row 1 to row 2 etc. My use case is that I have a table in a report that contain a single list of items. I wish to refer to these items in other parts of the report and I am constantly updating the table/list with new items. The image below shows part of the table that I would like to create. Notice that the numbered items 21, 22 etc are in different cells of the table. When I insert an item between 21 and 22 I would like all the numbering to be updated. ![An example of what I am aiming for](http://i.stack.imgur.com/Lxdf7.png)


title: Draft mode for pgfplots

text: I'm working on a fairly big document that has a lot of graphs of functions- so far it has around 200, by the end it will have around 1500. I use `pgfplots` for each graphic, and the functions are pretty basic: exponential, rational, polynomial, and trigonometric. Once I am happy with each graph, I don't necessarily need to see it every time I compile, and would like to minimize compilation time for future drafts. Naturally, the document is already chopped up into chapter files, but each chapter contains around 100 figures. Having studied the `pgfplots` documentation, _I haven't found a`draft` mode, but I'm interested in knowing if one could be created_. I'm envisaging something similar to the `draft` mode of the `graphicx` package, in which graphics are not included, and blank boxes are put in their place. Some things I've considered:   * the `standalone` `documentclass`; but with about 1500 figures, wouldn't this mean over-modulization?    * `tikzexternalize`, but this still requires an initial 'monster' compilation to get the images externalized before the `draft` option could be invoked Here's a MWE to play with               \documentclass{article}     \usepackage{pgfplots}          \begin{document}          \begin{tikzpicture}         \begin{axis}             \addplot {x^2};         \end{axis}     \end{tikzpicture}          \end{document}


title: Load Graphics as Empty Boxes for Positioning and Quick Compiling

text: Is there a package that loads all images (tikz, pgfplots, images, etc.) only as empty boxes? This would greatly speed up compilation of documents when making edits to the content and layout when the positioning of positioning is needed, but the adjusting of the actual graphical content is not.


title: Error in displaying appendices

text: I'm having a problem when writing appendices for my thesis. This is the general structure:               \documentclass[11pt,a4paper,titlepage]{report}       \usepackage[T1]{fontenc}       \usepackage[latin9]{inputenc}       \usepackage{amsmath}       \usepackage{amsfonts}       \usepackage{amssymb}       \usepackage{graphicx}            \begin{document}       \chapter{Chap 1}       ...       \appendix       \chapter*{Appendix A}       \addcontentsline{toc}{chapter}{Appendix A}       \section{Section 1}       ...        \chapter*{Appendix B}       \addcontentsline{toc}{chapter}{Appendix B}       \section{Section 1}       ...       \end{document}        For some reasons, all the sections in the two appendices are displayed like this: ".1" instead of "A.1" or "B.1". And the first section in Appendix B is numbered continuously from Appendix A (For example I have 3 sections in Appendix A. The first section in Appendix B is numbered as ".4"???) Thank a lot for any suggestions to solve this problem!


title: Is microtype compatible (and effective) with a font like Calibri?

text: Is microtype compatible (and effective) with a font like Calibri ? _For details on microtype, see alsohere and here._ * * * **Edit**   * With " **compatible** " I mean **error-message-free**.   * With " **effective** " I mean that one would see a markedly positive difference when using `microtype`: that it **just looks** a lot **better**!


title: fmex8.pfb in MacTex

text: Recently, I have installed MacTex. Then, even if I try to run the following simple code               \documentclass{article}     \usepackage{amsmath}     \begin{document} Test: $e^{\sum{x}}$ \end{document}      the logs show:               !pdfTeX error: pdflatex (file fmex8.pfb): cannot open Type 1 font file for reading      A similar question can be found here. However, I am using texshop in a macbook. Does anybody know a solution?


title: change spacedallcaps and spacedlowsmallcaps to something like spacedsmallcaps (classicthesis)

text: Instead of `\spacedallcaps` and `\spacedlowsmallcaps` would like to have big and small capitals (like `\scshape`) but keep the definitions for space between the letters, size, colour, ... With `\DeclareRobustCommand{\spacedlowsmallcaps}[1]{\scshape #1}` I change everything.               \documentclass[twoside,openright,titlepage,numbers=noenddot,headinclude,         footinclude=true,cleardoublepage=empty,         BCOR=5mm,paper=a4,fontsize=10pt]{scrbook}     \usepackage{lipsum}          \usepackage[parts,beramono,eulerchapternumbers,%     listings,manychapters,%     floatperchapter]{classicthesis}      % \DeclareRobustCommand{\spacedlowsmallcaps}[1]{\scshape #1}     % \DeclareRobustCommand{\spacedallcaps}[1]{\scshape #1}          \begin{document}     \tableofcontents     \pagestyle{scrheadings}     \part{Introduction}     \chapter{First chapter}     \section{First section}     \lipsum[1-18]     \section{Second section}     \lipsum[1-12]     \end{document}


title: Tikz: Problem using "of" on subsequent Beamer frames

text: Compiling this MWE yields the desired result: a beamer frame with two nodes positioned relative to each other.               \documentclass[mathserif]{beamer}     \usepackage{pgfplots}     \begin{document}          \begin{frame}     \begin{figure}[t]     \begin{tikzpicture}[node distance=5mm and 5mm]     \usetikzlibrary{positioning}     \node (inc) [label=above:Incumbent] {};     \node (ent)   [below left=25mm of inc,label=left:Entrant] {};     \end{tikzpicture}     \end{figure}     \end{frame}          \end{document}      The following code, which includes a second copy of _exactly the same frame_ , however, causes PDFLaTeX to throw up the error `! Package PGF Math Error: Unknown operator`o' or `of' (in '25mm of inc').`               \documentclass[mathserif]{beamer}     \usepackage{pgfplots}     \begin{document}          \begin{frame}     \begin{figure}[t]     \begin{tikzpicture}[node distance=5mm and 5mm]     \usetikzlibrary{positioning}     \node (inc) [label=above:Incumbent] {};     \node (ent)   [below left=25mm of inc,label=left:Entrant] {};     \end{tikzpicture}     \end{figure}     \end{frame}          \begin{frame}     \begin{figure}[t]     \begin{tikzpicture}[node distance=5mm and 5mm]     \usetikzlibrary{positioning}     \node (inc) [label=above:Incumbent] {};     \node (ent)   [below left=25mm of inc,label=left:Entrant] {};     \end{tikzpicture}     \end{figure}     \end{frame}          \end{document}      Does anyone know why this happens, and how I can have multiple slides using the `of` positioning command in my presentation?


title: Increasing depth of document

text: I am trying to type by using `amsart`. I want numbering of the definitions, lemma theorem etc should be of the form x.y.z, where x is section, y subsection and z the actual number of the theorem. I ave used `\setcounter{secnumdepth}{4}` but it does not seem to be working. (Moreover I do not want any table of contents). Please help.


title: ToC, article class, adding a dot next to the number of section

text: Similar to this question I would like to add a dot after the _section_ -numbers in my table of content. However I am using the _article_ class for which the solution mentioned in the link does not work. Is there a workaround for this scenario?


title: Replace (change) “Chapter 1” to “Chapter ONE” without affecting lof and lot

text: I used the answer given here Replace (change) "Chapter 1" to "Chapter ONE" but it only should be in case without a following list of tables (lot) or figures (lof). When used as it is, the following lot and lof also replace the chapter number with a word as shown: ![enter image description here](http://i.stack.imgur.com/dDIDn.png) ![enter image description here](http://i.stack.imgur.com/CIVvq.png) What should be changed to prevent this?


title: Old Style Fonts not applied to whole document

text: The old style font is not applied to the whole document. Whats the issue there? The MWE:               \documentclass{article}     \usepackage{siunitx}     \usepackage[osf]{libertine}     \begin{document}     92\si{\percent}\par     $84^\star$     \end{document}       ![enter image description here](http://i.stack.imgur.com/VXAG0.png)


title: Automatic table width doesn't work anymore

text: I got an odd problem since yesterday. I'm writing my thesis with Lyx. I'm using a template based on the KOMA-Script. Well, yesterday I've deleted a number of tables from my document. After compiling again, I've received following error message:               LaTeX Error: Something's wrong--perhaps a missing \item.      The error occurs on a row of consecutive tables, which are positioned directly after the deleted tables. Before that, they worked without any problems. I'm using the `tabularx` package for the tables. The tables are defined like the following code:               \makeatletter     \def\MPT{\@minipagetrue}     \makeatother     \begin{tabularx}{\textwidth}{|>{\columncolor{Gray}}lX|}      \hline % oberste Linie, vor erster Spalte     \rowcolor{Gray}     \textbf{Blabla} & \textbf{} \\ \hline \hline     IST-Zustand     &      \vspace{-1\topsep}     \begin{list}{$\bullet$}{\setlength{\itemsep}{0pt}\setlength{\parsep}{0pt}\setlength{\leftmargin}{4mm}\setlength{\topsep}{0mm}}      \MPT     \item blaaa     \end{list}     \vspace{-1\topsep} ~     \\ \hline     \caption{blabla}     \end{tabularx}      After a long time of trying I found out, that when I replace the columns which are defined with `X`, by a fix column width like `p{...cm}`, it suddenly works again. Is this somehow explainable without any working example (I could hand one in later)? Edit: Here's the preambel of my document:               % verschieden Symbole, Zeichen wie (c), €     \usepackage{textcomp}               \usepackage{ %a4wide,                 ellipsis, fixltx2e, mparhack,   %Fehlerkorrektur für Marginalien                 booktabs, longtable             %schönere Tabellen     }            \usepackage[automark]{scrpage2}     %\automark[chapter]{chapter}     \clearscrheadfoot     \ohead{\\\headmark}     \ihead{\includegraphics[scale=0.25]{pics/logo_schwarz.pdf}}%\pagemark}     \ofoot[\pagemark]{\pagemark}               %Kurzfassung und Abstract (englisch) auf eine Seite     \renewenvironment{abstract}{         \@beginparpenalty\@lowpenalty           \begin{center}             \normalfont\sectfont\nobreak\abstractname             \@endparpenalty\@M           \end{center}     }{         \par     }                    % schönerer Blocksatz!!     \usepackage{microtype}          \usepackage{ifpdf} % part of the hyperref bundle     \ifpdf % if pdflatex is used          %set fonts for nicer pdf view      \IfFileExists{lmodern.sty}{\usepackage{lmodern}}       {\usepackage[scaled=0.92]{helvet}         \usepackage{mathptmx}         \usepackage{courier} }     \fi           % the pages of the TOC are numbered roman      % and a pdf-bookmark for the TOC is added      \pagenumbering{roman}      \let\myTOC\tableofcontents      \renewcommand\tableofcontents{        %\pdfbookmark[1]{Contents}{}        \myTOC        \clearpage        \pagenumbering{arabic}}          %Bezeichungen anpassen     %Babelpaket muß zuvor geladen werden     \usepackage[ngerman]{babel}     \addto\captionsngerman{      \renewcommand{\figurename}{Abb.}%      \renewcommand{\tablename}{Tab.}%      \renewcommand{\abstractname}{Kurzfassung}     %\renewcommand{\nomname}{Abkürzungen}     }          % Alle Querverweise und URLs als Link darstellen     % In der PDF-Ausgabe      \usepackage[colorlinks=true, bookmarks, bookmarksnumbered, bookmarksopen, bookmarksopenlevel=1,       linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,       pdfpagelayout=OneColumn, pdfnewwindow=true,       pdfstartview=XYZ, plainpages=false, pdfpagelabels,       pdfauthor={LyX Team}, pdftex,       pdftitle={LyX's Figure, Table, Floats, Notes, and Boxes manual},       pdfsubject={LyX-documentation about figures, tables, floats, notes, and boxes},       pdfkeywords={LyX, Tables, Figures, Floats, Boxes, Notes}]{hyperref}          %mehr Platz zwischen Überschrift und Tabelle     \newcommand{\@ldtable}{}     \let\@ldtable\table     \renewcommand{\table}{ %                      \setlength{\@tempdima}{\abovecaptionskip} %                      \setlength{\abovecaptionskip}{\belowcaptionskip} %                      \setlength{\belowcaptionskip}{\@tempdima} %                      \@ldtable}          %Farbigen Hintergrund erstellen     \usepackage{color, colortbl}     \definecolor{Gray}{gray}{0.9}                    %Tabularx package     \usepackage{ltablex}     \usepackage{multirow, rotating, array, paralist}     \usepackage{caption}          %damit URLs als solche erkannt werden     \usepackage{url}     \usepackage{wrapfig} %damit grafiken umflossen werden     \usepackage{scrhack}     \usepackage{hyperref}      @Marco Daniel: Here's the log file: ...               Package caption Info: KOMA-Script document class.     \c@ContinuedFloat=\count114     Package caption Info: hyperref package is loaded.     Package caption Info: longtable package is loaded.     ("C:\Program Files\MiKTeX 2.9\tex\latex\caption\ltcaption.sty"     Package: ltcaption 2013/02/03 v1.3-62 longtable captions (AR)     )     Package caption Info: rotating package is loaded.     ) ("C:\Program Files\MiKTeX 2.9\tex\latex\wrapfig\wrapfig.sty"     \wrapoverhang=\dimen140     \WF@size=\dimen141     \c@WF@wrappedlines=\count115     \WF@box=\box32     \WF@everypar=\toks24     Package: wrapfig 2003/01/31  v 3.6     ) ("C:\Program Files\MiKTeX 2.9\tex\latex\koma-script\scrhack.sty"     Package: scrhack 2012/07/29 v3.11b KOMA-Script package (hacking other packages)          Package scrhack Info: hyperref hack deactivated because of     (scrhack)             detection of hyperref version, that doesn't     (scrhack)             need that hack, on input line 131.     )     No file Neues_Dokument1.aux.     LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 116.     LaTeX Font Info:    ... okay on input line 116.     LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 116.     LaTeX Font Info:    ... okay on input line 116.     LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 116.     LaTeX Font Info:    ... okay on input line 116.     LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 116.     LaTeX Font Info:    ... okay on input line 116.     LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 116.     LaTeX Font Info:    ... okay on input line 116.     LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 116.     LaTeX Font Info:    ... okay on input line 116.     LaTeX Font Info:    Checking defaults for TS1/cmr/m/n on input line 116.     LaTeX Font Info:    Try loading font information for TS1+cmr on input line 116.          ("C:\Program Files\MiKTeX 2.9\tex\latex\base\ts1cmr.fd"     File: ts1cmr.fd 1999/05/25 v2.5h Standard LaTeX font definitions     )     LaTeX Font Info:    ... okay on input line 116.     LaTeX Font Info:    Checking defaults for PD1/pdf/m/n on input line 116.     LaTeX Font Info:    ... okay on input line 116.     LaTeX Font Info:    Try loading font information for T1+lmr on input line 116.     ("C:\Program Files\MiKTeX 2.9\tex\latex\lm\t1lmr.fd"     File: t1lmr.fd 2009/10/30 v1.6 Font defs for Latin Modern     )     LaTeX Info: Redefining \dots on input line 116.     LaTeX Info: Redefining \microtypecontext on input line 116.     Package microtype Info: Generating PDF output.     Package microtype Info: Character protrusion enabled (level 2).     Package microtype Info: Using default protrusion set `alltext'.     Package microtype Info: Automatic font expansion enabled (level 2),     (microtype)             stretch: 20, shrink: 20, step: 1, non-selected.     Package microtype Info: Using default expansion set `basictext'.     Package microtype Info: No adjustment of tracking.     Package microtype Info: No adjustment of interword spacing.     Package microtype Info: No adjustment of character kerning.     ("C:\Program Files\MiKTeX 2.9\tex\latex\microtype\mt-cmr.cfg"     File: mt-cmr.cfg 2013/05/19 v2.2 microtype config. file: Computer Modern Roman      (RS)     )     \AtBeginShipoutBox=\box33     Package hyperref Info: Link coloring ON on input line 116.     ("C:\Program Files\MiKTeX 2.9\tex\latex\hyperref\nameref.sty"     Package: nameref 2012/10/27 v2.43 Cross-referencing by name of section     ("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\gettitlestring.sty"     Package: gettitlestring 2010/12/03 v1.4 Cleanup title references (HO)     )     \c@section@level=\count116     )     LaTeX Info: Redefining \ref on input line 116.     LaTeX Info: Redefining \pageref on input line 116.     LaTeX Info: Redefining \nameref on input line 116.          (C:\Users\Marin\AppData\Local\Temp\lyx_tmpdir.p10112\lyx_tmpbuf4\Neues_Dokument     1.out)     (C:\Users\Marin\AppData\Local\Temp\lyx_tmpdir.p10112\lyx_tmpbuf4\Neues_Dokument     1.out)     \@outlinefile=\write3     ("C:\Program Files\MiKTeX 2.9\tex\context\base\supp-pdf.mkii"     [Loading MPS to PDF converter (version 2006.09.02).]     \scratchcounter=\count117     \scratchdimen=\dimen142     \scratchbox=\box34     \nofMPsegments=\count118     \nofMParguments=\count119     \everyMPshowfont=\toks25     \MPscratchCnt=\count120     \MPscratchDim=\dimen143     \MPnumerator=\count121     \makeMPintoPDFobject=\count122     \everyMPtoPDFconversion=\toks26     )     Package caption Info: Begin \AtBeginDocument code.     Package caption Info: wrapfig package is loaded.     Package caption Info: End \AtBeginDocument code.     ("C:\Program Files\MiKTeX 2.9\tex\latex\lm\ot1lmr.fd") ("C:\Program Files\MiKTe     X 2.9\tex\latex\lm\omllmm.fd") ("C:\Program Files\MiKTeX 2.9\tex\latex\lm\omslm     sy.fd") ("C:\Program Files\MiKTeX 2.9\tex\latex\lm\omxlmex.fd")     ! LaTeX Error: Something's wrong--perhaps a missing \item.          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...                                                        l.161 \end{tabularx}          Try typing  <return>  to proceed.     If that doesn't work, type  X <return>  to quit.          ! LaTeX Error: Something's wrong--perhaps a missing \item.          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...                                                        l.161 \end{tabularx}          Try typing  <return>  to proceed.     If that doesn't work, type  X <return>  to quit.          ! LaTeX Error: Something's wrong--perhaps a missing \item.          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...                                                        l.161 \end{tabularx}          Try typing  <return>  to proceed.     If that doesn't work, type  X <return>  to quit.          ! LaTeX Error: Something's wrong--perhaps a missing \item.          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...                                                        l.161 \end{tabularx}          Try typing  <return>  to proceed.     If that doesn't work, type  X <return>  to quit.          ! LaTeX Error: Something's wrong--perhaps a missing \item.          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...                                                        l.161 \end{tabularx}          Try typing  <return>  to proceed.     If that doesn't work, type  X <return>  to quit.          ! LaTeX Error: Something's wrong--perhaps a missing \item.          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...                                                        l.161 \end{tabularx}          Try typing  <return>  to proceed.     If that doesn't work, type  X <return>  to quit.          ! LaTeX Error: Something's wrong--perhaps a missing \item.          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...                                                        l.161 \end{tabularx}          Try typing  <return>  to proceed.     If that doesn't work, type  X <return>  to quit.          ! LaTeX Error: Something's wrong--perhaps a missing \item.          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...                                                        l.161 \end{tabularx}          Try typing  <return>  to proceed.     If that doesn't work, type  X <return>  to quit.          ! LaTeX Error: Something's wrong--perhaps a missing \item.          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...                                                        l.161 \end{tabularx}          Try typing  <return>  to proceed.     If that doesn't work, type  X <return>  to quit.          ! LaTeX Error: Something's wrong--perhaps a missing \item.          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...                                                        l.161 \end{tabularx}          Try typing  <return>  to proceed.     If that doesn't work, type  X <return>  to quit.          ! LaTeX Error: Something's wrong--perhaps a missing \item.          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...                                                        l.161 \end{tabularx}          Try typing  <return>  to proceed.     If that doesn't work, type  X <return>  to quit.          ! LaTeX Error: Something's wrong--perhaps a missing \item.          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...                                                        l.161 \end{tabularx}          Try typing  <return>  to proceed.     If that doesn't work, type  X <return>  to quit.          ! LaTeX Error: Something's wrong--perhaps a missing \item.          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...                                                        l.161 \end{tabularx}          Try typing  <return>  to proceed.     If that doesn't work, type  X <return>  to quit.          ! LaTeX Error: Something's wrong--perhaps a missing \item.          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...                                                        l.161 \end{tabularx}          Try typing  <return>  to proceed.     If that doesn't work, type  X <return>  to quit.          ! LaTeX Error: Something's wrong--perhaps a missing \item.          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...                                                        l.161 \end{tabularx}          Try typing  <return>  to proceed.     If that doesn't work, type  X <return>  to quit.          ! LaTeX Error: Something's wrong--perhaps a missing \item.          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...                                                        l.161 \end{tabularx}          Try typing  <return>  to proceed.     If that doesn't work, type  X <return>  to quit.          ! LaTeX Error: Something's wrong--perhaps a missing \item.          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...                                                        l.161 \end{tabularx}          Try typing  <return>  to proceed.     If that doesn't work, type  X <return>  to quit.          ! LaTeX Error: Something's wrong--perhaps a missing \item.          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...                                                        l.161 \end{tabularx}          Try typing  <return>  to proceed.     If that doesn't work, type  X <return>  to quit.          ! LaTeX Error: Something's wrong--perhaps a missing \item.          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...                                                        l.161 \end{tabularx}          Try typing  <return>  to proceed.     If that doesn't work, type  X <return>  to quit.          ! LaTeX Error: Something's wrong--perhaps a missing \item.          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...                                                        l.161 \end{tabularx}          Try typing  <return>  to proceed.     If that doesn't work, type  X <return>  to quit.          ! LaTeX Error: Something's wrong--perhaps a missing \item.          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...                                                        l.161 \end{tabularx}          Try typing  <return>  to proceed.     If that doesn't work, type  X <return>  to quit.          ! LaTeX Error: Something's wrong--perhaps a missing \item.          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...                                                        l.161 \end{tabularx}          Try typing  <return>  to proceed.     If that doesn't work, type  X <return>  to quit.          ! LaTeX Error: Something's wrong--perhaps a missing \item.          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...                                                        l.161 \end{tabularx}          Try typing  <return>  to proceed.     If that doesn't work, type  X <return>  to quit.          ! LaTeX Error: Something's wrong--perhaps a missing \item.          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...                                                        l.161 \end{tabularx}          Try typing  <return>  to proceed.     If that doesn't work, type  X <return>  to quit.          ! LaTeX Error: Something's wrong--perhaps a missing \item.          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...                                                        l.161 \end{tabularx}          Try typing  <return>  to proceed.     If that doesn't work, type  X <return>  to quit.          ! LaTeX Error: Something's wrong--perhaps a missing \item.          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...                                                        l.161 \end{tabularx}          Try typing  <return>  to proceed.     If that doesn't work, type  X <return>  to quit.          ! LaTeX Error: Something's wrong--perhaps a missing \item.          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...                                                        l.161 \end{tabularx}          Try typing  <return>  to proceed.     If that doesn't work, type  X <return>  to quit.          ! LaTeX Error: Something's wrong--perhaps a missing \item.          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...                                                        l.161 \end{tabularx}          Try typing  <return>  to proceed.     If that doesn't work, type  X <return>  to quit.          ! LaTeX Error: Something's wrong--perhaps a missing \item.          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...                                                        l.161 \end{tabularx}          Try typing  <return>  to proceed.     If that doesn't work, type  X <return>  to quit.          ! LaTeX Error: Something's wrong--perhaps a missing \item.          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...                                                        l.161 \end{tabularx}          Try typing  <return>  to proceed.     If that doesn't work, type  X <return>  to quit.          ! LaTeX Error: Something's wrong--perhaps a missing \item.          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...                                                        l.161 \end{tabularx}          Try typing  <return>  to proceed.     If that doesn't work, type  X <return>  to quit.          ! LaTeX Error: Something's wrong--perhaps a missing \item.          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...                                                        l.161 \end{tabularx}          Try typing  <return>  to proceed.     If that doesn't work, type  X <return>  to quit.          ! LaTeX Error: Something's wrong--perhaps a missing \item.          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...                                                        l.161 \end{tabularx}          Try typing  <return>  to proceed.     If that doesn't work, type  X <return>  to quit.               Underfull \vbox (badness 10000) detected at line 161      []          [1          {C:/Users/Marin/AppData/Local/MiKTeX/2.9/pdftex/config/pdftex.map}]     Package atveryend Info: Empty hook `BeforeClearDocument' on input line 163.     Package atveryend Info: Empty hook `AfterLastShipout' on input line 163.          (C:\Users\Marin\AppData\Local\Temp\lyx_tmpdir.p10112\lyx_tmpbuf4\Neues_Dokument     1.aux          Package mparhack Warning: Marginpars may have changed.     (mparhack)                Rerun to get them right.          )     Package atveryend Info: Executing hook `AtVeryEndDocument' on input line 163.     Package atveryend Info: Executing hook `AtEndAfterFileList' on input line 163.     Package rerunfilecheck Info: File `Neues_Dokument1.out' has not changed.     (rerunfilecheck)             Checksum: D41D8CD98F00B204E9800998ECF8427E;0.     Package atveryend Info: Empty hook `AtVeryVeryEnd' on input line 163.      )      Here is how much of TeX's memory you used:      11186 strings out of 493921      176087 string characters out of 3147282      326371 words of memory out of 3000000      14277 multiletter control sequences out of 15000+200000      23043 words of font info for 44 fonts, out of 3000000 for 9000      841 hyphenation exceptions out of 8191      40i,12n,46p,526b,439s stack positions out of 5000i,500n,10000p,200000b,50000s     {C:/Program Files/MiKTeX 2.9/fonts/enc/dvips/lm/lm-mathsy.enc}{C:/Program Fil     es/MiKTeX 2.9/fonts/enc/dvips/lm/lm-ec.enc}<C:/Program Files/MiKTeX 2.9/fonts/t     ype1/public/lm/lmbx10.pfb><C:/Program Files/MiKTeX 2.9/fonts/type1/public/lm/lm     r10.pfb><C:/Program Files/MiKTeX 2.9/fonts/type1/public/lm/lmsy10.pfb>     Output written on Neues_Dokument1.pdf (1 page, 64188 bytes).     PDF statistics:      27 PDF objects out of 1000 (max. 8388607)      4 named destinations out of 1000 (max. 500000)      5633 words of extra memory for PDF output out of 10000 (max. 10000000)


title: How to add templates to TeXmaker?

text: I´ll start my thesis and i found some nice templates here: sharelatex. By the way i dont get how to add the zip file of the template to teXmaker. Could anybody help me with this issue?


title: How to define a command using \lowercase in \csname

text: I was being lazy and had a lot of commands of the form               \def\foo{...Foo...}      So I was thinking about taking an approach like               \def\bar#1{\expandafter\gdef\expandafter\csname\lowercase{#1}\endcsname{...#1...}      or something along the lines of               \def\bar#1{\edef\tmp{\lowercase #1}\expandafter\gdef\expandafter\csname\tmp\endcsname{...#1...}}      wanting to use it like `\bar{Foo}}` and followed by `\foo`, but this obviously won't work because `\lowercase` can't be expanded further. How do I do this properly?


title: Drawing a square with colored hatched little subsquares

text: I would like to draw a as shown below. It is a square grid. Some regions are hatched in blue, others contain a red cross. Some edges are blue, others are red, but the red color don't reach the vertices, it stops just short of them, revealing the underlying thin black grid. Some vertices are colored red, others are colored blue. I think I can draw the underlying grid myself, either by manually entering coordinates and instructions to link vertices by straight edges or using the `grid` command, and I think I should also be able to draw colored thick nodes that cover up whatever they lie on top of. however, I don't know how to draw the "hatched" region. I want to include this drawing to lecture notes on homotopy theory I'm typing up. One defines a function by some fixed expression on the blue part of the grid, and inductively extends it to the whole square, first on the red vertices, then on the red edges, and lastly on the faces containing a red cross. Thanks for your help! ![Screen shot](http://imgur.com/9RCyw1F.jpg)


title: csquotes: always enclose blockquote in " "

text: I'm trying to force `csquotes` to always set a `\blockquote` in display mode but still enclose the quote in quotation marks, German ones in particular. How can I achieve that?               \documentclass{scrartcl}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage[ngerman]{babel}     \usepackage{lmodern,blindtext}          \usepackage[babel=true,strict=true,german=quotes,threshold=1]{csquotes}          \begin{document}          \blindtext          \blockquote{\blindtext}          \blindtext          \end{document}      This example produces a quote as an indented paragraph, but without quotation marks.


title: Meaning of bend right or left in TikZ?

text: The following code actually comes from the PGF manual. It works fine, but I have a difficult time in understanding it (I'm new to TikZ)               \documentclass{article} %  say     \usepackage{tikz}     \usetikzlibrary{arrows,decorations.pathmorphing,backgrounds,positioning,fit,petri}     \begin{document}     \begin{tikzpicture}     [place/.style={circle,draw=blue!50,fill=blue!20,thick,                  inner sep=0pt,minimum size=6mm},     transition/.style={rectangle,draw=black!50,fill=black!20,thick,                       inner sep=0pt,minimum size=4mm}]     \node[place] (waiting) {};     \node[place] (critical) [below=of waiting] {};     \node[place] (semaphore) [below=of critical]{};     \node[transition] (leave critical) [right=of critical]{};     \node[transition] (enter critical) [left=of critical]{};     \draw [->] (enter critical) to                 (critical);     \draw [->] (waiting)        to [bend right=45] (enter critical);     \draw [->] (enter critical) to [bend right=45] (semaphore);     \end{tikzpicture}     \end{document}      The above will give me something like this: ![enter image description here](http://i.stack.imgur.com/ycxlQ.png) My question is: how shall I understand the two `bend right`? Regarding the long arrow starting from the circle at the top to square on the left side, it seems more like bending left to me. In what sense does it bend right? The same problem with the long arrow starting from the square on the left side to the circle at the bottom.


title: How to set the dimensions to get a poster A1

text: I found this template to create posters in latex, but, even by following the instructions, I'm not able to change the dimensions to get a poster A1. Could you help me please? here is the code http://www.latextemplates.com/template/jacobs-landscape-poster


title: How to keep multiple figure together

text: I have 6 graphs that I have to keep together while showing. I have to make them almost same width as text width, otherwise the graphs will not be properly seen. So I cannot add them side by side but I have to keep them vertically one after another spanning over maybe two pages. Now my question is how can I do that? I have tried to use them in `subfloat` or `subfigure` and also tried putting them together inside a single figure environment. But then the figure is coming in only one page and only two or three (height that is matching with the height of the page) graphs are visible. If I force them to float to exactly the place I am putting the figure (giving [H] option in figure environment) it is keeping a lots of space in starting pages and if I omit the [H] option then the figures are not coming together. Is there some good way to put them together? It would be better if I could make a single caption for all six figure that is all six figures will come under a single caption spreading over more than one page.


title: New to ConTeXt, looking for better manual than PRAGMA

text: I am an experienced user of LaTeX learning ConTeXt. However, I find the manuals on the PRAGMA website to be less than ideal. Does anyone have a suggestion for a manual or text?


title: Better vertical space between paragraphs and centered tabular or figure

text: When I need to place a `tabular` or `figure` inside a paragraph (usually in exams or class notes) I use `{\par\centering <tabular>/<figure>\par}` because `center` environment uses too much vertical space. But I don't like my solution because `tabular` or `figure` are too close to previous and following paragraphs. I would like that vertical space between figures and paragraphs was similar to the one between lines. How can I do it?               \documentclass{article}     \usepackage{booktabs}     \usepackage{mwe}     \usepackage{lipsum}     \begin{document}          \lipsum[2]          {\par\centering     \begin{tabular}{ccc}     \toprule     a & b & c\\     \midrule     1 & 2 & 3\\     4 & 5 & 6\\     \bottomrule     \end{tabular}\par}          \lipsum[2]          {\par\centering     \includegraphics[width=.75\linewidth]{example-image}\par}          \lipsum[2]          \end{document}      ![enter image description here](http://i.stack.imgur.com/XMUsL.png)


title: How to autoscale a horizontal barchart (pgfplots)

text: I need to export statistics from a database into PDF files, with a program. The database contains several tests and they need to be displayed as barcharts. Here is an example: ![enter image description here](http://i.stack.imgur.com/7e0WF.png) The problem is clear: when xlabels are long, then the chart goes out of the page. However, I cannot tell in advance, how long the labels will be. Sometimes they will be just simple words. Sometimes whome sentences. The question is: how to calculate the size needed for the labels, and auto- scale the rest of the bar chart to fit on the page horizontally?               \subsection{Irányítási kompetencia}              %             \begin{tikzpicture}     \begin{axis}[             xbar,                 xmin=,                 xmax=61.1111111111,                 width=12cm,                 height={ 1cm + ( 4.0 * 1cm ) },         symbolic y coords={{Tervezés},{Szervezés},{Döntőképesség},{Ellenőrzés}},         %ylabel={Irányítási kompetencia}, % This is not really needed, need to save space!         xlabel={Pontérték \%},         ytick=data, % Without this, y labels will be written for every "tick". And not for every bar.         nodes near coords,         nodes near coords align = {horizontal}     ]     \addplot [draw=black, fill=cyan!40!black] coordinates {         (37.5,{Tervezés})         (61.1111111111,{Szervezés})         (31.25,{Döntőképesség})         (31.25,{Ellenőrzés})          };     \end{axis}     \end{tikzpicture}               %         %                    \subsection{Vezetési kompetencia}              %             \begin{tikzpicture}     \begin{axis}[             xbar,                 xmin=,                 xmax=60.0,                 width=12cm,                 height={ 1cm + ( 11.0 * 1cm ) },         symbolic y coords={{Megbízhatóság},{Stressztűrés},{Figyelemkoncentráció},{Szabálykövetés},{Önkontroll},{Holisztikus gondolkodás},{Analitikus gondolkodás},{Szervezőkészség},{Alkalmazkodó képesség},{Rendszerező, struktúráló képesség},{Vezetői szerep}},         %ylabel={Vezetési kompetencia}, % This is not really needed, need to save space!         xlabel={Pontérték \%},         ytick=data, % Without this, y labels will be written for every "tick". And not for every bar.         nodes near coords,         nodes near coords align = {horizontal}     ]     \addplot [draw=black, fill=cyan!40!black] coordinates {         (55.0,{Megbízhatóság})         (60.0,{Stressztűrés})         (30.0,{Figyelemkoncentráció})         (33.3333333333,{Szabálykövetés})         (35.0,{Önkontroll})         (35.0,{Holisztikus gondolkodás})         (38.8888888889,{Analitikus gondolkodás})         (59.0909090909,{Szervezőkészség})         (54.1666666667,{Alkalmazkodó képesség})         (40.9090909091,{Rendszerező, struktúráló képesség})         (36.3636363636,{Vezetői szerep})          };     \end{axis}     \end{tikzpicture}      ![enter image description here](http://i.stack.imgur.com/7e0WF.png) UPDATE: I have also tried to put the whole tizkpicture into `\resizebox{\linewidth}{!}{...}` but it also scales vertically, and that is bad, because the number of bars in the chart varies. So by "scaling" I mean: specify the width of the chart. What I don't mean is: "scale the chart that was already rendered".


title: Issue with sliding a label in xypic using LyX

text: I want to slide a label so I use the tex code               \xymatrix{A\ar^(.25){f}[r] & B}      Using directly this code as latex in LyX works, but I want to do the same thing in equations environment in LyX, what LyX is doing is putting all the `(.25){f}` part as superscript               \xymatrix{A\ar^{(.25){f}}[r] & B}       How can I avoid this problem without having to write raw latex in LyX?


title: ubuntu installing l3kernel and l3packages

text: I apologize for this very basic question. I've downloaded the current versions of l3kernel.zip and l3packages.zip, but have no idea how to install them. As far as I can tell, there is no information in the zip files about how to do this. Could anybody advise please?


title: adding new address email and so on in moderncv

text: I tried this is example found in a previous question here:               \documentclass[11pt,a4paper,sans]{moderncv}          \moderncvstyle{casual}     \usepackage{etoolbox} \makeatletter \newcommand*{\homepageA}[1]{\def\@homepageA{#1}} \newcommand*{\homepageB}[1]{\def\@homepageB{#1}} \patchcmd{\maketitle}% {\ifthenelse{\isundefined{\@homepage}}{}{\addtomaketitle{\homepagesymbol\httplink{\@homepage}}}}% {\ifthenelse{\isundefined{\@homepageA}}{}{\addtomaketitle{\homepagesymbol\httplink{\@homepageA}}}% \ifthenelse{\isundefined{\@homepageB}}{}{\addtomaketitle{\homepagesymbol\httplink{\@homepageB}}} }% {}{}% \makeatother          \firstname{John} \familyname{Doe} \address{aa}{bb} \homepage{em1} \homepageA{emA} \homepageB{emB}          %-----------------------------------------------------------------------------          \begin{document}          \maketitle          \section{Education} \cventry{year--year}{Degree}{Institution}{City}{\textit{Grade}}{Description} % arguments 3 to 6 can be left empty          \end{document}      it does not give errors, but the new e-mail addresses do not appear. Why?


title: Vertical alignment in tables

text: I would like to create a table where I control the height of the cells and wish to vertically center all the cells. At first sight, the issue here might look quite similar to Problem with Table Vertical Alignment but the solution proposed there doesn't fit my problem. A minimal example is given below. The issue is that the two first columns are correctly centered but not the last one.               \begin{tabular}{ |m{2cm}|m{2cm}|m{2cm}|}        \hline          x &          x &          x \\[5mm]        \hline     \end{tabular}      Does anyone understand what is wrong here ? Any pointers would be greatly appreciated.


title: Change style bibliographies

text: I want to change the style of font for "References". I want the title of books and Articles stay in BOLD and dont in ITALIC BOLD how stay on my document. My style stay: KNUTH, D. E. **_The art of computer programming_** , Volume 16: Fundamental Algorithms. [S.l.]: Addison-Wesley, 1968. I would like: KNUTH, D. E. **The art of computer programming** , Volume 16: Fundamental Algorithms. [S.l.]: Addison-Wesley, 1968. * * * I'm use the style ABNT-ALF \bibliographustyle{abnt-alf} This is not my all code, however is possible see the part that I need help: Main Document (with settings):               \documentclass[a4paper]{article}     \usepackage[brazil,brazilian]{babel}     \usepackage[ansinew]{inputenc}      \usepackage{abnt-alf}     \usepackage[alf]{abntcite}          \newcommand{\qcounts}{{\normalfont\textit{quadrat counts}}{}}     \newcommand{\q}{{\normalfont\textit{quadrat}}{}}     \newcommand{\qs}{{\normalfont\textit{quadrats}}{}}     \newcommand{\citrus}{{\normalfont\textit{Citrus}}{}}     \newcommand{\msc}{{\normalfont\textit{Morte Súbita dos Citrus}}{}}     \newcommand{\MSC}{\acronym{MSC}{}}     \newcommand{\geoR}{{\normalfont\textsf{geoR}}{}}     \newcommand{\geoRglm}{{\normalfont\textsf{geoRglm}}{}}     \newcommand{\splancs}{{\normalfont\textsf{splancs}}{}}     \title{Modelo autologístico para dados de citrus}          \author{     Fabio CORDEIRO      \footnote{Programa de Pós-graduação em Engenharia Elétrica,       Pontifícia Universidade Católica de Minas Gerais.      Caixa Postal 00000, CEP 81531-990, Belo Horizonte, Minas Gerais, Brasil.      E-mail: fabioleandro@oucminas.br}\\     }          \begin{document}     \maketitle     \section{resumo}           \section{Introducao}          Testando referencias \cite{knuth}          \section{metodologia}          \bibliographystyle{abnt-alf}           \bibliography{bibliografia} %%%%%%%%%          \end{document}      ======================================================== My bibliography file:               @book{knuth,         author = {Donald E. Knuth},         title = {\textbf{The art of computer programming}, Volume 16: Fundamental Algorithms},         publisher = {Addison-Wesley},         year = {1968}     }      Thanks for the help


title: ConTeXt keeps trying to create "missing" font files

text: I'm running ConTeXt/XeTeX on a file that uses the Gentium Book Basic font. The problem I'm having is that XeTeX appears to spend a large amount of time trying over and over again to create that font or associated auxiliary files (using mktexmf and mktextfm). As far as I can tell, the font is working fine otherwise. In summary, when I run XeTeX, I get lots of output like this:               (./macros/pagenohead.tex) (./data/front-matter-all.tex     kpathsea: Running mktextfm GentiumBookBasic     /usr/local/texlive/2012/texmf/web2c/mktexnam: Could not map source abbreviation  for GentiumBookBasic.     /usr/local/texlive/2012/texmf/web2c/mktexnam: Need to update ?     mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input GentiumBookBasic     This is METAFONT, Version 2.718281 (TeX Live 2012)          kpathsea: Running mktexmf GentiumBookBasic          ! I can't find file `GentiumBookBasic'.     <*> ...mag:=1; nonstopmode; input GentiumBookBasic          Please type another input file name     ! Emergency stop.     <*> ...mag:=1; nonstopmode; input GentiumBookBasic          Transcript written on mfput.log.     grep: GentiumBookBasic.log: No such file or directory     mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input GentiumBookBasic' failed to make GentiumBookBasic.tfm.     kpathsea: Appending font creation commands to missfont.log.          kpathsea: Running mktextfm GentiumBookBasic      I actually get this repeated almost 1700 times in a 16-page document... presumably it's happening every time I try to use the font GentiumBookBasic. As a result, it takes about **10 minutes** to render this to PDF on a decent server. When I switch to a standard built-in font like "Serif", the document renders in under **9 seconds**! If we try to render our whole 1200-page book without fixing this problem, it might take on the order of 12 hours! Incidentally, when the PDF eventually comes out the other end, the text that's supposed to be in Gentium looks like it was rendered perfectly well in the Gentium font. So the result is correct; it's just taking much longer and doing much more futile work than it should. What can I do to get TeX to recognize the font properly and stop trying to recreate its associated files every time the font is used? The details:   * ConTeXt ver: 2012.05.30 11:26 MKII fmt: 2012.11.5   * XeTeX, Version 3.1415926-2.4-0.9998 (TeX Live 2012) We need to use a font that doesn't come with TeXLive: Gentium Book Basic. So I needed to find out how to get XeTeX to find a 3rd-party font. I read here that "XeTEX and LuaTEX can use any font installed on the system, not just those in the TEX trees". By contrast, "[Integrating 3rd-party fonts] is unfortunately a messy topic. Forget about it unless you want to delve into many details of the TEX installation. ...A possible alternative is to use XeTEX or LuaTEX (see section 2.4), which let you use operating system fonts without any installation in TEX. " So apparently all I need to do is install Gentium Book Basic in the OS (CentOS Linux in my case), and XeTeX should be able to find it. In order to install Gentium Book Basic onto the system, I followed the instructions on pages like this:   * ls Gen* GenBasBI.ttf GenBasB.ttf GenBasI.ttf GenBasR.ttf GenBkBasBI.ttf GenBkBasB.ttf GenBkBasI.ttf GenBkBasR.ttf   * mkdir /usr/share/fonts/TTF   * cp Gen*.ttf /usr/share/fonts/TTF   * fc-cache -f -v   * fc-list | grep Gentium The latter gives:                Gentium Basic:style=Bold Italic      Gentium Book Basic:style=Bold      Gentium Book Basic:style=Italic      Gentium Basic:style=Regular      Gentium Book Basic:style=Bold Italic      Gentium Book Basic:style=Regular      Gentium Basic:style=Italic      Gentium Basic:style=Bold      So it looks to me like Gentium is successfully installed in the OS. The TeXLive installation docs say the following: > On Windows, fonts shipped with TEX Live are made available to XeTEX > automatically. But if you have installed the xetex package on a Unix- > compatible system, you need to configure your system to be able to find the > fonts shipped with TEX Live via system name lookup, and not just filename > lookup. > > To facilitate this, when the xetex package is installed (either at initial > installation or later), the necessary configuration file is created in > TEXMFSYSVAR/fonts/conf/texlive-fontconfig.conf. > > To set up the TEX Live fonts for system-wide use (assuming you have suitable > privileges), proceed as follows: >   >   >     Copy the texlive-fontconfig.conf file to > /etc/fonts/conf.d/09-texlive.conf. >     Run fc-cache -fsv. >   I find this confusing. Is it concerned with letting XeTeX see fonts that didn't come with TeXLive, or letting the rest of the system see fonts that came with TeXLive? It seems to say both. Nevertheless, I supposed it couldn't hurt, so I followed the above instructions, and fc-cache reported that it completed successfully. Now to how I'm referencing the font in a ConTeXt document. I have fonts defined as follows:               \definefont[SerifS][GentiumBookBasic at \smallfontsize]     \definefont[SerifLB][GentiumBookBasic-Bold at \largefontsize]      etc. These are used in styles as follows:               % 'Small' Italic (8.1pt)     \def\IT#1{{\SerifSI#1}}          % 'Big' Bold (9.2pt)     \def\BO#1{{\SerifLB#1}}      which are referenced in the .tex files:               \IT{Class: }     \BO{Previous Editions}      Now, comparing the above `\definefont` with the font names reported by `fc- list`, it's apparent that the former uses names without spaces ("GentiumBookBasic") while the latter uses names with spaces ("Gentium Book Basic"). Could that be a source of the problem? The command reference page for `\definefont` in ConTeXt has little to say. The section on `\definefontsynonym` in the fonts manual says the spaces in the 2nd argument should be stripped out. But I tried it anyway:               \definefont[SerifS][Gentium Book Basic at \smallfontsize]      etc. However the results were no better:               kpathsea: Running mktextfm GentiumGentium     /usr/local/texlive/2012/texmf/web2c/mktexnam: Could not map source abbreviation  for GentiumGentium.      etc. Kudos to anyone who took time to browse through the above. Any help you can offer is appreciated! P.S.: I also tried changing the font definitions in our .tex file to use the actual TTF file names (w/o extension) instead of the full font names; e.g.               \definefont[SerifS][GenBkBasR at \smallfontsize]      and even for good measure:               \definefont[SerifS][GenBkBasR.ttf at \smallfontsize]      This didn't seem to make any difference. I still get errors like "I can't find file `GenBkBasR'." (The extension is stripped, when I provide it.) I even tried using `file:` as shown in http://context.aanhet.net/svn/contextman/context-reference/en/co-fonts.pdf page 2:               \definefont[SerifS][file:GenBkBasR at \smallfontsize]      and following examples in the typescripts module that Aditya mentioned, I tried               \definefont[SerifS][\s!file:GenBkBasR at \smallfontsize]      (though I don't know what the `\s!` is for). But in both cases I got this "worse" error:               kpathsea: Invalid fontname `[GenBkBasR]', contains '['      before getting the usual               kpathsea: Running mktextfm GenBkBasR          /usr/local/texlive/2012/texmf/web2c/mktexnam: Could not map source abbreviation  for GenBkBasR.      etc. And unlike before, TeX failed to complete the render in these cases. # Update Let me try to pull this question into focus...   * Why is Xetex (or whatever component of the system) trying to call mktexnam, mktextfm, mktexmf, etc. on Gentium Book Basic - is it because it perceives that some TeX auxiliary files for that font have not been created? Is it failing, each time, to create those files? Yet the font is being rendered properly, so ultimately the system succeeds in getting the data it needs. Is there something I can do to cause TeX to successfully write the auxiliary data files it needs, so it doesn't painstakingly "stumble" over this every time the font is referenced? I've been treating utils like mktex* as "under the hood", and I would like to keep them there, but maybe I'm going to have to understand how they work in order to solve the problem.   * The first error, `mktexnam: Could not map source abbreviation for GentiumBookBasic` - is that something I can directly fix, by providing an explicit mapping? How?


title: How to surpress pagenumbers in bibliography section in LyX?

text: If you look at this picture ![enter image description here](http://i.stack.imgur.com/rO9jO.png) you can see, that LyX generated the pagenumber where I cited book [2]. How can I surpress that behaviour?


title: Lettrine in Abstract - Strange Behaviour

text: ![Strange Behaviour](http://i.stack.imgur.com/nakNC.png) Does anyone know why this strange behaviour is happening when using lettrine in the abstract environment in stock-standard article class? The `parshape` seems to be repeating...??? Here is my code to reproduce:               \documentclass{article}               \usepackage{lipsum,lettrine,helvet}     \renewcommand{\familydefault}{\sfdefault}          \setcounter{DefaultLines}{3}          \def\t{The Cat Sat on the Mat}     \def\tt{\t\t}     \def\ttt{\tt\tt}          \usepackage[parfill]{parskip}          \begin{document}     \abstract         \lettrine{T}{his is a test}\ttt\ttt\ttt              \ttt\ttt\ttt              \ttt\ttt\ttt     \endabstract          \end{document}


title: How to make my logic circuit drawn by circuitikz look nicer?

text: \documentclass{article}          \usepackage{circuitikz}          \begin{document}          \begin{circuitikz} \draw       (0,3) node[not port] (mynot1) {}       (mynot1.in) node[anchor=east] {$r$}       (mynot1.out) node[anchor=south] {$\neg r$}       (0,1) node[not port] (mynot2) {}       (mynot2.in) node[anchor=east] {$q$}       (mynot2.out) node[anchor=south] {$\neg q$}       (3,4) node[and port] (myand1) {}       (myand1.in 1) node[anchor=east] {$p$}       (myand1.out) node[anchor=west] {$p \wedge \neg r$}       (3,0) node[and port] (myand2) {}       (myand2.in 2) node[anchor=east] {$r$}       (myand2.out) node[anchor=west] {$\neg q \wedge r$}       (mynot1.out) -| (myand1.in 2)       (mynot2.out) -| (myand2.in 1)       (5,2) node[or port] (myor) {}       (myor.out) node[anchor=west] {$(p \wedge \neg r) \vee (\neg q \wedge r)$}       (myand1.out) |- (myor.in 1)       (myand2.out) |- (myor.in 2)     ;\end{circuitikz}          \end{document}      The above is how I draw my logic circuit by using package circuitikz. I can basically figure out how to draw the circuit but it looks ugly, see ![enter image description here](http://i.stack.imgur.com/XqzmY.png) 1) I want it to look nicer, i.e. smaller "not" gate, colored label text, more compact in positioning, arrowheads on the input and output, etc. just like the style of this: ![enter image description here](http://i.stack.imgur.com/bRKGo.png) Any idea?


title: Display issues drawing DNA sequences with TikZ

text: The following TikZ code shows a representation of DNA code segments. I have two different versions of this code. Version 1 uses multipart rectangles, and is my preferred version. Version 2 models the DNA sequences as individual squares stuck together. The issue with that is that these squares tend to come unstuck on changing scale, which is annoying. Partly for that reason, I prefer version 1, but it has some problems. If these can't be fixed, then I will use version 2. Here is the problems. 1) The block on the left, call this block A, has the colors bleeding outside the boxes in some places. Particularly on the right side. See for example the bottom right corner, where the square flanked by $X_{9}$ and $X^{(6)}$. Here this bleeding of the color out of the square is quite noticeable. It can be seen in other places as well. This effect becomes much less if               \tikzstyle{every path}=[very thick]      is removed. However, I want the thick paths. This might be the result of user error, or a bug. I think it might be the cumulative result of rounding errors as TikZ moves along calculating the dimensions of the parts of the rectangle, since it gets worse as one moves to the right. The question is whether there is a way around it. 2) The arrows from block A to the right should have an arrow head only at the termination point, but has arrows on both ends. 3) The boxes on the left and the right should be aligned. They are aligned on the top, but not the bottom. Finally, a few questions which are not strictly problems. 4) Any suggestions to stop the arrows from obscuring the labels? Maybe make the labels a different color? Is there an easy way to superimpose the labels on top of the arrows? 5) Is there any way to make the division lines within the multipart rectangles a different thickness from the other lines? 6) How can I make the block of code which begins with               \node [below] at (leftrow6.one south) {$\mathsmaller{\mathbf{X_{0}}}$};      into a loop? An attempt is below, namely               \foreach \i in {one, two, three, four, five, six, seven, eight, nine, ten}     {       \foreach \j in {0,...,9}       {         \node [below] at (leftrow6.\i south) {$\mathsmaller{\mathbf{X_{\j}}}$};       }     }      but this does not work. The code for the two versions follow. Suggestions for improvement, including reducing lines of code appreciated. The image for version 1 is at the bottom. Version 1               \documentclass[a4paper, 12pt]{article}     \usepackage{tikz}     \usetikzlibrary{shapes,arrows, positioning, calc, patterns, shadows, external}     %%%<     \usepackage{verbatim}     \usepackage{lmodern}     \usepackage{scrextend}     \usepackage{relsize}     \usepackage[active,tightpage]{preview}     \PreviewEnvironment{tikzpicture}     \setlength\PreviewBorder{5pt}%     %%%>     \usetikzlibrary{chains,fit,shapes, shapes.multipart}     \begin{document}     \changefontsizes{20pt}     \begin{tikzpicture}     \tikzstyle{every path}=[very thick]     \tikzstyle{line} = [draw, -latex', thick]          \tikzstyle{seq}=[rectangle split, rectangle split horizontal, rectangle split parts=#1, minimum height=1cm, draw, anchor=center]          \matrix[row sep=0.5cm] at (0cm, 4cm)     {     \node [seq=10, rectangle split part fill={blue!20, none, cyan!30, none, blue!20, none, none, cyan!30, none, cyan!30}] (leftrow1)     {C \nodepart{two} \phantom{X} \nodepart{three} A \nodepart{four} \phantom{X} \nodepart{five} G \nodepart{six} \phantom{X} \nodepart{seven} \phantom{X} \nodepart{eight} G \nodepart{nine} \phantom{X} \nodepart{ten} C}; \\          \node [seq=10, rectangle split part fill={green!20, none, orange!50, none, green!20, none, none, orange!50, none, orange!50}] (leftrow2)     {A \nodepart{two} \phantom{X} \nodepart{three} C \nodepart{four} \phantom{X} \nodepart{five} C \nodepart{six} \phantom{X} \nodepart{seven} \phantom{X} \nodepart{eight} A \nodepart{nine} \phantom{X} \nodepart{ten} A}; \\          \node [seq=10, rectangle split part fill={green!20, none, yellow!50, none, green!20, none, none, yellow!50, none, yellow!50}] (leftrow3)     {A \nodepart{two} \phantom{X} \nodepart{three} T \nodepart{four} \phantom{X} \nodepart{five} C \nodepart{six} \phantom{X} \nodepart{seven} \phantom{X} \nodepart{eight} T \nodepart{nine} \phantom{X} \nodepart{ten} T}; \\          \node [seq=10, rectangle split part fill={blue!20, none, cyan!30, none, blue!20, none, none, cyan!30, none, cyan!30}] (leftrow4)     {C \nodepart{two} \phantom{X} \nodepart{three} A \nodepart{four} \phantom{X} \nodepart{five} G \nodepart{six} \phantom{X} \nodepart{seven} \phantom{X} \nodepart{eight} G \nodepart{nine} \phantom{X} \nodepart{ten} C}; \\          \node [seq=10, rectangle split part fill={blue!20, none, cyan!30, none, blue!20, none, none, cyan!30, none, cyan!30}] (leftrow5)     {C \nodepart{two} \phantom{X} \nodepart{three} A \nodepart{four} \phantom{X} \nodepart{five} G \nodepart{six} \phantom{X} \nodepart{seven} \phantom{X} \nodepart{eight} G \nodepart{nine} \phantom{X} \nodepart{ten} C}; \\          \node [seq=10, rectangle split part fill={red!50, none, orange!50, none, red!50, none, none, orange!50, none, orange!50}] (leftrow6)     {A \nodepart{two} \phantom{X} \nodepart{three} C \nodepart{four} \phantom{X} \nodepart{five} A \nodepart{six} \phantom{X} \nodepart{seven} \phantom{X} \nodepart{eight} A \nodepart{nine} \phantom{X} \nodepart{ten} A}; \\     };          \node [below] at (leftrow6.one south) {$\mathsmaller{\mathbf{X_{0}}}$};     \node [below] at (leftrow6.two south) {$\mathsmaller{\mathbf{X_{1}}}$};     \node [below] at (leftrow6.three south) {$\mathsmaller{\mathbf{X_{2}}}$};     \node [below] at (leftrow6.four south) {$\mathsmaller{\mathbf{X_{3}}}$};     \node [below] at (leftrow6.five south) {$\mathsmaller{\mathbf{X_{4}}}$};     \node [below] at (leftrow6.six south) {$\mathsmaller{\mathbf{X_{5}}}$};     \node [below] at (leftrow6.seven south) {$\mathsmaller{\mathbf{X_{6}}}$};     \node [below] at (leftrow6.eight south) {$\mathsmaller{\mathbf{X_{7}}}$};     \node [below] at (leftrow6.nine south) {$\mathsmaller{\mathbf{X_{8}}}$};     \node [below] at (leftrow6.ten south) {$\mathsmaller{\mathbf{X_{9}}}$};          %loop version does not work     %\foreach \i in {{one}, {two}, {three}, {four}, {five}, {six}, {seven}, {eight},        %{nine}, {ten}}     %{     %  \foreach \j in {0,...,9}     % {     %    \node [below] at (leftrow6.\i south) {$\mathsmaller{\mathbf{X_{\j}}}$};     % }     %}          % loop version does not work     \foreach \i in {1,...,6}     {       \node [right] at (leftrow\i.ten east) {$\mathsmaller{\mathbf{X^{(\i)}}}$};     }          \matrix[row sep=0.5cm] at (10cm, 4cm)     {     \node [seq=2, rectangle split part fill={blue!20, blue!20}] (tupletoprow)     {C \nodepart{two} G}; \\     \node [seq=2, rectangle split part fill={green!20, green!20}]     {A \nodepart{two} C}; \\     \node [seq=2, rectangle split part fill={green!20, green!20}]     {A \nodepart{two} C}; \\     \node [seq=2, rectangle split part fill={blue!20, blue!20}]     {C \nodepart{two} G}; \\     \node [seq=2, rectangle split part fill={blue!20, blue!20}]     {C \nodepart{two} G}; \\     \node [seq=2, rectangle split part fill={red!50, red!50}] (tuplebottomrow)     {A \nodepart{two} A}; \\     };          \matrix[row sep=0.5cm] at (13cm, 4cm)     {       \node [seq=3, rectangle split part fill={cyan!30, cyan!30}] (tripletoprow)       {A \nodepart{two} G \nodepart{three} C}; \\       \node [seq=3, rectangle split part fill={orange!50, orange!50}]       {C \nodepart{two} A \nodepart{three} A}; \\       \node [seq=3, rectangle split part fill={yellow!50, yellow!50}]       {T \nodepart{two} T \nodepart{three} T}; \\       \node [seq=3, rectangle split part fill={cyan!30, cyan!30}]       {A \nodepart{two} G \nodepart{three} C}; \\       \node [seq=3, rectangle split part fill={cyan!30, cyan!30}]       {A \nodepart{two} G \nodepart{three} C}; \\       \node [seq=3, rectangle split part fill={orange!50, orange!50}]  (triplebottomrow)       {C \nodepart{two} A \nodepart{three} A}; \\     };          \node [below] at (tuplebottomrow.south) {$(\mathsmaller{\mathbf{X_{0}}}, \mathsmaller{\mathbf{X_{4}}})$};     \node [below] at (triplebottomrow.south) {$(\mathsmaller{\mathbf{X_{3}}}, \mathsmaller{\mathbf{X_{7}}}, , \mathsmaller{\mathbf{X_{9}}})$};          \node [above] at (tupletoprow.north) {(0, 4)};     \node [above] at (tripletoprow.north) {(3, 7, 9)};          \path [line] (leftrow6.one south) edge[out=270, in=270] node {}(tuplebottomrow);     \path [line] (leftrow6.five south) edge[out=270, in=270] node {}(tuplebottomrow);          \path [line] (leftrow1.three north) edge[out=90, in=90] node {}(tripletoprow);     \path [line] (leftrow1.eight north) edge[out=90, in=90] node {}(tripletoprow);     \path [line] (leftrow1.ten north) edge[out=90, in=90] node {}(tripletoprow);          \end{tikzpicture}     \changefontsizes{12pt}     \end{document}      Version 2               \documentclass[a4paper, 12pt]{article}     \usepackage{tikz}     \usetikzlibrary{shapes,arrows, positioning, calc, patterns, shadows, external}     \usepackage{verbatim}     \usepackage{lmodern}     \usepackage{scrextend}     \usepackage[active,tightpage]{preview}     \PreviewEnvironment{tikzpicture}     \setlength\PreviewBorder{5pt}%     \usetikzlibrary{chains,fit,shapes}          \begin{document}     \changefontsizes{15pt}     \begin{tikzpicture}     \tikzstyle{every path}=[very thick]     \tikzstyle{line} = [draw, -latex', thick]     \edef\sizeseqbox{1.3cm}     \tikzstyle{seq}=[draw,minimum size=\sizeseqbox]          \matrix [row sep=3mm] at (-7, 0)     {       \node []{}; & \node []{}; & \node [] {}; & \node []{}; & \node []{}; & \node []{}; & \node []{}; & \node []{}; & \node []{}; & \node [] {}; \\       \node [seq, fill=blue!20]{C}; & \node [seq]{}; & \node [seq, fill=cyan!30] (triplecol1left) {A}; & \node [seq]{}; & \node [seq, fill=blue!20]{G}; & \node [seq]{}; & \node [seq]{}; & \node [seq, fill=cyan!30] (triplecol2left) {G}; & \node [seq]{}; & \node [seq, fill=cyan!30] (triplecol3left) {C}; & \node [] {$\mathbf{X^{(1)}}$};\\       \node [seq, fill=green!20]{A}; & \node [seq]{}; & \node [seq, fill=orange!50]{C}; & \node [seq]{}; & \node [seq, fill=green!20]{C}; & \node [seq]{}; & \node [seq]{}; & \node [seq, fill=orange!50]{A}; & \node [seq]{}; & \node [seq, fill=orange!50]{A}; & \node [] {$\mathbf{X^{(2)}}$};\\       \node [seq, fill=green!20]{A}; & \node [seq]{}; & \node [seq, fill=yellow!50]{T}; & \node [seq]{}; & \node [seq, fill=green!20]{C}; & \node [seq]{}; & \node [seq]{}; & \node [seq, fill=yellow!50]{T}; & \node [seq]{}; & \node [seq, fill=yellow!50]{T}; & \node [] {$\mathbf{X^{(3)}}$};\\       \node [seq, fill=blue!20]{C}; & \node [seq]{}; & \node [seq, fill=cyan!30]{A}; & \node [seq]{}; & \node [seq, fill=blue!20]{G}; & \node [seq]{}; & \node [seq]{}; & \node [seq, fill=cyan!30]{G}; & \node [seq]{}; & \node [seq, fill=cyan!30]{C}; & \node [] {$\mathbf{X^{(4)}}$};\\       \node [seq, fill=blue!20]{C}; & \node [seq]{}; & \node [seq, fill=cyan!30]{A}; & \node [seq]{}; & \node [seq, fill=blue!20]{G}; & \node [seq]{}; & \node [seq]{}; & \node [seq, fill=cyan!30]{G}; & \node [seq]{}; & \node [seq, fill=cyan!30]{C}; & \node [] {$\mathbf{X^{(5)}}$};\\       \node [seq, fill=red!50] (tuplecol1left) {A}; & \node [seq]{}; & \node [seq, fill=orange!50] {C}; & \node [seq]{}; & \node [seq, fill=red!50] (tuplecol2left)  {A}; & \node [seq]{}; & \node [seq]{}; & \node [seq, fill=orange!50] {A}; & \node [seq]{}; & \node [seq, fill=orange!50] {A}; & \node [] {$\mathbf{X^{(6)}}$};\\       \node []{$\mathbf{X_{0}}$}; & \node []{$\mathbf{X_{1}}$}; & \node [] {$\mathbf{X_{2}}$}; & \node []{$\mathbf{X_{3}}$}; & \node []{$\mathbf{X_{4}}$}; & \node []{$\mathbf{X_{5}}$}; & \node []{$\mathbf{X_{6}}$}; & \node []{$\mathbf{X_{7}}$}; & \node []{$\mathbf{X_{8}}$}; & \node [] {$\mathbf{X_{9}}$}; \\     };          \matrix [row sep=3mm] at (5, 0)     {      \node [] {(0,}; & \node [] {4)}; \\       \node [seq, fill=blue!20]{C}; & \node [seq, fill=blue!20]{G}; \\       \node [seq, fill=green!20]{A}; & \node [seq, fill=green!20]{C}; \\       \node [seq, fill=green!20]{A}; & \node [seq, fill=green!20]{C}; \\       \node [seq, fill=blue!20]{C}; & \node [seq, fill=blue!20]{G}; \\       \node [seq, fill=blue!20]{C}; & \node [seq, fill=blue!20]{G}; \\       \node [seq, fill=red!50] (tuplecol1right) {A}; & \node [seq, fill=red!50] (tuplecol2right) {A}; \\       \node [] {$(\mathbf{X_0},$}; & \node [] {$\mathbf{X_4})$}; \\     };          \matrix [row sep=3mm] at (9, 0)     {       \node [] {(2,};                 & \node [] {7,};                   & \node [] {9)};                   \\       \node [seq, fill=cyan!30] (triplecol1right) {A}; & \node [seq, fill=cyan!30]  (triplecol2right) {G}; & \node [seq, fill=cyan!30] (triplecol3right) {C}; \\       \node [seq, fill=orange!50]{C}; & \node [seq, fill=orange!50]{A}; & \node [seq, fill=orange!50]{A}; \\       \node [seq, fill=yellow!50]{T}; & \node [seq, fill=yellow!50]{T}; & \node [seq, fill=yellow!50]{T}; \\       \node [seq, fill=cyan!30]{A};   & \node [seq, fill=cyan!30]{G};   & \node [seq, fill=cyan!30]{C};   \\       \node [seq, fill=cyan!30]{A};   & \node [seq, fill=cyan!30]{G};   & \node [seq, fill=cyan!30]{C};   \\       \node [seq, fill=orange!50] {C};& \node [seq, fill=orange!50] {A};& \node [seq, fill=orange!50] {A};\\       \node [] {($\mathbf{X_2},$};                   & \node [] {$\mathbf{X_7},$};                   & \node [] {$\mathbf{X_9})$};                   \\     };          \path [line] (tuplecol1left) edge[out=270, in=270] node {}(tuplecol1right.south east);     \path [line] (tuplecol2left) edge[out=270, in=270] node {}(tuplecol2right.south west);          \path [line] (triplecol1left) edge[out=90, in=90] node {}(triplecol2right);     \path [line] (triplecol2left) edge[out=90, in=90] node {}(triplecol2right);     \path [line] (triplecol3left) edge[out=90, in=90] node {}(triplecol2right);          \end{tikzpicture}     \changefontsizes{12pt}     \end{document}      ![enter image description here](http://i.stack.imgur.com/xSLuc.png)


title: How to align the columns of several tables

text: Given Table 1 and Table 2, I want to create a Table 3 whose columns are > Column1(Table3) = max{Column1(Table1), Column1(Table2)} > > Column2(Table3) = max{Column2(Table1), Column2(Table2)} > > Column3(Table3) = max{Column3(Table1), Column3(Table2)} > > Column4(Table3) = max{Column4(Table1), Column4(Table2)} So, if I copy the elements all from table 1 or all from table 2 to table 3, the layout of table 3 will not change. (The Table 3 below just shows the column width. You can ignore the elements in it.)               \documentclass{article}       \begin{document}                 \begin{table}     \centering     \begin{tabular}{|l|l|l|l|}         \hline         Column1 & Column2 & Column3 & Column4 \\ \hline         The & quick brown & fox & jumps over the lazy dog \\          The & quick brown & fox & jumps over the lazy dog \\         The & quick brown & fox & jumps over the lazy dog\\         \hline     \end{tabular}     \caption{First table}     \end{table}               \begin{table}     \centering     \begin{tabular}{|l|l|l|l|}           \hline         Column1 & Column2 & Column3 & Column4 \\ \hline         The  quick & brown & fox  jumps & over the lazy dog \\         The  quick & brown & fox  jumps & over the lazy dog \\         The  quick & brown & fox  jumps & over the lazy dog\\         \hline     \end{tabular}     \caption{Second Table}     \end{table}               \begin{table}     \centering     \begin{tabular}{|l|l|l|l|}           \hline         Column1 & Column2 & Column3 & Column4 \\ \hline         The  quick & quick brown & fox  jumps & jumps over the lazy dog \\          The  quick & quick brown & fox  jumps & jumps over the lazy dog \\         The  quick & quick brown & fox  jumps & jumps over the lazy dog\\         \hline     \end{tabular}     \caption{Desired Width}     \end{table}               \end{document}       ![enter image description here](http://i.stack.imgur.com/TmiNr.jpg)


title: What are original itemize bullet definitions?

text: We are given a document with original bullet definitions overwritten:               \renewcommand{\labelitemi}{$\circ$}     \renewcommand{\labelitemii}{$\circ$}     \renewcommand{\labelitemiii}{$\circ$}     \renewcommand{\labelitemiv}{$\circ$}     ...      (Example taken from Richard Durr's answer) Assume, we want to make list (in such document) with original bullets (using `\begin{itemize}[label=...]`). What are default definitions of `\labelitemi`, `\labelitemii`, `\labelitemiii`, `\labelitemiv`...? How to retrieve this information?


title: Ammeter and Voltmeter for the circuit TikZ library

text: How can I make the Voltmeter and Ammeter symbols look like in the follwing picture using the `circuits.ee.IEC` library? ![Ammeter and Voltmeter](http://i.stack.imgur.com/r1ldx.jpg) I just managed to do this:               \documentclass{article}          \usepackage{tikz}     \usetikzlibrary{circuits}     \usetikzlibrary{circuits.ee.IEC}               \tikzset{circuit declare symbol = ammeter}     \tikzset{set ammeter graphic ={draw,generic circle IEC, minimum size=5mm}}               \begin{document}          \begin{tikzpicture}[circuit ee IEC]        \draw (0,0) to[ammeter] (2,0);     \end{tikzpicture}          \end{document}      ![empty ammeter](http://i.stack.imgur.com/N2QAt.png)


title: Circuitikz symbols in TikZ circuit library

text: Some time ago, I asked about Relationship between tikz circuit library and circuitikz?. wh1t3 wrote: "However, as far as I know there is nothing the `circuitikz` package does that the TikZ `circuit` library can't." So if it is true that the tikz library is more powerful, how do I get all the symbols described in the `circuitikz` manual using the TikZ circuit library? Especially I am missing the symbols for ammeters and voltmeters.


title: Alternate row colors (shade rows) in algorithmic environment?

text: In a tabular environment, one can achieve an alternating color of rows by using the rowcolors command like so:               \documentclass[11pt,a4paper]{article}     \usepackage[table]{xcolor}            \begin{document}     \rowcolors{2}{gray!25}{white}     \begin{tabular}{cc}             \rowcolor{gray!50}             Table head & Table head \\             Some values & Some values \\             Some values & Some values \\             Some values & Some values \\             Some values & Some values     \end{tabular}     \end{document}      This will produce: ![enter image description here](http://i.stack.imgur.com/mPJxz.png) How can I have a similar effect inside the algorithmic environment? I'm using the algorithmicx package. EDIT: A MWE of a how I use algorithmicx follows.               \documentclass[a4paper]{article}          \usepackage{algorithm}     \usepackage{algpseudocode}          \begin{document}         \begin{algorithm}          \begin{algorithmic}[1] % [1] provides numbers in every line               \If {$i\geq maxval$}               \State $i\gets 0$               \Else               \If {$i+k\leq maxval$}               \State $i\gets i+k$               \EndIf               \EndIf          \end{algorithmic}          \caption{My algorithm}     \end{algorithm}     \end{document}      This yields: ![enter image description here](http://i.stack.imgur.com/0uQVf.png)


title: Global variables for all tikz drawings in a document

text: Sorry if this question sounds too elementary. I am new to TikZ, although I have experience with LaTeX. Say I have multiple TikZ statements in a LaTeX document like the following:               \tikz\draw[line width=2mm] (0,0.1) -- (4,0.1);\hfill\textsc{\Large This is a block}%      \hfill \tikz\draw[line width=2mm] (0,0.1) -- (4,0.1);      I would like to define variables (e.g. `line_thickness` and `line_width`:               line_thickness = 2mm     line_width = 4      that I could use in all such statements so that, if I want to change the parameters of my drawings in my LaTeX document, I could just change the value of my variables where I define them. Is it possible to do this in TikZ? I am interested in a relatively general solution, e.g. some of these variables may specify **color** , **length** , **relative coordinates** , etc. although a solution to addresses my particular problem above would already help a lot. I have read the solutions in these threads:   * Variables in TikZ   * Defining Variables in TikZ but I don't know how to apply the answers to my problem.


title: How can I define a command before the begin{document} instruction in LyX?

text: I'd like to use the command:               \usepackage{pifont}      before the begin{document} instruction in LyX. But I don't know where to put it exactly. Is it possible someone can help me? Thanks!


title: animate graphic with decreasing numbers and missing 0

text: I want to animate different png-files into one graphic in LaTeX. I use:               \documentclass{beamer}     \usepackage{graphicx}     \usepackage{animate}          \begin{document}     \frame{     \frametitle{Monte Carlo Simulation - 22 trading days, 1000 simulations}     \vspace{-0.5cm}     \begin{center}     \animategraphics[scale=0.5,autoplay]{5}{3d}{211}{1}     \end{center}     }          \end{document}      So the decreasing from 211 to 210 and so on works, but the problem is, that LaTeX e.g. searches for the file "3d099":               ! Package animate Error: Neither of the files     (animate)                `3d099.pdf',     (animate)                `3d099.mps',     (animate)                `3d099.png',     (animate)                `3d099.jpg',     (animate)                `3d099.jpeg',     (animate)                `3d099.jbig2',     (animate)                `3d099.jb2',     (animate)                `3d099.jp2',     (animate)                `3d099.j2k' or     (animate)                `3d099.jpx',     (animate)                could be found.     (animate)                Wrong file type? Mis-spelled file name?.          See the animate package documentation for explanation.     Type  H <return>  for immediate help.      ...                                                        l.865 }          ?       But the file name is "3d99.png", so what do I have to change, that LaTeX does it correct?


title: Creating PDF with external link to open another PDF

text: I am preparing a PDF file which will be put on the web. People will access it and should be able to open other pdf files from my PDF. My commands works well for local pdf:               \href{run:./presentations/#1.pdf}      This is no brainer and it works. However, when I publish my pdf file and have all the additional files in the presentations directory, this command does not work online. If I use the absolute link as below               \href{http://127.0.0.1/presentations/#1.pdf}      it works. However, I need to be able to produce the pdf and then to store it onto a website with a relative link to the file. I am not able to "guess" the exact link that I will have to give. I have tryed many usual short cuts:               \href{./presentations/#1.pdf}     \href{http://./presentations/#1.pdf}     \href{http:~/presentations/#1.pdf}      but none of them works. Is there a way to have a relative link which will open?


title: gentium as font with pdflatex from texlive 2012

text: How can Gentium be used as default font with `pdflatex` from TeX Live 2012? Somehow Gentium is included in TeX Live but cannot be accessed with `\usepackage{gentium}`, see What font packages are installed in TeX live?.


title: Missing number needed to (re)define \hrulefill

text: The following code works but comes with three errors. Undefined control sequence, missing number, illegal unit of measure. It seems that the redefined `\hrulefill` is expecting a number to be input but I don't know what or where. Any suggestions would be appreciated.               \documentclass{exam}     \def\hrulefill{\leavevmode\leaders\hrule height 0.1pt \hfill\kern\z}         \begin{document}           Start with text before filling the rest of the line with a line. \hrulefill     \end{document}


title: How to place a "floating text box" at a specified location in page coordinates

text: I have read this thread, but I don't think it addresses the same problem. I am looking for a way to have a command in LaTeX with an interface as follows:               \placetextbox{x_in_page_percentage, y_in_page_percentage}{This is my text}      The command would place the text `This is my text` centered within a box that **may overlap** with anything else on the page, and that would be placed at the coordinates specified by the variables `x_in_page_percentage` and `y_in_page_percentage`. These variables control the location of the `x` in the diagram below. E.g.               -------------x---------------           This is my text     -----------------------------      This way, something like `\placetextbox{0.5, 0.5}{This is my text}` would place the text roughly on the center of the page, regardless of anything else that may be on that location. Any thoughts how to do this?


title: Scatter plot with a grid and axis lines going through the origin

text: I want to make a scatter plot with error bars (using pgfplots or tikz) with two characteristics; I need the two axes to meet at `(0,0)`, and a grid in the background. I tried to google this a number of times, and I can't seem to combine these two. New to tikz and pgfplots. Thanks a lot in advance!


title: Undefined control sequence \text when importing Matlab figures

text: I'm following a tutorial to import Matlab figures through `tikz`, however after trying to compile the `.tex` file I get the following error:               ABD: EveryShipout initializing macros (./mysphere.tikz     ! Undefined control sequence.     <recently read> \text           l.1005 \end{axis}          ?       I created the `mysphere.tikz` file exactly as described in the link, and I am including the file in LaTeX as indicated:               \begin{figure}          \centering          \newlength\figureheight         \newlength\figurewidth         \setlength\figureheight{6cm}         \setlength\figurewidth{6cm}         \input{mysphere.tikz}         \caption{A plot of a sphere}         \label{fig:sphere}     \end{figure}       I am using TeXworks and `pdflatex` to compile the file, on Ubuntu 12.10.


title: Proper way to use LaTeX fonts in XeLaTeX

text: What is the proper way to use LaTeX fonts, for example calligra or other fonts from the Font Catalogue in XeLaTeX. Something like               \usepackage{fontspec}     \setromanfont{Calligra}      doesn't work. However using it just like in pdflatex via `\usepackage{calligra}` and `\calligra` works. So what's the best way to use LaTeX fonts from the Fonts Catalogue in XeLaTeX?


title: Making author names parallel and aligned in article document class

text: In the `article` document class, how to make author names parallel and aligned like we align inequalities and equations? Is there a default command to do so? I have tried `\and` but that just made author names in a line, not parallel. If not, will you please tell me how to make it happen?