title: Problem getting biber/biblatex/XeLaTeX/TeXworks working together

text: OK, here my situation: I'm writing a paper for my class, and I want to include a bilingual bibliography since some of my sources are in Korean and I want the bibliography to show the original Korean name as well as the English title and so on. At first I started with pdflatex, but I figured that if I want to include UTF letters it would be easier to work with XeLaTeX, so I switched over but it just doesn't want to work with biblatex/biber so far..so I hope somebody here knows how to get it working, as I've already wasted 2 days on this problem instead of actually writing my paper ^^ Heres my main file, BT.tex - in TeXworks I use the compiler XeLaTex+MakeIndex+BibTex.               \documentclass[a4paper,12pt]{article}     \usepackage{polyglossia}     \usepackage{csquotes}     \usepackage[backend=biber]{biblatex}     \addbibresource{BT.bib}     \usepackage{fontspec}     \usepackage{xeCJK}  % package for Korean fonts     \setmainlanguage{english}     \setCJKmainfont{Dotum}      % For Korean font     \setmainfont{Times New Roman}   % Standard font     \begin{document}     \section{Asymmetric Information Theory}     See \textcite{CaMa90}.     See \textcite{Ch99}.     See \textcite{BoCh96}.     See \textcite{BeSp89}.     \printbibliography     \end{document}      Here's my bibliography file:               @article{CaMa90,     author = {R. B. Carter and S. Manaster},     title = {Initial Public Offerings and Underwriter Reputation},     journaltitle = {Journal of Finance},     jourvol = {45},     year = {1990},     pages = {1045-1067}     }          @article{Ch99,     author = {M.-S. Choi},     title = {A Study on Initial Returns and Underpricing of {IPOs}},     journaltitle = {The Korean Journal of Finance},     jourvol = {12},     year = {1999},     pages = {197-226},     origlanguage = {Korean},     origtitle = {신규공모주의 공모가격 할인과 초기성과에 대한 연구},     origpublisher = {재무연구}     }          @article{BoCh96,     author = {J. R. Booth and I. Chua},     title = {Ownership Dispersion, Costly Information and {IPO} Underpricing},     journaltitle = {Journal of Financial Economics},     jourvol = {41},     year = {1996},     pages = {291-310}     }          @article{BeSp89,     author = {L. M. Benveniste and P. A. Spindt},     title = {How Investment Bankers Determine the Offer Price and Allocation of New Issues},     journaltitle = {Journal of Financial Economics},     jourvol = {24},     year = {1989},     pages = {343-361}     }      When I change the code from `[backend=biber]` to `[backend=bibtex8]` the compiler works, except that the Article Ch99 is not shown in Korean, and when I change it back to `[backend=biber]`, the compiler does not work for me. Hope anyone can figure this one out! Edit: I just found somebody else had (kind of) a similar problem, but I don't know how to make head and tails out of the answer..but I guess it could be helpful for you anyways! How to create multilingual (English, Japanese) bibliographies with biblatex, biber and polyglossia Edit2: Yeah, when I compile the file using [backend=biber,style=apa], no reference list appears and the citations dont work. When I change it to [backend=bibtex8], the citations work, except that I don't know which style I have to use to include the Korean language part of the reference list. If I then change it back to [backend=biber, style=apa] (i.e. changing to biber after the .bbl file has been created using bibtex8), the reference is shown correctly in korean and english, but the volume and year of the journal are not shown anymore. I have no clue what is happening. Edit3: When I try to compile my BT.bib using biber (don't know if that is even correct), the following console output comes up:               File/Copy.pm did not return a true value at C:/strawberry/perl/site/lib/Archive/Zip/Archive.pm line 9.     BEGIN failed--compilation aborted at C:/strawberry/perl/site/lib/Archive/Zip/Archive.pm line 9.     Compilation failed in require at C:/strawberry/perl/site/lib/Archive/Zip.pm line 254.     Compilation failed in require at -e line 358.      Edit 4: Also, my log file says:               Package biblatex Warning: Please (re)run Biber on the file:     (biblatex)                BT     (biblatex)                and rerun LaTeX afterwards.      How do I do that? I tried opening the BT.bib file, selecting biber with TeXworks, but that doesn't work (see edit 3). When I use BiBtex with TeXWorks, the created .bbl file is empty. The only method that created a .bbl file that is not empty was using [backend=bibtex8] inside my BT.tex, but that doesn't help me at all since I want to use biber and not bibtex8.. Edit 5: Furthermore, I can't even run my biber.exe from my windows command line - following error comes when I try to do so:               File/Copy.pm did not return a true value at C:/strawberry/per/site/lib/archive/zip/archive.pm line 9.     BEGIN failed--compilation aborted at C:/strawberry/perl/site/lib/archive/zip/archive.pm line 9.     Compilation failed in require at C:/strawberry/perl/site/lib/archive/zip.pm line 254.     Compilation failed in require at -e line 358.


title: Why website link doesn't show in bibliography

text: I don't know why the bib reference of website link does not show up. Any solutions? Thanks.               @article{brunet2005grant,       title={Grant funding to state and local governments and systematic assessment of vulnerability},       author={Brunet, A.},       year={2005},       note = {Accessed August 2013},       howpublished={\url{http://create.usc.edu/research/50788.pdf}}     }


title: Vim-latex key expansion doesn't remove the typed keys

text: I recently installed vim-latex plugin in gvim 7.4. I followed the documentation to set it up. Everything is working. But I have a problem. When I type in key expansion combination, the combination keys are also left with the expanded result. For example, pressing ``^` should expands to `\Hat{<++>}<++>`. But it instead expands to               `^\Hat{<++>}<++>      this is true for all. some examples               `D\Delta     SSS\subsection{}<++>     SPG\paragraph{}<++>     SSP\subparagraph{}<++>      How can I solved this problem so that the key combination gets omitted when expansion happens?


title: \ldots produces a square

text: Using XeLaTex and OpenType font Goudy Bookletter 1911, the command `\ldots{}` produces ❏ (without shadow). My question is: **why XeLaTeX does not find automatically a substitute ?** I guess that this square is meant to replace a character not present in font. With `fontmatrix` I can verify that the character `U+2026` (ellipsis) is not present. Here is the test case:               \documentclass{article}     \usepackage{fontspec}     \usepackage{xunicode}     \setromanfont{Goudy Bookletter 1911}          \begin{document}          Trois petits points \ldots{}          \end{document}      Now (epilogue question), I modify the test case to use the package `babel`. Insert this line after the first:               \usepackage[french]{babel}      and the three dots are produced correctly. Hopefully this is the behavior expected. **But, why this difference ?**


title: Error line inside a package

text: I've created my own package, but, when I use it in a new document, and pdflatex find an error using a custom command (defined in my own package), it shows me only the error line where this command was used (respect to the main file), and not the error line inside the package itself (respect to the package file). Anybody knows how can I force pdflatex shows me the error line inside the package file (i.e, forcing navigation inside includes or packages)?


title: PGFPlots staggered axis

text: Why in this plot the axis are all staggered ?               \documentclass[12pt,%                      % corpo del font principale                        a4paper,%                   % carta A4         %               draft,%                     % evidenzia le righe Overfull hbox                        twoside,%         %               oneside,%         %               openright,%                % fronte-retro                        openany%                    % solo fronte                        ]{book}                   \usepackage{pgfplots,pgfplotstable}        % Grafici         \pgfplotsset{/pgf/number format/use comma,compat=newest,%                     width=12cm,%                     height=9cm%                     }              \begin{document}         \begin{figure}         \centering         \begin{tikzpicture}         \makeatletter \newcommand{\pgfplotsdrawaxis}{\pgfplots@draw@axis} \makeatother         \pgfplotsset{axis line on top/.style={          axis on top=false,          after end axis/.append code={             \pgfplotsset{axis line style=opaque,               ticklabel style=opaque,               tick style=opaque,               grid=none}             \pgfplotsdrawaxis}           }         }         \begin{axis}[/pgf/number format/fixed,         legend pos=outer north east,         grid=major,         xmin=80, xmax=100,         ymin=0, ymax=100,         point meta min={80},         point meta max={100},         yticklabel shift=2pt,         xticklabel shift=2pt,         legend pos=north west,         minor tick num=4,         axis line on top,         xticklabel style={text height=1.5ex},         xtick={80,0.5,...,100},         minor xtick={80,0.05,...,100},         extra x ticks={80,0.5,...,100},         extra x tick style={             xticklabel pos=right,             xticklabel style={text depth=0pt}         },         extra y ticks={0,20,...,100},         extra y tick style={             yticklabel pos=right         },         tick style={thin,black},         xlabel=\large $m$,         ylabel=\large $\Delta l$,         colorbar horizontal,         colorbar style={             /pgf/number format/fixed,             xticklabel shift=2pt,             xtick={80,0.5,...,100},             xticklabel style={text height=1.5ex}         },         colormap={new}{color(0cm)=(violet);color(1cm)=(blue);color(2cm)=(cyan);color(3cm)=(green);color(4cm)=(yellow);color(5cm)=(orange);color(6cm)=(red)},         after end axis/.append code={             \draw ({rel axis cs:0,0}-|{axis cs:0,0}) -- ({rel axis cs:0,1}-|{axis cs:0,0});         },         legend cell align=left]         \end{axis}         \end{tikzpicture}         \caption{Grafico dei dati.}         \label{fig:Grafico_ottica}         \end{figure}         \end{document}


title: How to use one-sided pages formatting in classicthesis without shifting title page?

text: I'm using the `classicthesis` package with the template provided on latextemplates.com (http://www.latextemplates.com/template/classicthesis- typographic-thesis) to write my MSc thesis. I am required to submit my thesis to the examiners in a one-sided format. Using the one-sided format is quite easy, I simply need to put "oneside" as an option when I declare the document class (i.e. `\documentclass[oneside... )`. When I use the default "twoside" option in the document class, the title page is centred: ![title page with two-sided format](http://i.stack.imgur.com/IWyXe.jpg) However, when I use "oneside", the title page shifts to the right (except for the timestamp at the very bottom): ![title page with one-sided format](http://i.stack.imgur.com/TljQK.jpg) Is there a way to force the first page to be centred, use the one-sided format only from the second page or otherwise fix this?


title: md-chr7y source file could not be found

text: I am trying to build a document with pdflatex (MikTeX) but it fails. It seems to be the used font on the title page. The error is as follows:               miktex-makemf: The md-chr7y source file could not be found.     Running ttf2pk.exe...     miktex-makepk: PK font md-chr7y could not be created.          !pdfTeX error: pdflatex (file md-chr7y): Font md-chr7y at 572 not found      ==> Fatal error occurred, no output PDF file produced!      I found some information that this may be caused by a missing "charter" font packet. But this package was already installed and even reinstalling did not change anything. Searching for "md-chr7y" I found three files:               MiKTeX 2.9\fonts\afm\mathdesign\mdbch\md-chr7y.afm     MiKTeX 2.9\fonts\type1\mathdesign\mdbch\md-chr7y.pfb     MiKTeX 2.9\fonts\tfm\mathdesign\mdbch\md-chr7y.tfm      **Update:** I checked the available updmap.cfg files for the `Map mdbch.map` entry. I found the entry in the file `MiKTeX 2.9\miktex\config\updmap.cfg`. What else can I do to fix this problem?


title: Making the size of the arrow head proportional to the magnitude of a vector field in TikZ

text: Consider a scaled vector field `v = (-x, 2x+y-1)` living on the triangle at (0,1), (1,0), and (0,0):               \documentclass{minimal}     \usepackage{tikz}          \begin{document}     \begin{tikzpicture}          \coordinate (A) at (0,0);     \coordinate (B) at (1,0);     \coordinate (C) at (0,1);          \draw[thick] ($(A)$) -- ($(B)$) -- ($(C)$)-- cycle;     \foreach \x in {1, 2, ..., 10}     \foreach \y in {0, 1, ..., \x}     {\draw [-stealth,blue] ($(B)-(0.1,0)+0.1*(1-\x,\y)$)      -- ++(0.02*\x - 0.2, -0.04*\x + 0.4 +0.02*\y-0.2);}      \end{tikzpicture}     \end{document}       The output is as follows: ![tikz](http://i.stack.imgur.com/vBCPx.png) Comparing with the vector fields drawn by MATLAB's `quiver`: ![matlab](http://i.stack.imgur.com/6s1nf.png) The MATLAB's `quiver` command automatically scales the size of the arrow heads according to the magnitude of the vector. So my question is: how do we scale the size of the arrow heads in `TikZ`? Preferably in MATLAB's solution, the vector field vanishes at `(0,1)` so there is no arrow there. For example I googled a little bit, and wonder if `pgfmath` could do some calculation about the length variable `\l`. Then doing something like will work:               \draw [-stealth,blue, single arrow head extend=\l mm] ($(B)-(0.1,0)+0.1*(1-\x,\y)$)      -- ++(0.02*\x - 0.2, -0.04*\x + 0.4 +0.02*\y-0.2);      Thanks.


title: Missing header in Acknowledgement part

text: I have set up the acknowledgement part as follows:               \section*{Acknowledgements}     Thanks Mum.      But then, the header is missing, except the line at the top is appeared. As I want to make it standardized with the rest of the part of my document, I need to, by any means, include the header. When I search in the latex code or setting, there is no such like `\usepackage{fancyhdr}` is used. I used a template found somewhere actually, and my question is how to add such a header. **EDIT:** I found, perhaps, the part that configures the header. Nevertheless, I don't know how to customize it in order for it to affect on the newly added acknowledgement part as well. The part is as below(options.tex):               \usepackage[automark]{scrpage2}     \usepackage{ifthen}          \pagestyle{scrheadings}     %\automark[chapter]{section}     \clearscrheadfoot     \ohead{\pagemark}     \ihead{\headmark}          \renewcommand*{\chapterpagestyle}{scrheadings}          \clubpenalty = 10000     \widowpenalty = 10000     \displaywidowpenalty = 10000      In main latex code:               \documentclass[%     12pt,     oneside,     halfparskip+,                headsepline,                 titlepage,               liststotoc,              pointlessnumbers,        bibtotoc     ]     {scrreprt}          \usepackage[T1]{fontenc}     \usepackage{pseudocode}     \usepackage[utf8]{inputenc}     \usepackage{abstract}     \input{options.tex}          \setlength{\headheight}{1.5\baselineskip}           \listfiles          \newcommand{\emphprolog}[1]{\texttt{#1}}          \newcommand{\TODO}[1]{\textcolor{red}{\texttt{TODO: #1}}\\}      \newcommand{\QUESTION}[1]{\textcolor{blue}{\texttt{Question: #1}}\\}           \newcommand{\DONE}[1]{}           \renewcommand{\emph}[1]{\textit{#1}}          \begin{document}     \setcounter{secnumdepth}{8}     \setcounter{tocdepth}{8}          \ifpdfoutput{         \DeclareGraphicsExtensions{.pdf,.jpg,.png}         \newcommand{\imgscale}{0.7}     } {         \DeclareGraphicsExtensions{.eps}         \newcommand{\imgscale}{0.2}     }          \input{prefix/titlepage.tex}     \input{prefix/abstract}     \input{prefix/acknowledgements}     \pagenumbering{roman}          %\maintoc                            \tableofcontents     \newpage     \listoftables                        %\lstlistoflistings     \newpage     \listoffigures       \clearpage           \input{appendix/apprev}     \clearpage       \pagenumbering{arabic}               \input{chapter/introduction}     \input{chapter/stateoftheart}     \input{chapter/approach}     \input{chapter/results}     \input{appendix/appendix}     \clearpage          \end{document}


title: Usage of UNC paths in XeTeX Documents

text: Is it possible to use UNC paths in a XeTeX document?


title: Is this the best way to make two landscape pages for each portrait page?

text: With the new age I get large amounts of text in pdf format to read and assess. Initially I used perl code to add headers and then create a tex file that has a toc and a section per submission which I included with `includepdf ..`. Recently I moved over to use only luacode and just picked up a list of files with `luacode`, so the same result sans the extra headers. So I got tired of reading it on a standard screen and would like to use the TV screen which is bigger. So I searched and came accross Heiko Oberdiek's solution to do the inverse at Insert external PDF pages with adapted size, position and margins. I modified it resulting in:               \documentclass[a4paper,landscape]{article}     \usepackage{graphicx}     \usepackage[margin=0pt]{geometry}          \makeatletter     \newcounter{imagepage}     \newcommand*{\foreachpage}[2]{%       \begingroup         \sbox0{\includegraphics{#1}}%         \xdef\foreachpage@num{\the\pdflastximagepages}%       \endgroup       \setcounter{imagepage}{0}%       \@whilenum\value{imagepage}<\foreachpage@num\do{%         \stepcounter{imagepage}%         #2\relax       }%     }     \makeatother          \newcommand*{\upperpart}[2]{%       \begingroup          \centering         \includegraphics[           scale=1.41,           trim=0 150mm 0  0,           page=#2,           width=\textwidth,           ]{#1}%         \newpage       \endgroup     }          \newcommand*{\lowerpart}[2]{%       \begingroup          \centering         \includegraphics[           scale=1.41,           trim=0  0  0 140mm,           page=#2,           width=\textwidth,           ]{#1}%         \newpage       \endgroup     }          \newcommand{\splitdoc}[1]%     {       \begingroup         \begin{center}         \foreachpage{#1}{%           \upperpart{#1}{\value{imagepage}}           \lowerpart{#1}{\value{imagepage}}         }         \end{center}       \endgroup     }          \begin{document}     \splitdoc{example}     \end{document}      I especially want a single command as I use the same code in another document where I collect all the files, sort them and then add a section per submitter. The center of the luacode which I use is eventually a for loop that execute the following per submission [the submitters each have a directory(s) and it contains one or more files (f)]:               tex.print("\\splitdoc{\\detokenize{"..s.."/"..f..'}}')      This works fine, apart from the fact that figure now sometimes are split across pages, but that I expected from the onset and can live with that. I was wondering if anybody can suggest a better way to achieve the same result?


title: Two instances of the same text in the document

text: I am writing problems-solutions book. I have decided that problems and solutions shall be separated; first half of the book having problems and the second half solutions. But I need the text of the problem in the solution part too. Eg. > * * * > > PART I > > Problem 3.3: Find the speed of the airplane... > > * * * > > PART II > > Problem 3.3: Find the speed of the airplane... > > Solution to the problem goes as... > > * * * I am thinking of a command of type               \problem{prob33}{Find the speed of the airplane...}          \solution{prob33}      So the idea is that the command `\solution` would be somehow connected to the command `\problem` and invoking `\solution{prob33}` would again print the text "Find the speed of the airplane...", which was defined by `\problem`. Is there any good solution for my problem? Thanks for your help!


title: Getting two pictures to appear on the same page

text: I have two images that I would like to appear on the same page. Each figure should appear as a separate figure with its own caption. My problem is that LaTeX sometimes places the figures on separate pages. I currently have achieved this by putting two `\psfragfig` commands consecutively within the same `figure` environment. This seems a simple and succesful approach, but I wonder if I am not using the `figure` environment correctly by doing this. Should I use the `subcaption` package instead?


title: Longtabu table broken by another float table

text: I have come across a problem with using `longtabu` together with tables created in the table environment which makes them float. When a long table is broken across two pages with the `longtabu` environment, another floating table will treat the long table as a normal paragraph and insert itself at the top of the page, then let `longtabu` continue its course below. This is obviously suboptimal for the reader, how can I fix this? A sample that will reproduce this is provided below.               \documentclass[12pt]{article}     \usepackage{booktabs,longtable,tabu}          \begin{document}          \tabulinesep = 0.2cm          \begin{longtabu} to \textwidth {X[2,lp] X[cp] X[cp] X[cp]}     \caption{Model specification regressions} \\     \toprule     & \multicolumn{3}{c}{Regression} \\      \cmidrule(l){2-4}     Coefficient or statistic & Unrestricted & Intermediate & Final\\     \midrule     $\bar{R^2}$ & $0.7166$ & $0.7198$ & $0.7132$\\     SSE & $13.3967$ & $14.5750$ & $15.0457$\\     Constant & $4.3885$ $(0.5973)$ & $14.2384$ $(0.0000)$ & $12.9334$ $(0.0000)$\\     $\ln income$ & $-1.5138$ $(0.2602)$ & $-0.8366$ $(0.0147)$ & $-0.4696$ $(0.0980)$\\     $\ln ptea$ & $-0.7113$ $(0.0003)$ & $-0.7067$ $(0.0001)$ & $-0.9201$ $(0.0000)$\\     $\ln pcoff$ & $0.8773$ $(0.0003)$ & $0.8135$ $(0.0000)$ & $1.0268$ $(0.0000)$\\     $\ln pftvg$ & $-1.4448$ $(0.0386)$ & $-1.1288$ $(0.0037)$ & $-1.0836$ $(0.0056)$\\     $\ln pleis$ & $0.2368$ $(0.1881)$ & $0.2681$ $(0.0575)$ & ---\\     $\ln pmtfh$ & $-0.4448$ $(0.2207)$ & --- & --- \\     $\ln ptrav$ & $0.0548$ $(0.8075)$ & --- & --- \\     $\ln pbeer$ & $0.6850$ $(0.4659)$ & --- & --- \\     $\ln pwine$ & $0.0139$ $(0.0355)$ & --- & --- \\     $\ln palloth$ & $0.9735$ $(0.1132)$ & --- & --- \\     $\ln income\_1$ & $1.3850$ $(0.2786)$ & --- & --- \\     $time$ & $-0.0189$ $(0.4036)$ & --- & --- \\     $quarter1$ & $-0.0451$ $(0.6368)$ & --- & --- \\     $quarter2$ & $-0.1463$ $(0.1245)$ & --- & --- \\     $quarter3$ & $-0.0117$ $(0.9033)$ & --- & --- \\     \bottomrule     \end{longtabu}          \begin{table}     \centering     \caption{Validity of Restrictions}     \begin{tabu} to \textwidth {X[lm] X[1.5,cm] X[lm] X[Lm]}     \toprule     Test & Formula & $H_0$ & $H_1$\\     \midrule     Significant residual difference & $F=\frac{SSR_R-SSE_U/J}{SSE_U/(N-K)}$ & Restrictions do not explain significant variation in model & Restrictions explain significant variation in model\\     \bottomrule     \end{tabu}     \end{table}          \end{document}      Note that in this specific example the problem only occurs when the `tabulinesep` option is included.


title: List of acronyms not created

text: I am working on a paper and tried to include an acronym file. So what I did for that so far is:   1. Including glossaries package in the header protion of my document: `\usepackage[acronym,toc]{glossaries}`   2. Including a `\makeglossaries` in the header.   3. Including my acronyms file and a printglossaries in the actual document: `\input{acronyms}   \printglossaries` Running makeglossaries script shows the following:               makeglossaries template_diplomarbeit       added glossary type 'acronym' (alg,acr,acn)       makeindex  -s "template_diplomarbeit.ist" -t "template_diplomarbeit.alg" -o "template_diplomarbeit.acr" "template_diplomarbeit.acn"       This is makeindex, version 2.15 [20-Nov-2007] (kpathsea + Thai support).       Scanning style file ./template_diplomarbeit.ist...........................done   (27 attributes redefined, 1 ignored).       Scanning input file template_diplomarbeit.acn....done (18 entries accepted, 0 rejected).       Sorting entries....done (75 comparisons).       Generating output file template_diplomarbeit.acr....done (45 lines written, 0 warnings).       Output written in template_diplomarbeit.acr.       Transcript written in template_diplomarbeit.alg.       makeindex  -s "template_diplomarbeit.ist" -t "template_diplomarbeit.glg" -o "template_diplomarbeit.gls" "template_diplomarbeit.glo"       This is makeindex, version 2.15 [20-Nov-2007] (kpathsea + Thai support).       Scanning style file ./template_diplomarbeit.ist...........................done   (27 attributes redefined, 1 ignored).       Scanning input file template_diplomarbeit.glo...done (0 entries accepted, 0 rejected).       Nothing written in template_diplomarbeit.gls.       Transcript written in template_diplomarbeit.glg.      The result is no glossary or acronyms included anywhere. However when I include the glossaries package without the acronym option (=acronyms are included in the glossary instead of giving them their own list) my list of acronyms shows up.


title: unable to add eps file in pdf created by latex

text: I am trying to attach .eps file in my pdf document created by Latex. I am using windows winshell 3.3.2.6 (windows 7). I following packages \usepackage{graphicx}, \usepackage{epsfig}, \usepackage{epstopdf}. I get the error - Error: Package pdftex.def Error: File `contents/images/16-eps- converted-to.pdf' not found. finally pdf document created just writes the file name at the location where file is to be inserted. Kindly help me to put .eps image in pdf file.


title: Bad spacing of table inside subfigure

text: I have a figure setup as follows:               \begin{figure*}[t!]     \centering     \subfigure[Part 1]     {        \includegraphics*[totalheight=2in,origin=c]{ost100}     }     \subfigure[Part 2]     {        \includegraphics*[totalheight=2in,origin=c]{bay}     }     \subfigure[Part 3]     {        \small        \begin{tabular}{| l | c | r | r | } \hline        {...}        \hline        \end{tabular}     }     \caption{The main experiment.\label{f:main}}     \end{figure*}      For some reason, my table ends up shifted far below the images in part 1 and 2, with about a 1/2 inch margin above it. Shrinking the images doesn't change this. Any idea what is going wrong and how to fix it?


title: how to remove space before List of Figures

text: How can I remove the space before the List Of Figures in List of Figures page. I am using report class. Thank you


title: Frame numbering in Warsaw theme

text: > This is a follow-up question to slide numbering in Beamer class (Warsaw > theme) In fact, I was trying to put frame numbering in my presentation using Warsaw theme. All I wanted is to put the numbering on bottom right corner. Therefore, I modified the option given by @CarstenThiel in the above link as               \defbeamertemplate*{footline}{shadow theme}{%     \leavevmode%     \hbox{\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm plus1fil,rightskip=.3cm]{author in head/foot}%         \usebeamerfont{author in head/foot}\hfill\insertshortauthor     \end{beamercolorbox}%          \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}%         \usebeamerfont{title in head/foot}\insertshorttitle\hfill%     \insertframenumber\,/\,\inserttotalframenumber     \end{beamercolorbox}}%     \vskip0pt%     }      Similarly, @MikeR's answer at Beamer: Hide Backup Slides from Navigation Panel works the same:               \expandafter\def\expandafter\insertshorttitle\expandafter{%         \insertshorttitle\hfill\insertframenumber\,/\,\inserttotalframenumber}      **My question here is that, is it possible for me to have a different color in the frame numbering area as shown below?**![enter image description here](http://i.stack.imgur.com/NM2tM.png)


title: Arrow indicating cycle between two pictures using TikZ -- missing arrowheads

text: I'm trying to draw two arrows that should indicate that a neural network cycles between two states. Following the tutorial for the Petri net, I used pgfonlayer, fit and a scope to align two networks side by side. I cannot, however, get the arrow to appear, for some reason. Here is the code               \begin{tikzpicture}[auto]     \node[excited] (middle)                  {-2.5};     \node[inhibited]   (west)  [left=of middle]   {0.5}         edge node {-1} (middle);     \node[inhibited]   (east)  [right=of middle]  {0.5}         edge node {-1} (middle);     \node[excited] (north) [above=of middle]  {0.5}         edge node       {1}  (east)         edge node[swap] {1}  (west)         edge node       {-1} (middle);     \node[excited]   (south) [below=of middle]  {0.5}         edge node        {-1} (middle)         edge node        {1}  (west)         edge node [swap] {1}  (east);     \begin{scope}[xshift=6cm]     \node[excited] (middle1)                  {-2.5};     \node[excited]   (west1)  [left=of middle1]   {0.5}         edge node {-1} (middle1);     \node[excited]   (east1)  [right=of middle1]  {0.5}         edge node {-1} (middle1);     \node[inhibited] (north1) [above=of middle1]  {0.5}         edge node       {1}  (east1)         edge node[swap] {1}  (west1)         edge node       {-1} (middle1);     \node[inhibited]   (south1) [below=of middle1]  {0.5}         edge node        {-1} (middle1)         edge node        {1}  (west1)         edge node [swap] {1}  (east1);     \end{scope}     \begin{pgfonlayer}{background}         \node (n1) [fit=(west) (middle) (east) (south) (north)] {};         \node (n2) [fit=(west1) (middle1) (east1) (south1) (north1)] {};         \draw [shorten >=5mm,shorten <=5mm,bend left=45,<-]             (north) to (north1);         \draw [shorten >=5mm,shorten <=5mm,bend right=45,->]             (south) to (south1);     \end{pgfonlayer}     \end{tikzpicture}      And the result, regardless of me having `<-` and `->` in the `\draw` command. ![result](http://i.stack.imgur.com/F1KKa.png) Does anyone have an idea why this is happening? Thanks for the help.


title: "Extra }, or forgotten \endgroup" when combining "fixltx2e" and "preview" packages

text: In a two-column document with `figure*` floats, where the `preview` package is set up to preview floats, compilation seems to fail if the `fixltx2e` package is loaded:               \documentclass[twocolumn]{article}          \usepackage{fixltx2e}     \usepackage[active,floats]{preview}          \begin{document}       \begin{figure*}Test\end{figure*}     \end{document}      The first error message seen reads:               ! Extra }, or forgotten \endgroup.     \@endfloatbox ...pagefalse \outer@nobreak \egroup                                                        \color@endbox      l.7   \begin{figure*}Test\end{figure*}          ?       The error vanishes if `fixltx2e` is not loaded or if the `figure` environment is used. My goal is to "preview" all figures in a two-column document, so that `\linewidth` is set up correctly within the environments. What am I doing wrong? Is there a way to "fix" this while retaining `fixltx2e`? Is this package needed at all in a recent LaTeX installation?


title: Which programs can be used to embed LaTeX into a poster?

text: I'm not totally sure whether this is the right spot to ask this question, but here it comes. When creating scientific posters, you often have to place text, figures, and formulas on a large (A0) paper. There are programs that are commonly used (e.g. PowerPoint), which neither make good text layout nor support formulas. Other programs are great with text and pictures but don't make it easy to have complex formulas - especially formulas inline with the text. And while you can create the complete poster in Latex, which this question is about, I'd really like to use the mouse to do the layout. **So, what solutions have you come across that more or less do the job of creating a scientific poster which includes Latex-formulas?** I'm mainly interested in free software, but please also give commercial solutions as answer. Also the operating system doesn't matter that much. I'm using Ubuntu but can go to Windows, too. If it's Mac, well maybe it helps someone else.


title: Does a !TEX directive exist in TeXStudio for the bibliography command?

text: I'm using TeXStudio (2.6.2) for all my tex documents. For my thesis I'm using biblatex, but for papers I usally use bibtex. Therefor I always have to change the configuration of TeXStudio when I'm switching to another document. Is there a `!TEX` like directive for TeXStudio so I can configure it on a per document base? I've seen here that TeXShop supports `!BIB program = ...`. I tried that in TeXStudio, but unfortunately it does not work. I also haven't found any indication in the manual that there is something like that. So my question is: Is there any kind of such a directive for TeXStudio or some other easy work around?


title: Gene-logic package and bizarre cross-referencing behavior

text: I am getting some bizarre behavior using the `gn-logic` (gene-logic) package with some of the various cross-referencing packages. In particular `varioref` and `cleveref`. Here is a MWE illustrating the issue:               \documentclass{article}     \usepackage{gn-logic14}     \usepackage{kantlipsum}     \usepackage{varioref}     \usepackage[colorlinks=true,hyperfootnotes=false]{hyperref}     \hypersetup{colorlinks, citecolor=violet, linkcolor=black, urlcolor=blue}     \usepackage{cleveref}     \begin{document}               Here is a formula in gene-logic's Formula environment:     \begin{Formula}\label{eq:SubIden}     \Forall x \Forall y [(x = y) \IMPL (Fx \IMPL Fy)]     \end{Formula}     Now let's try to refer to the formula, using straight \textbackslash ref works as expected: \ref{eq:SubIden}. Trying with \textbackslash cref doesn't work: \cref{eq:SubIden}. Trying with \textbackslash vref doesn't work: \vref{eq:SubIden}. Trying with \textbackslash autoref does work: \autoref{eq:SubIden}.          \section{Example section}          Here is some bizarre behavior:     \begin{Formula}\label{eq:SubIden1}     \Forall x \Forall y [(x = y) \IMPL (Fx \IMPL Fy)]     \end{Formula}     Now let's try to refer to the formula, using straight \textbackslash ref works as expected: \ref{eq:SubIden1}. Trying with \textbackslash cref doesn't work, but this time rather than returning ``??'' as it does for me above, it refers to the section number containing the formula: \cref{eq:SubIden1}. Trying with \textbackslash vref does the same thing, but with the extra text describing the location:  \vref{eq:SubIden1}. Trying with \textbackslash autoref does work: \autoref{eq:SubIden}.               \end{document}      This is the image generated: ![image](http://i.stack.imgur.com/b1ZvY.png) What on earth is going on here?


title: Utterly stumped by xypic \newdir — just combining examples from xyguide!

text: I want to use arrows whose heads and/or tails can be almost-triangles: roughly, something like `A ———▷ B` or `A ▷——> B`. For the heads, there’s a good solution in xyguide:               \newdir{|>}{!/4.5pt/@{|}*:(1,-.2)@^{>}*:(1,+.2)@_{>}}      Now `A \to/@{-|>}/ B` works as desired. Trying to use this as a tail suffers from a well-known problem, described further down the same page of the guide: “Often tips used as "tails" have their ink on the wrong side of the point where they are placed,” so they sit too far back and crash into the letter behind them, giving something like `A▷——> B`. Fortunately, the guide has an exercise on how to fix this, giving the solution               \newdir{ >}{{}*!/-5pt/@{>}}      which, unmodified, works beautifully to give eg `A >——> B`. Unfortunately, the modification               \newdir{ |>}{{}*!/-5pt/@{|>}}      does not produce the expected result: `A \to/@{ |>->}/ B` gives something like `A▷ ——>B`, with the tail pulled _back_ from the shaft and crashing even further into the letter behind it! Changing the `-5pt` to a different length—to `5pt`, or `0pt`, or `50pt`—makes no difference to this result. Other modifiers here work as I’d expect; for instance, `\newdir{ |>}{{}*:(1,1)@{|>}}` rotates the triangle. But the `!/-5pt/`, which as I understand should shift the reference point, and seems to do this fine in the exercise from the guide, just doesn’t seem to work as expected in this example. I’m completely stumped. What gives?


title: Alignment/whitespace to compensate for negative sign

text: I have two equations:               \begin{equation}         \begin{cases}             \begin{aligned}                 a_x &= - \sin \alpha \cos \beta    \\                 a_y &= \cos \alpha \cos \beta             \end{aligned}         \end{cases}     \end{equation}      This works very nicely. However I would find the result prettier if there were a white space under the negative sign. That is, not like this:               a_x = - sin ...     a_y = cos ...      but rather like this :               a_x = - sin ...     a_y =   cos ...      So, white space problem or alignment problem? I could just place a whitespace there, like `\.` or `\,`, but I do not know how wide the negative sign is. I cannot put more `&` in my lines because that makes `aligned` think I have many equations on the same line. What are the best practices here?


title: Is it actually illegal to TeX `texbook.tex`?

text: At the top of `texbook.tex`, it is written:               % This manual is copyright (C) 1984 by the American Mathematical Society.     % All rights are reserved!     % The file is distributed only for people to see its examples of TeX input,     % not for use in the preparation of books like The TeXbook.     % Permission for any other use of this file must be obtained in writing     % from the copyright holder and also from the publisher (Addison-Wesley).     \loop\iftrue       \errmessage{This manual is copyrighted and should not be TeXed}\repeat     \pausing1 \input manmac      Does this _actually_ mean that would be illegal to TeX this file, or is it more likely an attempt at intimidation by Addison-Wesly? Would it make any difference ...   1. ... if the output were only for personal use?   2. ... if the output were only used on-screen, not printed?   3. ... if one already owned a copy of the TeXbook? (Probably the answers to at least some of these questions vary from country to country.) Also (this is probably a big can of worms), would it be _wrong_ to do so?


title: Force ibid in citation when using non-standard page numbers

text: I am using BibLaTeX, and I need to cite a source by its headings, not by its page numbers. Is there any way to force BibLaTeX to use ibid when the title and location are the same? Note: questions Biblatex: tricks with repeated citations in footnotes and Ibid for citations with same title and page do not address this issue. I specifically need to cite using something other than the simple page number. As far as I can see, I have used the correct package options (e.g., `ibidpage=true`). Here is the minimum working example:               \documentclass{book}          \usepackage         [backend=biber,          style=verbose-ibid,          citepages=omit,          ibidpage=true,          firstinits=true]        {biblatex}          \usepackage{filecontents}          \begin{filecontents}{ibid.bib}          @book{a,       title    = {Summa theologiae},       author   = {{Thomas Aquinas}},     }          \end{filecontents}          \addbibresource{ibid.bib}          \begin{document}          Here is some reference.\footcite[2]{a}     Here is some reference.\footcite[2]{a}     Here is some reference.\footcite[I, q.~1, a.~4]{a}     Here is some reference.\footcite[I, q.~1, a.~4]{a}     \printbibliography          \end{document}      The footnotes I get for the first two, which use a standard page number are > 1 Thomas Aquinas. _Summa theologiae_ , p. 2.   >  2 Ibid. as expected. However, the other two, which uses the headings, produces > 3 Ibid., I, q. 1, a. 4.   >  4 Ibid., I, q. 1, a. 4. The desired output for the fourth footnote is simply > 4 Ibid. Can this be done?


title: \twocolumn undefined control sequence }]

text: I am trying to add a figure (a `center` environment) two a `\twocolumn` command. I tried this:               \documentclass[10pt,twocolumn]{article}     \usepackage{graphicx}     \usepackage{subfig}          \begin{document}          \twocolumn[{%     \begin{center}     \captiontype{figure}     \subfloat[]       {       \fbox{\rule{0pt}{1in} Some text \rule{1in}{0pt} }       }     \subfloat[]       {       \fbox{\rule{0pt}{1in} Some text \rule{1in}{0pt} }       }     \caption{Our algorithms.}     \end{center}     }] %end twocolumn          \end{document}      but I get "undefined control sequence }]". Any suggestions?


title: Why does hyphsubst not work with LuaTeX?

text: Consider the following MWE:               \RequirePackage[ngerman=ngerman-x-latest]{hyphsubst}     \documentclass{scrartcl}          \usepackage[english]{babel}     \usepackage{blindtext}          \begin{document}     \Blindtext     \end{document}      This compiles fine with `pdflatex` but not with `lualatex`. Why is there an error when using the latest hyphenation patterns? Can I make them work with `lualatex`? * * *               This is LuaTeX, Version beta-0.70.1-2011061410 (rev 4277)       restricted \write18 enabled.     (./BabelTest.tex     LaTeX2e <2011/06/27>     LuaTeX adaptation of babel <v3.8l-luatex-1.5> and hyphenation patterns for engl     ish, dumylang, nohyphenation, loaded.     (/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/hyphsubst.sty     (/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/infwarerr.sty))     (./scrbook.cls     Document Class: scrbook 2012/03/08 v3.10a KOMA-Script document class (book)     (/usr/local/texlive/2011/texmf-dist/tex/latex/koma-script/scrkbase.sty     (/usr/local/texlive/2011/texmf-dist/tex/latex/koma-script/scrbase.sty     (/usr/local/texlive/2011/texmf-dist/tex/latex/graphics/keyval.sty)     (/usr/local/texlive/2011/texmf-dist/tex/latex/koma-script/scrlfile.sty     Package scrlfile, 2011/03/09 v3.09 KOMA-Script package (loading files)                       Copyright (C) Markus Kohm          ))) (/usr/local/texlive/2011/texmf-dist/tex/latex/koma-script/tocbasic.sty)     (/usr/local/texlive/2011/texmf-dist/tex/latex/koma-script/scrsize11pt.clo)     (/usr/local/texlive/2011/texmf-dist/tex/latex/koma-script/typearea.sty     Package typearea, 2012/03/08 v3.10a KOMA-Script package (type area)                       Copyright (C) Frank Neukam, 1992-1994                       Copyright (C) Markus Kohm, 1994-          )) (/usr/local/texlive/2011/texmf-dist/tex/generic/babel/babel.sty     (/usr/local/texlive/2011/texmf-dist/tex/generic/babel/english.ldf     (/usr/local/texlive/2011/texmf-dist/tex/generic/babel/babel.def     ! LuaTeX error ...11/texmf-dist/tex/luatex/hyph-utf8/luatex-hyphen.lua:60: luat     ex-hyphen: \language0 should be dumped in the format     stack traceback:         [C]: in function 'error'         ...11/texmf-dist/tex/luatex/hyph-utf8/luatex-hyphen.lua:22: in function 'err'         ...11/texmf-dist/tex/luatex/hyph-utf8/luatex-hyphen.lua:60: in function 'loadl     anguage'         <\directlua >:1: in main chunk.     \bbl@patterns ...pestring {#1}", \the \language )}                                                       \fi \fi \fi      l.131 \main@language{english}


title: \pdfbookmark hyperlink aims to low with \includepdf

text: I'm trying to use pdfTeX to bring together several PDF documents and use the bookmarks feature of Adobe/Preview to supply a hyperlinking structure in a sidebar window. When I try this with multiple PDF files at multiple levels of indentation, the hyperlinking structure "works", but some of the links aim too low! Check out the following:               \documentclass[11pt]{article}%     \usepackage{pdfpages}%     \usepackage{bookmark}%          \begin{document}%     \pdfbookmark[1]{Test 0}{test0}%     \includepdf[pages={-},link,linkname=test0,linkfit=FitH]{Testpdf0.pdf}%          \pdfbookmark[2]{Test 1}{test1}%     \includepdf[pages={-},link,linkname=test1,linkfit=FitH]{Testpdf1.pdf}%          \pdfbookmark[3]{Test 2}{test2}%     \includepdf[pages={-},link,linkname=test2,linkfit=FitH]{Testpdf2.pdf}%          \pdfbookmark[1]{Test 3}{test3}%     \includepdf[pages={-},link,linkname=test3,linkfit=FitH]{Testpdf3.pdf}%     \end{document}%      Use your favorite PDF files for Testpdf files 0, 1, 2 and 3. Compile this and then open the resulting document in either Adobe Reader or Preview and click on the bookmarks. The bookmarks for Test 0 and Test 3 work fine -- you can see the top 1.5 cm of your document -- which is what I want. However the bookmarks Test 1 and Test 2 aim too low cutting off the top of each of these pages. Any ideas how to fix this behavior? (Is it intentional?) I'm preparing an important document and I do not want to annoy my reader (or they won't be incline to decide in my favor)!


title: APA conform \bibentry in document's body using natbib

text: I would like to cite some bibentries in full text in the body of my document. @Gonzalo Medina provided a solution to an almost identical problem which is (marginally modified) shown below.               \begin{filecontents*}{\jobname.bib}     @article{author00,     title = {{A Title}},     journal = {Alpha},     year = {2008},     author= {Author, A},     address = {London}     }     \end{filecontents*}          \documentclass{article}     \usepackage{filecontents}     \usepackage{natbib}     \usepackage{bibentry}          \nobibliography*          \begin{document}          A regular citation of \cite{author00}.     A full in-text cite of \bibentry{author00}.          \bibliographystyle{apa}     \bibliography{\jobname}          \end{document}      This works fine for `\bibliographystyle{plainnat}`, but when using apa.bst it throws an error. However, I am committed to both, natbib and apa. Further would it be nice if it could be shown that possible multi-line references are indented from the second line on.


title: Basic use of derivative with cool package fails with "Missing \endcsname inserted"

text: In exploring options for typesetting derivatives I came across the `cool` package. But a basic example from Page 22 of the Content Oriented LaTeX documentation (October 7, 2006) seems to result in the error:                Missing \endcsname inserted.       <to be read again>                      \toks@       Uncommenting the line in the MWE below yields the above error. As is, the MWE produces: ![enter image description here](http://i.stack.imgur.com/X00KH.png) ## References:   * Can I have a flexible partial derivative macro? I would prefer to use one of the solutions mentioned here as they do not require another package, but the syntax proposed here is different that the `cool` package. This is problematic in that if I later need the flexibility provided by the the `cool` package will not be as easy to switch. ## Code               \documentclass{article}     \usepackage{amsmath}     \usepackage{cool}     \begin{document}     \begin{align*}         \D[1]{f}{x,y,z} &= \cdots\\         %\D[2,n,3]{f}{x,y,z} &= x     \end{align*}     \end{document}


title: tikz: Mean as Center of gravity

text: **Desired Output** ![enter image description here](http://i.stack.imgur.com/gvDFP.png) **My MWE** Borrowed the code from here.               \documentclass[tikz,border=1cm]{standalone}     \usepackage{tikz}          \begin{document}             \begin{tikzpicture}[rotate=-30,transform shape]                 \draw (-0.2,0) rectangle (15.5,1);                 %% lower divisions                 \foreach \x in {0,1,...,15}{                 \draw (\x,0) -- (\x,0.2)node[above,scale=0.4]{\x};                 }                 \foreach \x in {0.1,0.2,...,14.9}{                 \draw (\x,0) -- (\x,0.075);                 }                 \foreach \x in {0.5,1,...,14.5}{                 \draw (\x,0) -- (\x,0.15);                 }                 % Upper divisions                 \foreach \x in {0,1,...,6}{                 \draw (\x in,1) -- (\x in,0.8)node[below,scale=0.4]{\x};                 }                 \foreach \x in {0.1,0.2,...,5.9}{                 \draw (\x in,1) -- (\x in,0.925);                 }                 \foreach \x in {0.5,1,...,5.5}{                 \draw (\x in,1) -- (\x in,0.85);                 }             \end{tikzpicture}     \end{document}      **Output** ![enter image description here](http://i.stack.imgur.com/OraAh.png) Any help will be highly appreciated. Thanks


title: How to set uniform font size both in the table and the paragraph

text: When I resize the table, using `\resizebox` or any other thing, the font size gets reduced. How do I set, a uniform font size for the whole document, I need at least 12pt (the minimum requirement). The code:               \documentclass[12pt,letterpaper,borde=10pt]{moderncv}     \moderncvstyle{banking}     \moderncvcolor{blue}     \usepackage{libertine}     \usepackage[scale=0.75]{geometry}     \usepackage{array}     \usepackage{threeparttable}     \usepackage{graphics}     \newcolumntype{C}{>{\centering\arraybackslash}m{0.25\linewidth}}     \newcolumntype{L}{>{\centering\arraybackslash}m{0.15\linewidth}}     \makeatletter     %\renewcommand*{\maketitlesymbol}{}%     %     \renewcommand*{\flushmaketitle}{%       \strut\usebox{\maketitlebox}%       \savebox{\maketitlebox}{}%       \savebox{\maketitletempbox}{}%       \setlength{\maketitleboxwidth}{0pt}}     \renewcommand*{\maketitle}{%     %  \setlength{\maketitlewidth}{0.8\textwidth}% ORIGINAL       \setlength{\maketitlewidth}{\textwidth}% NEW       %\hfil% ORIGINAL       \parbox{\maketitlewidth}{%     %    \centering% ORIGINAL         \raggedright% NEW         % name and title         \namestyle{\@firstname~\@lastname}%         \ifthenelse{\equal{\@title}{}}{}{\titlestyle{~|~\@title}}\\% \isundefined doesn't work on \@title, as LaTeX itself defines \@title (before it possibly gets redefined by \title)         % detailed information         \addressfont\color{color2}%         \parbox[t]{0.45\maketitlewidth}{%         \ifthenelse{\isundefined{\@addressstreet}}{}{\addtomaketitle{\addresssymbol\@addressstreet}%         \flushmaketitle\@firstmaketitleelementtrue\\       %%% <--- HK here           \ifthenelse{\equal{\@addresscity}{}}{}{\addtomaketitle[~--~]{\@addresscity}}% if \addresstreet is defined, \addresscity and \addresscountry will always be defined but could be empty           \flushmaketitle\@firstmaketitleelementtrue\\     %%% <--- HK here           \ifthenelse{\equal{\@addresscountry}{}}{}{\addtomaketitle[~--~]{\@addresscountry}}%       \flushmaketitle\@firstmaketitleelementtrue\\     %%% <--- HK here           }}%           \hfill         \parbox[t]{0.45\maketitlewidth}{%         \raggedleft%    %% optional         \collectionloop{phones}{% the key holds the phone type (=symbol command prefix), the item holds the number           \addtomaketitle{\csname\collectionloopkey phonesymbol\endcsname\collectionloopitem}           \flushmaketitle\@firstmaketitleelementtrue\\}%           %% <--- HK here         \ifthenelse{\isundefined{\@email}}{}{\addtomaketitle{\emailsymbol\emaillink{\@email}}}%         \flushmaketitle\@firstmaketitleelementtrue\\           %% <--- HK here         \ifthenelse{\isundefined{\@homepage}}{}{\addtomaketitle{\homepagesymbol\httplink{\@homepage}}}%         \flushmaketitle\@firstmaketitleelementtrue\\           %% <--- HK here         \collectionloop{socials}{% the key holds the social type (=symbol command prefix), the item holds the link           \addtomaketitle{\csname\collectionloopkey socialsymbol\endcsname\collectionloopitem}           \flushmaketitle\@firstmaketitleelementtrue\\}           %% <--- HK here         \ifthenelse{\isundefined{\@extrainfo}}{}{\addtomaketitle{\@extrainfo}}%         \flushmaketitle}}\\[2.5em]}% need to force a \par after this to avoid weird spacing bug at the first section if no blank line is left after \maketitle     \makeatother          \name{SUBHAM}{SONI}     %\address{No.8, I-Floor, I-Cross, Suriya Gandhi Nagar(North), Muthialpet}{Puducherry $-$ 605003}{India}     %\phone[mobile]{+91~8124~410~721}     %\phone[fixed]{+91~0413~22~11~380}     %\email{subhamsoni0049@pec.edu}     %\homepage{www.johndoe.com}     %\social[linkedin]{john.doe}     %\social[twitter]{jdoe}     %\social[github]{jdoe}     %\quote{Some quote}          \begin{document}     \makecvtitle          \section{CAREER OBJECTIVE}     A challenging role in a dynamic organisation, which would serve as a platform for being     resourceful, innovative and flexible, where good technical and soft skills can enhance the     company's welfare and offer professional growth.     \section{EDUCATIONAL QUALIFICATION}     \centering     %\begin{table}       \begin{threeparttable}       \centering       \resizebox{\columnwidth}{!}{%          \begin{tabular}{|C|C|C|C|C|C|}\hline     \textbf{Sl. No.} & \textbf{Course} &  \textbf{Institution/ School}  & \textbf{Board/University}  &  \textbf{Years of  passing}  & \textbf{Aggregate}  \\ \hline     1. & B.Tech. (Computer Science and Engineering)& Pondicherry  Engineering College  Puducherry & Pondicherry  University& April 2015 (pursuing) & $8.554^\star$ \\     \hline     2. & Higher  Secondary  &  Petit Seminaire H.S.S. Puducherry & Tamilnadu Board of     Higher Secondary  Education & March 2011  & 92\% \\   \hline     3. & Matriculation  &  Petit Seminaire H.S.S. Puducherry & Tamilnadu Board of     Higher Secondary  Education  & March 2009 & 90\% \\ \hline         \end{tabular}     }         \begin{tablenotes}           \small           \item  \textbf{${}^\star$ Cumulative grade point average up to $5^{th}$ semester}.         \end{tablenotes}       \end{threeparttable}     %\end{table}     \end{document}       ![enter image description here](http://i.stack.imgur.com/0qIce.png)


title: Error of pdflatex in LyX

text: I prepared a document, which was entirely okay, until some changes have been introduced (perhaps associated with the use of bibliography, or `breqn`/`mh` package, or `split` environment). They lead to the error of `pdflatex` commands, including preview and export: "Error while exporting format". Details weren't specified by the editor (even in tmp directory). After reloading LyX, it became more specific, saying that "the directory path to the document cannot contain spaces." Moving to other locations, without spaces, do not help. Then I installed 2.0.6 and replaced MiKTeX with TeXLive, nothing changed: LyX can't create a preview or pdf of this file. LaTeX log says nothing. I've done research around the Web, and no solution suits. Is it possible to find out what settings or code cause such problems?


title: How do I omit a column separator in a tabular environment?

text: I'd like to create a layout like this (it's for a resume):               some text here                                            a little more      big chunk of text blah blah blah blah blah blah blah blah |     ...blah blah blah blah blah blah blah blah blah blah blah |     ...blah blah blah blah blah blah blah blah blah blah blah |     ...blah blah blah blah blah blah blah blah blah blah bla. |      So I figured a `tabular` would get me most of the way there. Here's what I'm using:               \begin{tabular}{l|p{3cm}}         some text here & a little more \\         \parbox{big chunk of text blah...} % because there's actually a list environment inside     \end{tabular}      but of course that produces this:               some text here                                            | a little more      big chunk of text blah blah blah blah blah blah blah blah |     ...blah blah blah blah blah blah blah blah blah blah blah |     ...blah blah blah blah blah blah blah blah blah blah blah |     ...blah blah blah blah blah blah blah blah blah blah bla. |        * Is there a way to omit the vertical line (the column separator) in the first row?   * Or, is there an entirely better way to pull this off? Simplicity is a plus. The two goals are a fixed-width right column, and a vertical line in the empty lower-right cell.


title: Lots and lots of floats

text: I am working on a book on statistical graphics. Needless to say, it has many many figures/floats. I was (at least as a temporary measure) dumping them all at the end, but even this eventually failed and I had to use a \clearpage . This combination is not good, as it leads to 15 pages of text, 15 pages of floats and then more text. Is there a way to automatically dump all floats at the end of each section or subsection?


title: Including appendices problem

text: How do I create appendices chapter in my thesis in a proper way? Currently I am suing the following code:               \begin{appendix}     \renewcommand{\chaptername}{}     \addcontentsline{toc}{chapter}{Appendices}          \chapter{appendices}\label{ch:appendices}     \section {aaa}     \section {bbb}          \end{appendix}      But, when I use this code I have a problem, where LaTeX is verifing the appendices as CHAPTER A in the list of content. How do I get rid of CHAPTER A?


title: TikZ - Changing the "z-index" of backgrounds

text: In the following code, I would like to place the backgrounds under the numbers and not the contrary as it is the case actually. ## Screenshot ![enter image description here](http://i.stack.imgur.com/3yQxg.png) ## Code               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{backgrounds}     \usepackage{graphicx}          % Some customizable styles     \tikzset {       highlight/.style = {yellow, opacity=0.3},       digit/.style = { minimum height = 5mm, minimum width=5mm, anchor=center },       circle/.style = {draw=green!80!black, dotted, very thick},       cross/.style = {red, opacity=.5, shorten >=1mm, shorten <=1mm, very thick, line cap=round},       hint/.style={blue, font=\sf, minimum width=3mm, minimum height=3mm}     }          % Original code-----------------------------------------------------------     % Modified the \node to give a unique name to each one, which is the     % row number, a dash and the column number. E.g: 1-1, 4-5, etc.     \newcounter{row}     \newcounter{col}          \newcommand\setrow[9]{         \setcounter{col}{1}         \foreach \n in {#1, #2, #3, #4, #5, #6, #7, #8, #9} {             \edef\x{\value{col} - 0.5}             \edef\y{9.5 - \value{row}}             \node[digit,name={\arabic{row}-\arabic{col}}] at (\x, \y) {\n};             \stepcounter{col}         }         \stepcounter{row}     }          % New code -------------------------------------------------------------     \def\highlightcell#1#2{     \fill[highlight] (#1-#2.north west) rectangle (#1-#2.south east);     }          \def\circlecell#1#2{     \draw[circle] (#1-#2) circle(4mm);     }          \def\crosscell#1#2{     \draw[cross] (#1-#2.north west) -- (#1-#2.south east);     \draw[cross] (#1-#2.north east) -- (#1-#2.south west);     }          \def\highlightrow#1{     \fill[highlight] (#1-1.north west) rectangle (#1-9.south east);     }          \def\highlighcolumn#1{     \fill[highlight] (1-#1.north west) rectangle (9-#1.south east);     }          \def\hintcell#1#2#3{     \node at (#1-#2) {\hintbox{#3}};     }          \def\highlightrectangle#1#2#3#4{     \begin{pgfonlayer}{background}     \fill[highlight] (#1-#2.north west) rectangle (#3-#4.south east);     \end{pgfonlayer}     }          % UGLY code. Do not read :-)     \def\hintbox#1{     \resizebox{4.5mm}{4.5mm}{%     \tikz[scale=0.3]{%       \def\auxc{0}       \foreach \m in {1,...,9} {         \pgfmathparse{mod(\auxc,3)}         \xdef\x{\pgfmathresult}         \pgfmathparse{-floor(\auxc/3)}         \xdef\y{\pgfmathresult}         \xdef\hintprinted{0}         \foreach \n in {#1} {           \ifnum\n=\m            \node[hint] at (\x,\y) {\n};            \xdef\hintprinted{1}           \fi          }        \ifnum\hintprinted=0           \node[hint, opacity=0.1] at (\x,\y) {\m};        \fi        \pgfmathparse{\auxc+1}        \xdef\auxc{\pgfmathresult}   }       }%      }     }               \begin{document}          \begin{tikzpicture}[scale=.5]       \begin{scope}         \draw (0, 0) grid (9, 9);         \draw[very thick, scale=3] (0, 0) grid (3, 3);              \setcounter{row}{1}         \setrow { }{2}{ }  {5}{ }{1}  { }{9}{ }         \setrow {8}{ }{ }  {2}{ }{3}  { }{ }{6}         \setrow { }{3}{ }  { }{6}{ }  { }{7}{ }              \setrow { }{ }{1}  { }{ }{ }  {6}{ }{ }         \setrow {5}{4}{ }  { }{ }{ }  { }{1}{9}         \setrow { }{ }{2}  { }{ }{ }  {7}{ }{ }              \setrow { }{9}{ }  { }{3}{ }  { }{8}{ }         \setrow {2}{ }{ }  {8}{ }{4}  { }{ }{7}         \setrow { }{1}{ }  {9}{ }{7}  { }{6}{ }              \node[anchor=center] at (4.5, -0.5) {Unsolved Sudoku};         \highlightcell{2}{8};         \highlightrow{8}         \highlighcolumn{5}         \circlecell{5}{2}         \crosscell{8}{1}         \hintcell{5}{5}{2,7,8}         \hintcell{1}{1}{3,4,6,7}         \highlightrectangle{4}{1}{6}{3}       \end{scope}     \end{tikzpicture}          \end{document}      The code comes from this answer


title: Problem with alignment in listings

text: I have a follow up question to this post I am using listings in `beamer`. The content in `listings` is being pushed further left than the other contents on my slides. I am using the code below to correct for it and it works fine. However, within columns the code is now also shifted to the right even though it was perfectly aligned within a comment. How can I prevent this? Here is a minimalist document:               \documentclass{beamer}          \usepackage{remreset}     \usepackage{comment} % end and begin comment     \usepackage{dtklogos} % for \BibTeX                    \usepackage{graphicx} % importing figure     \usepackage{caption}     \usepackage{subcaption}          \usepackage{verbatim} % writing code           \usepackage[english]{babel}          \makeatletter     \@removefromreset{subsection}{section} % creates navigation circles for every slide not section     \makeatother     \setcounter{subsection}{1} % creates navigation circles for every slide not section          \usepackage{listings} % display code on slides; don't forget [fragile] option after \begin{frame}     \usepackage{bera} % font for code in slides     \usepackage{color}     \definecolor{lightgrey}{rgb}{0.92,0.92,0.92} % defining color for listing     \definecolor{darkgreen}{rgb}{0,0.6,0} % defining color for listing          \lstset{language=[LaTeX]TeX,     basicstyle=\small\ttfamily,     texcsstyle=*\bf\color{blue},     numbers=left,     numberstyle=\scriptsize\color{gray},     breaklines=true,     keywordstyle=\color{darkgreen},     commentstyle=\color{red},     morekeywords={},     otherkeywords={$,\{ ,\} , [ , ], & },     frame=leftline,     tabsize=2,     backgroundcolor=\color{lightgrey},     escapeinside=<>,     moretexcs={maketitle, subsection, subsubsection, appendix, tableofcontents,     includegraphics},     }          \usepackage{calc}     \newlength\listingnumberwidth     \setlength\listingnumberwidth{\widthof{00} + 1em}     \lstset{     numbers=left,     xleftmargin=\listingnumberwidth,     numbersep=1em     }          % move text box      \setbeamersize{text margin left=0.5cm}      \setbeamersize{text margin right=0.5cm}          \usetheme{Frankfurt}          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \begin{document}     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%                    %****************************************************     \begin{frame}[fragile]     \frametitle{Tables}     \framesubtitle{The Body}          \begin{enumerate}     \begin{columns}[t]         \begin{column}{3.5cm}             \item The Preamble             \begin{lstlisting}                 \documentclass{}                 ...                 \usepackage{}                 ...                          \title{}                 \author{}                 \date{}             \end{lstlisting}         \end{column}              \begin{column}{6.5cm}             \item The Body             \begin{lstlisting}                 \begin{document}                 \maketitle                      % Body of document                      \end{document}             \end{lstlisting}         \end{column}     \end{columns}     \end{enumerate}          \end{frame}     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \end{document}     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


title: Change boxplot style

text: I'm following this PGFPLOTS manual. At first I was enthusiastic with it. However I'm finding some difficulties on doing even basic things. Now I'm trying to change boxplot style.   Up to now I wrote this code:               \documentclass[11pt,a4paper,twoside,openright]{report}          \usepackage{tikz}     \usepackage{pgfplots}     \usetikzlibrary{pgfplots.statistics}     \usepackage{algorithm}     \usepackage{algorithmic}     \usepackage[T1]{fontenc}      \usepackage[utf8]{inputenc}     \usepackage{color}     \usepackage{graphicx}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{array}      \usepackage{verbatim}     \usepackage{epstopdf}          \usepackage{caption}     \usepackage{subcaption}     \usepackage{tcolorbox}               \begin{document}     \begin{tikzpicture}     \begin{axis}[     ymode=log,     boxplot/draw direction=y,     xtick={1,2,3,4,5,6},     xticklabels={3, 4, 5, 6, 7, 8},     xlabel=number,     ylabel={time[s]},     boxplot/variable width,     boxplot/whisker range={1.57},     ]     \addplot[boxplot,box extend=2]     table[row sep=\\,y index=0] {     data\\     0.090000 \\ 0.440000 \\ 0.120000 \\ 0.060000 \\ 0.320000 \\ 0.230000 \\ 0.440000 \\ 0.020000 \\ 0.150000 \\ 0.180000 \\ 0.000000 \\ 0.290000 \\ 0.000000 \\ 0.110000 \\ 0.260000 \\ 0.110000 \\ 0.000000 \\ 0.450000 \\ 0.040000 \\ 0.140000 \\ 0.030000 \\ 0.120000 \\ 0.140000 \\ 0.310000 \\ 0.060000 \\ 0.060000 \\ 0.110000 \\ 0.120000 \\ 0.120000 \\ 0.120000 \\ 0.130000 \\ 0.010000 \\ 0.400000 \\ 0.010000 \\ 0.030000 \\ 0.170000 \\ 0.000000 \\ 0.100000 \\ 0.150000 \\ 0.160000 \\ 0.060000 \\ 0.100000 \\ 0.010000 \\ 0.600000 \\ 0.260000 \\ 0.110000 \\ 0.150000 \\ 0.220000 \\ 0.140000 \\ 0.010000 \\      };     \addplot[boxplot,box extend=2]     table[row sep=\\,y index=0] {     data\\     0.070000 \\ 0.490000 \\ 0.340000 \\ 0.200000 \\ 0.020000 \\ 1.080000 \\ 6.830000 \\ 0.310000 \\ 0.540000 \\ 0.020000 \\ 0.290000 \\ 0.180000 \\ 0.600000 \\ 0.090000 \\ 0.610000 \\ 1.370000 \\ 0.260000 \\ 0.030000 \\ 2.300000 \\ 0.090000 \\ 3.150000 \\ 0.130000 \\ 0.290000 \\ 0.270000 \\ 1.300000 \\ 0.730000 \\ 0.630000 \\ 0.240000 \\ 10.030000 \\ 0.000000 \\ 0.260000 \\ 0.180000 \\ 3.290000 \\ 2.430000 \\ 1.940000 \\ 0.220000 \\ 0.230000 \\ 0.600000 \\ 1.690000 \\ 0.350000 \\ 3.960000 \\ 0.560000 \\ 9.900000 \\ 0.100000 \\ 0.430000 \\ 0.220000 \\ 0.260000 \\ 0.310000 \\ 0.290000 \\ 0.790000 \\      };     \addplot[boxplot,box extend=2]     table[row sep=\\,y index=0] {     data\\     12.700000 \\ 1.340000 \\ 0.680000 \\ 0.510000 \\ 1.770000 \\ 0.040000 \\ 3.790000 \\ 287.050000 \\ 1.350000 \\ 5.410000 \\ 15.560000 \\ 3.130000 \\ 0.910000 \\ 7.480000 \\ 2.400000 \\ 1.040000 \\ 3.530000 \\ 0.580000 \\ 31.710000 \\ 7.890000 \\ 4.900000 \\ 2.610000 \\ 0.890000 \\ 0.030000 \\ 3.780000 \\ 8.110000 \\ 4.820000 \\ 1.020000 \\ 5.570000 \\ 8.850000 \\ 0.150000 \\ 17.590000 \\ 0.210000 \\ 8.100000 \\ 2.150000 \\ 3.430000 \\ 6.440000 \\ 1.650000 \\ 6.830000 \\ 23.540000 \\ 0.520000 \\ 1.470000 \\ 0.750000 \\ 3.540000 \\ 3.590000 \\ 5.560000 \\ 0.330000 \\ 8.580000 \\ 1.900000 \\ 0.780000 \\      };     \addplot[boxplot,box extend=2]     table[row sep=\\,y index=0] {     data\\     55.720000 \\ 14.910000 \\ 14.950000 \\ 6.010000 \\ 6.530000 \\ 88.300000 \\ 281.500000 \\ 40.150000 \\ 13.410000 \\ 0.910000 \\ 1.650000 \\ 44.320000 \\ 13.410000 \\ 7.330000 \\ 3.510000 \\ 3.440000 \\ 70.400000 \\ 0.750000 \\ 58.200000 \\ 54.880000 \\ 26.450000 \\ 33.760000 \\ 0.700000 \\ 0.050000 \\ 0.290000 \\ 57.120000 \\ 14.300000 \\ 31.110000 \\ 18.560000 \\ 0.480000 \\ 21.330000 \\ 1.150000 \\ 2.220000 \\ 3.880000 \\ 1.780000 \\ 151.250000 \\ 7.770000 \\ 137.920000 \\ 0.500000 \\ 3.010000 \\ 1.990000 \\ 23.180000 \\ 119.590000 \\ 17.500000 \\ 15.870000 \\ 13.630000 \\ 21.850000 \\ 23.530000 \\ 68.720000 \\ 2.900000 \\      };     \addplot[boxplot,box extend=2]     table[row sep=\\,y index=0] {     data\\     1.190000 \\ 1.940000 \\ 13.400000 \\ 7.400000 \\ 267.300000 \\ 5.940000 \\ 11.050000 \\ 6.510000 \\ 2.940000 \\ 5.450000 \\ 5.240000 \\ 231.000000 \\ 4.480000 \\ 0.680000 \\ 311.290000 \\ 77.470000 \\ 621.200000 \\ 139.080000 \\ 1933.590000 \\ 2.520000 \\ 100.960000 \\ 11.020000 \\ 153.430000 \\ 26.670000 \\ 83.840000 \\ 4.310000 \\ 106.340000 \\ 15.900000 \\ 1118.590000 \\ 9.490000 \\ 131.480000 \\ 48.920000 \\ 5.850000 \\ 3.740000 \\ 1.050000 \\ 32.030000 \\ 5.690000 \\ 45.100000 \\ 12.430000 \\ 238.560000 \\ 28.750000 \\ 1.010000 \\ 119.290000 \\ 12.090000 \\ 31.180000 \\ 16.600000 \\ 29.670000 \\ 138.550000 \\ 17.420000 \\ 0.830000 \\      };     \addplot[boxplot,box extend=2]     table[row sep=\\,y index=0] {     data\\     2077.450000 \\ 762.100000 \\ 469.000000 \\ 143.600000 \\ 685.000000 \\ 3600.000000 \\ 20.200000 \\ 249.600000 \\ 269.000000 \\ 0.300000 \\ 0.200000 \\ 779.400000 \\ 1.800000 \\ 146.800000 \\ 1.300000 \\ 32.500000 \\ 137.000000 \\ 2016.400000 \\ 2.300000 \\ 33.900000 \\ 801.600000 \\ 2.200000 \\ 646.900000 \\ 3600.000000 \\ 1184.000000 \\ 627.000000 \\ 500.500000 \\ 238.300000 \\ 477.400000 \\ 3600.000000 \\ 17.800000 \\ 1726.800000 \\ 2.000000 \\ 316.700000 \\ 174.500000 \\ 2802.700000 \\ 335.300000 \\ 201.200000 \\ 1.100000 \\ 247.100000 \\ 2705.100000 \\ 156.900000 \\ 5.100000 \\ 2342.500000 \\ 3600.000000 \\ 3600.000000 \\ 72.700000 \\ 47.400000 \\ 301.200000 \\ 1.600000 \\      };     \end{axis}     \end{tikzpicture}     %\includegraphics[scale=.7]{mio.eps}     \end{document}      Now I want to change fill color, outliers' style (although for some problem they are not shown), median style and so on. The manual writes:               Note that you should customize styles like boxplot/every box if you merely wish to change fill colors.      Being quite beginner I don't understand how to do it. For example at page 406 you can see squared outliers but I cannot see nothing in the code about it. Could someone give me some hint or suggest some (possibly quick) tutorial about this?


title: TeXworks stopped creating pdf's

text: I just installed TeXworks on my MacBook pro and I created a simple `.tex`. It worked just fine and created the PDF anytime I played 'pdfLaTeX'. Now that I've created a new file it doesn't create the PDF anymore. You guys got any idea why?


title: PDF crashes after previewing from LyX

text: I'm currently having a bit of a problem with LyX and have tried to fix it but to no avail, so I decided to post here in an effort to solve it once and for all. So basically, I'm using the latest version of LyX (ver. 2.1.0) on a Windows 7 64-bit build. I installed LyX according to the guidelines and am using MiKTeX as my TeX compiler/package manager. I'm not having any issues with LyX and can generate a PDF from the LyX document without any problems. However, the issue I am having is that once I have the PDF open (in Adobe Acrobat Pro) and if I close the document, all other PDF's I have open (regardless if they were generated from LyX or not) crash. I have no idea why this is happening and perhaps it is not an issue with LyX at all but something to do with my Adobe installation? Also, if I generate a PDF from LyX and leave it open and then make some alterations to my LyX document and generate a new PDF, the old PDF crashes! Can anyone offer some advice on this? Any help would be greatly appreciated as I haven't come across this problem on any forums before. Thanks.


title: negated double turnstile

text: I'm new to the `turnstile` package, and I'm trying to figure out how to get a negated double turnstile sign, like the one with the regular `\nvDash`, but that allows me to have arguments above and below the line, as with `\sdtstile{\mathrm{a}}{b}`. Any ideas?


title: TikZ Layer Invisible

text: I'm trying to place an image in the background using TikZ layers but as soon as I enable the layers option, everything in the background layer disappears. I have no idea why. I found some hints about the main layer but this problem seems to be with the background layer. I also tried the `backgrounds` library. Same problem. (I've had success with layers on this same machine before but I'm no expert.)               \begin{tikzpicture}     \usetikzlibrary{arrows,positioning,fit}                \pgfdeclarelayer{background}     \pgfdeclarelayer{foreground}     \pgfsetlayers{background,main,foreground}          \tikzstyle{userblock}=[draw,rectangle,fill=gray!15,minimum height=4em,minimum width=4em, node distance=6em];              \tikzstyle{tasklabels}=[node distance=5em];       \tikzstyle{compblock}=[draw=blue, fill=blue!15,node distance=5em, minimum height=4em, minimum width=20em, inner sep=1em];                     \node[userblock]                (u1)    {user$_1$} ;      \node[userblock,right of=u1]    (u2)    {user$_2$} ;     \node[userblock, draw=none,fill=none,right of=u2]   (udots) {\ldots} ;     \node[userblock,right of=udots] (un)    {user$_n$} ;               \node[tasklabels,below of=u1]               (l1)    {compiler}          edge [<->] (u1);      \node[tasklabels, below of=u2]              (l2)    {assembler}         edge [<->] (u2) ;        \node[tasklabels, below of=udots]           (ldots)     {...}     ;        \node[tasklabels, below of=un]              (ln)    {database system}         edge [<->] (un) ;             \begin{pgfonlayer}{background}     \node[compblock,fit=(l1)(ln)]               (L1)    {System and Application Programs}         edge [-,dashed] (l1)          edge [-,dashed] (l2)          edge [-,dashed] (ln)  ;     \node[compblock,below of=L1]  (L2) {Operating System}         edge [<->] (L1) ;     \node[compblock,below of=L2]  (L3) {Computer Hardware}         edge [<->] (L2) ;     \end{pgfonlayer}          \end{tikzpicture}


title: Wrapping minted in a Tikz box with a command

text: I'm familiar with the Defining a command for a minted environment question. In addition to defining the mint parameters I also want to wrap the minted code inside a Tikz box for its nice looks. I've tried the following code which obviously doesn't work due to the command issue. But I can't find how combine it with the tools the minted library provides:               \newcommand{\jscode}[1]{     \begin{tikzpicture} \node [mintedbox] (box){ \begin{minipage}{\textwidth}         \begin{minted}{javascript}#1\end{minted}         \end{minipage}  }; \end{tikzpicture}     }      Perhaps superfluous but here is the error I get:               ! Paragraph ended before \FV@BeginScanning was complete.


title: Gnuplot Setting the Number of Key Columns

text: I am having an issue setting the number of key (i.e., legend) columns using Gnuplot with the TiKz terminal. Here's a minimal working example of what I'm talking about:               #!/usr/bin/env gnuplot     set term tikz solid     set key above     set output "out.tex"          plot sin(x) title "Title 1",\     cos(x) title "Title 2",\     sin(x+1) title "Title 3",\     cos(x+1) title "Title 4"      Which outputs this: ![Normal output.](http://i.stack.imgur.com/Khite.png) This image has each of the plot titles in the legend arranged in 4 columns. However, once I add a really long title, it breaks it into 2 columns like so: ![Output with long title.](http://i.stack.imgur.com/7Nh47.png) Originally I thought that by reducing the font size used in the key it would alter the number of columns. For example, one could add `set key font ",2"` to Gnuplot which would change the size of the font in the key. This does reduce the size of the font, but keeps it as 2 columns as opposed to 4 like so: ![Output with set key font.](http://i.stack.imgur.com/qnmPD.png) I've also tried to reduce the size of the title by using LaTeX commands with the Gnuplot script. For example, I added `title "\\tiny{Really Long Title}"` to the Gnuplot script. However, this also only creates 2 columns in the key as opposed to 4 like so: ![Output with LaTeX commands.](http://i.stack.imgur.com/QutHh.png) Ideally what I would like is a way to reduce the size of plot titles in the legend so that they reorganize into more short columns as opposed to few long columns. Any ideas on how to produce these results? **Update: I've tried other terminals (e.g., pdf) and it produces the same results so I'm assuming this is not just related to the TiKz terminal.**


title: vertically align different size images in a figure* environment

text: I have an `figure*` environment with the following               \begin{figure*}         \centerline {         \subfloat[1]{...}         \subfloat[2]{...}         }     \end{figure*}      The images are different heights. How can I vertically align them? i.e. so the centre of each image is next to each other:               _____     |    |     _____       |    |  _  |    |     |    |     |____|     |____|               Fig. 1


title: Deciding whether to end a line with a character or not in lstlisting

text: I need to write a document where there are written inputs and outputs of unix command line interface software (through bash). For example I need to show something like:               $ git log --pretty=format:"%h %ad | %s%d [%an]" --graph --date=short --all     * 1c0435a 2013-08-17 | Aggiunta del telefono (HEAD, master)      * 928406c 2013-08-17 | Il mio primo commit modificato (v1, origin/master)      * 8a3b838 2013-08-17 | Il mio primo commit (v1-beta)      where the first line is the bash prompt, and the 2nd-4th lines are the software's output (git in this case). As you know, bash-prompt's too long lines need to have a back slash \ as carriage return, otherwise bash doesn't count it as one line, but as two different lines. So, if you need to break the 1st line you have to write                $ git log --pretty=format:"%h %ad | %s%d [%an]" \              --graph --date=short --all      Obviously, while you'll want a back slash on prompt's broken lines, you do not want it on output lines. So, even though you DO WANT to break lines 2nd-4th, you don't want the slash: WRONG                  * 1c0435a 2013-08-17 | Aggiunta del \     telefono (HEAD, master)          * 928406c 2013-08-17 | Il mio primo commit \      modificato (v1, origin/master)          * 8a3b838 2013-08-17 | Il mio primo commit \     (v1-beta)      CORRECT                   * 1c0435a 2013-08-17 | Aggiunta del      telefono (HEAD, master)          * 928406c 2013-08-17 | Il mio primo commit       modificato (v1, origin/master)          * 8a3b838 2013-08-17 | Il mio primo commit      (v1-beta)      The perfect solution would be letting me decide where to break the line with a back slash, and where to break it without the back slash. Do you have any ideas on how to accomplish this? I mean something like               moredelim=[is][pbreak=\small\symbol{'134}]{§§}{§§}      (I know this example doesn't work, it's just to let you know what I mean: it's intended to break with \ only lines that I escape within the §§) Here is my lstset:               \lstset{ %     language=xml,                % choose the language of the code     basicstyle=\small\ttfamily,% \footnotesize,       % the size of the fonts that are used for the code     numbers=left,                   % where to put the line-numbers     numberstyle=\footnotesize,      % the size of the fonts that are used for the line-numbers     stepnumber=1,                   % the step between two line-numbers. If it is 1 each line will be numbered     numbersep=5pt,                  % how far the line-numbers are from the code     backgroundcolor=\color{white},  % choose the background color. You must add \usepackage{color}     showspaces=false,               % show spaces adding particular underscores     showstringspaces=false,         % underline spaces within strings     showtabs=false,                 % show tabs within strings adding particular underscores     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     prebreak=\small\symbol{'134},     breakatwhitespace=false,    % sets if automatic breaks should only happen at whitespace     moredelim=[is][\bfseries]{@@}{@@}     }


title: Two subfigures in two rows

text: I would like to have two subfigures but on two rows. I tried with this code:               \documentclass[11pt,a4paper,titlepage]{report}       \usepackage[T1]{fontenc}       \usepackage[latin9]{inputenc}       \usepackage{amssymb}       \usepackage{graphicx}       \usepackage{subcaption}            \begin{document}            \begin{figure}[h!]       \centering       \begin{subfigure}{.5\textwidth}         \centering         \includegraphics[width=1.8\linewidth]{image}           \caption{Caption for image 1}        \end{subfigure}             \begin{subfigure}{.5\textwidth}         \centering         \includegraphics[width=1.8\linewidth]{image}           \caption{Caption for image 2}        \end{subfigure}       \caption{A caption for both images}       \end{figure}       \end{document}        The result is: both figures are aligned to the right side of the page while the caption of each figure is still in the center. Really appreciate if some one could help me! Edit: Image of the result if this could help ![enter image description here](http://i.stack.imgur.com/GZLUP.jpg)


title: How to eliminate the \\ at the end of a longtable

text: I define a marco `\mycmd` like this               \newcommand\mycmd[2]{{some complicated format #1}&{some complicated format #2}\\}      to simply the input. So I can just write:               sometext          \begin{longtable}{cc}       \mycmd{contentA1}{contentA2}       \mycmd{contentB1}{contentB2}       \mycmd{contentC1}{contentC2}       ...      But, at the end of the longtable, as                 \mycmd{contentZ1}{contentZ2}     \end{longtable}          some text      there is a white space between longtable and text. How can I eliminate the space by just setting a command at the end of the last `\mycmd` like                 \mycmd{contentZ1}{contentZ2}\avalidmacro     \end{longtable}          some text      to let the table near to the text? \---Resupply MWE for comparison---               \setlength{\LTpre}{0pt}\setlength{\LTpost}{0pt}%     \begin{longtable}{cc}       sample table text&sample table text\\     \end{longtable}          main text main text main text main text          \begin{longtable}{cc}       sample table text&sample table text     \end{longtable}          main text main text main text main text          main text main text main text main text      \---Edit for Yiannis---               \documentclass{article}     \usepackage{longtable,xcolor}     \def\fqdi{fqd}     \def\fqdv{\fqdi\ \fqdi\ \fqdi\ \fqdi\ \fqdi\ }          \begin{document}     \setlength{\LTpre}{0pt}\setlength{\LTpost}{0pt}%     \itshape      \fqdv\fqdv          \begin{longtable}{cc}     \color{red}\fqdv\fqdv&\color{red}\fqdv\fqdv\\     \end{longtable}          \fqdv\fqdv          \begin{longtable}{cc}     \color{red}\fqdv\fqdv&\color{red}\fqdv\fqdv     \end{longtable}          \fqdv\fqdv          \fqdv\fqdv          \begin{tabular}{cc}     \color{blue}\fqdv\fqdv&\color{blue}\fqdv\fqdv     \end{tabular}          \fqdv\fqdv     \end{document}      The red is the text in longtable, the blue is the text in tabular, black the main text.   * You will find a **slightly** space added to the first line's red and the second line's black.   * The red is not centered between lines, while the blue is. Queation:   1. eliminate the effect of `\\`;   2. make `longtable`'s text same as `tabular`'s text, centering between lines.


title: Citation Style in LyX

text: I am using LyX on Max OS X. When I insert a citation and I compile the document I get a reference number between square brackets that matches the number of the reference in the bibliography section. e.g. Lorem ipsum dolor sit amet [5]. How do I display the above reference in the following style: e.g. Lorem ipsum dolor sit amet (Smith et ala). Thank you.


title: Issue in the package "nomencl"

text: When I issue the command               makeindex thesis22May.nlo -s nomencl.ist -o thesis22May.nls      in Dos prompt, it creates `thesis22May.nls` file which I use during compilation of the main `thesis22May.tex` to get the nomenclature printed. But when add in my Tex code               \nomenclature{$|\mathbb{L}|$}{Cardinality of the set $\mathbb{L}$}      it rejects this entry from the `.nls` file and in the log file it says "               Unknown specifier lethead_prefix.        Then I tried removing `|`, then it works fine. Anybody knows this issue in the package `nomencl` and any solutions?


title: Bad interaction between comment package and enumerate environment?

text: I'm trying to use the `comment` package inside an `enumerate` environment, and it produces a compilation error. Minimal example:               \documentclass{article}     \usepackage{comment}          \specialcomment{com}{}{}     \excludecomment{com}          \begin{document}     \begin{enumerate}     \item Outside.       \begin{com}         Inside.       \end{com}     \end{enumerate}     \end{document}      This produces the following error:               Runaway argument?     ! File ended while scanning use of \next.     <inserted text>                      \par       For reference, everything works fine without `enumerate`, as in the following example:               \documentclass{article}     \usepackage{comment}          \specialcomment{com}{}{}     \excludecomment{com}          \begin{document}     Outside.     \begin{com}       Inside.     \end{com}     \end{document}      Is this a known problem? I'm having trouble finding anything about it ("comment" isn't exactly a Google-friendly term to search for…).


title: Memoir headers with different font shapes

text: I'm using the `ruled` pagestyle under `Memoir` with small caps in the even page headers:               \makeevenhead{ruled}{\scshape\leftmark}{}{}      Is there a way to set only the title name in small caps and not the number in front of it. So if the header is "1. My chapter name" I want "My chapter name" in small caps but not "1."


title: Change footer in beginning of chapters

text: I want the footer of all pages to be "Page N°X" on the right. I used this:               \usepackage{fancyhdr}     \pagestyle{fancy}     \fancyhf{} % clear all header and footer fields     \fancyhead[R]{\leftmark}     \fancyfoot[R]{\footnotesize Página N$^\circ$ \thepage\ }     \renewcommand{\headrulewidth}{0pt}     \renewcommand{\footrulewidth}{0pt}      It works on every page but the chapter beginning ones.


title: Reset nodestyle for tikzpicture in fancytikzposter

text: # Problem I'm using the gorgeous package `fancytikzposter` to typeset my scientific posters. There I'd like to use `tikzpicture` to make sketches. Unfortunately the default Ti _k_ Z styles are overwritten, such that I get awkwardly styled nodes. # Minimal working example To compile, you need to obtain `fancytikzposter.sty`. Compile with `pdflatex`               \documentclass{a0poster}     \usepackage{fancytikzposter}      \begin{document}     \begin{tikzpicture}     \initializesizeandshifts     \blocknode%     {A Ti\textit{k}Z picture}%     {         \begin{tikzpicture}             \draw (0,0,0) -- (1,0,0) node[below] {$y$}                 (0,0,0) -- (0,1,0) node[right] {$z$}                 (0,0,0) -- (0,0,1) node[left] {$x$};         \end{tikzpicture}     }     \end{tikzpicture}     \end{document}      # Output (cropped) > ![enter image description here](http://i.stack.imgur.com/HsaoT.png) **EDIT:** Bounty goes to the one, who fixes `fancytikzposter`.


title: bibtex apacite problem

text: I have a problem with bibtex: it doesn't seem to find my references from my .bib-file. The Errors I get:               [BibTeX] mit Rückgabewert 2 beendet      and:               LaTeX Warning: Citation `Murty2010' undefined on input line 109.     LaTeX Warning: There were undefined references.      My file looks like this:               \documentclass[12pt,a4paper]{article}     \usepackage{apacite}     \begin{document}     blabliblu\cite{Murty2010}     \bibliographystyle{apacite}     \bibliography{library.bib}     \end{document}      And my library.bib looks like this:               Automatically generated by Mendeley 1.8.5     Any changes to this file will be lost if it is regenerated by Mendeley.          @article{Murty2010,     abstract = {Over the past decade, fMRI techniques have been increasingly      used to interrogate the neural correlates of successful emotional memory      encoding. These investigations have typically aimed to either characterize      the contributions of the amygdala and medial temporal lobe (MTL) memory      system, replicating results in animals, or delineate the neural correlates      of specific behavioral phenomena. It has remained difficult, however, to      synthesize these findings into a systems neuroscience account of how      networks across the whole-brain support the enhancing effects of emotion on      memory encoding. To this end, the present study employed a meta-analytic      approach using activation likelihood estimates to assess the anatomical      specificity and reliability of event-related fMRI activations related to      successful memory encoding for emotional versus neutral information. The      meta-analysis revealed consistent clusters within bilateral amygdala,      anterior hippocampus, anterior and posterior parahippocampal gyrus, the      ventral visual stream, left lateral prefrontal cortex and right ventral      parietal cortex. The results within the amygdala and MTL support a wealth      of findings from the animal literature linking these regions to arousal-     mediated memory effects. The consistency of findings in cortical targets,      including the visual, prefrontal, and parietal cortices, underscores the      importance of generating hypotheses regarding their participation in      emotional memory formation. In particular, we propose that the amygdala      interacts with these structures to promote enhancements in perceptual      processing, semantic elaboration, and attention, which serve to benefit      subsequent memory for emotional material. These findings may motivate      future research on emotional modulation of widespread neural systems and      the implications of this modulation for cognition.},          author = {Murty, Vishnu P and Ritchey, Maureen and Adcock, R Alison and      LaBar, Kevin S},     doi = {10.1016/j.neuropsychologia.2010.07.030},     file = {:home/alarith/Dokumente/artikel/Murty et al. - 2010.pdf:pdf},     issn = {1873-3514},     journal = {Neuropsychologia},     keywords = {Brain,Brain Mapping,Brain: blood supply,Brain:      physiology,Emotions,Emotions: physiology,Female,Functional      Laterality,Functional Laterality: physiology,Humans,Image Processing,      Computer-Assisted,Image Processing, Computer-Assisted: methods,Magnetic      Resonance Imaging,Male,Memory,Memory: physiology,Meta-Analysis as      Topic,Neuropsychological Tests,Oxygen,Oxygen: blood,Photic      Stimulation,Photic Stimulation: methods},     month = oct,     number = {12},     pages = {3459--69},     pmid = {20688087},     title = {{fMRI studies of successful emotional memory encoding: A      quantitative meta-analysis.}},     url = {http://www.pubmedcentral.nih.gov/articlerender.fcgi?artid=2949536\&     tool=pmcentrez\&rendertype=abstract},     volume = {48},     year = {2010}     }     @article{Fukuda2010,     ...     }      I'm using Kile on a Kubuntu 12.04 system with apacite installed. Any ideas?


title: how to correctly display "deutsche Schreibschrift" in equations

text: It's possible to use the so-called "Suetterlin" (or deutsche Schreibschrift?) fonts in latex, see http://comments.gmane.org/gmane.comp.tex.german/15805 I find these fonts correspond more to what (some) people use to denote ideals (especially, the a g p and q). However these font do not come with math mode support, in particular when one use them as indices or exponents they are not automatically resized. Is there any way to make this resize automatic? EDIT: Combining `\DeclareSymbolFont` with `\DeclareSymbolFontAlphabet` seems it would be the right way to go, but the font is then about 60% the size it should be. Thus my current (unsatisfactory) solution uses `\mathchoice`, as it allows to scale the font as desired (well more or less). Here is a copy paste of a file to compile:               \documentclass{article}     \usepackage{suetterl}     \newcommand{\ds}[1]{%       \ifmmode         \mathchoice{\hbox{\upshape \Large\suetterlin #1}\,}{\hbox{\upshape\Large\suetterlin #1}\,}{\hbox{\upshape\large\suetterlin #1}\,}{\hbox{\upshape \small\suetterlin #1}\,}%       \else         {\suetterlin #1}       \fi     }     \DeclareSymbolFont{deusch}{T1}{suetterl}{m}{n}     \DeclareSymbolFontAlphabet{\mathds}{deusch}     \begin{document}     bla bla bla      $\ds{a}^2 + \ds{b}^2 = \ds{c}^2$      bla bla bla      $\mathds{a}^2 + \mathds{b}^2 = \mathds{c}^2$      bla bla bla.          bla bla bla      $\ds{a}^{\ds{a}^{\ds{a}}} + \ds{b}^{\ds{b}^{\ds{b}}} = \ds{c}^{\ds{c}^{\ds{c}}}$      bla bla bla      $\mathds{a}^{\mathds{a}^{\mathds{a}}} + \mathds{b}^{\mathds{b}^{\mathds{b}}} = \mathds{c}^{\mathds{c}^{\mathds{c}}}$      bla bla bla.     \end{document}


title: Texstudio and Rnw Files

text: Is there any way in Texstudio, for the document tree to detect Rnw files called within a knitr chunk? For example, the following would be ignored:               <<MYCHUNK,child='./Myfile.Rnw'>>=     @      However, the following is a bit of a hack, the commented out `input` command still gets picked up in the tree, but naturally, it isn't used when the document is typeset.               <<MYCHUNK,child='./Myfile.Rnw'>>=     @     %\input{./Myfile.Rnw}      Even though the above workaround does the job, it is annoying me having all these commented out files scattered around my documents.... Incidentally, if someone from Texstudio is reading this, one of the great features of Texstudio is the search feature within the document preview, ie you can search, then press alt and click on any word and it will take you to the exact point in the source file, however, this is problematic when Rnw files are involved, since it takes you to the .tex equivalent of the Rnw file, not the Rnw file which ultimately "produces" the tex file.


title: How to get bigsqcap in the right size

text: I would like to use the upside-down version of `\bigsqcup` to denote its dual operation. The `stmaryrd` package provides that symbol, `\bigsqcap`, but I have found that these two symbols are rendered in different sizes. Below are sample code and its output.               \documentclass[12pt]{article}     \usepackage{mathptmx}     \usepackage{stmaryrd}     \begin{document}     $\bigsqcup \bigsqcap \bigcup \bigcap$     \end{document}      ![enter image description here](http://i.stack.imgur.com/u0J29.png) As you can see, `\bigsqcap` is clearly the odd one out, being slightly bigger than the rest. Does anyone know how to get `\bigsqcap` in the same size as `\bigsqcup`? I need to use the `mathptmx` font, so I would appreciate a solution that retains it.