title: How to get abbreviations of the bibliography into the list of shorthands?

text: I wish to build a list of shorthands that also contains abbreviations used _inside_ the bibliography (I am especially thinking of the shortjournal- field). Consider the following example:               \documentclass{article}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage[german]{babel}          \usepackage[backend=biber,style=authoryear]{biblatex}          \usepackage{filecontents}          \begin{filecontents}{\jobname.bib}     @article{Lutzeier1983,     Author = {Peter Rolf Lutzeier},     Journal = {Zeitschrift f{\"u}r Sprachwissenschaft},     Shortjournal = {ZfS},     Pages = {45-71},     Shorttitle = {Wortfelder},     Title = {Wortfelder als Ma{\ss}stab f{\"u}r Interpretationen an Beispielen des Feldes der Stimmungen im Deutschen},     Volume = {2},     Year = {1983},     }     \end{filecontents}          \addbibresource{\jobname.bib}          \begin{document}          \cite{Lutzeier1983}          \printshorthands     \printbibliography     \end{document}      I would like biblatex to build up the list of shorthands _automatically_ by using the fields journal and shortjournal. How can I tell biblatex to treat the field shortjournal in a similar way like the field shorthand? The only possibility I can think of is to _manually_ add an entry like               @book{AbkZfS,     Options = {skipbib=true},     Shorthand = {ZfS},     Title = {Zeitschrift f{\"u}r Sprachwissenschaft}}      to the bib-file and the command               \nocite{AbkZfS}       to the tex-file. Is there a more convenient way to get a list of shorthands including a line like "Zfs = Zeitschrift f{\"u}r Sprachwissenschaft"? Thank you!


title: Different Caption-Setup for top and bottom figures?

text: is there a way to control the caption format used for figures, depending on where the figure has been placed? In particular, i would like to have different formatting of figure captions for figures that are placed to the top, and figures that are placed on the bottom of a page. In my MWE i define a format that uses a horizontal line under the caption text. This is ok if the figure is on the top of the page and the caption is below the figure. But when the figure is at the bottom, i would put the caption above the figure - and then i'd like to use a caption format that has the horizontal line above the text. Do you think something like that is possible, even automatically? Cheers Janos P.s. in order to compile my MWE, you'd need an image called "blackbox".               \documentclass{article}     \usepackage[pdftex]{graphicx}     \usepackage{caption}     \usepackage{lipsum}     \DeclareCaptionFormat{figureFormat}{#1#2#3\hrulefill}     \captionsetup[figure]{format=figureFormat}     \begin{document}         \begin{figure}[!t]             \centering             \label{fig:1}             \includegraphics[width=\columnwidth]{blackbox}             \caption{This figure is on the top. The caption should be on the bottom,             and the horizontal line under it.}         \end{figure}         \lipsum[1]         \lipsum[1]         \begin{figure}[!b]             \centering             \caption{This figure is on the bottom, so it caption is above it. Now             the horizontal line should be also above this text...}             \label{fig:2}             \includegraphics[width=\columnwidth]{blackbox}         \end{figure}     \end{document}


title: where is `texmf.cnf` in arch linux?

text: while on Ubuntu, I had a file called `/etc/texmf/texmf.cnf` where I could set up some userspecific confs, e.g. something like               TEXMFHOME = $HOME/texmf      I would like to know where to find this file on archlinux, as I need to set up `TEXMFHOME` to a specific folder....


title: \fullcite without indent in biblatex

text: I'm using `\fullcite` to produce in-margin-note citations as per my older question. I've almost got the behavior I want, but `biblatex`'s `\fullcite` command inserts a leading indent before the citation starts: ![example of space in weird place](http://i.stack.imgur.com/DzQ0d.png) I'm using the `numeric` `biblatex` style. It's hard to generate a minimal example that generates this text because it relies on a recent version of tufte-latex, but refer to tufte-latex Issue 60.


title: Using \Mathsmaller in math display mode makes the character appear to the right of the symbol itstead of below it

text: I am trying to use `\prod` in math display mode but it appears large (larger than I want it to be) but when I use `\mathsmaller` from the `relsize` package the letter appears on right side of it instead of below. Is there any way to make the symbol smaller while the character remains below the symbol?


My title may be difficult to understand. Hopefully by seeing the animation, you get the idea. I want the left-hand wing to be drawn step by step as is the right-hand wing but I want to use the reversed path approach such that I can save more keystrokes. Is it possible?               \documentclass{beamer}          \usepackage{pstricks}     \usepackage[active,tightpage]{preview}     \PreviewEnvironment{pspicture}     \PreviewBorder=12pt\relax          \makeatletter     \let\Test@pr@shipout\pr@shipout%% save the original definition     \let\Test@shipout\shipout     \AtBeginDocument{%       \let\pr@shipout\Test@pr@shipout%% restore it        \let\shipout\Test@shipout     }     \makeatother               % Define the right part of Batman     \def\RightPart     {         % start from ear to tail         \only<1->{\psline(.5,2.7)(1,3.25)}         \only<2->{\psbezier(1.2,1.3)(1.3,1)(2,1)}         \only<3->{\psbezier(3,1)(3,2.2)(!3.3 6 72 p2c)}         \only<4->{\psellipticarcn(6,3.3){(!3.3 6 72 p2c)}{(!3.3 6 72 neg p2c)}}         \only<5->{\psbezier(4,-2)(4,0)(2.2,-1.8)}         \only<6->{\psbezier(1.5,-1)(1,-1)(0,-3.2)}     }               \begin{document}          \begin{frame}{Test}     \begin{pspicture}[dimen=m](-6,-3)(6,3)         % Define a PostScript operator to convert an elliptical point         % "a b Θ" to its Cartesian "x y"         \pstVerb{/p2c {dup 3 1 roll cos mul 3 1 roll sin mul} bind def}%       \pscustom       {         % reverse the right part         % so the drawing starts from the tail         % to the right wing followed by          % the right ear          \RightPart         \reversepath         % reflect the right part for the left part         % so the drawing is continued to          % the left ear followed by the left wing         \scale{-1 1}         \only<7->{\RightPart}         % close path         % so the drawing ends at the tail         \closepath       }     \end{pspicture}     \end{frame}     \end{document}      ![enter image description here](http://i.stack.imgur.com/TSPvm.gif) How to reuse the right-hand path for the left-hand path such that it is displayed in reverse step by step?


title: Adding a new page

text: I have the following title page in LaTeX:               \documentclass{article}          \title{Appendix A: User Manual}          \author{     John Smith\\University XyZ\\Albert Square\\Walford\\NC1 8AE     }          \begin{document}     \maketitle     \end{document}      What is the proper way to add a new page (say for the contents page) and start editing hat new page?


title: Putting marks for split footnotes

text: Say, that you have a footnote which is printed in page 1 and 2. How can you put a mark, say `$\rightarrow$` at the end of the footnote text in page 1 and at the start of the footnote text on page 2, automatically.


title: Show page number of chapter and as a “percent complete” in LaTeX

text: I want to show in the page foot the current progress of the current chapter in book mode in LaTeX document. For example, if the chapter contains 200 pages, then I want the foot to show 11.5% in the page 23 (of chapter). Thanks for help. Regards,


title: Creating new colors in xcolor for use in listings

text: I'm trying to include some code using `\usepackage{listings}`. However the default look is not very pretty, so I want to customize it a bit. I've read some of the other posts about changing the layout of the code so I tried this:                   \usepackage{listings}         \usepackage[rgb]{xcolor}         \lstset{%         language=C++,%         backgroundcolor=\color{yellow!20},% sets backgroundcolor         basicstyle=%         \scriptsize \color{black},% basic font setting         commentstyle=%         \color{OliveGreen}         }      But OliveGreen is undefined. Green is not good looking at all, so I would like to know how I can mix/create my own colors? Or maybe use another package with more standard colors in it.


title: LaTeX Warning: Citation 'author2012' on page 1 undefined on input line 15

text: How do you correct an undefined citation? I've clicked the BibTex option several times to let Latex automatically recognize the new references, but this isn't working.               \documentclass[12pt,a4paper]{report}      \usepackage{natbib}      \begin{document}      \section{Introduction}      \label{sec:intro}      \subsection{A}      Text with \cite{hatcher2008}      \bibliographystyle{plain}      \bibliography{bibfile}      \end{document}       **Addendum** : Here's an excerpt from the `.bib` file:               @article{hatcher2008curcumin}        title={Curcumin: from ancient medicine to current clinical trials},        author={Hatcher, H. and Planalp, R. and Cho, J. and Torti, FM and Torti, SV},        journal={Cellular and Molecular Life Sciences},        volume={65},        number={11},        pages={1631--1652},        year={2008},        publisher={Springer}


title: biblatex-apa error with silence package, is it innocuous?

text: I am getting the following compilation errors when using `biblatex`, APA and `silence`. I hope it is not harmful? I just updated my MiKTeX distribution and reinstalled `biblatex-apa`.               [ ERROR ][ C:\Program Files (x86)\MiKTeX     2.9\tex\latex\biblatex-apa\apa.bbx | Line 972 ] Argument of \blx@noline has an extra }:    \renewbibmacro*{reviewauthor}          [ WARNING ][ C:\Program Files (x86)\MiKTeX     2.9\tex\latex\biblatex-apa\apa.bbx | Line  ] Runaway argument?   ! Paragraph ended before \blx@noline was complete.          [ ERROR ][ C:\Program Files (x86)\MiKTeX     2.9\tex\latex\biblatex-apa\apa.bbx | Line 972 ] Paragraph ended before \blx@noline was complete:    \renewbibmacro*{reviewauthor}          [ WARNING ][ C:\Program Files (x86)\MiKTeX     2.9\tex\latex\biblatex-apa\apa.bbx | Line  ] Package biblatex Warning: Macro 'reviewauthor' undefined.(biblatex)                Using \newbibmacro.      Here a MWE               \documentclass[11pt,twoside]{standalone}      \usepackage{silence}     \usepackage[log-declarations=false]{xparse}     \usepackage[quiet]{fontspec}     \usepackage[british]{babel}     \usepackage{csquotes}     \usepackage[backend=biber, style=apa]{biblatex}     \DeclareLanguageMapping{british}{british-apa}     \begin{document}     Testing     \end{document}


title: Using MiKTeX and TeX Live on the same computer?

text: Is there anything I should be aware of if I want to install MiKTeX and TeX Live on the same computer? Are there any problems, any incompatabilities? Is it even possible? I imagine there could be some conflict e.g. if I called `pdflatex foo.tex` -- whose pdfLaTeX would that be, MiKTeX's or TeX Live's? In case it matters, I'm using Windows 7 64-bit and MiKTeX 2.9 is already installed.


title: Linewidth resets when using input files

text: I'm trying to set some figure files in standalone .tex files, and then input them in the main file. Those files looks something like this               \ifx \plotwidth \undefined      \newlength{\plotwidth} \setlength{\plotwidth}{0.9\linewidth}      \else \fi% width of the total figure     \rule{\linewidth}{\plotwidth}% figure goes here      The main idea I have is to set standard widths using `\linewidth`, and being able to change the size in the main file by defining the `\plotwidth` before inputting the file. However, when I call the figures the second time in the same file, for some reason the `\plotwidth` is defined but its lenght is zero. As this example show               \documentclass{article}          \begin{document}          \begin{figure}     \input{fig.tex}     \caption{Test}     \end{figure}          \begin{figure}     \input{fig.tex}     \caption{Test}     \end{figure}          \end{document}      Can someone explain me why this is not working, and how to solve it?


title: Why do I fail to import external 3D plots with pgfplots?

text: I have tried to import external 3D plots from Matlab et.al, but to no avail. To show what I managed to accomplish, I present a minimum non-working example below. Any ideas of what I'm doing wrong? Cheers, Stefanos Makefile:               all: 3dtest.pdf          3dtest.pdf: 3dtest.tex bumps.png         latexmk -pdflatex="xelatex -shell-escape " -pdf 3dtest.tex          bumps.png: bumps.m         matlab -nodesktop -nosplash -r "bumps;exit"         sleep 1         reset         convert bumps.png -trim +repage -transparent white bumps.png      bumps.m (don't bother running this with Octave, saving the surface plot is for some reason incredibly slow, and the result isn't very good):               function bumps()       figure(1)       [X,T]=meshgrid(linspace(0,1,400),linspace(0,2,400));       c=[3 2 5 4];       surf(X,T,abs(sin(c(1)*pi*X).*exp(1j*c(2)*pi*T)+sin(c(3)*pi*X).*exp(1j*c(4)*pi*T)))       shading interp       colormap(jet(1000))       axis off       setPapersize(6*[4 3])       print -dpng bumps     end          function setPapersize(papersize)       set (gcf,'papertype', '<custom>')       set (gcf, 'papersize', papersize)       set (gcf, 'paperposition', [0 0 papersize])     end      3dtest.tex:               \documentclass{standalone}     \usepackage{tikz,pgfplots}          \begin{document}          \begin{tikzpicture}       \begin{axis}[width=10cm]         \addplot3 graphics[points={           (0,0,0) => (1212,0)           (1,0,0) => (2791,428)           (0,2,0) => (0,557)           (0.8872,2,1.854) => (1398,2064)           (1,2,2)         }] {bumps};       \end{axis}     \end{tikzpicture}          \end{document}      The resultant image: ![Image](http://i.stack.imgur.com/T2qqJ.png) EDIT: Original image: ![Image](http://i.stack.imgur.com/slbl9.jpg) FYI, I'm on Texlive 2012, using XeLaTeX (as seen in the Makefile).


title: custom horizontal space between entries and their corresponding labels in bibliography

text: I would like to define the horizontal space between entries and their corresponding labels in my .bst bibliography, obtained with `makebst`. I tried with:               \newlength\biblabelsep     \setlength{\biblabelsep}{0.7cm}      but it doesn't work. Could someone suggest me a solution?


title: Reducing the spaces before and after \smallsetminus

text: I recently found `\smallsetminus` as a much nicer alternative to just `\setminus`, which is essentially just a backslash. However, I'm a bit unhappy with how much size it leaves before and after the `\` character. Is there any way to reduce that space? Or a different alternative other than `\smallsetminus`?


title: Problem using \textblock with \newenvironment

text: I want to redefine the `frame` environment in `beamer` so that the contents are inside a box in the center of the frame, but when I try defining the new environment like:               \newenvironment{hframe}[1]     {%before     \begin{frame}{{#1}}     \begin{textblock}{11}(2,2)     }{ %after     \end{textblock}     \end{frame}     }          ...          \begin{document}          ...          \begin{hframe}{title}     some text     \end{hframe}          \end{document}      I got a compiling error: `"! File ended while scanning use of \frame."`. But if instead I use the following code               \newenvironment{hframe}[1]     {%before     \begin{frame}{{#1}}     \begin{textblock}{11}(2,2)     }{ %after     %\end{textblock}     \end{frame}     }          ...          \begin{document}          ...          \begin{hframe}{title}     some text     \end{textblock}     \end{hframe}          \end{document}      it works... Any clue of what is happening and how can I include the `\end{textblock}` in the "end" argument of `\newenvironment`?


title: Installing/Using Exceltex

text: I need help installing and using `exceltex`. I installed ActivePerl, then according to link I installed `Spreadsheet::ParseExcel`. Then copied `exceltex` into               /usr/local/bin      and `exceltex.sty` into               /usr/local/texlive/2012/texmf/tex/latex/Misc      Note: I created the `Misc` folder myself. Now according to the above link, when I try to run the simple example given in the above link, after creating the LaTeX file, it says               now, run `latex`, `exceltex`, and `latex` again.      This is the part I don't understand. Am I supposed to compile my LaTeX file, then run `exceltex` from `/usr/local/bin` and then compile the LaTeX file again? I tried this and it doesnt work. It compiles, but doesnt give me the result I am looking for. I really appreciate any help/suggestions.


title: unaligned groupplot

text: I tried to stack my plots with a `groupplot` from `pgfplots` package. Like in this MWE:               \documentclass{article}     \usepackage{pgfplots}     \usepgfplotslibrary{units}     \usepgfplotslibrary{groupplots}          \begin{document}          \begin{tikzpicture}     \begin{groupplot}[         group style={             group size=1 by 3,             vertical sep=1ex         },         scale only axis=true,         height=1.5cm, width=8cm,         ticks=none]         \nextgroupplot[axis y line=left,axis x line=none]         \addplot[black, domain=0:360] {sin(x)};         \nextgroupplot[axis y line=left,axis x line=none]         \addplot[black, domain=0:360] {cos(x)};         \nextgroupplot[axis y line=left,axis x line=bottom,xlabel=time]         \addplot[black, domain=0:360] {cos(x)};     \end{groupplot}     \end{tikzpicture}          \end{document}      I don't understand why the plots aren't aligned/scaled in the same way: ![result/expected](http://i.stack.imgur.com/IR3tS.png) How can I get my plots aligned in the same way?


title: Horizontal line below the title section does not cover the entire document

text: I would like to draw a horizontal line below the title section in a beamer poster. The problem is that the line under the title does not encompass the entire document, and only covers 3 columns (from 4 columns). Here is my code:               %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     % Jacobs Landscape Poster     % LaTeX Template     % Version 1.1 (14/06/14)     %     % Created by:     % Computational Physics and Biophysics Group, Jacobs University     % https://teamwork.jacobs-university.de:8443/confluence/display/CoPandBiG/LaTeX+Poster     %      % Further modified by:     % Nathaniel Johnston (nathaniel@njohnston.ca)     %     % This template has been downloaded from:     % http://www.LaTeXTemplates.com     %     % License:     % CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)     %     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%          %----------------------------------------------------------------------------------------     %   PACKAGES AND OTHER DOCUMENT CONFIGURATIONS     %----------------------------------------------------------------------------------------          \documentclass[final]{beamer}          \usepackage[scale=1.24]{beamerposter} % Use the beamerposter package for laying out the poster          \usetheme{confposter} % Use the confposter theme supplied with this template          \setbeamercolor{block title}{fg=ngreen,bg=white} % Colors of the block titles     \setbeamercolor{block body}{fg=black,bg=white} % Colors of the body of blocks     \setbeamercolor{block alerted title}{fg=white,bg=dblue!70} % Colors of the highlighted block titles     \setbeamercolor{block alerted body}{fg=black,bg=dblue!10} % Colors of the body of highlighted blocks     % Many more colors are available for use in beamerthemeconfposter.sty          %-----------------------------------------------------------     % Define the column widths and overall poster size     % To set effective sepwid, onecolwid and twocolwid values, first choose how many columns you want and how much separation you want between columns     % In this template, the separation width chosen is 0.024 of the paper width and a 4-column layout     % onecolwid should therefore be (1-(# of columns+1)*sepwid)/# of columns e.g. (1-(4+1)*0.024)/4 = 0.22     % Set twocolwid to be (2*onecolwid)+sepwid = 0.464     % Set threecolwid to be (3*onecolwid)+2*sepwid = 0.708          \newlength{\sepwid}     \newlength{\onecolwid}     \newlength{\twocolwid}     \newlength{\threecolwid}     \setlength{\paperwidth}{72in} % A0 width: 46.8in     \setlength{\paperheight}{48in} % A0 height: 33.1in     \setlength{\sepwid}{0.024\paperwidth} % Separation width (white space) between columns     \setlength{\onecolwid}{0.22\paperwidth} % Width of one column     \setlength{\twocolwid}{0.464\paperwidth} % Width of two columns     \setlength{\threecolwid}{0.708\paperwidth} % Width of three columns     \setlength{\topmargin}{-0.5in} % Reduce the top margin size     %-----------------------------------------------------------          \usepackage{graphicx}  % Required for including images          \usepackage{booktabs} % Top and bottom rules for tables          %----------------------------------------------------------------------------------------     %   TITLE SECTION      %----------------------------------------------------------------------------------------          \title{Unnecessarily Complicated Research Title} % Poster title          \author{John Smith, James Smith and Jane Smith} % Author(s)          \institute{Department and University Name} % Institution(s)          %----------------------------------------------------------------------------------------          \begin{document}          \addtobeamertemplate{block end}{}{\vspace*{2ex}} % White space under blocks     \addtobeamertemplate{block alerted end}{}{\vspace*{2ex}} % White space under highlighted (alert) blocks          \setlength{\belowcaptionskip}{2ex} % White space under figures     \setlength\belowdisplayshortskip{2ex} % White space under equations          \begin{frame}[t] % The whole poster is enclosed in one beamer frame          \begin{columns}[t] % The whole poster consists of three major columns, the second of which is split into two columns twice - the [t] option aligns each column's content to the top          \begin{column}{\sepwid}\end{column} % Empty spacer column          \begin{column}{\onecolwid} % The first column          %----------------------------------------------------------------------------------------     %   OBJECTIVES     %----------------------------------------------------------------------------------------          \begin{alertblock}{Objectives}          Lorem ipsum dolor sit amet, consectetur, nunc tellus pulvinar tortor, commodo eleifend risus arcu sed odio:     \begin{itemize}     \item Mollis dignissim, magna augue tincidunt dolor, interdum vestibulum urna     \item Sed aliquet luctus lectus, eget aliquet leo ullamcorper consequat. Vivamus eros sem, iaculis ut euismod non, sollicitudin vel orci.     \item Nascetur ridiculus mus.       \item Euismod non erat. Nam ultricies pellentesque nunc, ultrices volutpat nisl ultrices a.     \end{itemize}          \end{alertblock}          %----------------------------------------------------------------------------------------     %   INTRODUCTION     %----------------------------------------------------------------------------------------          \begin{block}{Introduction}          Lorem ipsum dolor \textbf{sit amet}, consectetur adipiscing elit. Sed commodo molestie porta. Sed ultrices scelerisque sapien ac commodo. Donec ut volutpat elit. Sed laoreet accumsan mattis. Integer sapien tellus, auctor ac blandit eget, sollicitudin vitae lorem. Praesent dictum tempor pulvinar. Suspendisse potenti. Sed tincidunt varius ipsum, et porta nulla suscipit et. Etiam congue bibendum felis, ac dictum augue cursus a. \textbf{Donec} magna eros, iaculis sit amet placerat quis, laoreet id est. In ut orci purus, interdum ornare nibh. Pellentesque pulvinar, nibh ac malesuada accumsan, urna nunc convallis tortor, ac vehicula nulla tellus eget nulla. Nullam lectus tortor, \textit{consequat tempor hendrerit} quis, vestibulum in diam. Maecenas sed diam augue.          This statement requires citation \cite{Smith:2012qr}.          \end{block}          %------------------------------------------------          \begin{figure}     \includegraphics[width=0.8\linewidth]{placeholder.jpg}     \caption{Figure caption}     \end{figure}          %----------------------------------------------------------------------------------------          \end{column} % End of the first column          \begin{column}{\sepwid}\end{column} % Empty spacer column          \begin{column}{\twocolwid} % Begin a column which is two columns wide (column 2)          \begin{columns}[t,totalwidth=\twocolwid] % Split up the two columns wide column          \begin{column}{\onecolwid}\vspace{-.6in} % The first column within column 2 (column 2.1)          %----------------------------------------------------------------------------------------     %   MATERIALS     %----------------------------------------------------------------------------------------          \begin{block}{Materials}          The following materials were required to complete the research:          \begin{itemize}     \item Curabitur pellentesque dignissim     \item Eu facilisis est tempus quis     \item Duis porta consequat lorem     \item Eu facilisis est tempus quis     \end{itemize}          The materials were prepared according to the steps outlined below:          \begin{enumerate}     \item Curabitur pellentesque dignissim     \item Eu facilisis est tempus quis     \item Duis porta consequat lorem     \item Curabitur pellentesque dignissim     \end{enumerate}          \end{block}          %----------------------------------------------------------------------------------------          \end{column} % End of column 2.1          \begin{column}{\onecolwid}\vspace{-.6in} % The second column within column 2 (column 2.2)          %----------------------------------------------------------------------------------------     %   METHODS     %----------------------------------------------------------------------------------------          \begin{block}{Methods}          Lorem ipsum dolor \textbf{sit amet}, consectetur adipiscing elit. Sed laoreet accumsan mattis. Integer sapien tellus, auctor ac blandit eget, sollicitudin vitae lorem. Praesent dictum tempor pulvinar. Suspendisse potenti. Sed tincidunt varius ipsum, et porta nulla suscipit et. Etiam congue bibendum felis, ac dictum augue cursus a. \textbf{Donec} magna eros, iaculis sit amet placerat quis, laoreet id est. In ut orci purus, interdum ornare nibh. Pellentesque pulvinar, nibh ac malesuada accumsan, urna nunc convallis tortor, ac vehicula nulla tellus eget nulla. Nullam lectus tortor, \textit{consequat tempor hendrerit} quis, vestibulum in diam. Maecenas sed diam augue.          \end{block}          %----------------------------------------------------------------------------------------          \end{column} % End of column 2.2          \end{columns} % End of the split of column 2 - any content after this will now take up 2 columns width          %----------------------------------------------------------------------------------------     %   IMPORTANT RESULT     %----------------------------------------------------------------------------------------          \begin{alertblock}{Important Result}          Lorem ipsum dolor \textbf{sit amet}, consectetur adipiscing elit. Sed commodo molestie porta. Sed ultrices scelerisque sapien ac commodo. Donec ut volutpat elit.          \end{alertblock}           %----------------------------------------------------------------------------------------          \begin{columns}[t,totalwidth=\twocolwid] % Split up the two columns wide column again          \begin{column}{\onecolwid} % The first column within column 2 (column 2.1)          %----------------------------------------------------------------------------------------     %   MATHEMATICAL SECTION     %----------------------------------------------------------------------------------------          \begin{block}{Mathematical Section}          Nam quis odio enim, in molestie libero. Vivamus cursus mi at nulla elementum sollicitudin. Nam quis odio enim, in molestie libero. Vivamus cursus mi at nulla elementum sollicitudin.          \begin{equation}     E = mc^{2}     \label{eqn:Einstein}     \end{equation}          Nam quis odio enim, in molestie libero. Vivamus cursus mi at nulla elementum sollicitudin. Nam quis odio enim, in molestie libero. Vivamus cursus mi at nulla elementum sollicitudin.          \begin{equation}     \cos^3 \theta =\frac{1}{4}\cos\theta+\frac{3}{4}\cos 3\theta     \label{eq:refname}     \end{equation}          Nam quis odio enim, in molestie libero. Vivamus cursus mi at nulla elementum sollicitudin. Nam quis odio enim, in molestie libero. Vivamus cursus mi at nulla elementum sollicitudin.          \begin{equation}     \kappa =\frac{\xi}{E_{\mathrm{max}}} %\mathbb{ZNR}     \end{equation}          \end{block}          %----------------------------------------------------------------------------------------          \end{column} % End of column 2.1          \begin{column}{\onecolwid} % The second column within column 2 (column 2.2)          %----------------------------------------------------------------------------------------     %   RESULTS     %----------------------------------------------------------------------------------------          \begin{block}{Results}          \begin{figure}     \includegraphics[width=0.8\linewidth]{placeholder.jpg}     \caption{Figure caption}     \end{figure}          Nunc tempus venenatis facilisis. Curabitur suscipit consequat eros non porttitor. Sed a massa dolor, id ornare enim:          \begin{table}     \vspace{2ex}     \begin{tabular}{l l l}     \toprule     \textbf{Treatments} & \textbf{Response 1} & \textbf{Response 2}\\     \midrule     Treatment 1 & 0.0003262 & 0.562 \\     Treatment 2 & 0.0015681 & 0.910 \\     Treatment 3 & 0.0009271 & 0.296 \\     \bottomrule     \end{tabular}     \caption{Table caption}     \end{table}          \end{block}          %----------------------------------------------------------------------------------------          \end{column} % End of column 2.2          \end{columns} % End of the split of column 2          \end{column} % End of the second column          \begin{column}{\sepwid}\end{column} % Empty spacer column          \begin{column}{\onecolwid} % The third column          %----------------------------------------------------------------------------------------     %   CONCLUSION     %----------------------------------------------------------------------------------------          \begin{block}{Conclusion}          Nunc tempus venenatis facilisis. \textbf{Curabitur suscipit} consequat eros non porttitor. Sed a massa dolor, id ornare enim. Fusce quis massa dictum tortor \textbf{tincidunt mattis}. Donec quam est, lobortis quis pretium at, laoreet scelerisque lacus. Nam quis odio enim, in molestie libero. Vivamus cursus mi at \textit{nulla elementum sollicitudin}.          \end{block}          %----------------------------------------------------------------------------------------     %   ADDITIONAL INFORMATION     %----------------------------------------------------------------------------------------          \begin{block}{Additional Information}          Maecenas ultricies feugiat velit non mattis. Fusce tempus arcu id ligula varius dictum.      \begin{itemize}     \item Curabitur pellentesque dignissim     \item Eu facilisis est tempus quis     \item Duis porta consequat lorem     \end{itemize}          \end{block}          %----------------------------------------------------------------------------------------     %   REFERENCES     %----------------------------------------------------------------------------------------          \begin{block}{References}          \nocite{*} % Insert publications even if they are not cited in the poster     \small{\bibliographystyle{unsrt}     \bibliography{sample}\vspace{0.75in}}          \end{block}          %----------------------------------------------------------------------------------------     %   ACKNOWLEDGEMENTS     %----------------------------------------------------------------------------------------          \setbeamercolor{block title}{fg=red,bg=white} % Change the block title color          \begin{block}{Acknowledgements}          \small{\rmfamily{Nam mollis tristique neque eu luctus. Suspendisse rutrum congue nisi sed convallis. Aenean id neque dolor. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.}} \\          \end{block}          %----------------------------------------------------------------------------------------     %   CONTACT INFORMATION     %----------------------------------------------------------------------------------------          \setbeamercolor{block alerted title}{fg=black,bg=norange} % Change the alert block title colors     \setbeamercolor{block alerted body}{fg=black,bg=white} % Change the alert block body colors          \begin{alertblock}{Contact Information}          \begin{itemize}     \item Web: \href{http://www.university.edu/smithlab}{http://www.university.edu/smithlab}     \item Email: \href{mailto:john@smith.com}{john@smith.com}     \item Phone: +1 (000) 111 1111     \end{itemize}          \end{alertblock}          \begin{center}     \begin{tabular}{ccc}     \includegraphics[width=0.4\linewidth]{logo.png} & \hfill & \includegraphics[width=0.4\linewidth]{logo.png}     \end{tabular}     \end{center}          %----------------------------------------------------------------------------------------          \end{column} % End of the third column          \end{columns} % End of all the columns in the poster          \end{frame} % End of the enclosing frame          \end{document}      Here is the result: ![enter image description here](http://i.stack.imgur.com/AhgNs.png) As you might see, there are 4 columns, but the horizontal line below title section does not cover the entire width of the poster. Source for template: www.latextemplates.com/cat/conference-posters


title: Drawing on an external image with Asymptote

text: When embedding Asymptote code in LaTeX with the `asy` environment, is there a method to include an external image and add some labels, boxes, or arrows on the image, just like what the Tikz can do (Drawing on an image with TikZ)? Is it possible?


title: Putting spaces between two \arrowvert to indicate cardinality of a group

text: How to put spaces between two vertical lines in Latex for e.g typing the usual notation of cardinality of a group ?


title: Problem with Appendix sub-indices

text: Is it possible to index the sub sections of an Appendix, both in the table of contents and the Appendix itself? At the moment, what I am getting is something like the picture attached; The subsections are indexed in both locations, yet the the capital letter (e.g. A) is missing and the numbering starts with a dot (.). Any ideas? ![enter image description here](http://i.stack.imgur.com/yWul2.png) EDIT1: The same issue appears in the "List of Figures" and "List of Tables" as well. In that case, apart from capital A, dot is also omitted. EDIT2: Here is the project.


title: Tikz overlay with subfig, axis & externalize

text: I am trying to draw lines between two different tikz-drawings, placed in subfig-environments, for example the corners of the small blue rectangle in the left image and the corners of the axis environment of the right image. ![Sample](http://i.stack.imgur.com/Op4hb.png) As the two figures will become very large, I need to export them with `externalize`. Therefore I'd also like to use the `subfig` library and not `groupplots`. I thought it would work with the `remember picture` and the `overlay` keywords, but first attempts only brought errors, so I fear there might be a conflict with `remember picture` and `externalize`. I already found a good description how to reference corners of a rectangle. Is it possible to draw lines as indicated in the sample picture? Is it possible in combination of `externalize` and `subfig` (if not I would prefer `groupplots` and `externalize` before `subfig` and no `externalize`, though the overlay image don't need to be 'externalized')? Here is my minimum example:               \documentclass[parskip]{scrartcl}     \usepackage{tikz,pgfplots,subfig, lipsum}     % \usetikzlibrary{external}     % \tikzexternalize[figure list=true]     \begin{document}          \lipsum[1]     \begin{figure}[h]         \centering         \subfloat[Overview.]{             \begin{tikzpicture}[trim axis left, trim axis right]                 \begin{axis}[domain=-10:10,x post scale=0.5]                     \addplot+[red,mark=none]{x^2};                     \draw[fill=blue,opacity=0.3] (axis cs:-2,-0.5) rectangle (axis cs:2,5);                 \end{axis}             \end{tikzpicture}         }\quad         \subfloat[Detail.]{             \begin{tikzpicture}[trim axis left, trim axis right]                 \begin{axis}[xmin=-2,xmax=2,ymin=-0.5,ymax=5,domain=-2:2,mark=none]                     \addplot+[red,mark=none]{x^2};                 \end{axis}             \end{tikzpicture}         }         \caption{Curve.}     \end{figure}     \lipsum[2]          \end{document}      Thanks a lot!


title: Defining command containing pagebreak, and boxes

text: I am trying to make a new function, to make my life simpler. The code is supposed to make a pagebreak and ouput a colored box at the next page. Aswell as puting something in the `TOC` The code works, but not while inside of a command. Does anyone know how to do this? The ultimate setup would be a command like this `\DEL{1}` producing               \newpage     \phantomsection     \addcontentsline{toc}{section}{{\color{red}\Large{Del 1}}}     \fcolorbox{black}{LightSteelBlue}{\parbox[t][1.25cm][c]{\textwidth}     {\begin{center}\textbf{Del 1 \\Uten hjelpemiddler}\end{center}}}  }      and `\Del{2}` Producing               \newpage     \phantomsection     \addcontentsline{toc}{section}{{\color{red}\Large{Del 2}}}     \fcolorbox{black}{LightSteelBlue}{\parbox[t][1.25cm][c]{\textwidth}     {\begin{center}\textbf{Del 1 \\Uten hjelpemiddler}\end{center}}}  }      I tried to make a new command like               \newcommand{\Del}{      \newpage     \phantomsection     \addcontentsline{toc}{section}{{\color{red}\Large{Del 2}}}     \fcolorbox{black}{LightSteelBlue}{\parbox[t][1.25cm][c]{\textwidth}     {\begin{center}\textbf{Del 1 \\Uten hjelpemiddler}\end{center}}}  }     }      Alas this gives me some strange error, that I have not yet begun my document. Now, I think it is all of the commands such as newpage latex does not want inside of a command. Looking forward to see your clever ideas, to solve this problem =) * * * * * * Now, thanks to the effort below. I was able to discover what I was looking for an almost solve it. Now this function is ment to be used on tests and exams as a header. "Uten hjelpemidler" means without any assistance/tools. Just pen and paper. While "Med hjelpemiddler" is with all tools avaible, computer calculator etc. Now the function below is supposed to count each time I use such a header and count up. The input argument is for saying wheter the section is with or without calculator. The problem is that the counter "tittel" gives an error when placed inside of the function. Anyone know how to fix this ? =)               \documentclass[border=5pt,tightpage]{standalone}     \usepackage{xcolor}     \usepackage{hyperref}     \usepackage{xstring}          \newcounter{tittel}     \renewcommand{\thetittel}{\arabic{tittel}}     \newcommand{\tittel}{\stepcounter{tittel} \thetittel }     \setcounter{tittel}{0}          \newcommand{\Del}[1]{%       \IfStrEqCase{#1}{%         {u}{\def\Label{Uten }}%         {m}{\def\Label{Med }}%         }[\def\Label{UNKNOWN}]%      % \newpage       \phantomsection       \addcontentsline{toc}{section}{%         \protect\textcolor{red}{\protect\Large{Del \tittel }}}       \noindent\fcolorbox{black}{LightSteelBlue}{%         \parbox[t][1.25cm][c]{\dimexpr\textwidth-2\fboxsep-2\fboxrule}{           \centering\bfseries Del \tittel \\ \Label hjelpemider}%       }%     }          \begin{document}          Del{u}          Del{m}          Del{u}          \end{document}          Removing the \ infront of tittel, makes the command run. So adding a counter inside the command makes it fail =(


title: exporting R ggplot2 plots to LaTex

text: I usually export ggplot2 plots from R using "Save As" PDF and works fine, then I use `\includegraphics` from LaTex to include the fig. The problem is that it seems that the amount of data in these exported PDF from R are big e.g. over 600K each. If I export several PDF documents like this, the end PDF is super laggy to open. My question is: how can I change either R or load differently from LaTex so that the end document is not so big while the quality of the plots is still very high?


title: How to tell LaTeX to automatically remove envelopping curly braces in a string to use with biblatex?

text: I am using biblatex together with a bibliography manager Referencer. I want to use the url field of the bib file to link to the page. However, Referencer has urls of the form               url = {{ http://... }}      rather than the usual format with only a single brace. Url fields are interpreted literally in biblatex and so I get links to `{ http:// ... }` in the pdf and they consequently do not work. Since every time I change the bibliography file through Referencer the curly braces reappear, going through the bib file and removing the extra braces is not a solution for me. Is there a way to tell LaTeX to automatically remove the braces before passing the result to `\href`?


title: How do I use \item without formatting the text

text: I want to write an exercises book for math and I don't know how to use automat numbering within the text (for example Subject 3 text, on another page Subject 4 text) without changing the formatting of the text (the number will be in line). Thank you!


title: Set natbib options after loading natbib package

text: Is it possible to set (or change) the `natbib` package options **after** its loading (i.e. after the line `\usepackage{natbib}`)? The reason I need it is that I'm using a LaTeX style from a journal and it has a _natbib_ option which means it _"...handles reference entries in the author- year system by using the natbib package"_ , according to the journal style documentation, and I need to tune some settings (like ' _sort &compress_', for example), but I do not know how to do that since I do not load the 'natbib' package directly. I know there is a command `\biboptions{}` in Elsevier LaTeX style which does exactly what I want. But as far as I understand, this command is specific to their style and does not belong to the _natbib_ package itself, or am I wrong? P.S. I'm working with the Springer's _'SVJour3'_ document class currently. It is a widely used one, I believe. So, maybe someone can suggest me a way to sort the citations so that they do not look like `[2,3,1]` instead of `[1-3]` or at least `[1,2,3]` in the text? Thank you!


title: Line in set definition

text: I'm trying a simple definition of a set. My try: `$M=\\{x\,|\,1\le x\le p-2\\}$` Is there a more comfortable way of getting a little space before and after the `|`? I'm thinking of something like the `\mod` which does the spacing on its own.


title: How to make use of the previous plain value of a cell as an argument for \verb and a macro name in the next columns?

text: I have explored the source codes of `siunitx` manual. It is too complicated for a newbie. My objective is to avoid repeating, `ampere` for example, in each column of the following table. I just want to type a single `ampere` for the first row, `candela` in the second row, etc in the `tabular` or `longtable` body and I get the table. ![enter image description here](http://i.stack.imgur.com/Bomi9.png)               \documentclass{article}     \usepackage{siunitx}     \usepackage{booktabs,longtable,array}     \usepackage[active,tightpage]{preview}     \PreviewBorder=0pt          \ifPreview \let\longtable\tabular \let\endlongtable\endtabular \fi      \PreviewEnvironment{longtable}          \begin{document}     \begin{longtable}{*3{m{\dimexpr0.5\linewidth/3\relax}}}             \toprule             Unit & Macro & Symbol\\             \midrule             ampere & \verb|\ampere| & \si{\ampere}\\             candela & \verb|\candela|& \si{\candela}\\             kelvin & \verb|\kelvin|& \si{\kelvin}\\             kilogram & \verb|\kilogram|& \si{\kilogram}\\             meter & \verb|\meter|& \si{\meter}\\             mole & \verb|\mole|& \si{\mole}\\             second & \verb|\second|& \si{\second}\\             \bottomrule     \end{longtable}     \end{document}      How to make use of the previous plain value of a cell as an argument for `\verb` and a macro name in the next columns?


title: How to quote a sentence from other place in beamer?

text: i want to quote following sentence in my beamer in very standard way : > we discuss the ambiguities of existing security definitions and then provide > a general framework for defining AKE security when involve strong adversary > capabilities. how do i do with it? better have a example thanks


title: Can an 'Abstract' parameter be passed to pandoc to create a latex file?

text: Similar to `$title$`, `$author$`, and `$date$`, is there an `$abstract$` parameter that one can pass to a latex file from the title block? Example:               \begin{abstract}         $abstract$     \end{abstract}


title: Print week number in title

text: Is there is a way to insert week number instead to type it directly? My current document code:               \documentclass[a4paper,12pt]{article}          \usepackage{cmap}                        \usepackage[T2A]{fontenc}                \usepackage[utf8]{inputenc}              \usepackage[english]{babel}           \author{The Author}     \title{Week 12 2014}     \date{\today}               \begin{document}          \maketitle          \end{document}


title: Create odd-numbered answers, or all answers

text: I'm starting with a clean slate creating a solutions manual. I would like the ability, by setting a switch, to produce only the solutions for the odd- numbered problems, or those for all problems, in each section. I would much prefer not to use one of the answer packages, as I've not had great success with those in the past. My preferred solution would be to modify the itemized list macros in such a way that they would produce no output in particular cases. Or is there another, better way? I should add that exercises will be numbered chapter.section.#, and it is whether # is even or odd that should govern inclusion. I would imagine that I've not provided enough information for a decent answer, but I'm not sure what else to say...


title: subordinate equation numbering

text: I write this code               \begin{eqnarray}     \frac{\partial\rho_{11}}{\partial t}&=& i \Omega(rho_{12}-rho_{21}) \\ \frac{\partial  \rho_{22}}{\partial t}&=&-i \Omega(rho_{12}-rho_{21})\\     \frac{\partial\rho_{12}}{\partial t}&=& -i \Omega \rho_{12}-i\Omega (\rho_{22}-\rho_{11})\\     \frac{\partial\rho_{21}}{\partial t}&=& -i \Omega \rho_{21}+i\Omega (\rho_{22}-\rho_{11})      \end{eqnarray}      the result is like this ![enter image description here](http://i.stack.imgur.com/X3b2p.jpg) But I want the numbering equations be like this (1.18a) (1.18b) (1.18c) (1.18d)


title: Metric (TFM) file not found

text: For no apparent reason, my LaTeX suddenly started giving the following error. I have using the LaTeX on this Linux machine (a fedora 14) for 2 years with no problems. I have never seen this error before and the LaTeX file has not been changed as far as I can remember. Can someone explain to me what's happening and what I should do? Thanks.               Xy-pic option: Frame and Bracket extension v.3.14 loaded)     (/usr/share/texmf/tex/latex/yliow/download/xy-3.8.8/texinputs/xycmtip.tex     Xy-pic option: Computer Modern tip extension v.3.7     (/usr/share/texmf/tex/latex/yliow/download/xy-3.8.8/texinputs/xytips.tex     Xy-pic option: More Tips extension v.3.9     ! Font \xy@@alfont=xyluat10 not loadable: Metric (TFM) file not found.     <to be read again>     \def     l.35 \xyfont@\xy@@blfont     =xylubt10     ! ==> Fatal error occurred, no output PDF file produced!      Latex code:               \documentclass[a4paper,12pt]{scrbook}     \usepackage{amsmath,amssymb,amsthm}     \usepackage{parskip}     \usepackage{lastpage}     \usepackage{color,graphicx}     \usepackage{pgf}     \usepackage[all]{xy}     \usepackage{tikz}     \usetikzlibrary{arrows}     \usepackage{pgf,pgfarrows,pgfnodes}          \begin{document}     \thispagestyle{empty}          \begin{center}     \begin{tikzpicture}     \draw[line width=0.04cm,black,<-] (0.0,0.0) -- (1.0,1.0);     \draw[line width=0.1cm,red,->] (3.0,0.0) -- (6.0,2.0);     \draw[line width=0.2cm,red,<->,dashed] (6.0,0.0) -- (9.0,2.0);     \draw[line width=0.1cm,blue,|<->|] (9.0,0.0) -- (12.0,2.0);     \draw[line width=0.05cm,blue,<<->>] (12.0,0.0) -- (15.0,2.0);     \draw[gray] (0.0,0.0) -- (0.0,2);     \draw[gray] (1.0,0.0) -- (1.0,2);     \draw[gray] (2.0,0.0) -- (2.0,2);     \draw[gray] (3.0,0.0) -- (3.0,2);     \draw[gray] (4.0,0.0) -- (4.0,2);     \draw[gray] (5.0,0.0) -- (5.0,2);     \draw[gray] (6.0,0.0) -- (6.0,2);     \draw[gray] (7.0,0.0) -- (7.0,2);     \draw[gray] (8.0,0.0) -- (8.0,2);     \draw[gray] (9.0,0.0) -- (9.0,2);     \draw[gray] (10.0,0.0) -- (10.0,2);     \draw[gray] (11.0,0.0) -- (11.0,2);     \draw[gray] (12.0,0.0) -- (12.0,2);     \draw[gray] (13.0,0.0) -- (13.0,2);     \draw[gray] (14.0,0.0) -- (14.0,2);     \draw[gray] (15.0,0.0) -- (15.0,2);     \draw[gray] (0.0,0.0) -- (15,0.0);     \draw[gray] (0.0,1.0) -- (15,1.0);     \draw[gray] (0.0,2.0) -- (15,2.0);     \draw(0, 0) node [font=\ttfamily, label=below:{\texttt{0}}] {};     \draw(1, 0) node [font=\ttfamily, label=below:{\texttt{1}}] {};     \draw(2, 0) node [font=\ttfamily, label=below:{\texttt{2}}] {};     \draw(3, 0) node [font=\ttfamily, label=below:{\texttt{3}}] {};     \draw(4, 0) node [font=\ttfamily, label=below:{\texttt{4}}] {};     \draw(5, 0) node [font=\ttfamily, label=below:{\texttt{5}}] {};     \draw(6, 0) node [font=\ttfamily, label=below:{\texttt{6}}] {};     \draw(7, 0) node [font=\ttfamily, label=below:{\texttt{7}}] {};     \draw(8, 0) node [font=\ttfamily, label=below:{\texttt{8}}] {};     \draw(9, 0) node [font=\ttfamily, label=below:{\texttt{9}}] {};     \draw(10, 0) node [font=\ttfamily, label=below:{\texttt{10}}] {};     \draw(11, 0) node [font=\ttfamily, label=below:{\texttt{11}}] {};     \draw(12, 0) node [font=\ttfamily, label=below:{\texttt{12}}] {};     \draw(13, 0) node [font=\ttfamily, label=below:{\texttt{13}}] {};     \draw(14, 0) node [font=\ttfamily, label=below:{\texttt{14}}] {};     \draw(15, 0) node [font=\ttfamily, label=below:{\texttt{15}}] {};     \draw(0, 0) node [font=\ttfamily, label=left:{\texttt{0}}] {};     \draw(0, 1) node [font=\ttfamily, label=left:{\texttt{1}}] {};     \draw(0, 2) node [font=\ttfamily, label=left:{\texttt{2}}] {};     \end{tikzpicture}          \end{center}          \end{document}


title: getting rid of underfull Bad boxes

text: \begin{table}[h]                     \begin{center}                      \renewcommand{\arraystretch}{1.5}                     \renewcommand{\tabcolsep}{0.2cm}                     \begin{tabular}{|c|c|c|c|}         \hline          **\multirow{3}*{{\bf Ingredients}} & \multicolumn{2}{|p{3cm}|}{{\bf Composition of each kg of feed (gram)}} & \multicolumn{1}{|p{3.5cm}|}{{\bf Minimum monthly requirement per turkey (gram)}}\\\cline{2-3}**           & {\bf Brand 1} & {\bf Brand 2} &   \\ \hline          {\bf A} & 5 & 10 & 90  \\           {\bf B} & 4 & 3 & 48  \\           {\bf C} & 18 & 0 & 1 \\             {\bf Cost per kg} & 2c & 3c &  \\ \hline       \end{tabular}     \caption{\label{table:one}Turkey Feed}     \end{center}     \end{table}      * * *               underfull \hbox (badness 10000) Composition of     underfull \hbox (badness 2103) minimum monthly     underfull \hbox (badness 10000) requirement per      Please can you assist with these bad boxes. Thanks


title: How to have one straight arrows surrounded by two curved arrows (TikZ)

text: What is the best way to draw one arrow surrounded by two circular arrows (see image below). This is very easy to do when you have a small number of nodes, especially so when the arrows go from one anchor (ie. south east) to another anchor (ie. north west). Things become more complex when you have >10 incoming arrow triples. What's the most painless way to have the desired affect, without having to hard code the coordinates. * * * Here is a diagram I have drawn (MWE below) and you can see of the ones I have manually connected, nodes 2 and 4 look the best, but they are still a little too close. Nodes 1 and 3 I have intentionally botched to make a point: if one does not explicitly state the source coordinates, the line will be automatically placed at some location (in this case south of node 1, slightly east, or vice versa for Node 3). Node 5 shows how the default configuration is less than ideal, and node 6 shows that it completely failed. Are there any experts out there that could tell me what I am doing wrong? ![Diagram of different curved arrows](http://i.stack.imgur.com/2WZAy.jpg) **MWE:**               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{arrows,decorations.pathmorphing,backgrounds,positioning,fit,petri,calc,shadows}          \begin{document}          \begin{tikzpicture}[         parent/.style={%             rounded corners,             thick,             draw=red!75,             fill=red!20,             thick,             inner ysep=2pt,             inner xsep=2pt,             minimum width = 4cm,             minimum height = 1.5cm,             align=center         },         child/.style={%             rounded corners,             thick,             draw=blue!90,             fill=blue!35,             thick,             inner ysep=2pt,             inner xsep=2pt,             minimum width = 4cm,             minimum height = 1.5cm,             align=center         },         grandchild/.style={%             rounded corners,             thick,             draw=green!90,             fill=green!35,             thick,             inner ysep=2pt,             inner xsep=2pt,             minimum width = 4cm,             minimum height = 1.5cm,             align=center         },         line/.style={%             semithick,             ->,             shorten >=1pt,             >=stealth'         },         call/.style={%             blue,             semithick,             ->,             shorten >=1pt,             >=stealth'         },         return/.style={%             red,             semithick,             ->,             shorten >=1pt,             >=stealth'         }]         \node[child] (child) {Child};         \node[parent] at (-6,3) (parent 1) {Node 1\\I have manually\\connected this one};         \node[parent] at (0,3) (parent 2) {Node 2\\I have manually\\connected this one};         \node[parent] at (6,3) (parent 3) {Node 3\\I have manually\\connected this one};         \node[parent] at (-6,-3) (grandchild 1) {Node 4\\I have manually\\connected this one};         \node[parent] at (0,-3) (grandchild 2) {Node 5\\I have NOT manually\\connacted this one};         \node[parent] at (6,-3) (grandchild 3) {Node 6\\I have NOT manually\\connacted this one};              %draw three lines from each parent to each child         \draw [line] (parent 1) -- (child.north west);         \draw [line] (parent 2) -- (child);         \draw [line] (parent 3) -- (child.north east);              %draw three lines from each parent to each child         \draw [line] (grandchild 1.north east) -- (child.south west);         \draw [line] (grandchild 2) -- (child);         \draw [line] (grandchild 3.north west) -- (child.south east);              %Arrows to and from the child class to parent 1         %This denotes the call (green) and return (red) flows         \draw [call] (child.north west) to [auto,bend left] (parent 1.south) ;         \draw [return] (parent 1.east) to [bend left] (child.north west);              %Arrows to and from the child class to parent 2         %This denotes the call (green) and return (red) flows         \draw [call] (child.north) to [auto,bend left] (parent 2.south) ;         \draw [return] (parent 2.south) to [bend left] (child.north);              %Arrows to and from the child class to parent 3         %This denotes the call (green) and return (red) flows         \draw [call] (child.north east) to [auto,bend left] (parent 3.west) ;         \draw [return] (parent 3.south) to [bend left] (child.north east);              %Arrows to and from the child class to first grandchild         %This denotes the call (green) and return (red) flows         \draw [call] (child.south west) to [auto,bend left] (grandchild 1.north east) ;         \draw [return] (grandchild 1.north east) to [bend left] (child.south west);              %Arrows to and from the child class to second grandchild         %This denotes the call (green) and return (red) flows         \draw [call] (child) to [auto,bend left] (grandchild 2) ;         \draw [return] (grandchild 2) to [bend left] (child);              %Arrows to and from the child class to third grandchild         %This denotes the call (green) and return (red) flows         \draw [call] (child) to [auto,bend left] (grandchild 3) ;         \draw [return] (grandchild 3) to [bend left] (child);          \end{tikzpicture}          \end{document}


title: epspdfconversion problems in xelatex

text: I am using xelatex and I am trying to use `epspdfconversion` package to on- the-fly remove unnecessary empty margins from my figures. The figures themselves are dynamically generated and calculating a tight bounding box via `bbox` option of `epspdf` seemed like a good idea. Unfortunately, epspdfconversion does not seem to play nice with xelatex. Below is a minimum working example:               \documentclass{tufte-handout}          %\usepackage{xltxtra}     \usepackage{color}     \usepackage[bbox,pdftopdf=true,suffix=]{epspdfconversion}          \begin{document}     \includegraphics{unnamed-chunk-2.pdf}     \end{document}`      However, if uncomment `\usepackage{xltxtra}` and compile it xelatex I get the following message:               Package epstopdf Warning: Drivers other than `pdftex.def' are not supported.          epspdfconversion.sty is using epstopdf.sty with the following setup:         update=true,         verbose=true,         prefersuffix=true,         suffix=,         option outdir not set. Default: same directory as the .eps-source-file         append,         enable     epspdf is used with the following command:         epspdf --bbox <file>      Package epspdfconversion Info:      (epspdfconversion)             epspdf --bbox <file> is used to convert eps-pdf     (epspdfconversion)             (not epstopdf (script))     (epspdfconversion)              on input line 334.     ! Undefined control sequence.     l.345 \epstopdfDeclareGraphicsRule                                       {.eps}{pdf}{.pdf}{%     The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spelling (e.g., `I\hbox'). Otherwise just continue,     and I'll forget about whatever was undefined.      This seems to be a conflict between xelatex and `epspdfconversion.sty` I am using extra OTF fonts and using xelatex seems necessary. Does anyone have any recommendations for solving or bypassing this problem?


title: Inserting automatic vertical space between blocks when \obeylines is active

text: Sometimes as I write a manuscript in LaTeX for speaking, I want to format parts of it as `\obeylines` and `\obeyspaces` permit, so that a single coherent thought is expressed compactly on each line, and relationships between lines can be expressed with leading indentation, like this:               One thought introduced with a coherent phrase,         followed by a subordinate phrase,         and a coordinate subordinate phrase.          Then a second thought introduced ...      The problem I run into is including the extra vertical spacing between groups of contiguous lines ("paragraphs"), as before the last line above. The best ad-hoc measure I have come up with so far is to define the pipe symbol, which can be added to the end of each group, like this: `... coordinate subordinate phrase.|` The redefinition code looks like this, which I have placed into an external package.               \catcode`|=\active     \def|{\smallskip}      This works more or less as desired, but the pipe characters throughout my source text are irritating, and obviously a work-around. So I have been trying to define an environment that accomplishes what I want, without requiring the pipe character for the extra spacing. This is what I have so far...               \newenvironment{linewise}{%     \let\@oldpar=\par \let\par=\newpar \obeylines \let\par=\@oldpar}     {}      If I proceed in this direction, how should `\newpar` be defined? I have tried using `\\\`, but TeX balks when this is inserted automatically at the end of an empty line (where `\par` is normally inserted), and it does not end the previous paragraph (because the character is `\active`, I presume), which is what I'm trying to do. As far as I can tell, the problem is that the division between paragraphs at two or more return characters takes place in TeX's mouth, where I can't make any adjustments that would distinguish between the vertical space I want to insert where there are two or more return characters, and the line break (or new paragraph) I want to insert when there is only one. Or is there a better way to accomplish this?


title: Getting \let definitions from inside a group, inside a loop

text: I have the following nested loop situation:               \begingroup       \def\do##1{%         \begingroup           \def\do####1{%              \csletcs{somemacro@##1@####1}{someothermacro@##1@####1}}%           \dolistloop\somelista         \endgroup}%       \dolistloop\somelistb     \endgroup      where I need to have the `\csletcs` definition exist outside of the two groups but _not_ globally. There is a nice trick from Martin Scharrer in a comment to this question: How do I get a value out of a group? but it doesn't work in a loop like this as putting the `\endgroup`s in the inner loop really mess the next loop iterations up. Is there any way (etoolbox is ok) to get the `\csletcs` definitions out of the groups without breaking further iterations of the loops? I assume I need the groups otherwise the do loop arguments don't reference properly. Just for completeness, here is an attempted solution using Martin Sharrer's trick:               \begingroup       \def\do##1{%         \begingroup           \def\do####1{%              \edef\@z{\endgroup\endgroup\csletcs{somemacro@##1@####1}{someothermacro@##1@####1}}\@z}%           \dolistloop\somelista         \endgroup}%       \dolistloop\somelistb     \endgroup      This works for the first nested iteration and the resulting cs is defined properly outside of the groups. Unfortunately, the groups are then closed and the next iterations are a real mess.


title: References aren't printed in PDF

text: My references aren't listed in my PDF file and all cites have a '?' symbol instead a number even in Texmaker my cites are selectable. Here my tex file:               \usepackage[utf8]{inputenc}     \usepackage{natbib}     \begin{document}      ...               efficient inference in universal model classes \cite{PPWIKI}. On the other hand,      ...               \bibliographystyle{style}     \bibliography{literature}     \end{document}      My bibtex file:               @online{PPWIKI,     author = {PROBABILISTIC-PROGRAMMING.org},     title = {The probabilistic programming approach},     year = {2014},     url = {http://probabilistic-programming.org/wiki/Home},     }      I following "Quickbuild" in Texmaker (texmaker v4.2 + miktex v2.9.5 on Windows 8): > PdfLaTex + Bib(la)tex + PdfLaTex (x2) + View Pdf Any idea?


title: biblatex: no linebreaks in name lists when typesetting ragged-right

text: When typesetting a bibliography `\raggedright,` `biblatex` seems to have trouble breaking a line between an author's first/last/middle names (and, if multiple authors are present, between two authors). It's as if the entire name list had been put into an `\mbox`. Consider this example. ![enter image description here](http://i.stack.imgur.com/2CAH3.png)               \documentclass[11pt,DIV=6]{scrartcl}          \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage[english]{babel}     \usepackage[style=authoryear]{biblatex}     \usepackage{filecontents}     \usepackage{tgschola}          \begin{filecontents}{bibtest.bib}     @COLLECTION{Star95,       editor = {Star, Susan Leigh},       year = {1995},       title = {Ecologies of Knowledge: Work and Politics in Science and Technology},       address = {Albany},       publisher = {SUNY}     }     @INCOLLECTION{Star95a,       author = {Star, Susan Leigh},       title = {The Politics of Formal Representations: Wizards, Gurus, and Organizational         Complexity},       year = {1995},       pages = {88-118},       crossref = {Star95}     }     \end{filecontents}          \renewcommand*{\bibsetup}{\raggedright}     \bibliography{bibtest.bib}     \listfiles          \begin{document}     \noindent\hrule     \nocite{Star95a}     \printbibliography     \noindent\hrule     \end{document}      »Susan Leigh« would easily fit into the fourth line, but instead her entire name is moved to the next one. It would seem odd to me that this should be `biblatex's` intended behavior, as it can have even worse results under certain circumstances. Can you reproduce this? What would be a way to change it? Should I contact the biblatex team? ![enter image description here](http://i.stack.imgur.com/aE8pY.png)


title: Mirror greek symbol in math environment

text: I need a mirrored symbol `\Gamma`. Is it posible? I can't find this symbol and I do not know a way to mirror the symbol. I use unicode math.


title: Telugu language quotation in/with babel

text: I need to write Telugu quotation in English (using `babel`) documentation. I want 2 or 3 lines quotation in telugu. I am using :               \documentclass{book}     \usepackage{babel}


title: Aligning different matrices

text: I want to write the companion matrix of a recurrence relation and its use (the notation will be a bit unusual since it is "for cryptography", where we always do stuff in a different way).               \documentclass[11pt]{article}     \usepackage{amsmath}          \begin{document}          \[       C :=        \begin{pmatrix}        0      & 1      & 0      & \cdots & 0 \\        0      & 0      & 1      & \cdots & 0 \\        \vdots & \vdots & \vdots & \ddots & \vdots \\        0      & 0      & 0      & \ddots & 1 \\        c_0    & c_1    & c_2    & \cdots & c_{n-1}  \\       \end{pmatrix}     %%%         \quad\textrm{and}\quad     %%%       C \cdot       \begin{pmatrix}       y_{k} \\ y_{k+1} \\ \vdots \\ y_{n+k-2} \\ y_{n+k-1} \\        \end{pmatrix}     =       \begin{pmatrix}       y_{k+1} \\ y_{k+2} \\ \vdots \\ y_{n+k-1} \\ y_{n+k} \\        \end{pmatrix}        \enspace.     \]          \end{document}      however, the square matrix is taller than the column vectors. How can I make everything align nicely? ![rendering of above code](http://i.stack.imgur.com/DNwgF.png) Roberto EDIT: Thank you all folks, in my case it was the wrong \ddots (ahem). EDIT 2: So, merging @percusse's suggestion with braces over matrix I came up with this               \def\matriximg{%         \begin{array}{c|ccc}           \\           \vphantom{\vdots} 0 &\multicolumn{3}{c}{I_{n-1}} \\           \\ \hline           \vphantom{y_k} c_0  & c_1 & \ldots &c_{n-1}         \end{array}     }%     \begin{equation}      \label{eq:companion}       \left(\vphantom{\matriximg}\right.%       \kern-2\nulldelimiterspace%       \underbrace{\matriximg}_{\displaystyle C}%       \kern-\nulldelimiterspace%       \left.\vphantom{\matriximg}\right)%     %       \cdot     %          \left(\!\begin{array}{c}          y_{k} \\ \hline y_{k+1} \\ \vdots  \\ y_{n+k-1} \\          \end{array}\!\right)       =          \left(\!\begin{array}{c}          y_{k+1} \\ \vdots \\ y_{n+k-1} \\ \hline y_{n+k} \\          \end{array}\!\right)       \enspace.     \end{equation}


title: Non-abbreviated author name in biblatex

text: I write my thesis using biblatex for bibliography (JabRef for bibliography database) and need to cite an author, that don't have first name and last name, but has name and toponymical nickname. I have a following entry in .bib file:               @Book{simeon,         Title                    = {Vertograd mnogocvetnyj},         Author                   = {Simeon Polockij,},          Date                     = {1996-2000},         Location                 = {Koln, Wemar, Wien},         Publisher                = {Bohlau},         Year                     = {1996 - 2000},         Editor                   = {by Anthony Hippisley a. Lydia I.~Sazonova. With a Foreword by Dmitrij S.~Lihačev.},         Language                 = {english},         }      In JabRef I see the authorname displayed correctly (Simeon Polockij. Vertograd mnogocvetnyj). But when building bibliography the "," in the end of the name is removed, and the authorname is proceeded in a usual way, and I get "Polockij S. Vertograd mnogocvetnyj", what is totally incorrect.               \documentclass[12pt]{article}     \usepackage{extsizes}     \usepackage{indentfirst}          \usepackage[english,russian]{babel}           \usepackage{fontspec}          \defaultfontfeatures{Ligatures={TeX},Renderer=Basic}      \setmainfont[Ligatures={TeX,Historic}]{Times New Roman}      \setsansfont{Comic Sans MS}                         \setmonofont{Courier New}     \usepackage{indentfirst}          \usepackage[backend=biber,style=gost-numeric, bibencoding=utf8,sorting=none,maxcitenames=2,]{biblatex}     \addbibresource{mwe_bib.bib}          \begin{document}     I cite one of the main sources of my research here \cite{simeon}          \printbibliography     \end{document}      How to force biblatex not to abbreviate the second part of author name, to get something like "Simeon Polockij. Vertograd mnogocvetnyj. Ed. by Anthony Hippisley a. Lydia I. Sazonova. With a Foreword by Dmitrij S. Lihačev. Bohlau, 1996 - 2000


title: Multiple navigation dots in Beamer for one frame

text: I am currently working on a Beamer presentation for which I use the navigation dots. I understood how to generate them using subsections, and if I want to have one dot per frame I found this answer (or I can just add one subsection before each frame. Now I have some frames with multiple slides (or overlays) using either `\only<>` or `\invisible<>` commands. How can I get as many navigation dots as slides (and working properly with the slides)? Here is a MWE:               \documentclass{beamer}     \usetheme{Copenhagen}     \useoutertheme[compress,subsection=false]{smoothbars}          \begin{document}     \section{First Frames}     \subsection{Frame 1}     \begin{frame}{Frame 1}     \only<1>{Slide 1}     \only<2>{Slide 2}     \end{frame}          \subsection{Frame 2}     \begin{frame}{Frame 2}     \only<1>{Slide 3}     \only<2>{Slide 4}     \end{frame}     \end{document}      And the outputs: ![Output](http://i.stack.imgur.com/Pwyq7.png) To make things clear: On this example I have only two dots for four slides. How can I get four dots turning on and off properly according to the slides. **NOTE** I am aware that it would be possible to redo all the frames to get only one slide per frame but I would like to know if another solution exists.


title: LaTeX commands in Verbatim using fancyvrb and listings

text: I am trying to use LaTeX commands like `\textbf`, `\textit`, `\textcolor` in `fancyvrb` combined with `listings`. Especially I want to bold and color any text or entire blocks of Java code (not just keywords) at the same time. So my `\lstset` options do not have keywordstyle set, so that I can bold, color any part of the code I want. I have the sample LaTeX code I am using below, but only the `\textit` command works. The `\textbf` command does not work. If I try to combine `\textbf` and `\textcolor` like               \textcolor!red|!\textbf!package com.test3;||      I get a whole bunch of errors. I am pasting my sample code below...               \documentclass{beamer}          \usetheme{bars}          \usepackage{xcolor}     \usepackage[T1]{fontenc}     \usepackage{hyperref}     \usepackage{listings}     \usepackage{setspace}     \usepackage{graphicx}     \usepackage{subfiles}     \usepackage{alltt}     \usepackage{mathtools}     \usepackage{fancyvrb}          \setcounter{tocdepth}{1}          \lstdefinestyle{JavaPlain}{ %     basicstyle=\scriptsize\ttfamily, % the size of the fonts      numbers=left,                   % where to put the line-numbers     numberstyle=\tiny,      % the size of the fonts that are used for th     stepnumber=1,                   % the step between two line-numbers     numbersep=5pt,                  % how far the line-numbers are from the code     backgroundcolor=\color{white},  % choose the background color     showspaces=false,               % show spaces adding particular underscores     showstringspaces=false,         % underline spaces within strings     showtabs=false,                 % show tabs within strings adding      frame=single,           % adds a frame around the code     tabsize=2,          % sets default tabsize to 2 spaces     captionpos=b,           % sets the caption-position to bottom     breaklines=true,        % sets automatic line breaking     breakatwhitespace=false,    % sets if automatic breaks should only happen     fancyvrb=true,     fvcmdparams=textbf 1 textit 1,     }               \newenvironment{JavaCodePlain}       { \VerbatimEnvironment%         \lstset{style=JavaPlain}         \begin{Verbatim} }       { \end{Verbatim}  }           \begin{document}          \begin{frame}[fragile]      \frametitle{Latex commands in Verbatim}        \fvset{commandchars=\\\!\|}        \begin{JavaCodePlain}        \textbf!package com.test;|  // This does not become bold        \textit!package com.test2;| //This is italicized        \textcolor!red|!\textbf!package com.test3;|| //Whole bunch of errors              public class Employee {           ...         }       \end{JavaCodePlain}     \end{frame}          \end{document}


title: What does \normallineskiplimit do?

text: In this excellent answer, one of the tools used is to redefine `\normallineskiplimit`. I cannot find this macro in any reference, although it does show up in this answer. Where is this length originally defined, and what exactly does this macro control? A good answer may need to address related macros (if they exist) such as `\normallineskip`.


title: TexWorks giving error message

text: I have this code:               \documentclass[xcolor=dvipsnames]{beamer}     \mode<presentation>          \usetheme{Antibes}     \usecolortheme[named=Green]{structure}          \title[Training And Placement Cell]{Training And Placement Cell}     \subtitle{---}     \author{---}     \institute{---}          \begin{document}     \begin{frame}     \titlepage     \end{frame}     \begin{frame}         \frametitle{Table of contents}              \tableofcontents     \end{frame}               \section{EXISTING SYSTEM}         \begin{frame}{EXISTING SYSTEM}             \begin{block}{}                          \begin{itemize}                             \item All the entries are done manually.                             \item Fake entries can be there                             \item  System is more error-prone                             \item Difficult to manage data of students                     \end{itemize}             \end{block}         \end{frame}          \section{PROPOSED SYSTEM}         \begin{frame}{PROPOSED SYSTEM}             \begin{block}{}                 \begin{itemize}                     \item Providing platform to different departments to register students for placements                     \item Saves time and workload of triaining and placement staff.                     \item Easy to access.                     \item Avoid Fake Entry                 \end{itemize}             \end{block}         \end{frame}          \section{INTRODUCTION}         \begin{frame}{INTRODUCTION}             \begin{block}{}                 \begin{itemize}                     \item This system provides facility to TPC staff to do         work regarding placement of students like:         collecting student records, registering suitable         students, to check the number of placed and         unplaced students, making important        announcements to all departments.                     \item Helps to automate and simplify the work.                      \end{itemize}             \end{block}          \end{frame}          \section{TOOLS USED}         \begin{frame}{TOOLS USED}             \begin{block}{}                 \begin{itemize}                     \item \textbf{FRONT END:} \\Asp.Net                      \bigskip                     \item \textbf{BACK END:}\\My sql. \\ Microsoft IIS Server                      \end{itemize}             \end{block}         \end{frame}          \section{PROJECT DIVISION}         \begin{frame}{PROJECT DIVISION}                      \begin{figure}{}                     \centering                         \includegraphics[width=.98\linewidth]{image.png}                 \end{figure}              \end{frame}          \section{ADMIN PANEL}         \begin{frame}{ADMIN PANEL}             \begin{block}{}                 \begin{itemize}                     \item Admin login \bigskip                     \item Students detail record.\bigskip                     \item Generate list for selected companies.\bigskip                     \item Calculate placement percentage.\bigskip                     \item Make announcements.                 \end{itemize}             \end{block}          \section{USER PANEL}         \begin{frame}{USER PANEL}             \begin{block}{}                 \begin{itemize}                     \item Enter detail of each student \bigskip                     \item Update student detail \bigskip                     \item Generate students contact detail for each year and each department.                 \end{itemize}             \end{block}         \end{frame}          \end{document}      I am new to LaTeX , and do not know why it is giving an error . I use TexWorks and it shows an unreadable error message like:               LaTeX Font Warning: Font shape `OT1/cmss/m/n' in size <4> not available     (Font)              size <5> substituted on input line 17.          [1{C:/ProgramData/MiKTeX/2.9/pdftex/config/pdftex.map}]     No file new_1_project.toc.     [2] [3] [4] [5] [6] <image.png, id=187, 395.97937pt x 237.13594pt>     <use image.png> [7 <C:/Users/intl/Desktop/image.png>])     Runaway argument?     \let \AtEndDocument \@firstofone \@enddocumenthook \@checkend {docume\ETC.     ! File ended while scanning use of \beamer@collect@@body.     <inserted text>                      \par      <*> new_1_project.tex          ?


title: How to change the margins and insert the university banner in a poster?

text: I'm trying to build up a poster. This is the template I have to use:               %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     % Jacobs Landscape Poster     % LaTeX Template     % Version 1.0 (29/03/13)     %     % Created by:     % Computational Physics and Biophysics Group, Jacobs University     % https://teamwork.jacobs-university.de:8443/confluence/display/CoPandBiG/LaTeX+Poster     %      % Further modified by:     % Nathaniel Johnston (nathaniel@njohnston.ca)     %     % This template has been downloaded from:     % http://www.LaTeXTemplates.com     %     % License:     % CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)     %     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%          %----------------------------------------------------------------------------------------     %   PACKAGES AND OTHER DOCUMENT CONFIGURATIONS     %----------------------------------------------------------------------------------------          \documentclass[final]{beamer}          \usepackage[scale=0.78, size=a1]{beamerposter} % Use the beamerposter package for laying out the poster          \usetheme{confposter} % Use the confposter theme supplied with this template          \setbeamercolor{block title}{fg=ngreen,bg=white} % Colors of the block titles     \setbeamercolor{block body}{fg=black,bg=white} % Colors of the body of blocks     \setbeamercolor{block alerted title}{fg=white,bg=dblue!70} % Colors of the highlighted block titles     \setbeamercolor{block alerted body}{fg=black,bg=dblue!10} % Colors of the body of highlighted blocks     % Many more colors are available for use in beamerthemeconfposter.sty          %-----------------------------------------------------------     % Define the column widths and overall poster size     % To set effective sepwid, onecolwid and twocolwid values, first choose how many columns you want and how much separation you want between columns     % In this template, the separation width chosen is 0.024 of the paper width and a 4-column layout     % onecolwid should therefore be (1-(# of columns+1)*sepwid)/# of columns e.g. (1-(4+1)*0.024)/4 = 0.22     % Set twocolwid to be (2*onecolwid)+sepwid = 0.464     % Set threecolwid to be (3*onecolwid)+2*sepwid = 0.708          \newlength{\sepwid}     \newlength{\onecolwid}     \newlength{\twocolwid}     \newlength{\threecolwid}     \setlength{\paperwidth}{33.1in} % A0 width: 46.8in     \setlength{\paperheight}{23.4in} % A0 height: 33.1in     \setlength{\sepwid}{0.024\paperwidth} % Separation width (white space) between columns     \setlength{\onecolwid}{0.22\paperwidth} % Width of one column     \setlength{\twocolwid}{0.464\paperwidth} % Width of two columns     \setlength{\threecolwid}{0.708\paperwidth} % Width of three columns     \setlength{\topmargin}{-0.5in} % Reduce the top margin size     %-----------------------------------------------------------          \usepackage{graphicx}  % Required for including images     \usepackage{booktabs} % Top and bottom rules for tables     \usepackage{bbm}     \usepackage[T1]{fontenc}     \usepackage{subfig}     \usepackage{tikz}     \usetikzlibrary{arrows}     \usepackage{caption}          %----------------------------------------------------------------------------------------     %   TITLE SECTION      %----------------------------------------------------------------------------------------          \title{Title} % Poster title          \author{Blah Blah} % Author(s)          \institute{Department, University} % Institution(s)               %----------------------------------------------------------------------------------------          \begin{document}          \addtobeamertemplate{block end}{}{\vspace*{2ex}} % White space under blocks     \addtobeamertemplate{block alerted end}{}{\vspace*{2ex}} % White space under highlighted (alert) blocks          \setlength{\belowcaptionskip}{2ex} % White space under figures     \setlength\belowdisplayshortskip{2ex} % White space under equations          \begin{frame}[t] % The whole poster is enclosed in one beamer frame          \begin{columns}[t] % The whole poster consists of three major columns, the second of which is split into two columns twice - the [t] option aligns each column's content to the top          \begin{column}{\sepwid}\end{column} % Empty spacer column          %-------------------------------------------------------------------------------          \begin{column}{\onecolwid} % The first column          %----------------------------------------------------------------------------------------     %   OBJECTIVES     %----------------------------------------------------------------------------------------          \begin{alertblock}{Objectives}          \begin{itemize}     \item \textbf{Research question}:      \vspace{2cm}     \item \textbf{Contribution}:      \begin{itemize}     \item      \vspace{0.5cm}     \item      \end{itemize}     \end{itemize}          \end{alertblock}          %----------------------------------------------------------------------------------------     %   INTRODUCTION     %----------------------------------------------------------------------------------------          \begin{block}{Literature review}     \begin{itemize}     \item      \item      \end{itemize}          \end{block}               %----------------------------------------------------------------------------------------     %        %----------------------------------------------------------------------------------------          \begin{block}{Model}          \end{block}               \end{column} % End of the first column          %---------------------------------------------------------------------------------------------          \begin{column}{\sepwid}\end{column} % Empty spacer column          %----------------------------------------------------------------------------------------------          \begin{column}{\twocolwid} % Begin a column which is two columns wide (column 2)          \begin{columns}[t,totalwidth=\twocolwid] % Split up the two columns wide column          \begin{column}{\onecolwid}\vspace{-.6in} % The first column within column 2 (column 2.1)          %----------------------------------------------------------------------------------------     %     %----------------------------------------------------------------------------------------          \begin{block}{Existence solution}               \end{block}          %----------------------------------------------------------------------------------------          \end{column} % End of column 2.1          \begin{column}{\onecolwid}\vspace{-.6in} % The second column within column 2 (column 2.2)          %----------------------------------------------------------------------------------------     %     %----------------------------------------------------------------------------------------          \begin{block}{Blah Blah}          \end{block}          %----------------------------------------------------------------------------------------     %     %----------------------------------------------------------------------------------------          \begin{block}{Blah blah 2}          \end{block}          \end{column} % End of column 2.2          %----------------------------------------------------------------------------------------------------          \end{columns} % End of the split of column 2 - any content after this will now take up 2 columns width          \end{column} % End of the second column          %------------------------------------------------------------------------------------------------          \begin{column}{\sepwid}\end{column} % Empty spacer column          %---------------------------------------------------------------------------------------------------          \begin{column}{\onecolwid} % The third column          %----------------------------------------------------------------------------------------     %   CONCLUSION     %----------------------------------------------------------------------------------------          \begin{alertblock}{Conclusion}               \end{alertblock}          %----------------------------------------------------------------------------------------     %   REFERENCES     %----------------------------------------------------------------------------------------          \begin{block}{References}          \end{block}               %----------------------------------------------------------------------------------------     %   ACKNOWLEDGEMENTS     %----------------------------------------------------------------------------------------               \begin{block}{Acknowledgements}          \small{\rmfamily{I am very grateful to ...}} \\          \end{block}          %----------------------------------------------------------------------------------------     %   CONTACT INFORMATION     %----------------------------------------------------------------------------------------          \setbeamercolor{block alerted title}{fg=black,bg=norange} % Change the alert block title colors     \setbeamercolor{block alerted body}{fg=black,bg=white} % Change the alert block body colors          \begin{alertblock}{Contact information}                    \end{alertblock}               %----------------------------------------------------------------------------------------          \end{column} % End of the third column          \end{columns} % End of all the columns in the poster          \end{frame} % End of the enclosing frame          \end{document}      To run the code, you need to download the zip folder here http://www.latextemplates.com/template/jacobs-landscape-poster where you can find beamerthemeconfposter.sty and beamerposter.sty I need your help in solving the following two issues:   1. I would like to make equal the left and right margins (still maintaining the A1 size);   2. I would need to substitute the Title section with the Title section used in this other poster template (the UCL banner can be found at http://www.ucl.ac.uk/~ucbpeal/Black_Landscape.pdf):              \documentclass[a1,final]{a0poster}     %%%Load packages     \usepackage{multicol}           %3-column layout     \usepackage[left=2cm,right=2cm,bottom=0cm,top=0cm]{geometry}            %Reset margins     \usepackage{helvet}             %Load Helvetica font & CM math     \usepackage{color}              %Needed for colour boxes & coloured text     \usepackage{graphicx}     %%%Define colours and lengths     \definecolor{headingcol}{rgb}{0.5,0.7,1}            %Colour of main title     \definecolor{boxcol}{rgb}{0.7,0.2,0.2}      %Edge-colour of box and top banner     \fboxsep=1cm                            %Padding between box and text     \setlength{\columnsep}{2cm}             %Set spacing between columns     \renewcommand{\familydefault}{\sfdefault}   %Set main text to sans-serif          %%%Format title     \makeatletter                           %Needed to include code in main file     \renewcommand\@maketitle{%     \null                                   %Sets position marker     {     \color{headingcol}\sffamily\Huge        %Set title font and colour     \@title \par}%     \vskip 0.6em%     {     \color{white}\sffamily\Large                %Set author font and colour     \lineskip .5em%     \begin{tabular}[t]{l}%     \@author     \end{tabular}\par}%     \vskip 1cm     \par     }     \makeatother          \title{Making A1 scientific posters easily with \LaTeX}          \author{Author A \& Author B\\     University College London}          \begin{document}     \hspace{-3cm}                               %Align with edge of page, not margin     \vspace{2cm}     \includegraphics[width=844mm]{Black_Landscape.pdf}     %\colorbox{boxcol}{                         %Coloured banner across top     \begin{minipage}{842mm}                 %Minipage for title contents     \vspace{-20cm}     \maketitle     \end{minipage}     %}     \vspace{-3cm}          \begin{multicols}{3}                            %Use 3-column layout     \raggedcolumns                          %Don't stretch contents vertically          %%%Column1     \section*{Introduction}          \section*{Method}          \columnbreak          %%%Column 2     \section*{Maths}          \section*{Lists and tables}     Itemize:     \begin{itemize}     \item Item 1     \item Item 2     \item Item 3     \end{itemize}     \null     Five-day forecast:     \begin{center}     \begin{tabular}{lccccc}     Day & Summary & Max day & Min night & Wind (mph) & Visibility\\     \hline     Saturday & Sun/cloud & 16 & 10 & 6 & poor\\     Sunday & Rain & 14 & 7 & 3 & poor\\     Monday & Showers & 13 & 6 & 21 & poor\\     Tuesday & Sun & 15 & 9 & 7 & good\\     Wednesday & Showers & 17 & 12 & 6 &moderate     \end{tabular}     \end{center}               \columnbreak          %%%Column 3     \section*{Discussion}          \nocite*          %\bibliographystyle{plain}     %\bibliography{halobib}          \end{multicols}     \end{document}


title: Draw a Kohonen SOM feature map?

text: I have never used the drawing packages available to TeX but they seem like the ideal solution for creating re-usable technical drawings, and might be better than spending a week in inkscape (I'm terrible at inkscape). This time I want to draw an explanatory diagram of a Kohonen network / SOM feature map, showing the input nodes and a 2D map. I have seen one that I like, but have no idea how I would come close to making it. Here is the figure, it is an SVG: ![enter image description here](http://i.stack.imgur.com/FNaEm.png) Inkscape provides a conversion to PSTricks, but it is overwhelming considering the repeated hexagonal shapes of the feature map. Is it a diagram that lends itself to PGF/Tikz?


title: Referencing a B.S. Thesis

text: LaTeX only offers `@mastersthesis` or `@phdthesis`, but no bachelor's thesis. I tried to keep the reference as `@misc`, but the university name doesn't appear. So I just used `@mastersthesis` and typed               type = "{B.S. Thesis}"      Is there another way of doing this -- or could I create a new `@bachelorthesis` reference in the `.bst` file?


title: Insert `\hfill` after each character

text: I am creating a title page as follows:               \begin{titlepage}       \vspace*{1in}       \begin{center}         \parbox{0.8\textwidth}[s]{\HUGE%           T\hfill H\hfill I\hfill S\hfill            \hfill\hfill\hfill\hfill %space = 4xhfill           I\hfill S %no hfill after the last character of the line.         }\\         \parbox{0.8\textwidth}[s]{\HUGE%           M\hfill Y\hfill           \hfill\hfill\hfill\hfill           T\hfill I\hfill T\hfill L\hfill E         }\\       \end{center}       \vspace*{\fill}       \vspace*{1in}     \end{titlepage}      `\HUGE` is defined as follows: `\def\HUGE{\fontsize{60}{60}\selectfont}`. I would like to replace the many `X\hfill` with an automated macro that inserts `\hfill` after each character automatically and replaces any whitespace with four `\hfill`, _i.e._ a macro that would allow me to write:               ...     \begin{center}       \titleline{0.8\titlewidth}{THIS IS}\\       \titleline{0.8\titlewidth}{MY TITLE}\\     \end{center}     ...      I am using (Xe)LaTeX and would like to make that macro in a package that would work on both systems, on classes such as `article` and `book`. I have no experience with other document classes. Thank you.


title: Space between bars, height and width of the plot

text: I'm using pgfplots to generate bar plots from data files. Here's MWE:               \documentclass{article}     \usepackage[ngerman]{babel}     \usepackage{pgfplots}     \begin{document}     \begin{tikzpicture}     \begin{axis}[       xbar,      %  enlarge y limits=0.2,        xlabel={Häufigkeit},       symbolic y coords={sehr viel mehr,deutlich mehr,Verzehr ist gleich geblieben,etwas         weniger O+G,deutlich weniger O+G,keine Bewertung möglich},       ytick=data,       nodes near coords, nodes near coords align={horizontal},       ]     \addplot table[col sep=tab,header=false] {data1.dat};     \end{axis}     \end{tikzpicture}               \begin{tikzpicture}     \begin{axis}[       xbar,      %  enlarge y limits=auto,        xlabel={Häufigkeit},       symbolic y coords={Äpfel,Melonen,Erdbeeren,Bananen,Trauben,Nektarinen,Aprikosen,Clementinen,Pfirsiche,Birnen,Kiwi,Pflaumen,individuell völlig verschieden,eigentlich alle Sorten,Orangen,Kirschen,Himbeeren,Ananas,Mirabellen},       ytick=data,       nodes near coords, nodes near coords align={horizontal},       ]     \addplot table[col sep=tab,header=false] {data2.dat};     \end{axis}     \end{tikzpicture}     \end{document}      data1.dat:               11  sehr viel mehr     55  deutlich mehr     4   Verzehr ist gleich geblieben     0   etwas weniger O+G     0   deutlich weniger O+G     0   keine Bewertung möglich      data2.dat:               56  Äpfel     20  Melonen     12  Erdbeeren     45  Bananen     18  Trauben     12  Nektarinen     8   Aprikosen     4   Clementinen     10  Pfirsiche     19  Birnen     16  Kiwi     7   Pflaumen     1   individuell völlig verschieden     1   eigentlich alle Sorten     7   Orangen     3   Kirschen     1   Himbeeren     1   Ananas     1   Mirabellen      Here are the plots: ![Bar plot 1](http://i.stack.imgur.com/xlh3o.png) ![Bar plot 2](http://i.stack.imgur.com/VnAV2.png) There are some problems I can not solve:   1. I wonder why each plot has the same height and width even if more space is needed.   2. How do I add space between bars in the second plot? Since I have many plots I'd like to have a global option that automatically adapts the space between bars. Thanks in advance! Christoph Edit: Here's plot that shows further problems with spacing (same pgfplots settings as in MWE except that I added “yticklabel style={text width=3cm,align=right}”, and different data, of course.) ![enter image description here](http://i.stack.imgur.com/0flyl.png)


title: Hiding particular output files: namely, .aux and .log files

text: Is it possible to hide .aux and .log files? If so, what would be the most low- maintenance/simple way of doing so? They create quite a bit of clutter. I have a folder where I'm tending to a bunch of tex files, and ideally I'd like it so that I just see the .tex and output .pdf files. ADDENDUM: I am using Windows 7.