title: Header and Footer Styling in book class

text: I added the header and footer but I encountered the following problems:   i)The header and footer appear on a blank page (on two side book class), how to remove that?   ii)In the footer , the page number is appearing twice   iii)When I used twoside book attribute, the alignment of one of the pages totally changed   iv)Also now since it is two sided , the pages don't seem to be centered as in oneside. I am updating my images.![enter image description here](http://i.stack.imgur.com/TKuiJ.png)   ![enter image description here](http://i.stack.imgur.com/meWkn.png)   ![enter image description here](http://i.stack.imgur.com/KKMqR.png)      ![enter image description here](http://i.stack.imgur.com/GD3cW.png) Here is the source code:               \documentclass[12pt]{book}     \usepackage{graphicx}     \usepackage[explicit]{titlesec}     \usepackage{tikz}     \usepackage{fancyhdr}     \pagestyle{fancy}     \fancyhead[LE,RO]{\slshape \rightmark}     \fancyhead[LO,RE]{\slshape \leftmark}     \fancyfoot[LE,RO]{\thepage}     \renewcommand{\headrulewidth}{0.4pt}     \renewcommand{\footrulewidth}{0.4pt}     \renewcommand{\chaptermark}[1]{%     \markboth{\thechapter.\ #1}{}}     \renewcommand{\sectionmark}[1]{%     \markright{#1}{}}     \usetikzlibrary{shapes.misc,arrows}     \newcommand\titlebar{%     \tikz[baseline,trim left=0cm,trim right=3.05cm] {%         \node [             text = red!70!green,             anchor= base east,             minimum height=3.5ex] (a) at (3.05cm,0) {%             \textbf{\arabic{chapter}.\thesection}         };        \path[fill=red!70!blue] (a.east) circle (.5ex);        \draw[color=red!70!blue, thick,rounded corners=1ex] (a.east) |- (\textwidth+2.15cm,-0.75ex);     }%     }          \newcommand\subtitlebar{%     \tikz[baseline,trim left=0cm,trim right=3.05cm] {%         \node[             text = red!70!green,             anchor= base east,             minimum height=3.5ex] (b) at (3.05cm,0) {%             \textbf{\arabic{chapter}.\arabic{section}.\thesubsection}         };        \path[fill=red!70!blue] (b.east) circle (.5ex);        \draw[color=red!70!blue, thick,rounded corners=1ex] (b.east) |- (\textwidth+2cm,-0.75ex);     }%     }          \titleformat{\subsection}{\normalfont\sf}{\subtitlebar}{0.2cm}{\textcolor{blue!60!green}{#1}}     \titlespacing*{\subsection}{-2cm}{3.5ex plus 1ex minus .2ex}{2.3ex plus .2ex}     \titlespacing*{name=\subsection,numberless}{0cm}{3.5ex plus 1ex minus .2ex}{2.3ex plus .2ex}     \renewcommand*{\thesubsection}{\arabic{subsection}}               \titleformat{\section}{\large\sf}{\titlebar}{0.25cm}{\textcolor{blue!60!green}{#1}}     \titlespacing*{\section}{-2.15cm}{3.5ex plus 1ex minus .2ex}{2.3ex plus .2ex}     \titlespacing*{name=\section,numberless}{0cm}{3.5ex plus 1ex minus .2ex}{2.3ex plus .2ex}     \renewcommand*{\thesection}{\arabic{section}}               \begin{document}     \begin{titlepage}     \newcommand{\HRule}{\rule{\linewidth}{0.5mm}}     \centering          \includegraphics[scale=0.25]{pec_emblem}\\[0.5cm]          %\textsc{\LARGE PONDICHERRY ENGINEERING COLLEGE}\\[1.5cm]     %\textsc{\Large CASE TOOLS LABORATORY}\\[0.5cm]     %\textsc{\large SOFTWARE REQUIREMENTS SPECIFICATION}\\[0.5cm]     {\LARGE\scshape PONDICHERRY ENGINEERING COLLEGE\\[1.5cm]}     {\Large\scshape CASE TOOLS LABORATORY\\[0.5cm]}     {\large\scshape SOFTWARE REQUIREMENTS SPECIFICATION\\[0.5cm]}          \HRule \\[0.4cm]     %{ \huge \bfseries WEB BLOG}\\[0.4cm]     {\huge\bfseries WEB BLOG\\[0.4cm]}     \HRule \\[1.5cm]          \begin{minipage}{0.4\textwidth}     \begin{flushleft} \large      \emph{Author:}\\      \textsc{Subham Soni}     \end{flushleft}     \end{minipage}     ~     \begin{minipage}{0.4\textwidth}     \begin{flushright} \large     \emph{Supervisor:}\\     \textsc{Mr.M. Thirumaran}     \end{flushright}     \end{minipage}\\[4cm]          %{\Large \today }\\[3cm]     {\Large \today \\[3cm]}     \vfill     \end{titlepage}     \tableofcontents     \chapter{Introduction}     The word \textbf{Blog} is the combination of \textbf{weB} $+$ \textbf{LOG}.A Blog is the combination of a \emph{Journal} and a \emph{Website}.A Blog lets lets you share your experience with many people.A Blog has two owners, the \textsc{Author} and the \textsc{Reader}.The Author visits the Blog administration area and writes a new post.The post consists of a \texttt{Title},\texttt{Content} and some \texttt{Tags}.     \section{Benefits}     Some of the benefits of a Web Blog are :     \begin{itemize}     \item Blogs are totally \emph{searchable}.Blogs can searched for people,events,places or even your own name to see if people are blogging about you.     \item Blogs are completely \emph{interactive}.Readers of the blog can leave comments about the author's posts.Other readers can reply those comments and the author can reply all of them if they want to.     \item Blog posts can be \emph{sorted} by \texttt{topic}.When the others write a post they can write a label to this post for words like \textsf{work},\textsf{home},\textsf{family},\textsf{vacation},etc\ldots\\Then the reader can sort the different topics they have labelled them.     \item Blogs are great because they allow us to \emph{share} our lives with people especially with our friends     \item \textbf{Technorati} is a \texttt{Blog Search Engine} that works just like \emph{Google}, the search engine gives results of the various blogs available based on the query and the \texttt{url} that it is located in.     \end{itemize}     \section{Purpose of Requirements Documents}     The Software Requirements Specification (SRS) will provide a detailed description of the requirements for the Web Blog. This SRS will allow for a complete understanding of what is to be expected of the Web Blog to be constructed. The clear understanding of the Web Blog and its’ functionality will allow for the correct software to be developed for the end user and will be used for the development of the future stages of the project. This SRS will provide the foundation for the project. From this SRS, the Web Blog can be designed, constructed, and finally tested.This SRS will be used by the software engineers constructing the Web Blog and the  end users. The software engineers will use the SRS to fully understand the expectations of this Web Blog to construct the appropriate software. The end users will be able to use this SRS as a “test” to see if the software engineers will be constructing the system to their expectations. If it is not to their expectations the end users can specify how it is not to their liking and the software engineers will change the SRS to fit the end users’ needs.     \section{Objectives}     The \emph{general} and \emph{specific} objectives of the project are described below:     \subsection*{General Objectives}     The general objective of the project is to develop a Web Blog.     \subsection*{Specific Objectives}     In order to achieve the general objective,the following list of specific objectives is set:     \begin{itemize}     \item To develop a  registration system for people to create blogs     \item To develop an interface to create post and edit blogs     \item To develop a comment system for the posts.     \item To develop a search system to search the blog by people,events,places     \item To develop a share system to share the blogs     \end{itemize}     \section{Scope of the Product}     The software product to be produced is a \emph{Web Blog} which will enable people create and maintain their own blogs. The first subsystem is the \emph{registration} system to register the new users. The second subsystem is the \emph{interface} system which helps people to create and post their blogs and edit them(if needed). The third subsystem is \emph{comment} system that is facility for the \texttt{blog owners},\texttt{blog readers} and \texttt{others} to comment about the blog and the comments itself.The fourth subsystem is the \emph{search} system.It allows people to search for the blog(s) by title,people,events or places.The fifth subsystem is the \emph{share} subsystem.This allows people to share the blogs with the social media.These are the five subsystems.\par     There are two end users for the Web Blog. The end users are the Authors and Readers.\par     The Web Blog's objectives is to provide more facilities than a simple journal.Since every day new blogs will be posted or edited, the system's stability depends solely on the \emph{database}.The database must be capable of storing the huge amount of information.The number of blog posts are dependent on the number of records the database can handle.The database must be efficient enough to display the results when a search query is passed to it.The system should be user appropriate, easy to use, provide easy recovery of errors and have an overall end user high subjective satisfaction.     \section{Limitations}     The limitations of this project are:     \begin{itemize}     \item The number of tags available for the posts are limited     \item The appropriate \textsc{U.R.L} is not generated for the blog post.The user has to provide the link manually by searching the blogs     \end{itemize}     \section{Overview}     The SRS is organized into two main sections. The first is The Overall Description     and the second is the Specific Requirements. The Overall Description will describe the requirements of the Web Blog from a general high level perspective. The Specific Requirements section will describe in detail the requirements of the system.     \chapter{General Description}     Describes the general factors that affect the product and its requirements. This section does not state specific requirements. Instead it provides a background for those requirements, which are defined later, and makes them easier to understand.     \section{Product Perspective}     The Web Blog system is independent stand-alone system but for the sharing of the blog posts it uses the \emph{web services} provided by various social media networks like \emph{Facebook},\emph{Twitter},\emph{Google$+$}     \section{Product Functions}     \begin{itemize}     \item \textsc{Registration System}     \begin{itemize}     \item The user has to register before he$/$she can start posting the blogs     \item The user can provide their interests , so that the latest blogs appear on his home screen of his interested topics     \end{itemize}     \item \textsc{Interface System}     \begin{itemize}     \item The user can give details about the blog title,subject and the content of the blog     \item The user (if they want) can  provide additional tags for the blogs     \item The user can create his/her blog by clicking the \textbf{PUBLISH} button     \item The user , if neccesary , can edit his posted blog and update them     \end{itemize}     \item \textsc{Comment System}     \begin{itemize}     \item The reader of the blog can comment on a blog post     \item The reader of the blog can comment on a comment already available     \item The author of the blog can comment on all of these     \end{itemize}     \item \textsc{Search System}     \begin{itemize}     \item The user/reader can search for blogs based on content,title,tags,popularity.     \item The search results can be sorted in the required order     \end{itemize}     \item \textsc{Share System}     \begin{itemize}     \item The reader of the blog can share with others through \textit{Email},\textit{Social Media} like Facebook,Twitter,etc\ldots     \end{itemize}     \end{itemize}     \section{Assumptions and Dependencies}     The assumptions and dependencies of the system are:     \begin{itemize}     \item The \textsl{Save as Draft} option is not implemented in the system     \item The \textsc{U.R.L.} of the blog is not generated     \item The blog content is purely \emph{text-oriented}.There are no formatting options available.     \end{itemize}     \chapter{Specific Requirements}     \section{External Interfaces}     The Web Blog will use the standard input/output devices for a personal computer. This includes the following:     \begin{itemize}     \item Keyboard     \item Mouse     \item Monitor     \end{itemize}     \section{User Interfaces}     \begin{center}     \begin{tabular}{|p{.50\textwidth}|p{.50\textwidth}|}     \hline     \textbf{SCREEN NAME}&\textbf{DESCRIPTION}\\     \hline     Registration&Create an account for the new user for blogging\\     \hline     Login&Provide access to the user for blogging\\     \hline     Create Blog&Interface for the user to create a blog.It consists of a blog title,blog subject,blog content,tags(optional) and the publish button\\     \hline     Edit Blog&Interface for the user to edit the existing blog.Provide a search feature,to search the blog to be edited and then the same interface as Create Blog with contents filled and an update button\\     \hline     Comment Blog&Interface for the user to comment on a blog post.It consists of a textarea and a comment button\\     \hline     Share Blog&Interface for the user to share the blog post.It consists of various buttons to provide a choice of access to share followed by the email address of the people with whom the user wants to share the blog and a share button.\\     \hline     \end{tabular}     \end{center}     \section{Software Interfaces}     The Web Blog is implemented using \textsc{Php}.Since \textsc{Php} has an in-built support for My\textsc{SQL},the My\textsc{SQL} database will be used.     \section{Hardware Interfaces}     The Web Blog is implemented in a \emph{platform-independent} architecture.The software can run on any machine but the server should have a support for \textsc{Php}.     \section{Functional Requirements}     The Functional Requirements of the system are:     \begin{itemize}     \item Register the user     \item Post \& Edit a Blog     \item Comment a Blog     \item Search for a Blog     \item Share a Blog     \end{itemize}     \section{Non Functional Requirements}     The Non Functional Requirements are:     \begin{itemize}     \item User validation during login to ensure the user is authentic     \item Efficient search of blog from the database     \item User validation when a blog is shared to ensure the authenticity of the user and the social media network     \item Displaying the blogs that are updated daily on the user screen based on the tags he$/$she have set     \end{itemize}     \section{Analysis Model}     To produce a model of the system which is correct, complete and consistent we need to construct the analysis model which focuses on structuring and formalizing the requirements of the system.\par     Analysis model contains three models: functional, object and dynamic models. The functional model can be described by use case diagrams.  Class diagrams describe the object model.\par     Dynamic model can also be described in terms of sequence, state chart and activity diagrams. For the purpose of this project we have described the analysis model in terms of the functional model and dynamic models using use case and sequence diagrams.     \end{document}


title: How can I make Beamer overlays with TikZ node attributes?

text: As a follow-up question to Tikz animated figure in Beamer, how can I animate a particular attribute of a node? ### MWE               \documentclass{beamer}          \usepackage{tikz}     \usetikzlibrary{graphs}          \tikzset{       node distance = 3 cm,       graph vertex/.style={         circle,         draw,         minimum size=7.5mm,       },       marked/.style={         color=white,         fill=black,       },     }          \begin{document}     \begin{frame}       \centering         \begin{tikzpicture}           \node[graph vertex, marked] (1) at (0 , 3) {$v_1$};           \node[graph vertex,       ] (2) at (0 , 6) {$v_2$};           \node[graph vertex,       ] (3) at (3 , 3) {$v_3$};           \node[graph vertex, marked] (4) at (3 , 6) {$v_4$};           \node[graph vertex,       ] (5) at (5 , 8) {$v_5$};                \graph {             (1) -- (3) -- (4) -- (2) --[bend left] (5),             (1) -- (2),             (1) -- (4),             (3) --[bend right] (5)           };       \end{tikzpicture}     \end{frame}          \begin{frame}       \centering       \begin{tikzpicture}           \node[graph vertex, marked] (1) at (0 , 3) {$v_1$};           \node[graph vertex,       ] (2) at (0 , 6) {$v_2$};           \node[graph vertex,       ] (3) at (3 , 3) {$v_3$};           \node[graph vertex, marked] (4) at (3 , 6) {$v_4$};           \node[graph vertex, marked] (5) at (5 , 8) {$v_5$};                \graph {             (1) -- (3) -- (4) -- (2) --[bend left] (5),             (1) -- (2),             (1) -- (4),             (3) --[bend right] (5)           };       \end{tikzpicture}     \end{frame}          \begin{frame}       \centering       \begin{tikzpicture}           \node[graph vertex, marked] (1) at (0 , 3) {$v_1$};           \node[graph vertex,       ] (2) at (0 , 6) {$v_2$};           \node[graph vertex,       ] (3) at (3 , 3) {$v_3$};           \node[graph vertex,       ] (4) at (3 , 6) {$v_4$};           \node[graph vertex, marked] (5) at (5 , 8) {$v_5$};                \graph {             (1) -- (3) -- (4) -- (2) --[bend left] (5),             (1) -- (2),             (1) -- (4),             (3) --[bend right] (5)           };       \end{tikzpicture}     \end{frame}     \end{document}      I'd like to get this syntax to something like               \begin{frame}       \centering         \begin{tikzpicture}           \node[graph vertex, marked      ] (1) at (0 , 3) {$v_1$};           \node[graph vertex,             ] (2) at (0 , 6) {$v_2$};           \node[graph vertex,             ] (3) at (3 , 3) {$v_3$};           \node[graph vertex, marked=<1-2>] (4) at (3 , 6) {$v_4$};           \node[graph vertex, marked=<2-3>] (5) at (5 , 8) {$v_5$};                \graph {             (1) -- (3) -- (4) -- (2) --[bend left] (5),             (1) -- (2),             (1) -- (4),             (3) --[bend right] (5)           };       \end{tikzpicture}     \end{frame}      I'm open to other syntax options as well, as long as it 'more or less' adheres to the above (i.e. doesn't duplicate code, is readable). ### Attempt with `overlay-beamer-styles`               \documentclass{beamer}          \usepackage{tikz}     \usetikzlibrary{graphs}     \usetikzlibrary{overlay-beamer-styles}          \tikzset{       node distance = 3 cm,       graph vertex/.style={         circle,         draw,         minimum size=7.5mm,       },       marked/.style={         color=white,         fill=black,       },       marked on/.style={alt=#1{}{marked}},     }          \begin{document}     \begin{frame}       \centering         \begin{tikzpicture}           \node[graph vertex, marked         ] (1) at (0 , 3) {$v_1$};           \node[graph vertex,                ] (2) at (0 , 6) {$v_2$};           \node[graph vertex,                ] (3) at (3 , 3) {$v_3$};           \node[graph vertex, marked on=<1-2>] (4) at (3 , 6) {$v_4$};           \node[graph vertex, marked on=<2-3>] (5) at (5 , 8) {$v_5$};                \graph {             (1) -- (3) -- (4) -- (2) --[bend left] (5),             (1) -- (2),             (1) -- (4),             (3) --[bend right] (5)           };       \end{tikzpicture}     \end{frame}     \end{document}


title: how to ensure items in two minipages are in same line

text: By including a tikz-picture in my two (tabular) minipages my items are messed up. Ideally there is a corresponding item for each (except there's an empty entry for the last item in the left table). Also, how to ensure that the resulting output is horizontally centered in the page, please?               \documentclass{article}     \usepackage{tikz}     \usepackage{soul}     \begin{document}     \newenvironment{Myitemize}{     \renewcommand{\labelitemi}{{}}     \begin{itemize}}{\end{itemize}}          \begin{minipage}[t]{0.5\textwidth}     \begin{tabular}[t]{p{6.5cm}}     \multicolumn{1}{c}{\ul{Discrete}} \\     \begin{enumerate}       \item Probability mass function (p.m.f.)      \begin{tikzpicture}             \draw (0,0)--(5,0);             \draw (1,2)--(1,0);             \draw (3,1)--(3,0);             \draw (4,0.8)--(4,0);     \end{tikzpicture}         \item $f(x)$ gives $Pr(X=x)$         \item Zero probability $\Rightarrow$ Impossibility         \item      \end{enumerate} \\     \end{tabular}     \end{minipage}     \begin{minipage}[t]{0.5\textwidth}     \begin{tabular}[t]{p{6.5cm}}     \multicolumn{1}{c}{\ul{Continuous}}\\     \begin{Myitemize}       \item Probability density function (p.d.f.)      \begin{tikzpicture}         \draw (0,0)--(5,0);       \draw (0,.7) ..controls (3,2.5) and (4,.8) ..(5,.7);     \end{tikzpicture}         \item Not so; $Pr(X=x)=0$ always         \item Zero probability events do occur         \item Can get positive probability (area under continuous curve) for intervals no matter how small     \end{Myitemize} \\     \end{tabular}     \end{minipage}                         \end{document}


title: Verbatim environment with background color (PDFLaTeX and tex4ht)

text: I need to make a verbatim environment with gray background color, such as: ![colored background verbatim envrionment](http://i.stack.imgur.com/KKLFP.png) That needs to work with PDFTeX and tex4ht on an older TeX installation (from 2009 I believe). My approach so far is               \documentclass{article}          \usepackage{framed,color,verbatim}     \definecolor{shadecolor}{rgb}{.9, .9, .9}          \newenvironment{code}%        {\snugshade\verbatim}%        {\endverbatim\endsnugshade}               \begin{document}     text          \begin{code}     line one     line two     \end{code}               \end{document}      which works when I run it with `pdftex main.tex`. But when I give the command `htlatex main xhtml,4,next` I get errors:               (/opt/texlive2011/texmf-dist/tex/generic/tex4ht/html4-math.4ht)) (./main.aux)     ! You can't use `\prevdepth' in horizontal mode.     \nointerlineskip ->\prevdepth                                    -\@m \p@      l.17 \end{code}          ?      ! Emergency stop.     \nointerlineskip ->\prevdepth                                    -\@m \p@      l.17 \end{code}          No pages of output.      What can I do to get the custom gray background verbatim environment as in the example (called "code") with PDFTeX and tex4ht with TeXlive from 2009?


title: Setting a document in MS Word-12pt (12bp)

text: ## Warning If you're looking for advice how to **make your document look like it's been written in Word** , this is most likely **not the question you're looking for**. This question is mostly of theoretical nature, as it results in tiny differences, which will most likely not be noticed by someone who doesn't allow the use of LaTeX. Questions that might be more helpful for this matter are:   * Making a LaTeX document appear as though it were typeset in MS Word   * LaTeX optimal settings for MS Word-like document   * Make a LaTeX document look like it was written in Microsoft Word   * Change section fonts * * * ## Question I learned that MS Word uses a slightly different version of the unit "point" (pt) than TeX does: > The 12 point of Word will be PostScript point, which in TeX would be called > 12bp. A TeX `pt` is slightly smaller: it's 1/72.27 inch, while a > `bp`/PostScript point is 1/72 inch. See also > http://en.wikipedia.org/wiki/Point_%28typography%29 (Martin Schröder in Latex commands for a specific page format) I'm writing a paper that would usually be expected to be "typeset" in MS Word, thus I want to use the same font size as Word would. **How do I set a document e.g. in the "12pt" font size that MS Word would use?** In case it matters, I'm using the `article` document class, Latin Modern (`lmodern`) as a font with the T1 font encoding and compile with pdfLaTeX, but input on different set-ups is more than welcome.


title: LaTeX font-size vs. word font-size

text: I need to write an assignment, and my professor told me that I had to use MS Word with the "font-size 12". I assume, he means this number: ![Example MS-Word-Picture](http://i.stack.imgur.com/8DUiU.png) He is not a technical person, so he doesn't really know what this number represants and he cannot tell me. I myself have never used MS Word, I am a linux-user and I'm writing my assignment with LaTex (which he actually allows me to do), because that's just my workflow and the results look way better. Whatever, my question is, when he tells me to use "font-size 12" (in MS-Word), which is it? Is it 12pt, 12mm, 12px, 12em, ..? Which font-size should I specify in my documentclass to (kind of) fit his requirements?


title: The text-equation space in two equations is extremely different; even though I left no blank lines

text: I am introducing this text and equation:               Con la energía del punto cero pasa una cosa muy similar: utilizando la ecuación \ref{E_ZPE}, y sustituyendo las tres frecuencias $\nu _{i}$ experimentales (anarmónicas) obtenemos la energía      % I have no blank line between the following and the upper text     \begin{equation}     \label{z}      E_{ZPE}\left ( \text{anarmónica, experimental} \right )=\sum_{i=1}^{3}\left ( \tfrac{1}{2}\,h\nu _{i} \right )=4503.515 \text{ cm$^{-1}$}.     \end{equation}     % I have no blank line between the following and the upper equation     Puesto que las frecuencias calculadas son las armónicas, la $E_{ZPE}$ calculada será también la armónica, la denotaremos como $E_{ZPE}\left ( \text{armónica, calculada} \right )$, y se recoge en la tabla \ref{tabla_resutados_monomero} para cada uno de los cálculos realizados. Como se puede observar, comparanddo la calculada con la $E_{ZPE}\left ( \text{anarmónica, experimental} \right )$, h      This is the result: ![enter image description here](http://i.stack.imgur.com/geEQZ.png) The result is that both spacings: a) the spacing between above_text and equation b) the spacing between below_text and equation Both are very big, compared to other equations, such as this one:               Según la ecuación \ref{momento_dipolar_molecula}, para calcular el momento dipolar de la molécula es necesario primero calcular $\rho \left ( \vec{r}\, \right )$, pero obtenerlo a partir de la Ec. (\ref{rho_r}) es enormemente costoso, dada la elevada dimensión de la integral. Se puede demostrar que $\rho \left ( \vec{r}\, \right )$ se puede obtener así:     % I have no blank line between the following and the upper text     \begin{equation}     \label{rho_r_a_partir_de_matriz_P_tu}     \rho \left ( \vec{r}\, \right )=\sum_{t}\sum_{u}P_{tu}\,\phi_{t}^{*}\left (   \vec{r}\, \right )\phi _{u}\left ( \vec{r}\, \right ),     \end{equation}     % I have no blank line between the following and the upper equation     donde $\phi_{t}^{*}\left ( \vec{r}\, \right )$ es, respectivamente, el conjugado complejo del orbital atómico $t$ o $u$ en el punto $\left ( \vec{r}\, \right )$ (orbital atómico, o en general, función de base). $P_{tu}$ son los elementos de la matriz de densidad $P_{tu}$. De esta forma, tras terminar el cálculo $FC=SCE$, podemos reciclar la matriz        Which this is the result: ![enter image description here](http://i.stack.imgur.com/BcDCi.png) Why in the first case both spacings are bigger than in the second case ?


title: Overlay/merge images with a slanted edge

text: Is there away to overlay two images, I only want to see half of one and half of the other. The picture below shows the effect I'm going for. Should I just be processing my images in Photoshop or can LaTeX achieve this. I like the slanted effect but if it is easier to do a vertical split that would be good to. ![enter image description here](http://i.stack.imgur.com/rxs4f.png)


title: Strike trough matrix column does not work with externalize

text: In my latex article I use the pgfplots libary external to externalize plots and save compile time. This gives a confilict in the follwing code, where I try to strike trhough the first collumn of a matrix. When I remove the external library, it gives the output that I want: ![Right result](http://i.stack.imgur.com/dxhej.jpg) But when I uncomment these two lines in the code below, this is the output ![Output of pdflatex](http://i.stack.imgur.com/Gy3CP.jpg) How can I keep the externalization and still get the output I want?               \documentclass{article}     \usepackage{amsmath}     \usepackage{tikz}     \usepackage{pgfplots}                                       %For plotting graphs with pgf/tikz               %comment these two lines to get it working     \usepgfplotslibrary{external}                               %Externalize tikz pictures to save compile time     \tikzexternalize                                            %Externalize tikz pictures to save compile time               \newcommand{\tikzmark}[2]{\tikz[overlay,remember picture,baseline] \node [anchor=base] (#1) {$#2$};}          \newcommand{\DrawLine}[3][]{%       \begin{tikzpicture}[overlay,remember picture]         \draw[#1] (#2.north) -- (#3.south);       \end{tikzpicture}     }          \begin{document}     \[     \begin{pmatrix}       \tikzmark{topA}{a} & \tikzmark{topB}b & {0} \\       a & b & 0 \\       a & b & 0 \\       \tikzmark{bottomA}{c} & \tikzmark{bottomB}d & {1}     \end{pmatrix}     \]     \DrawLine[red, thick, opacity=0.5]{topA}{bottomA}     \end{document}


title: Wrong positioning of month label tikz calendar

text: I have the following code:               \begin{figure}[t]     \centering           \begin{tikzpicture}                 [every calendar/.style={                      month label above left,                      month text={\textit{\%mt, \ \%y0}},                      week list}]              \calendar[dates=2013-07-01 to 2013-09-last];             \end{tikzpicture}         \caption{Calendar}         \label{fig:Calendar}     \end{figure}      Which produces the following output: ![enter image description here](http://i.stack.imgur.com/QWNf2.png) I'm loading `\usepackage{tikz}` along with `\usetikzlibrary{calendar,shapes.geometric}` Any ideas why the label is so misplaced? UPDATE: Complete MWE:               \documentclass[a4paper,twoside,11pt,openright]{report}          \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage[english]{babel}     \usepackage{tikz}                                             %Tikz Calendar         \usetikzlibrary{calendar,shapes.geometric}               \begin{document}     Hola.          \begin{figure}[t]     \centering           \begin{tikzpicture}                 [every calendar/.style={                      month label above left,                      month text={\textit{\%mt, \ \%y0}},                      week list}]              \calendar[dates=2013-07-01 to 2013-09-last];             \end{tikzpicture}         \caption{Calendar}         \label{fig:Calendar}     \end{figure}          \end{document}


title: Column with fixed width and centre alignment

text: In the following code,               \documentclass[12pt]{article}     \usepackage{multirow}     \usepackage{array}     \usepackage{hhline}          \newcommand{\spe}[1]{\multicolumn{2}{c}{#1}}          \makeatletter     \newcommand*{\@rowstyle}{}     \newcommand*{\rowstyle}[1]{% sets the style of the next row       \gdef\@rowstyle{#1}%       \@rowstyle\ignorespaces%     }     \newcolumntype{=}{% resets the row style       >{\gdef\@rowstyle{}}%     }     \newcolumntype{+}{% adds the current row style to the next column       >{\@rowstyle}%     }     \makeatother          \begin{document}     \begin{center}     \begin{tabular}{*{16}{+c}}     \hhline{~~~~~~~~~~~~~~~~}      \spe{a} &  \spe{b} &  \spe{c} &  \spe{d} &  \spe{e} &  \spe{f} &  \spe{g}     &  \spe{h} \\     \hhline{~~~~----~~~~~~~~}      \spe{a} &  \spe{b} &  {c} &  {d} &  {c} &  {d} &  \spe{e} &  \spe{f} &  \spe{g} &  \spe{h} \\     \end{tabular}     \end{center}     \end{document}      I need the table to be of equal width columns even in multicolumns. i. e. ![enter image description here](http://i.stack.imgur.com/Hr1GH.png) But the produced output neglects columns without any content. i. e. ![enter image description here](http://i.stack.imgur.com/7WGPc.png) Even `p{}` does not achieve this. Also, the column content should be centre aligned. In most of the column types, the content alignment is not controlled or the width is not controlled. Any ideas, guys?!


title: Sublime 3 with Arara

text: I would like to use Sublime 3 for my LaTeX work, however I'm having some difficulty getting arara working as part of the build. I have TexLive installed so I have the arara binaries available (used them with TexStudio), and I don't mind about which LaTeX plugin I use (LaTeXing, LaTeXTools, LaTeXSQ), I'd just like arara working for glossaries. Here is the snippet I'd like to compile as a test               % arara: pdflatex: { draft: true }     % arara: makeglossaries     % arara: pdflatex: { synctex: true }         % arara: pdflatex: { synctex: true }      \documentclass{article}     \usepackage{longtable}     \usepackage[acronym,nonumberlist]{glossaries}          % abbreviations:     \newacronym{ny}{NY}{New York}     \newacronym{la}{LA}{Los Angeles}     \newacronym{un}{UN}{United Nations}          % nomenclature:     \newglossaryentry{angelsperarea}{       name = $a$ ,       description = The number of angels per unit area,     }     \newglossaryentry{numofangels}{       name = $N$ ,       description = The number of angels per needle point     }     \newglossaryentry{areaofneedle}{       name = $A$ ,       description = The area of the needle point     }          \makeglossaries     \begin{document}     \printglossary[title=Nomenclature]     \printglossary[type=\acronymtype,title=Abbreviations]          \gls{ny}, \gls{la} and \gls{un} are abbreviations whereas     \gls{angelsperarea}, \gls{numofangels} and \gls{areaofneedle} kare part of the     nomenclature     \gls{ny} \gls{ny} ;l          d     \end{document}


title: Removing hyperref for acronym starred commands

text: In the acronym package, the starred commands \ac* and \acp* omit the acronym from the list of acronyms with option "printonlyused". My problem is that acronyms inserted like this are still hyperref links in PDFs created with pdflatex. I would like to have link-free acronyms if they are inserted with the starred commands and thus are not in the acronym table. How would I do this? In the example below, pdflatex creates three pages, a dummy page 1, the acronym table on page 2 and two acronyms used on page 3. The first acronym correctly links to the acronym table. However, the starred command also is a hyperref. In my trials, all starred commands produced hyperref links to page 1, which has nothing to do with acronyms at all.               \documentclass{article}          \PassOptionsToPackage{printonlyused}{acronym}     \usepackage{acronym}     \usepackage{hyperref}          \begin{document}     the initial page          \newpage     the acronym page          \begin{acronym}       \acro{AAA}{Aaa Abb Acc}       \acro{TMN}{This Means Nothing}     \end{acronym}          \newpage     \ac{AAA}     \ac*{TMN}          \end{document}


title: text in latex latin

text: I am getting this text in the PDF after compiling in text studio. I did not write it in the source and cannot find its words in the original text. Any ideas? I have the following packages in the document. This is the text : > Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, > vestibulum ut, placerat ac, adipiscing vitae, felis. Curabitur dictum > gravida mauris. Nam arcu libero, nonummy eget, consectetuer id, vulputate a, > magna. Donec vehicula augue eu neque. Pellentesque habitant morbi tristique > senectus et netus et malesuada fames ac turpis egestas. Mauris ut leo. Cras > viverra metus rhoncus sem. Nulla et lectus vestibulum urna fringilla > ultrices. Phasellus eu tellus sit amet tortor gravida placerat. Integer > sapien est, iaculis in, pretium quis, viverra ac, nunc. Praesent eget sem > vel leo ultrices bibendum. Aenean faucibus. Morbi dolor nulla, malesuada eu, > pulvinar at, mollis ac, nulla. Curabitur auctor semper nulla. Donec varius > orci eget risus. Duis nibh mi, congue eu, accumsan eleifend, sagittis quis, > diam. Duis eget orci sit amet orci dignissim rutrum. Nam dui ligula, > fringilla a, euismod sodales, sollicitudin vel, wisi. Morbi auctor lorem non > justo. Nam lacus libero, pretium at, lobortis vitae, ultricies et, tellus. > Donec aliquet, tortor sed accumsan bibendum, erat ligula aliquet magna, > vitae ornare odio metus a mi. Morbi ac orci et nisl hendrerit mollis. > Suspendisse ut massa. Cras nec ante. Pellentesque a nulla. Cum sociis > natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. > Aliquam tincidunt urna. Nulla ullamcorper vestibulum turpis. Pellentesque > cursus luctus mauris. Nulla malesuada porttitor diam. Donec felis erat, > congue non, volutpat at, tincidunt tristique, libero. Vivamus viverra > fermentum felis. Donec nonummy pellentesque ante. Phasellus adipiscing > semper elit. Proin fermentum massa ac quam. Sed diam turpis, molestie vitae, > placerat a, molestie nec, leo. Maecenas lacinia. Nam ipsum ligula, eleifend > at, accumsan nec, suscipit a, ipsum. Morbi blandit ligula feugiat magna. > Nunc eleifend consequat lorem. Sed lacinia nulla vitae enim. Pellentesque > tincidunt purus vel magna. Integer non enim. Praesent euismod nunc eu purus. > Donec bibendum quam in tellus. Nullam cursus pulvinar lectus. Donec et mi. > Nam vulputate metus eu enim. Vestibulum pellentesque felis eu massa. Quisque > ullamcorper placerat ipsum. Cras nibh. Morbi vel justo vitae lacus tincidunt > ultrices. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. In hac > habitasse platea dictumst. Integer tempus convallis augue. Etiam facilisis. > Nunc elementum fermentum wisi. Aenean placerat. Ut imperdiet, enim sed > gravida 32 sollicitudin, felis odio placerat quam, ac pulvinar elit purus > eget enim. Nunc vitae tortor. Proin tempus nibh sit amet nisl. Vivamus quis > tortor vitae risus porta vehicula. Fusce mauris. Vestibulum luctus nibh at > lectus. Sed bibendum, nulla a faucibus semper, leo velit ultricies tellus, > ac venenatis arcu wisi vel nisl. Vestibulum diam. Aliquam pellentesque, > augue quis sagittis posuere, turpis lacus congue quam, in hendrerit risus > eros eget felis. Maecenas eget erat in sapien mattis porttitor. Vestibulum > porttitor. Nulla facilisi. Sed a turpis eu lacus commodo facilisis. Morbi > fringilla, wisi in dignissim interdum, justo lectus sagittis dui, et > vehicula libero dui cursus dui. Mauris tempor ligula sed lacus. Duis cursus > enim ut augue. Cras ac magna. Cras nulla. Nulla egestas. Curabitur a leo. > Quisque egestas wisi eget nunc. Nam feugiat lacus vel est. Curabitur > consectetuer. Figure 5: Gini eect on Secondary school enrollment Lorem ipsum > dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum ut, > placerat ac, adipiscing vitae, felis. Curabitur dictum gravida mauris. Nam > arcu libero, nonummy eget, consectetuer id, vulputate a, magna. Donec > vehicula augue eu neque. Pellentesque habitant morbi tristique senectus et > netus et malesuada fames ac turpis egestas. Mauris ut leo. Cras viverra > metus rhoncus sem. Nulla et lectus vestibulum urna fringilla ultrices. > Phasellus eu tellus sit amet tortor gravida placerat. Integer sapien est, > iaculis in, pretium quis, viverra ac, nunc. Praesent eget sem vel leo > ultrices bibendum. Aenean faucibus. Morbi dolor nulla, malesuada eu, > pulvinar at, mollis ac, nulla. Curabitur auctor semper nulla. Donec varius > orci eget risus. Duis nibh mi, congue eu, accumsan eleifend, sagittis quis, > diam. Duis eget orci sit amet orci dignissim rutrum. Nam dui ligula, > fringilla a, euismod sodales, sollicitudin vel, wisi. Morbi auctor lorem non > justo. Nam lacus libero, pretium at, lobortis vitae, ultricies et, tellus. > Donec aliquet, tortor sed accumsan bibendum, erat ligula aliquet magna, > vitae ornare odio metus a mi. Morbi ac orci et nisl hendrerit mollis. > Suspendisse ut massa. Cras nec ante. Pellentesque a nulla. Cum sociis > natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. > Aliquam tincidunt urna. Nulla ullamcorper vestibulum turpis. Pellentesque 33 > cursus luctus mauris.


title: Referencing BibTeX file on network drive (UNC)

text: Hello fellow typesetters. I've messed with bibliographies before, creating a bibliography file for every folder where there were .tex files that needed them. Recently though, I ventured to create a central bibliography that would be easier to manage. Since I work on the move, I'd like to put this in my cloud. For my desktop computer though, this cloud is best accessed using the local network, since it doesn't require sending the file over and back via FTP. My question is for a Windows computer: How can I reference my .bib file on a network drive? Normally, the file would be called:               \\MEROVINGIAN\Public\LaTeX\bibliography.bib      This should reference the file through the local network. However, backslashes don't work with BibTeX, so I tried using this command in TeXstudio for BibTeX:               bibtex.exe % --include-directory="//MEROVINGIAN/Public/LaTeX"      and then referencing the bibliography with the following command in my document:               \bibliography{bibliography}      However, it doesn't seem to work. None of the references to the bibliography could be found. When I load up NetDrive and map the cloud to a drive letter it does work:               bibtex.exe % --include-directory="M:/LaTeX"      However, this then goes through NetDrive and subsequently through FTP. My question is as follows: How would I configure BibTeX to find this bibliography file without having to go through NetDrive? Is there a format that needs to be used to access these folders, or is it simply impossible? Edit: I believe these are called UNC paths.


title: How to preserve space when using an Overlay command in Beamer?

text: Into Beamer, I want to preserve the space when I replace an expression by another in a mathematics formula with the help of an Overlay command. For example, if we have in slide number 1 this formula:               \[     x+\mathrm{Trace}M=y.     \]      I want to replace the "\mathrm{Trace}M" by "z" for exmample such that in slide 2 the previous spacing still the same and we have :               \[     x+      z        =y.     \]


title: \spacedlowsmallcaps in caption label

text: How i can make the `labelfont` also in `\spacedlowsmallcaps` in addition to sans serif and small ?               \documentclass{article}                      \usepackage{microtype}                 \usepackage{caption}                      \microtypesetup{expansion=false}%                      \DeclareRobustCommand{\spacedlowsmallcaps}[1]{\textls[80]{\scshape\MakeTextLowercase{#1}}}%                      \renewcommand{\sfdefault}{iwona}               \captionsetup{%                  format=hang,%                  labelfont={small,sf},%                  font={small,sf},%                  width={.8\textwidth}%                  }          \captionsetup[table]{skip=\medskipamount}          \begin{document}          \begin{table}     \caption{Test}     \end{table}          \end{document}      * * * `\subfloat` command               \DeclareCaptionLabelFormat{mysublabel}{\small\sffamily\bothIfSecond{\spacedlowsmallcaps{#1}}{~}\spacedlowsmallcaps{(#2)}}          \captionsetup[subfloat]{%                            labelformat=mysublabel,%                            labelsep=space,%                            listofformat=subparens,%                            font={small,sf},%                        }


title: Pass (La)TeX-Length as function argument using pythontex

text: I'm trying to pass a LaTeX-Length (`\textwidth`) to a python function specified in an `pyblock`-environment provided by the `pythontex`-package. Running pythontex gives me an error message, that does not provide any help to me:               This is PythonTeX v0.12          ----  Messages for py:default:default  ----     * PythonTeX stderr - error on line 10:         File "<outputdir>/py_default_default.py", line 65           print(pytex.formatter(printtexlength(\textwidth )))                                                             ^       SyntaxError: unexpected character after line continuation character          --------------------------------------------------     PythonTeX:  minimal - 1 error(s), 0 warning(s)      Has anybody an idea what is going wrong here, or how can I pass a LaTeX-Length to a python-function? Here is a minimal-example:               \documentclass{scrreprt}          \usepackage{pythontex}          \begin{document}          \begin{pycode}     def printtexlength(length):         print('Length ist %f' % length)     \end{pycode}     \newcommand{\printlength}[1]{\py{printtexlength(#1)}}     %\py{printtexlength(\textwidth)} % This although fails with same error message     \printlength{\textwidth}          \end{document}


title: How can solides3d know when one object is behind another?

text: `pst-solides3d` has an impressive graphics engine behind its design. I'm interested in knowing **how** it is able to know when an object is behind another object. **_Disclaimer:_** I am not sure this is an acceptable question for _tex.SX_ because I'm trying to delve into the internal workings of a package. If this is an inappropriate question or this is the wrong forum, please let me know and I will delete the question. I understand that solids in this package are first represented in a virtual 3D space and that they are later projected onto a 2D (user defined) projection screen. I think, it is in this step that the clipping (or superpositioning) of objects occurs. So, to simplify the question, what mechanism does `pst-solides3d` use to find out if one object is behind the other (or intersecting)? PS: I use the tag `package-writing` because this question is related to the writing of a package, but I am not interested in writing packages nor do I have the time for it at the moment


title: pgfplots, circuitikz library coexistence problem

text: In my book, I use both libraries. After Miktex **update** yesterday evening (circuitikz ver 0.3 pgfplots 1.11), I have problem with compiling following code:               \documentclass{article}       \usepackage{tikz}     % TikZ and PGF picture        \usepackage{circuitikz}       \usepackage{pgfplots}           \begin{document}       \begin{circuitikz}         \draw  (0,0) to [short, *-] (6,0);         \end{circuitikz}     \end{document}                    *Command line listing*:       Package pgfplots Warning: running in backwards compatibility mode (unsuitable     tick labels; missing features). Consider writing \pgfplotsset<compact=1.11> into      your preamble.          !Undefined control sequence.     \pgfmath@multiply@thousand          1.20 (0,0) to [short, *-] (6,0)      I haven't idea where is mistake. When I delete pgfplots package from testin code, it works fine, but in my book I need both packages. Circuitikz code was used from `http://www.texample.net/tikz/examples/induction-machine/`so I see no reason why it should not work.


title: What is strategic goal of LaTeX3 project team?

text: @Joseph Wright in his answer to the post Why is LaTeX3 taking so long to come out? wrote that strategic goal of the latex3 team is a new LaTeX kernel, which should be more flexible than that of LaTeX2e (in particular, to avoid loading of add-on packages). 3 years went away since than. What is the current vision of latex3 kernel? There are more than 4k packages on CTAN. Perhaps, not more than 5 to 10% deserve to be included into new kernel. Perhaps, most frustrating thing (at least for me) it that explicit loading of some dozens packages result in loading of order of 100 packages since the most popular packages usually request lof of subsidiary packages. My more narrow interest is which version of cross-referencing mechanism is planned to be implemented in LaTeX3? From what I am familiar with that of `zref` seems to be more promising although user interface provided by the `zref` package seems to be overcomplicated.


title: Spacing in multiline equations

text: Please help me to figure out how to produce with that: I have the following code:               $$  gcd(0,0) = 0    $$     $$  gcd(u,v) = gcd(v,u) $$     $$  gcd(u,v) = gcd(-u,v) $$     $$  gcd(u,0) = |u| $$          $$     2^{x^3} = x+1/x\ge 2 = \pi\approx 3{,}14     $$          $$     x^{4357}+y^{4357}=z^{4357}     $$      This is what I need: ![First requirement](http://i.imgur.com/NBfExqO.jpg) I don't want to align anything, I just want to remove the space between equations because I think it takes too much space. Anyway I don't like the view of my equations, looks like something is not good there (only with gcd, the other equations looks OK). One thing to fix that is probably to use "\gcd" instead of "gcd"... I'd like to have some advice how to make it look better and to resolve the original question with spacing between equations as well. I also looking for the most simple solution, without using complex ams- structures if possible.


title: How to preserve the indentation when using standalone or preview?

text: The following output has no correct paragraph indentation after incorporating `standalone` documentclass or `preview` package. ![enter image description here](http://i.stack.imgur.com/ik6k1.png)               \documentclass[border=12pt,preview]{standalone}     \parindent=12pt% does not work!          \begin{document}     The position of a particle moving along the $x$-axis is given as     \[     s_t=s_0+v_0t+\frac 1 2 at^2     \]     where $s_0$, $v_0$, $a$, and $t$ represent the initial position, initial speed, acceleration, and the time, respectively.     Even though you are not interested in physics, please be quiet.          And now \ldots     \end{document}      How to solve this issue?


title: Why xeCJK cannot work？

text: I tried to use LaTeX with the package `xeCJK` to typeset Chinese chars. But when I was compiling my `.tex` document, I got a lot of errors. The code and the screenshot of error msg are showed below. Code:               \documentclass{article}     \usepackage{xeCJK}     \begin{document}           开始使用中文          \end{document}      Screenshot: ![enter image description here](http://i.stack.imgur.com/ly2m9.png) The whole log file is here: http://blog.renren.com/blog/464273903/919227227?bfrom=01020650100&ref=hotnewsfeed&sfet=601&fin=0&fid=24379988248&ff_id=464273903&platform=0&expose_time=1387187583


title: Longtable LoT 'Table' caption

text: I am writing my master thesis using the provided styles by the faculty. Some of my tables were too long, so I used `longtable` package. However, in list of tables, tables created with `longtable` don't start with 'Table' caption.![enter image description here](http://i.stack.imgur.com/ayS9s.png) This is my `longtable` LaTeX code,               \begin{center}     \begin{longtable}{|c c c |}     \caption[SMIfp symbol table.]{34 symbols selected for SMIfp. \cite{schwartz2013}.}     \label{table:smifpSymbols} \\          \hline \multicolumn{1}{|c}{\textbf{no }} & \multicolumn{1}{c}{\textbf{symbol}} & \multicolumn{1}{c|}{\textbf{definition}} \\ \hline      \endfirsthead          \multicolumn{3}{c}%     {{\bfseries \tablename\ \thetable{} -- continued from previous page}} \\     \hline \multicolumn{1}{|c}{\textbf{no }} &     \multicolumn{1}{c }{\textbf{symbol}} &     \multicolumn{1}{c|}{\textbf{definition}} \\ \hline      \endhead          \hline \multicolumn{3}{|r|}{{Continued on next page}} \\ \hline     \endfoot          \hline \hline     \endlastfoot     \hline          1 & C & nonaromatic carbon atoms \\     2 & c & aromatic carbon atoms \\     3 & N & nonaromatic nitrogen atoms \\     4 & n & aromatic nitrogen atoms \\     5 & O & nonaromatic oxygen atoms \\     6 & o & aromatic oxygen atoms \\\     .     .     .     .     .          \end{longtable}     \end{center}      I found a post describing same problem here, but solution did not fit for me. Any help will be appreciated.


title: How to change the font of one letter?

text: I was wondering if it was possible to change the font of one letter in my Latex document ? I have an equation where I want one of the letters in that to be Arial instead of Times New Roman, which is my main font. So, is it possible ?


title: How to fix this interaction bug between pgfplots and babel-french module?

text: Here is an example of a minimum non-working case which is generating the bug:               \documentclass{standalone}     \usepackage{luatextra}     \usepackage[frenchb]{babel}          \usepackage{pgfplots}          \begin{document}          \begin{tikzpicture}         \begin{axis}             \legend{a};         \end{axis}     \end{tikzpicture}          \end{document}      I get this:               error: /usr/share/texmf-dist/tex/generic/babel-french/frenchb.lua:62: attempt to index a nil value     .     \endpgfpicture ...globally \endgroup \hss \egroup                                                       \pgf@restore@layerlist@fro...     l.36 \end{tikzpicture}       If I remove the legend away, this is working well. But well, the legend is usually kind of a required piece of information in a graph. **EDIT:** I just installed the latest TL version (net install): the bug is still there!


title: Remove ''List of Figures'' title

text: How can I remove the title of my list of figures? I am able to do it for the table of contents but not for the list of tables or figures.


title: Group content side by side possibly spanning more than a single page

text: I have data consisting of groups of key-value pairs and associated images. I'd like the key-value pairs to show in a table to the right of the images. Like this: ![LaTeX screenshot](http://i.stack.imgur.com/YP4do.png) The above screenshot is produced by the following code:               \begin{minipage}[t]{.4\textwidth}       \vspace{0pt}       \includegraphics[width=\textwidth]{image}       \includegraphics[width=\textwidth]{image}     \end{minipage}     \begin{minipage}[t]{.55\textwidth}       \vspace{0pt}       \begin{tabular}{ >{\bfseries \raggedleft}p{0.4\textwidth}<{:}  p{.6\textwidth}  }         Key & Value \\         Another key & 56.1481049 \\         Ipsum bla & Lorem tutasee \\         Kvalatit & Tip top \\         Fordus tius & Lorem ipsum bla supresium vitales ektum eksaput doktinus mit dei fyrte granikus.\\         Estimat is & 1337 \\         Lokale & Viktualierum \\       \end{tabular}     \end{minipage}      The code works as I want and several groups of tables and images can be placed after each other. However unfortunately it seems that a minipage is restricted to a single page. Thus, if the images or the table takes more space than a single page, they will simply overflow the page and continue on into non-existence. Is there any way that I can achieve what I want in a way so that if possible the tables aren't broken across several pages but in the cases where the minipages simply can't fit in a page they behave decently? ![Figure of the desired result](http://i.stack.imgur.com/eAAo2.png) The above is a rough illustration of what I'd like to end op with. That is: the tabels/images only breaks on pages when they have to, otherwise they act like normal LaTeX floats.


title: Q: How to globally add space before subsubsection* headings in Lyx?

text: How do I set the document to add extra space above each subsubsection*? Does one redefine the subsection command in the preamble, like the following? Formatting section titles I am using KOMA report class in Lyx 2.0.6. Sorry for my newbie-ness....


title: Remove column break before bibliography

text: I am writing a document using the ACM SIG Procedings template whose summarized structure is as follows (it uses 2 columns). I am using PDFLatex and Bibtex.               \documentclass{sig-alternate-2013}     \usepackage{hyperref}     ....     \begin{document}          \section{Introduction}     \input{intro}          \section{Related work}     \input{relatedwork}     ....          \section{Conclusion}     \input{conclusion}          \bibliographystyle{abbrv}     \bibliography{bib}     \end{document}      The conclusion section starts at the penultimate page. Then comes the bibliography which for some reason inserts a column break making the references section start in the right column and require an extra page. How can remove this column break? I have googled intensively searching for a solution but I have not found anything related. Is it "thebibliography" command that by default inserts this column break? Your help will be kindly appreciated. Thanks in advance for your attention and time!


title: Tikz rectangle split widths

text: I would like to have a rectangle split in two and have the text width of one side be fixed instead of having the textwidth apply to both sides. I have the following.               \tikzstyle{pblock} = [rectangle split, rectangle split horizontal,                           rectangle split parts=2, very thick,draw=black!50, top                           color=white,bottom color=black!20, align=center]      Any help would be greatly appreciated.


title: How can I stop automatically-inserted hyphens acting as boundary character?

text: When TeX inserts a hyphen, ligature rules that apply to the boundary character are applied before the hyphen. How can I prevent this? (I checked that the font is not changing at this point.) Checking out https://github.com/rrthomas/adobecaslon and running "make expert" will demonstrate the problem: in the made-up word "shesellsseashells", which is hyphenated after the second "s", the s before the hyphen should be long, but isn't. If I remove the ligature rule between "s" and "visiblespace", i.e. the line in `t1aa.etx.diff` that says: `\+ \ligature{LIG}{visiblespace}{\lc{S}{s}}`, then the s before the hyphen (which should be hyphenchar, and hence should not trigger a change from long to short s) is indeed long. (Type 1 Adobe Caslon fonts (inc. expert) required.)


title: How to make LaTeX (tabu, hhline) tables keep rowheights?

text: i want to typeset a long table across several columns / pages and want the table rows to keep register. my code looks basically like this:               \documentclass{book}     \usepackage{pagegrid}     \usepackage{fontspec}     \usepackage{tabu}     \usepackage{hhline}     \usepackage{multicol}     \setlength{\parskip}{0mm}     \setlength{\parindent}{0mm}     \setlength{\arrayrulewidth}{0.15mm}     \setlength{\doublerulesep}{0.5mm}     \begin{document}          \begin{multicols}{3}          {\setlength{\tabcolsep}{2mm}     \begin{tabu} to \linewidth { | X[1,l,m] | }     \hhline{|=|}     1 first line \\     \hhline{|=|}     2 secondline \\     \hhline{|=|}     \end{tabu}}          \vfill     \columnbreak          {\setlength{\tabcolsep}{2mm}     \begin{tabu} to \linewidth { | X[1,l,m] | }     \hhline{|-|}     1 first line \\     \hhline{|-|}     2 secondline \\     \hhline{|-|}     \end{tabu}}          \vfill     \columnbreak          {\setlength{\tabcolsep}{2mm}     \begin{tabu} to \linewidth { | X[1,l,m] | }     \hhline{|~|}     1 first line \\     \hhline{|~|}     2 secondline \\     \hhline{|~|}     \end{tabu}}          \end{multicols}     \end{document}      in reality those two-line tables really have 50 rows and extend over the entire page height. i need to insert double horizontal lines at various points in the tables, and of course those need space and add to table height—which causes the rows accross the pages to get out of sync. i should add that each partial table will have different numbers of lines occurring at different points, so using 'vertical glue' between rows (if that's possible) to make each stretch to page height wouldn't be ideal. is there any way to force all rows to maintain height? in the past when faced with this problem in HTML/CSS, i always tried to typeset all the typographic elements but hid them from view where not needed. this greatly simplified things because you get away without many calculations, you just switch on what's need at a certain point. i'm not aware of any way to do that in (Xe)LaTeX. how can i make all table rows keep in sync and 'add lines between table cells where needed', as it were?


title: aligning a multiline formula with the bullet of itemize

text: I would like to use a multiline equation into an itemized list, but such that the bullet of the list is aligned with the first line of my equation. The current code I use is like this:               \documentclass{article}     \usepackage{amsmath}     \begin{document}     \begin{itemize}     \item $Q_x= Q' \cup D'$     \item \begin{align*}         \delta_x &= \left\{ \sum_{i=1}^j \ldots\text{~some big formula that spans the entire line~}\ldots\right\} \\                  &\cup  \left\{ \sum_{i=1}^j \ldots\text{~some other big formula that spans the entire line~}\ldots \right\} \\       \end{align*}     \item $q^0_x = (q_0, \{s_0\})$     \end{itemize}     \end{document}      But this yields the following output: ![](http://imgur.com/zKwXc.png) I have also tried to use               \item $\displaystyle\begin{aligned}...\end{aligned}$      But in this case the bullet of the list appears between the two lines: ![](http://imgur.com/Bzttn.png) Any idea how to align the bullet with the first line?


title: How do you really start?

text: I was asked to use LaTeX (on math stack exchange), and I downloaded a large number of files (called Miktex). However all the tutorials seem to assume that you have already started a a document of some sort. Where is that document?


title: How to get started to typeset mathematical proofs with LaTeX?

text: I want to start using LaTeX to organize my proofs into a readable fashion. This motif is due to my professors preferring e-mail communication instead of reading a chicken-scratch proof. I know enough LaTeX such that I can post on math.SE and make my question readable, but I do not know how to include LaTeX in a document. How do I make my proof into a LaTeX document?


title: How to give a name to \pic

text: I read instruction how to use \pic in PGF 3.0.0 manual, but description how to give names to \pic are not clear to me and given example generate error: "No shape named EmmaEmma-left is known." Example in manual (pp. 255):               \documentclass[tikz,border=3mm]{standalone}     \tikzset{     seagull/.pic={     % Code for a "seagull". Do you see it?...     \coordinate (-left wing) at (-3mm,0);     \coordinate (-head) at (0,0);     \coordinate (-right wing) at (3mm,0);     \draw (-left wing) to [bend left] (0,0) (-head) to [bend left] (-right wing);     }     }             \begin{document}         \begin{tikzpicture}%\small\sffamily     \pic (Emma) {seagull};     \pic (Alexandra) at (0,1) {seagull};     \draw (Emma-left wing) -- (Alexandra-right wing);         \end{tikzpicture}             \end{document}      It's obvious that something is missing in above example. Please enlighten me, what I missed.


title: Cross-Reference with custom text

text: Is there a way to make a cross reference to a label of a header with custom text, in sense it's text should differ from the Header text, or it's number or Page (not like the predefined formats in Lyx), something like the the hyperlinks or bookmarks in MS word, and in such a way that i can write the different text for each cross-reference individually, I'm not looking to define a new format for the references. for Example: the header text is: State and Path functions, I want to make a cross reference to it with text : state function


title: Is there a way to have coloured hyperref hyperlinks in the PDF, but have them print "as if" they were black?

text: I like having my hyperref hyperlinks a different colour, so it's obvious that they are links. But when I print a copy of the PDF, I don't want the links to be coloured, because you can't click them, so it doesn't matter and it's distracting. Other than just having a separate "for printing" version of the PDF where I turn off the hyperlinks, is there a way to have the printed version come out without the coloured links?


title: Combining Beamer-List-of-frames with TOC (sections etc.)?

text: Related to this question »Is there any way to produce List of frames with beamer?«   1. Is there a way of combining TOC (`section` / `subsection`) with this listofframes? (e.g. frametitles just like `subsubsection`?   2. Is it possible to combine this also with the `beamerarticle` Package to create a complete table of contents for a lecture manuscript? The minimal example linked here does not allow that, I suppose we need something like: `\addcontentsline{toc}{subsubsection}{title}`


title: Gluon loop diagrams

text: I am trying to draw a gluon loop with two-three and four external gluon legs attached to the gluon loop, but as you may see from the attached file these diagrams are not nice enough, could anybody help me to draw them in a nice and symmetric way please? here comes what I have tried:               \documentclass{article}         \usepackage{feynmp}         %\usepackage{feynmf}     \DeclareGraphicsRule{*}{mps}{*}{}         \begin{document}     \begin{figure}[h]     \centering     \begin{eqnarray}     \non      \begin{fmffile}{gluoncasediagrams}     \newenvironment{8p}{                 \begin{fmfgraph}(60,40)}     {\end{fmfgraph}}     \parbox{20mm}{     \begin{8p}     \fmfleft{i1,i2} \fmfright{o1,o2}      \fmf{gluon,fore=blue}{i1,v3}     % \fmflabel{$p_3,a_3,\mu_3$}{i1}     \fmf{gluon,fore=black}{i2,v4}     %\fmflabel{$p_4,a_4,\mu_4$}{i2}     \fmf{gluon,fore=red}{v2,o1}      %\fmflabel{$p_2,a_2,\mu_2$}{o1}      \fmf{gluon,fore=green}{v1,o2}      %\fmflabel{$p_1, a_1,\mu_1$}{o2}     \fmf{gluon,tension=0.1}{v1,v2}      \fmf{gluon,tension=0.3}{v2,v3}     \fmf{gluon,tension=0.3}{v3,v4}     \fmf{gluon,tension=0.3}{v4,v1}     \end{8p}}     \qquad \hspace{0.2cm} \qquad     \parbox{20mm}{     \begin{8p}     \fmfleft{i1,i2} \fmfright{o1,o2}      \fmf{gluon,fore=red}{i1,v1}      %\fmflabel{$p_2,a_2$}{i1}     \fmf{gluon,fore=blue}{i2,v2}     %\fmflabel{$p_3,a_3$}{i2}     \fmf{gluon,tension=4,fore=green}{v3,o1}      %\fmflabel{$p_1,a_1$}{o1}     \fmf{gluon,tension=4,fore=black}{v3,o2}      %\fmflabel{$p_4,a_4$}{o2}       \fmf{gluon,tension=0.1}{v2,v1}      \fmf{gluon,tension=0.3}{v1,v3}     \fmf{gluon,tension=0.3}{v3,v2}     \end{8p}}     \qquad \hspace{0.2cm}\qquad     \parbox{20mm}{     \begin{8p}     \fmfleft{i1,i2} \fmfright{o1,o2}      \fmf{gluon,fore=red}{i1,v1}     % \fmflabel{$p_2,a_2$}{i1}     \fmf{gluon,fore=blue}{i2,v1}     %\fmflabel{$p_3,a_3$}{i2}     \fmf{gluon,fore=green}{v2,o1}      %\fmflabel{$p_1,a_1$}{o1}     \fmf{gluon,fore=black}{v2,o2}      %\fmflabel{$p_4,a_4$}{o2}      \fmf{gluon,left,tension=.3}{v1,v2,v1}     \end{8p}}     \qquad \hspace{0.2cm}\qquad     \parbox{20mm}{     \begin{8p}     \fmfleft{i1,i2} \fmfright{o1,o2}      \fmf{gluon,fore=red}{i1,v2}     % \fmflabel{$p_2,a_2$}{i1}     \fmf{gluon,fore=blue}{i2,v1}     %\fmflabel{$p_3,a_3$}{i2}     \fmf{gluon,fore=green}{v2,o1}      %\fmflabel{$p_1,a_1$}{o1}     \fmf{gluon,fore=black}{v2,o2}      %\fmflabel{$p_4,a_4$}{o2}      \fmf{gluon,left,tension=.3}{v1,v2,v1}     \end{8p}}     \end{fmffile}     \end{eqnarray}     \end{figure}     \end{document}      ![enter image description here](http://i.stack.imgur.com/EaSTY.png)


title: ToC showing page number and then the chapter title

text: I would like to have the Table of Contents of the book I am editing showing first the pages of the chapters and then the chapter titles. Something like this book: ![enter image description here](http://i.stack.imgur.com/hcOiB.png) I am working with XeTeX (through LyX) and my document class is Memoir.


title: libpng warnings about sRGB profiles - determine which files are meant and disable warning

text: After some LaTeX or system updates, I get these new warnings for something that was typeset perfectly before: > libpng warning: iCCP: Not recognizing known sRGB profile that has been > edited Since it's a large document with many chapters, I get like dozens of these. The PNGs almost certainly come all out of Gimp or Photoshop.   * is it possible to show _which_ images are affected?   * is it possible to turn off these annoying warnings? I am using PDFLaTeX on Linux. The images have been created under OS X.


title: Plotting a parabola: dimension too large message

text: \documentclass{minimal}     \usepackage{tikz}     \usepgflibrary{fpu}%----- this     \begin{document}      \begin{tikzpicture}[  scale=.01]       \draw[domain=-30:30,          /pgf/fpu,/pgf/fpu/output format=fixed ] plot (\x,{(\x)^2});      \end{tikzpicture}     \end{document}      I used a two year old suggestion of yours to try to plot `y = x^2` with `domain = -30:30` as shown above. But I get the dimension too large message that your response above averted with a different math function. Any help would be appreciated.


title: Comma at the end of last BibTeX field

text: A BibTeX entry looks like               @entry_type{internal_key,       field_1 = "value_1",       field_2 = "value_2",       ...       field_n = "value_n"     }      I've seen examples that put a comma after `"value_n"`. Is there any difference between putting a comma and not putting it?


title: TeX4ht and Calibre

text: I try to use TeX4ht and Calibre to create an ebook that I can read with an iPad. I use the following command: `htlatex file.tex "xhtml, jsmath""-cmozhtf"`. The result with Calibre is correct except for some mathematical formulas. For example, the equation : `$ x ^ 2 - 6x +6 = 0$` , we obtain : `{x} ^ {2} - 6x + 6 = 0`. To : `\ [B (x) =-x ^ 2 + 60x-500, \ quad \ textrm {where $ x $ belongs to the interval $ \ left [0 \, 60 \ right] $.} \\]` we obtain : `B (x) = - {x} ^ {2} + 60x - 500, \ quad \ textrm {where $ x $ belongs to the interval $ \ left [0 \ kern 1.81503pt, 60 \ right] $ .}` For : `$ T_1 $`, we obtain : `{T} _ {1}`. * * * **First question** : Why, in this code, formulas framed dollars are not transformed into images (and the record is best !)?               \documentclass[a4paper,11pt]{article}           \usepackage[utf8]{inputenc}      \usepackage{amsmath,amsfonts}           \begin{document}           \section*{Sample French Text}          Lucie, étudiante des États-Unis, vient d'arriver à Charles de     Gaulle, l'aéroport qui accueille chaque jour à Paris, 1 million de     visiteurs. Paris. Enfin. Ça a toujours été le rêve de Lucie : vivre     dans la Ville lumière, la ville des beaux arts, du quartier latin, du     vin, et qui sait, peut-être la ville d'une petite histoire d'amour.          \section*{Math Part}     Numbered equation:     \begin{equation}      P_{r-j}=      \begin{cases}      0 & \text{si $r-j$ est impair,} \\      r! \, (-1)^{(r-j)/2} & \text{si $r-j$ est pair.}      \end{cases}      \end{equation}      Un-numbered equation:     \begin{equation*}      P_{r-j}=      \begin{cases}      0 & \text{si $r-j$ est impair,} \\      r! \, (-1)^{(r-j)/2} & \text{si $r-j$ est pair.}      \end{cases}      \end{equation*}      Inline equation:      $ x ^ 2 - 6x +6 = 0$ and $B (x) =-x ^ 2 + 60x-500, \quad     \textrm{where $ x $ belongs to the interval $ [0 \, ; 60 ] $.}$           Eqnarray     \begin{eqnarray}      P_{r-j}&=&      \begin{cases}      0 & \text{si $r-j$ est impair,} \\      r! \, (-1)^{(r-j)/2} & \text{si $r-j$ est pair.}      \end{cases} \\     P_{r-j}&=&      \begin{cases}      0 & \text{si $r-j$ est impair,} \\      r! \, (-1)^{(r-j)/2} & \text{si $r-j$ est pair.}      \end{cases}      \end{eqnarray}      Starred eqnarray     \begin{eqnarray*}      P_{r-j}&=&      \begin{cases}      0 & \text{si $r-j$ est impair,} \\      r! \, (-1)^{(r-j)/2} & \text{si $r-j$ est pair.}      \end{cases} \\     P_{r-j}&=&      \begin{cases}      0 & \text{si $r-j$ est impair,} \\      r! \, (-1)^{(r-j)/2} & \text{si $r-j$ est pair.}      \end{cases}      \end{eqnarray*}           \end{document}      **Second question** : I followed the method described in the link, and the pictures are better but in my opinion, too small. How to resize images ? **Third question** : I tried to put the images in svg format, but it does not work:                  Erreur d'analyse XML : mal formé        Emplacement : file:///home/fab/der1x.svg        Numéro de ligne 1, Colonne 2 :        %!PS-Adobe-3.0        -^      Here are the contents of tex4ht.env modified and the file contents myconfig.cfg :                    <dvipng>         G.png         Gdvipng -T tight -x 1400 -D 72 -bg Transparent -pp %%2:%%2 %%1 -o %%3         G.gif         Gdvipng -T tight -x 1400 -D 72 -bg Transparent -gif -pp %%2:%%2 %%1 -o %%3         G.         Gdvips -Ppdf -mode ibmvga -D 110 -f %%1 -pp %%2 > zz%%4.ps         Gconvert -crop 0x0 -density 110x110 -transparent '#FFFFFF' zz%%4.ps %%3         Grm zz%%4.ps         G.svg         Gdvisvgm -n -p %%2 -c 1.2,1.2 -s %%1 > %%3          </dvipng              \Preamble{xhtml}         \Configure{Picture}{.svg}         \begin{document}         \EndPreamble      **Fourth question** : use MathJax with TeX4ht gives a very good result in the test.html that the iPad opens without problems, but if you use Calibre to get an ebook, the result is very bad ! The only small problem is that with this little script accented characters are replaced by question marks :                  #!/bin/bash              if [ $1 ]         then         NAME=`echo $1 | sed 's/.tex//g'`         htlatex $1 "ht5mjlatex.cfg" "-cmozhtf"         iceweasel $NAME.html;         exit         fi      It will be difficult to make an ebook using TeX4ht. I tried to install TeX4ebook, but there is an installation problem :                 fab@debian:~$ texlua /home/fab/texmf/tex/latex/tex4ebook-master /tex4ebook.lua       /home/fab/texmf/tex/latex/tex4ebook-master/tex4ebook.lua:113: invalid  escape sequence near '\$'


title: Undefined control sequence in \printbibliography (biblatex)

text: EDIT: On a suggestion I added:               \usepackage[utf8]{inputenc}      and changed               \bibliography{citations.bib}      into               \addbibresrouce{citations.bib}      This solved this specific problem, even though I now have an inputenc problem that is however probably not directly related to this exact issue. I've encountered a problem I can't seem to understand, nor do I seem to find anything when googling the issue either. I dunno, maybe I'm just googling the wrong words.. I am using Os X with TexShop and have defined the BibTeX engine to run using biber. I have (extracts):               \usepackage[backend=biber]{biblatex}     \bibliography{citations.bib}          \begin{document}     \section{Some section}     Some text ... \cite{someBook}          \section{References}     \printbibliography     \end{document}      First I ran LaTeX compile, and then ran BibTeX. (biber is confirmed running. Log confirms this along with a couple of warnings:               /var/folders/f6/9vk9f7jn0zx_7cngdjxv1rdr0000gn/T/10ttGvYx8U/citations.bib_9023.utf8, line 46, syntax error: found "of", expected "="     /var/folders/f6/9vk9f7jn0zx_7cngdjxv1rdr0000gn/T/10ttGvYx8U/citations.bib_9023.utf8, line 50, warning: 13 characters of junk seen at toplevel     "\x{fffd}" does not map to ascii at Biber/Output/BBL.pm line 430.     "\x{fffd}" does not map to ascii at Biber/Output/BBL.pm line 430.     INFO - This is biber 0.9.3     INFO - Logfile is 'report, main.blg'     INFO - Reading report, main.bcf     INFO - Found 7 citekeys in bib section 0     INFO - Processing bib section 0     INFO - Looking for bibtex format file 'citations.bib' for section 0     INFO - Found bibtex data file 'citations.bib'     WARN - Entry relevance-basedlanguagemod does not parse correctly: skipping     INFO - Sorting list 'MAIN' keys     INFO - No sort tailoring available for locale 'en_US.UTF-8'     INFO - Sorting list 'SHORTHANDS' keys     INFO - No sort tailoring available for locale 'en_US.UTF-8'     INFO - Writing 'report, main.bbl' with encoding 'ascii'     INFO - Output to report, main.bbl      Then when running LaTeX-compile again I get the following:               This is pdfTeX, Version 3.1415926-2.3-1.40.12 (TeX Live 2011)      \write18 enabled.     entering extended mode     (./report, main.tex     LaTeX2e <2009/09/24>     Babel <v3.8l> and hyphenation patterns for english, dumylang, nohyphenation, ge     rman-x-2009-06-19, ngerman-x-2009-06-19, afrikaans, ancientgreek, ibycus, arabi     c, armenian, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danis     h, dutch, ukenglish, usenglishmax, esperanto, estonian, ethiopic, farsi, finnis     h, french, galician, german, ngerman, swissgerman, monogreek, greek, hungarian,      icelandic, assamese, bengali, gujarati, hindi, kannada, malayalam, marathi, or     iya, panjabi, tamil, telugu, indonesian, interlingua, irish, italian, kurmanji,      lao, latin, latvian, lithuanian, mongolian, mongolianlmc, bokmal, nynorsk, pol     ish, portuguese, romanian, russian, sanskrit, serbian, serbianc, slovak, sloven     ian, spanish, swedish, turkish, turkmen, ukrainian, uppersorbian, welsh, loaded     .     (/usr/local/texlive/2011/texmf-dist/tex/latex/base/article.cls     Document Class: article 2007/10/19 v1.4h Standard LaTeX document class     (/usr/local/texlive/2011/texmf-dist/tex/latex/base/size12.clo))     (/usr/local/texlive/2011/texmf-dist/tex/latex/geometry/geometry.sty     (/usr/local/texlive/2011/texmf-dist/tex/latex/graphics/keyval.sty)     (/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/ifpdf.sty)     (/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/ifvtex.sty)     (/usr/local/texlive/2011/texmf-dist/tex/generic/ifxetex/ifxetex.sty))     (/usr/local/texlive/2011/texmf-dist/tex/latex/graphics/graphicx.sty     (/usr/local/texlive/2011/texmf-dist/tex/latex/graphics/graphics.sty     (/usr/local/texlive/2011/texmf-dist/tex/latex/graphics/trig.sty)     (/usr/local/texlive/2011/texmf-dist/tex/latex/latexconfig/graphics.cfg)     (/usr/local/texlive/2011/texmf-dist/tex/latex/pdftex-def/pdftex.def     (/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/infwarerr.sty)     (/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/ltxcmds.sty))))     (/usr/local/texlive/2011/texmf-dist/tex/latex/amsfonts/amssymb.sty     (/usr/local/texlive/2011/texmf-dist/tex/latex/amsfonts/amsfonts.sty))     (/usr/local/texlive/2011/texmf-dist/tex/latex/oberdiek/epstopdf.sty     (/usr/local/texlive/2011/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty     (/usr/local/texlive/2011/texmf-dist/tex/latex/oberdiek/grfext.sty     (/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/kvdefinekeys.sty))     (/usr/local/texlive/2011/texmf-dist/tex/latex/oberdiek/kvoptions.sty     (/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty     (/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/etexcmds.sty     (/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/ifluatex.sty))))     (/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty)     (/usr/local/texlive/2011/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg)))     (/usr/local/texlive/2011/texmf-dist/tex/latex/amsmath/amsmath.sty     For additional information on amsmath, use the `?' option.     (/usr/local/texlive/2011/texmf-dist/tex/latex/amsmath/amstext.sty     (/usr/local/texlive/2011/texmf-dist/tex/latex/amsmath/amsgen.sty))     (/usr/local/texlive/2011/texmf-dist/tex/latex/amsmath/amsbsy.sty)     (/usr/local/texlive/2011/texmf-dist/tex/latex/amsmath/amsopn.sty))     (/usr/local/texlive/2011/texmf-dist/tex/latex/url/url.sty)     (/usr/local/texlive/2011/texmf-dist/tex/latex/biblatex/biblatex.sty     (/usr/local/texlive/2011/texmf-dist/tex/latex/etoolbox/etoolbox.sty     (/usr/local/texlive/2011/texmf-dist/tex/latex/etex-pkg/etex.sty))     (/usr/local/texlive/2011/texmf-dist/tex/latex/logreq/logreq.sty     (/usr/local/texlive/2011/texmf-dist/tex/latex/logreq/logreq.def))     (/usr/local/texlive/2011/texmf-dist/tex/latex/base/ifthen.sty)     (/usr/local/texlive/2011/texmf-dist/tex/latex/biblatex/blx-compat.def)     (/usr/local/texlive/2011/texmf-dist/tex/latex/biblatex/biblatex.def)     (/usr/local/texlive/2011/texmf-dist/tex/latex/biblatex/bbx/numeric.bbx     (/usr/local/texlive/2011/texmf-dist/tex/latex/biblatex/bbx/standard.bbx))     (/usr/local/texlive/2011/texmf-dist/tex/latex/biblatex/cbx/numeric.cbx)     (/usr/local/texlive/2011/texmf-dist/tex/latex/biblatex/biblatex.cfg))     (/usr/local/texlive/2011/texmf-dist/tex/latex/biblatex/lbx/english.lbx)     (./report, main.aux)     *geometry* driver: auto-detecting     *geometry* detected driver: pdftex     (/usr/local/texlive/2011/texmf-dist/tex/context/base/supp-pdf.mkii     [Loading MPS to PDF converter (version 2006.09.02).]     ) (./report, main.bbl)     (/usr/local/texlive/2011/texmf-dist/tex/latex/amsfonts/umsa.fd)     (/usr/local/texlive/2011/texmf-dist/tex/latex/amsfonts/umsb.fd)     (./report, main.toc) [1{/usr/local/texlive/2011/texmf-var/fonts/map/pdftex/updm     ap/pdftex.map}] [2] [3]     Overfull \hbox (14.92099pt too wide) in paragraph at lines 42--43     \OT1/cmr/m/n/12 page al-lows a wide range of data col-lec-tions, all of which a     re fetched from Wikipedia[    3],     [4] [5] [6] [7] [8]     ./report, main.tex:119: Undefined control sequence.     <argument> Sch\x                       {fffd}tze     l.119           ?      The line at ./report, main.tx:119 contains the \printbibliography command. I cannot seem to understand why I get this error. My citations.bib file looks like this:               @ARTICLE{learningsimilaritymetrics,        author = {Hila Becker and Mor Naaman and Luis Gravano},        title = {Learning Similarity Metrics for Event Identification in Social Media},        institution = {Columbia and Rutgers University},        year = {2010}     }          @ONLINE{dbpedia,        title = {DBPedia},        author = {Christopher Sahnwaldt},        url = {http://www.DBpedia.org},        year = {2013}     }          @ONLINE{mirflickr,        title = {MIRFlickr},        author = {Mark Huiskes and Bart Thomee and Michael Lew},        url = {http://press.liacs.nl/mirflickr/},        year = {2013}     }          @ONLINE{flickr,        title = {Flickr},        author = {The Flickr Team},        url = {http://www.flickr.com},        year = {2013}     }          @ONLINE{wiki,        author = {The Wikimedia Foundation},        title = {Wikipedia},        url = {http://www.wikipedia.org},        year = {2013}     }          @ARTICLE{approachtoautoqexp,        author = {Claudio Carpineto and Renato De Mori and Giovanni Romano and Brigitte Bigi},        title = {An Information-Theoretic Approach to Automatic Query Expansion},        institution = {Fondazione Ugo Bordini and University of Avignon},        year = {2001}     }          @ARTICLE{relevance-basedlanguagemod,        author = {Victor Lavrenko and W. Bruce Croft},        title = {Relevance-Based Language Models},        institution = {Center for Intelligent Information Retrieval, Dept. of Computer Science}, University of Massachusetts},        year = {2001}     }          @ARTICLE{comparingandcombiningmethodsautoqexp,        author = {José R. Pérez-Agüera and Lourdes Araujo},        title = {Comparing and Combining Methods for Automatic Query Expansion},        institution = {Dpto. de Ingeniería del Software e Inteligencia Artificial, UCM and Dpto. Lenguajes y Sistemas Informáticos, UNED},        year = {2008}     }          @BOOK{introtoinforetrieval,        author = {Christopher D. Manning and Prabhakar Raghavan and Hinrich Schütze},        title = {Introduction to Information Retrieval},        publisher = {Cambridge University},        year = {2008}     }          @BOOK{moderninforetrieval,        author = {Ricardo Baeza-Yates and Berthier Ribeiro-Neto},        title = {Modern Information Retrieval: The concepts and technology behind search},        edition = {2nd},        publisher = {Pearson Education Limited},        year = {2011}     }      If I press enter to ignore this error the report still compiles and produces a PDF that seems to be correct, but its still really annoying to get this error all the time.


title: Header for frontmatters using scrpage2

text: How to set page numbers for front matters similar to main matters. Main matters header need to have chapter title also. Not added in MWE. Front matters must have only page number as in main matters of MWE.               %     \documentclass[12pt]{scrbook}          \usepackage{scrpage2}     \usepackage{amsmath}     \usepackage{graphicx}          \title{Your Paper}     \author{You}          \begin{document}     \frontmatter     \maketitle     \tableofcontents          \mainmatter     \pagestyle{scrheadings}     \clearscrheadfoot     \ohead[\pagemark]{\pagemark}     \chapter{First}     \section{Introduction}     Text          \section{Some Examples}     Text          \subsection{Sections}     Text          \clearpage     \subsection{Tables and Figures}     Text          \end{document}


title: Problem updating miktex - arctrl-bin

text: My miktex (32 Bit) 2.9 installation (on windows 7, 64 Bit) doesn't update (GUI and console). I recognized the problem first on 2013-07-01. It seems to be caused by the package `miktex-arctrl-bin-2.9` as the following lines from an elevated shell show.               C:\WINDOWS\system32>mpm --admin --update-db --verbose --install=miktex-arctrl-bin-2.9     downloading http://ftp.fernuni-hagen.de/ftp-dir/pub/mirrors/www.ctan.org/systems/win32/miktex/tm/packages/miktex-zzdb2-2.9.tar.lzma...     677286 bytes, 2449.67 KB/Sec     updating package definition directory ("C:\Program Files (x86)\MiKTeX 2.9\tpm\packages")...     installed 136 package definition files     visiting repository http://ftp.fernuni-hagen.de/ftp-dir/pub/mirrors/www.ctan.org/systems/win32/miktex/tm/packages/...     repository type: remote package repository     loading lightweight database...     downloading http://ftp.fernuni-hagen.de/ftp-dir/pub/mirrors/www.ctan.org/systems/win32/miktex/tm/packages/miktex-zzdb1-2.9.tar.lzma...     134749 bytes, 1356.61 KB/Sec     starting package maintenance...     installation directory: "C:\Program Files (x86)\MiKTeX 2.9"     package repository: http://ftp.fernuni-hagen.de/ftp-dir/pub/mirrors/www.ctan.org/systems/win32/miktex/tm/packages/     lightweight database digest: 348d5562d8a8cb8e92530ca19eba0eb1     going to download 21784 bytes     going to install 6 file(s) (1 package(s))     downloading http://ftp.fernuni-hagen.de/ftp-dir/pub/mirrors/www.ctan.org/systems/win32/miktex/tm/packages/miktex-arctrl-bin-2.9.tar.lzma...     21818 bytes, 213.07 KB/Sec     visiting repository http://ftp.fernuni-hagen.de/ftp-dir/pub/mirrors/www.ctan.org/systems/win32/miktex/tm/packages/...     repository type: remote package repository     loading lightweight database...     downloading http://ftp.fernuni-hagen.de/ftp-dir/pub/mirrors/www.ctan.org/systems/win32/miktex/tm/packages/miktex-zzdb1-2.9.tar.lzma...     134749 bytes, 1144.27 KB/Sec     lightweight database digest: 348d5562d8a8cb8e92530ca19eba0eb1     mpm: The operation could not be completed because the following file failed verification:     mpm:     mpm: C:\Users\EBELIN~1\AppData\Local\Temp\mikEC80.tmp      I already tried to remove the (earlier existing but outdated) package `miktex- arctrl-bin-2.9` but update and install fails. Cleaning the Temp storage directory and checking for file permissions there (temp) and in the install folder doesn't help.   Is there a solution without new installation? Changing the repository to `...uni-erlangen...` did not help - it results in the following screenshot: ![Screenshot after using uni-erlangen- erpo](http://i.stack.imgur.com/zfdBL.png)


title: Plot 3D stacked squares with shadow

text: ![enter image description here](http://i.stack.imgur.com/faRVk.jpg) This is an image I draw with tools. But I need to draw it with Tikz. And The 3 squares in the middle, I need to make them looks like 3D stacked with shadow. And the fonts on it, like 'a1', 'a2', ... will also be skewed. I don't know how to draw it, but I daw a sketch by pencil: ![enter image description here](http://i.stack.imgur.com/RTgur.jpg) I hope that I can control the font size, the font is Helvetica. I am not familiar with Tikz, but it is powerful and amazing! I need to draw this graph. Anyone knows how to achieve the 3D image? Looking forward to your replies! Thanks very much!


title: Too much spacing between subsection and custom itemize

text: I have a resume I created using `resume.cls`. I have a custom `nitemize` environment in order to remove separation between items within the document itself. In the document, under one of my internships, I have subsections and then an `nitemize` under each subsection. I cannot for the life of me remove the whitespace between the beginning and end of the `nitemize`. I have read the first 3 pages of the Google results for my problem, and nothing seems to work, I think it is because I am using a different `.cls` maybe, or I am missing some packages or something. If you need to see the `.cls` file or my `.tex` file, I would be happy to provide it. Here is the minimal example of the document:               \documentclass[letterpaper]{resume}     \usepackage{paralist}     \definecolor{ruleendcolor}{rgb}{0.6, 0.6, 0.6}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}          \linespread{0}                    \setlength{\parskip}{0\parsep}          \newenvironment{nitemize}{      \begin{itemize}      \setlength{\itemsep}{0pt}      \setlength{\parskip}{0pt}      \setlength{\parsep}{0pt}     }{      \end{itemize}     }          \begin{document}     \maketitle          \subsection{Linux Development}     \begin{nitemize}     \item Planned and designed a customized thin client OS based on Linux     \item Utilized a virtual environment to compare several different prototypes     \item Designed an unattended distribution method for customized Linux installs     \item Developed custom configuration scripts to simplify user experience     \item Facilitated initial user testing     \end{nitemize}     \subsection{Virtualized Infrastructure Analysis}     \begin{nitemize}     \item Maintained Navistar's Virtual Desktop Infrastructure using Citrix Desktop Studio and Microsoft VMM     \item Deployed packages using System Center Configuration Manager     \item Able to diagnose problems using knowledge of VLANs, Remote Distribution Points, Powershell Scripting     \item Made a proposal to implement Xen's dynamic resource allocation features to save money and provide a better user experience     \end{nitemize}          \end{document}


title: percentage sign looks italic

text: I have a problem with the percentage sign. In the font I'm using the percentage sign looks like it's in italic. I want it to look like the rest of the font.               \documentclass[a4paper,12pt,titlepage]{article}     \usepackage[utf8]{inputenc}         \usepackage[ngerman]{babel}         \usepackage{mathptmx}          \begin{document}          text 20~\%          \end{document}


title: Comment package not working

text: I have added the package `\usepackage{comment}` in my .tex file. But when I am adding `\begin{comment}` and `\end{comment}` it is not commenting the text I want to comment. What to do?


title: Check if a number is in a comma separated list (print or display selected sections from a specific list)

text: I'm trying to check if a section number belongs to a specified list:                   \ifnum\value{section}=\mylist % check if section number in mylist --- WRONG             \dosomething         \fi      The conditional is obviously wrong because it doesn't make sense to compare a number to a list. My sense is that there must be a quick fix (although my TeX knowledge is very limited). Please help! * * * p.s. Here's a more fully-spelled out version of the my question: I'm trying to create an environment that can print selected sections only. I hope to specify in the beginning of the document a comma separated list of sections to be printed, and then print only selected sections. For example,                   \keepsections{1,5,8}         \mysection{section 1}{content}         \mysection{section 2}{content}         \mysection{section 3}{content}         \mysection{section 4}{content}         \mysection{section 5}{content}         \mysection{section 6}{content}         \mysection{section 7}{content}         \mysection{section 8}{content}      Should give us: ![output](http://i.imgur.com/uiLcmnO.png) This is what I've tried:                   \documentclass{article}              \newcommand{\keepsections}[1]{ \newcommand{\mylist}{#1} }         \usepackage{environ}% http://ctan.org/pkg/environ         \NewEnviron{customsection}{ % new environment             \stepcounter{section} % environ should use the section counter             \ifcustomsec % if want to print only select sections from a list                 \ifnum\value{section}=\mylist\relax % check if section in list --- WRONG                     \addtocounter{section}{-1} % use correct counter and print                     \BODY                 \fi             \else % if want to print all sections,                 \addtocounter{section}{-1} % use correct counter and print                 \BODY             \fi%         }         \newcommand{\mys}[1]{\begin{customsection}#1\end{customsection}}         \newcommand{\mysection}[2]{\mys{\section{#1}#2}} % to conform to usage above              \newif\ifcustomsec % Boolean to print only selected sections         \customsectrue % Bool=True: Tell TeX to print only from the custom list         \keepsections{1,5,8} % Print only sections 1 and 3              \begin{document}              \mysection{section 1}{content}         \mysection{section 2}{content}         \mysection{section 3}{content}         \mysection{section 4}{content}         \mysection{section 5}{content}         \mysection{section 6}{content}         \mysection{section 7}{content}         \mysection{section 8}{content}              \end{document}      Although it fails because of the wrong logic pointed out above. This question -- Create odd-numbered answers, or all answers -- has a very nice solution to printing just even or odd sections that works really well, and that's where I took the idea from. This question -- Test if a number is in a comma separated range/list of numbers -- discusses defining a command of the sort                   \ifinrange{<num>}{<range>}{<TRUE>}{<FALSE>}% num>=0      It would be nice if I could just replace                   \ifnum\value{section}=\mylist\relax%      portion with                   \ifinrange{\value{section}}{\mylist}{...}{...}      but with my limited knowledge I failed to implement it in this context. Deeply appreciate any help. Thanks so much.


title: How can one make border of text for a figure?

text: I want to take text and wrap it around as the border of a figure. That is, text on the top, wrapping to sideways text running down the right, wrapping to upside down text on the bottom, wrapping to sideways text on the left. This isn't just a request for text-wrap, but instead a custom border. This may be an odd request, but I'm curious if it is possible (or relatively easy since it's possible to hack together something). I have a feeling, if I actually want to do this, it will have to be through manually setting each side up.


title: Adjust vertical space before enumerated list in Beamer

text: In Beamer, I can easily set the desired vertical space between items in an enumerated list with `itemsep`. But how do I set the vertical space between the line that introduces the enumerated list and the first item in this list? Ideally I would like it to be identical to the space between the items in the list. In the MWE below, I want more space after the itemized line "Here are two interesting things:"               \documentclass{beamer}     \usepackage{lmodern}          \begin{document}         \begin{frame}             \begin{itemize}                 \item Here are two interesting things:                 \begin{enumerate} \itemsep2ex                     \item This is number one.                     \item And this is number two.                 \end{enumerate}             \end{itemize}         \end{frame}     \end{document}      ![enter image description here](http://i.stack.imgur.com/QDJda.png)


title: How can I include a bibliography at the end of each part of a book?

text: I'm trying to write a book divided into two parts. I'd like to insert a bibliography at the end of each part (several chapters each) but, since it will be one volume, I want the page number to keep growing. Is there a way to do it? I'm currently arguing with `chapterbib`, but I had no luck up to now. Any suggestion?


title: TexMaker PDF viewer blurry

text: I am using TexMaker on a macbook retina with an additional external display. The documents displayed in the PDF viewer while on the external display are very grainy/blurry and hard to read, while they are completely fine on the macbook screen and when opening the produced PDF with another software. I didn't find anything related to this online.


title: Latex arrow hook up

text: Can anyone tell me how to write `\hookuparrow` in Latex? I know that writing `$\hookrightarrow$` gives us the arrow to the right but for up and down arrows it is not true, maybe I need some package ?


title: Why are odd pages left pages?

text: I'm typesetting a friend's novel using LaTeX (in my actual document I'm using `memoir`, but the same happens if I just use `book`). It's possible I'm going crazy, but I'm sure that it's setting up odd pages to be left pages, instead of right pages (which is what appears to be standard). My code looks something like this:               \documentclass{book}          \usepackage{lipsum}          \title{Lorem Ipsum Dolor Sit Amet}     \author{The Author}          \begin{document}     \frontmatter     \maketitle     \mainmatter          \lipsum          \end{document}      This generates me a 4 page PDF (you can download it here) - which I _think_ has odd pages as left-hand pages (odd pages have wide right margins, even pages have wide left margins, but then on the other hand, odd pages have page numbers on the right hand side, which makes them look like right-hand pages). Shouldn't I have a wide left margin? Have I totally misunderstood odd and even pages? Have I just completely lost it from staring at this for too long?


title: Is there any package for LaTeX dealing with a database?

text: Is there any package for LaTeX dealing with a database (with some of the fields being LaTeX code). For example, given a collection of problems with fields {id, name, author, refs, statement, solution, difficulty, keywords...} the package should allow to build a latex document from the data filtering by any of the fields (obtaining, for example, a list of the "easy" algebra problems with authors but without solutions). Another possible application is a multilingual CV being the fields the CV entries and the rows the data in the corresponding language. I managed to simulate this scheme using .bib files to store the data, but as some drawbacks appeared (relative to the code interpretation) I just wonder if there is something specifically designed for this situations.