title: Baposter fontscale default value?

text: I want to create a poster with font size 9mm and I use a baposter template. In the .cls there is the scaling factor fontscale and I have seen that increasing the factor the font size gets smaller. What is the default value? Or how may I know the font size of the outcome after the scale up?


title: Biber/BibLaTeX \printbibliography causes "undefined control sequence" in the proceeding line

text: I'm using biblatex with biber as the backend to write my document. Without `\printbibliography`, all the citations work perfectly well, and appear in the document, so I assume that my `bibliography.bib` file is fine. The problem comes, however, when I include the line `\printbibliography` at the end of my document (just before `\end{document}`): suddenly every time I try to compile I get _"undefined control sequence"_ referencing whatever line is after `\printbibliography`. Following suggestions elsewhere on the internet, I combed my document for "smart" quotation marks, and other weird characters, but there aren't any. My citations are downloaded from ADSABS, with the occasional `@ONLINE` resource, too. As I said, though, all the references work fine, it's just the `\printbibliography` command that bails. To illustrate (I'm not going to paste the entire document here unless someone thinks it will be helpful):               \usepackage[style=authoryear-icomp,sorting=anyt]{biblatex}     \addbibresource{bibliography.bib}          ...          \printbibliography


title: Problem with mesomeric effect in chemfig

text: I'm trying to draw mesomeric effect for a molecule using `chemfig` I would like to create something like this: ![enter image description here](http://i.stack.imgur.com/lCwkx.png) From the documentation page (see chapter 11 "Representing electron movements")seems easy but I've spent the last 4 hours without any success. The first arrow is the most difficult because goes form lewis pair to the bond.               \documentclass[12pt,a4paper]{article}     \usepackage[utf8]{inputenc}     \usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}     \usepackage{chemfig}     \usepackage{tikz}     \setlewis{4pt}{0.8em}{black}     \begin{document}     \chemfig{*6((-H_{2}@{sb1}\lewis{26,N}{\hspace{7mm}\scriptstyle})@{dncc}=-=(-N=N-*6(=-=(-OH)-=-))-=-=)}     \chemmove{     \draw[->](sb1)..controls +(90:4mm) and +(45:4mm)..(dncc);}     \end{document}      This is the molecule without anything else:               \chemfig{*6((-H_{2}\lewis{26,N}{\hspace{7mm}\scriptstyle})=-=(-N=N-*6(=-=(-OH)-=-))-=-=)}      If possible I would like an explanation of my faults!


linenumbers of minted are not shown in beamer if i use infolines as an outertheme example:               \documentclass{beamer}     \usepackage{minted}          \usetheme{Warsaw}     \useoutertheme{infolines}     \addtobeamertemplate{headline}{}{\vskip2pt}          \begin{document}     \begin{frame}[fragile]{Hello}     \begin{minted}[linenos]{c}     #include <stdio.h>          int main() {         printf("hello\n");     }     \end{minted}     \end{frame}     \end{document}      any suggestions?


title: Move cell with rowspan on next page

text: I use multirow package and ltablex package for multipage tables. I have a problem, when cell with rowspan breaks between pages. Then horizontal lines are not drawn http://web-engineering.com.ua/Main.pdf As you can see there, hline on bottom of first page and hline on start of second page does not exists. I use \cline for drawing line. The problem is that I do not want to hardcode \hline in the last row ot the page, because when text before the table is changed, lines will be drawn over the merged cell http://web-engineering.com.ua/Main1.pdf How can I force lines to be drawn at the beginning and ending of each page?               \begin{document}     \section{Section}          \setlength{\newtblsparewidth}{\linewidth-2\tabcolsep-2\tabcolsep-2\tabcolsep-2\tabcolsep-2\tabcolsep}     \setlength{\newtblstarfactor}{\newtblsparewidth / \real{4}}          \begin{tabularx}{\linewidth}{l|l|l|X|}\nobreakhline      \multicolumn{1}{|m{0.13\newtblsparewidth}}{\multirow{9}{0.13\newtblsparewidth}{\textbf{tt}}} &      \multicolumn{1}{|m{0.35\newtblsparewidth}}{eadi=<gale\_smrvue>} &      \multicolumn{1}{|m{0.15\newtblsparewidth}}{} &      \multicolumn{1}{|m{0.37\newtblsparewidth}|}{} \\ \cline{2-4}           \multicolumn{1}{|l}{} & \multicolumn{1}{|m{0.35\newtblsparewidth}}{zhim=<zpayw>[,<cckd>][,<ssr>]} &      \multicolumn{1}{|m{0.15\newtblsparewidth}}{} &      \multicolumn{1}{|m{0.37\newtblsparewidth}|}{} \\ \cline{2-4}           \multicolumn{1}{|l}{} &      \multicolumn{1}{|m{0.35\newtblsparewidth}}{kcep=<btgzqgb>[,<klmxacfq>]} &      \multicolumn{1}{|m{0.15\newtblsparewidth}}{Fit          FvlB          FbmH,hrr          FlvV,cnhg          FaoBH,llu          FjvBV,ijen     } & \multicolumn{1}{|m{0.37\newtblsparewidth}|}{} \\ \cline{2-4}           \multicolumn{1}{|l}{} &      \multicolumn{1}{|m{0.35\newtblsparewidth}}{uvemlwsx=<gmjy>,<lfd>,<wc>,<id>} &      \multicolumn{1}{|m{0.15\newtblsparewidth}}{} & \multicolumn{1}{|m{0.37\newtblsparewidth}|}{} \\ \cline{2-4}           \multicolumn{1}{|l}{} &      \multicolumn{1}{|m{0.35\newtblsparewidth}}{faxjuwoz=osuwwayo|xwgvd|zxnb} &      \multicolumn{1}{|m{0.15\newtblsparewidth}}{} &      \multicolumn{1}{|m{0.37\newtblsparewidth}|}{} \\ \cline{2-4}           \multicolumn{1}{|l}{} & \multicolumn{1}{|m{0.35\newtblsparewidth}}{oarfeqjem=<gakx>} &      \multicolumn{1}{|m{0.15\newtblsparewidth}}{} &      \multicolumn{1}{|m{0.37\newtblsparewidth}|}{} \\ \cline{2-4}           \multicolumn{1}{|l}{} &      \multicolumn{1}{|m{0.35\newtblsparewidth}}{vajuwpzmk=<taur>} &      \multicolumn{1}{|m{0.15\newtblsparewidth}}{} &      \multicolumn{1}{|m{0.37\newtblsparewidth}|}{} \\ \cline{2-4}           \multicolumn{1}{|l}{} & \multicolumn{1}{|m{0.35\newtblsparewidth}}{vajuwpzmk=<taur>} &      \multicolumn{1}{|m{0.15\newtblsparewidth}}{} &      \multicolumn{1}{|m{0.37\newtblsparewidth}|}{} \\ \cline{2-4}          \multicolumn{1}{|l}{} &      \multicolumn{1}{|m{0.35\newtblsparewidth}}{vajuwpzmk=<taur>} &      \multicolumn{1}{|m{0.15\newtblsparewidth}}{} &      \multicolumn{1}{|m{0.37\newtblsparewidth}|}{     Id sqpvuv\{hdu\}, jvet aoi eadthy xvy skwlefrhyix tcsb ag nlbreq\{ajt, uqsr, mqjwn, vat, mi, ru,\} flx. ayn aemygedw aem qyadippy zm lvmehv(1/72 wcai).           Oayvflulp xitky sanghd fhpq cc vkxrnxzowvt ah a qexom qy limrqp aw 100\% zyen. Tagi leaayban yw ggmaldb xua Ajdma Aubxsag/Rlatnt. Ie rudt uaqs, qx ydicegx aepaqqus nanzz gm slempx, Ahgpxad oablrfarpj hp ax:          V(kt)=V\(lysk\_fed\)\(aqi{}\)72.0/(qggx\_mwvpl)          Twb dbtsla{hmys\_fjqyu} wacaxmlnt sl fpgv ac wddqaw ‘Pprdbpwhznf/Patj Dirwuaf/Rpmqvcwqcz’ ngdadcsu (gukd bj Aqhdaap auw PDF-XCjazmw Vqhymy).     } \\ \hline          \end{tabularx}          \end{document}


What package does this symbol come from? I've tried Detexify without success. ![Unknown font](http://i.stack.imgur.com/ClvNr.png)


title: Plotting a curve with given values and derivative values

text: Is there a way, using TikZ, to plot a smooth curve satisfying               f( 0) = -1,   f'( 0) =  0     f( 2) =  2,   f'( 2) = -1       f(-2) = -1,   f'(-2) =  1      Of course, I could find a polynomial satisfying the given conditions, but I'd rather just feed the conditions to TikZ and let it do the work.


title: How to create a crossword puzzle in LaTeX?

text: As the title already states I'd like to know how to create a crossword puzzle in LaTeX. Any ideas?


title: Preview mode of AucTeX fails on displayed equations but not on inline math

text: I'm trying to use the preview mode in AucTeX, but for some reason the rendering of equations are failing but inline math is rendering fine. When I look inside the directory with the preview images I see that the `.png` files which correspond to the equations don't exist. Why would only the math inside the equation environments fail to be rendered?


title: Widths of digits and letters

text: Within a minipage environment (of a fixed length) I have a list; each list item consists of a phrase followed by an equal sign followed by a percent. The first percent is 60%. I want (1) each phrase left aligned (within the minipage) (2) equal signs aligned, (3) the percent is right aligned (within the minipage) and (4) have only one inter word space between the equal sign and the first percent. In the following attempt, I have tasks (1), (3) and (4) completed but not (2).               \documentclass[12pt]{report}     \begin{document}     \begin{flushleft}     \begin{minipage}{4in}     Midterm Exam \hfill= 60\% \\     Home-work \hfill= 5\% \\     Quizzes\hfill= s\% \\     Report \hfill= S\% \\     Final Exam\hfill= SS\%      \end{minipage}     \end{flushleft}     \end{document}      ![enter image description here](http://i.stack.imgur.com/l1atC.png) After spending some time trying to figure out widths of letters and digits, and then spending some more time here at TeX.SX I found a solution. (The following solution also provides the widths of some letters and a digit as a bonus.)               \documentclass[12pt]{report}     \begin{document}     \begin{flushleft}          \newlength{\six}     \settowidth{\six}{6}          \newlength{\s}     \settowidth{\s}{s}          \newlength{\eS}     \settowidth{\eS}{S}          \begin{minipage}{4in}     Midterm Exam \hfill= 60\% \\     Home-work \hfill= \hspace{\six}5\% \\     Quizzes\hfill= \hspace{-\s}\hspace{\six}\hspace{\six}s\% \\     Report \hfill= \hspace{-\eS}\hspace{\six}\hspace{\six}S\% \\     Final Exam\hfill= \hspace{-\eS}\hspace{-\eS}\hspace{\six}\hspace{\six}SS\% \\     \end{minipage}          The width of S = \the\eS\\     The width of 6 = \the\six\\     The width of s = \the\s          \end{flushleft}     \end{document}      ![enter image description here](http://i.stack.imgur.com/WimP3.png) My question is: Is this the best way to do this? I assume not. Then what would be the best way to do this? (P.s. I tried a tabular environment within the minipage environment. It introduces an left indent that I could not get rid of.)


title: Adjusting the look of ToC

text: I need to make my Table of Contents entries like this: (With the heading table of contents at the center). ![enter image description here](http://i.stack.imgur.com/zqYPr.png) The things I was able to achieve till now: i) Modifying the title of ToC   ii) Modifying or adding subtitles Now How do I insert a table and put all these entries in it. In the ordinary ToC, Expt. No,Name,Page will be there but how do I insert the date automatically? The code in which I want to embed this:               \documentclass[12pt,oneside]{book}     \usepackage{libertine}     \usepackage{background}     \usepackage{lipsum}     \usetikzlibrary{calc}     \backgroundsetup{     angle=0,     scale=1,     opacity=1,     color=black,     contents={%     \begin{tikzpicture}[remember picture, overlay]     \node[anchor=center,inner sep=0pt] at ($(current page.north west) + (17.3cm,-1.5cm)$) {\thepage};     \end{tikzpicture}%     }     }          \begin{document}     \addtocounter{chapter}{1}   %% do this at the start of each expt.     \pagestyle{empty}   %% this is needed     \begin{tikzpicture}[remember picture, overlay]     \node[anchor=center,inner sep=0pt,font=\Large\bfseries] at ($(current page.north west) + (4.7cm,-2.7cm)$) {\thechapter};     \node[anchor=center,inner sep=0pt,font=\Large\bfseries] at ($(current page.north) + (0cm,-2.7cm)$) {Study of Oracle};     \node[anchor=center,inner sep=0pt,font=\Large\bfseries] at ($(current page.north west) + (18cm,-2.7cm)$) {5.04.2014};     \end{tikzpicture}%     \lipsum[4-10]     \end{document}      How do I do that? Here is my MWE:               \documentclass[12pt,oneside]{book}     \usepackage[linktocpage=true]{hyperref}     \renewcommand\contentsname{Table of Contents}          \begin{document}      \begin{titlepage}         \addtocontents{toc}{~\hfill\textbf{Page}\par}         \addtocontents{toc}{~\textbf{Name of the Experiment}}         \setcounter{tocdepth}{0}         \tableofcontents      \end{titlepage}      \chapter{Hello World}      ....      \chapter{Hi}      .....     \end{document}      And this is its output:               ![enter image description here][2]      Also, when I compile my code, I get an error: ![enter image description here](http://i.stack.imgur.com/5cFoM.png) But I am able to view the pdf. What should I do to make my ToC as per my requirements? Dont know why my 2nd image is not getting uploaded. The ToC will contain only chapter names (no sections or subsections), the date it was written and its page number and the chapter number as expt.no. I am using the book class.For Hyperlinks, I have added the page numbers as references already in my code.


title: Hebrew words causes strange errors with ConTeXt IV / LuaTeX

text: I am experiencing strange problems with ConTeXt IV / LuaTeX. I have some hebrew words which continues to throw following errors: `error: /usr/share/texmf/tex/context/base/font-otn.lua:1809: attempt to index local 'chainlookup' (a nil value)` My tools are from Adam Reviczky's Ubuntu PPAs (links can be found here) and I just updated them to make sure I have the newest set. Here is my test file. Cardo font is available from here. Unfortunately the link for 0.99 version was dead so there may be different errors with newer version. I also tried with Ezra SIL font which is available for Ubuntu as `ttf-sil-ezra` package and actually got more errors. With older standalone installation of ConTeXt IV this works. Any advice?               \definefontfeature[hebrew][arabic][script=hebr]     \definefont[hebrew][name:cardo*hebrew]     \starttext     \textdir TRT     \hebrew          סוּסַ֫יִם   % This causes error.     סוּסַ֫יִ    % If I remove one character it works again. (Error with Ezra SIL)     ם   % However that character by itself does not cause error.          סוּסָתַ֫יִם % This causes error.     סוּסָתַ֫יִ  % If I remove one character it works again. (Error with Ezra SIL)     ם   % However that character by itself does not cause error.          סוּסָֽתְךָ  % This causes error.     סוּסָתְךָ   % If I remove one character it works again.     ֽ   % However that character by itself does not cause error.          \stoptext


title: How to add a new font size to a .cls file?

text: I use the osudissert96.cls file. which contains the following               %     % $Id: osudissert96.cls,v 1.2 1998/11/02 00:45:41 hanes Exp $     %     % Modified:  1996/08/01 mdh to conform to 1995/1996 GS Format     % Renamed:   1996/10/11 mdh to allow for backwards compatability.     %     % Original Author: Manas Mandal          %% This is the LaTeX2e document class for OSU dissertations according     %% to the 1999 Graduate School specifications     %%     %% This class is based on the standard LaTeX class `report'.          \def\rcsStripFile$#1: #2,v ${#2}     \def\rcsStripDate$#1: #2 #3 ${#2}     \def\rcsStrip$#1: #2 ${#2}          \NeedsTeXFormat{LaTeX2e}     \ProvidesClass{osudissert96}[\rcsStripDate$Date: 1998/11/02 00:45:41 $ 1996 OSU Thesis/Dissertation Class]     \typeout{*** Conforms to the 1996 Graduate School Format ***}     \typeout{Version \rcsStrip$Revision: 1.2 $  of \rcsStripFile $RCSfile: osudissert96.cls,v $ (\rcsStripDate$Date: 1998/11/02 00:45:41 $)}          %% Dissertation style options (other than `report' options) are     % phd (default) | dma | masters | ms | ma     % osudraft (default is off)          \newif\if@phd\@phdtrue     \newif\if@dma\@dmafalse     \newif\if@masters\@mastersfalse     \newif\if@ms\@msfalse     \newif\if@ma\@mafalse     \newif\if@osudraft\@osudraftfalse          \DeclareOption{phd}{\@phdtrue}     \DeclareOption{dma}{\@dmatrue\@phdfalse}     \DeclareOption{masters}{\@masterstrue\@phdfalse}     \DeclareOption{ms}{\@mstrue\@phdfalse}     \DeclareOption{ma}{\@matrue\@phdfalse}     \DeclareOption{osudraft}{\@osudrafttrue}          \ExecuteOptions{phd}          %% Only allowed `report' options from the full list (see page 177 of     %% LaTeX book) are shown below. Some options are disallowed because     %% they don't make sense in an OSU dissertation. Options marked     %% ``heck, why not?'' mean OSU Grad School's ``Ugly Brown Book''     %% doesn't care as far as we know, so let's allow the user some     %% creativity. If a default option is the only alternative, specifying     %% it will make no difference.          % 12pt (default)     % letterpaper (default)     % final (default) | draft     % oneside (default) | twoside (can be used for the TR form)     % openany (default) | openright     % onecolumn (default; twocolumn not allowed by Grad School. MM. 1994/08/12)     % titlepage (default)     % openbib (heck, why not?) mdh - there's a good reason. 1996/04/28     % leqno (heck, why not?)     % fleqn (heck, why not?)               %% Switch off remaining `report' options that won't be allowed.     %\DeclareOption{14pt}{\OptionUsed}          \DeclareOption{10pt}{\OptionNotUsed}     \DeclareOption{11pt}{\OptionNotUsed}     %\DeclareOption{12pt}{\OptionNotUsed}          % default     %\DeclareOption{letterpaper}{\OptionNotUsed}   % default     \DeclareOption{legalpaper}{\OptionNotUsed}     \DeclareOption{executivepaper}{\OptionNotUsed}     \DeclareOption{a4paper}{\OptionNotUsed}     \DeclareOption{a5paper}{\OptionNotUsed}     \DeclareOption{b5paper}{\OptionNotUsed}     \DeclareOption{landscape}{\OptionNotUsed}     %\DeclareOption{final}{\OptionNotUsed}     %\DeclareOption{draft}{\OptionNotUsed}     %\DeclareOption{oneside}{\OptionNotUsed}     %\DeclareOption{twoside}{\OptionNotUsed}     %\DeclareOption{openright}{\OptionNotUsed}     %\DeclareOption{openany}{\OptionNotUsed}     %\DeclareOption{onecolumn}{\OptionNotUsed}     \DeclareOption{twocolumn}{\OptionNotUsed}     %\DeclareOption{titlepage}{\OptionNotUsed}     % default     \DeclareOption{notitlepage}{\OptionNotUsed}     \DeclareOption{openbib}{\OptionNotUsed}     %\DeclareOption{leqno}{\OptionNotUsed}     %\DeclareOption{fleqn}{\OptionNotUsed}               %% The default action for any option is to pass it to the report class.          \DeclareOption*{\PassOptionsToClass{\CurrentOption}{report}}               %% Execute the options.          \ProcessOptions               %% Load the report class in 12pt, letterpaper, titlepage (although we     %% shall redefine maketitle later), onecolumn      %\newcommand{\large}{\fontsize\@xiipt{14pt}\selectfont}     \LoadClass[12pt,letterpaper,titlepage,onecolumn]{report}                    %\RequirePackage{newdissert}          %% MM. 1994/07/26.     % Requiring/using newdissert as a package causes some problems because     % the following latex209 variables     %       \footheight, \@maxsep, \@dblmaxsep     % are not available in LaTeX2e. (I carefully read classes.dtx and     % clsguide.tex, and concluded that those 3 variables won't matter.)     % Also, it is a mistake to redefine \newcounter for     %       part, chapter, section, subsection, subsubsection, paragraph     %       figure, table               \RequirePackage{osudissert96-mods}          %% MM. 1994/07/26.     % Blindly including all the newdissert style files into newdissert-mod,     % and commenting the above definitions makes it work almost as good     % as 2e in 209 compatible mode with the newdissert style.          %% MM. 1994/07/31.     % Fixed newdissert-mod. Result is exactly the same as what newdissert.sty     % produces using latex209, and that is the document that meets grad     % school rules. Fixing newdissert-mod, however, caused it to be     % unusable from 209. Ultimately, osudissert.cls should become a single     % file to be used with 2e, unless others have other ideas .....     % \documentclass[12pt,letterpage,titlepage]{report} followed by     % \usepackage{newdissert-mod} does the same thing as     % \documentclass{osudissert} which I prefer.          %% MM. 1994/08/09     % Many changes to newdissert-mod. Result is exactly the same as what     % newdissert.sty produced. Most commands are now ``renew''ed versions     % of report.cls commands.          %% MM. 1994/08/12.     % Added compatibility check to newdissert-mod so that, in compat mode,     % \documentstyle[12pt,newdissert-mod]{report} works well enough.          %% MM. 1994/08/13.     % Added all these cool initializations for degree options. Since I can't     % force exactly one option to be passed, I make phd option most important          %% MM. 1994/08/17. Cleaned up newdissert-mod. Used (re)newenvironment     %% whenever possible. Used chapter* wherever appropriate. Did leave     %% a few defs in there, esp. Al's stuff and a few variables. Oh yes,     %% fixed a few bugs that came in because I redid all the definitions.          %% MM. 1994/08/22. Changed some stuff in ms abstract.     %% Also added osudraft option.          %% MM. 1994/08/23. Changed float/text spacing yet again.          %% MM. 1995/02/11. Made Index single-space.          %% MM. 1995/02/18. Added co-advisor support to newdissert-mod.          %% MM. 1995/02/23. Fixed osudraft.          %% MM. 1995/03/08. Changed quotations to single-space. Fixed widows in toc.          % Defaults of newdissert-mod again, just for the heck of it.     \def\@degree{Doctor of Philosophy}     \def\@committee{Dissertation}     \def\@thesis{DISSERTATION}     \def\@degreeabbrev{Ph.D.}          % masters defaults to M.S.     \if@masters       \def\@degree{Master of Science}       \def\@degreeabbrev{M.Sc.}     \fi          \if@ms       \def\@degree{Master of Science}       \def\@degreeabbrev{M.Sc.}       \@masterstrue     \fi     \if@ma       \def\@degree{Master of Arts}       \def\@degreeabbrev{M.A.}       \@masterstrue     \fi          % Since I don't know how to allow only one option, I do phd first.     \if@phd       \def\@degree{Doctor of Philosophy}       \def\@degreeabbrev{Ph.D.}       \def\@committee{Dissertation}       \def\@thesis{DISSERTATION}     \else       \if@dma         \def\@degree{Doctor of Musical Arts}         \def\@degreeabbrev{D.M.A.}         \def\@committee{D.M.A.}         \def\@thesis{D.M.A. DOCUMENT}       \else         \if@masters           \def\@thesis{A Thesis}           \def\@committee{Master's Examination}           \thesis         \fi       \fi     \fi               \endinput     %%      %% End of file `osudissert96.cls'.


title: R assignment operator ("<-")

text: How does one typeset the R assignment operator ("<-")? Workarounds such as               \begin{description}         \item[x \textless{}- c(1:3)] Create the vector [1 2 3] and assign it to an object named x.  %Illustrates workaround 1.         \item[y $\leftangle$- c(10.4, 5.6, 3.1)] Create the vector [10.4 5.6 3.1] and assign it to an object named y.  %Illustrates workaround 2.         \item[z $\leftarrow$ c(3.1, 6.4, 21.7)] Create the vector [3.1 6.4 21.7] and assign it to an object named z.  %Illustrates workaround 3.     \end{description}      are less than satisfactory.


title: Ubuntu Font in LaTeX

text: How do I use the font provided by Ubuntu in LaTeX? Eg. ![enter image description here](http://i.stack.imgur.com/fmkMM.png)


title: Trying to make a title left aligned in a minipage

text: I have tried various different ways of attempting to implement this. I want a title and author flushed left and an image flushed right on the same level. However I am using 2 columns so I should use 'maketitle' rather than simply bypass it and enlarge some text. I cannot seem to get the title and author to the left they act as if they are central.               \documentclass[twoside]{article}     \usepackage{multicol}           \begin{document}     \title{\fontsize{22pt}{10pt}\selectfont\textbf{Title}}          \author     {     \Large         \textsc{Name}\\[2mm]         \large University \\         \normalsize e@mail.com \\         \vspace{-5mm}     }     \date{}               \begin{minipage}{0.65\textwidth}         \maketitle{ \begin{flushleft}         \title         \author         \end{flushleft}         }     \end{minipage}     \begin{minipage}{0.35\textwidth}         \begin{flushright}          \includegraphics[scale=0.28]{image}         \end{flushright}     \end{minipage}          \end{document}


title: Problem with \cdashline and package arydshln

text: I have a problem with `\cdashline`. I use the `\cdashline` in a matrix but I have an error with `\usepackage{arydshln}` I think:               ! Use of \x doesn't match its definition.     \LT@array ->\adl@arrayinit                                 \adl@LTfirstpagetrue \let \adl@discard \relax \le...     l.5034 }{}      If I remove `\usepackage{arydshln}` latex will not stack but it will not recognize `\cdashline`. The strange thing is that package and `\cdashline` works at my pc at home (Windows environment and Miktex tool) but is not working from ubuntu in work. MWE:               \documentclass[oneside]{memoir}     \usepackage{multirow}     \usepackage{array}     \usepackage{tabularx}     \usepackage{longtable}     \usepackage{pdflscape}     \usepackage{pifont}     \usepackage{arydshln}     \begin{document}     \begin{longtable}{llp{6.5cm}}     \textbf{System} & \textbf{Class} & \textbf{Tokens included in class} \\     ~ & ~ & \\     \cdashline{2-3}     \end{longtable}     \end{document}


title: How to call memory in latex using any kind of use package?

text: When I am writing in LaTeX sometimes it happens that I have to use a single word like `neutrino` and it may come several times in my report. Can you suggest me any package which, if I write say `ne` then from memory it will suggest me that it means "neutrino" like in Microsoft office.


title: Add collaborators' name in beamer title slide

text: How to add collaborators' name (perhaps their respective institute also) in the title slide for beamer? I don't want them to appear at the bottom of every slide.


title: multiple lists in etoolbox

text: I'm trying to have a number of lists using etoolbox that I process near the end of a document. There may be a large number of these lists, and I do not know how many I will have beforehand, so I have been trying to use a number in the list name to keep track of everything. With the code below, I am probably doing something horribly wrong, it is just not obvious to me what that is.               \documentclass{article}     \usepackage{etoolbox}          \begin{document}     \csdef{foo1}{}     \csdef{foo2}{}          \listcsadd{\csname foo1\endcsname}{first}     \listcsadd{\csname foo2\endcsname}{second}          \dolistcsloop{\csname foo1\endcsname}          \end{document}      This print "firstsecond", but I only expected it to print "first". The same thing happens if I only try to print the second list. What do I need to change to make it behave as I would expect?


title: Subimport star breaks listings languages

text: `\subimport*{}{}` from the package import seems to break listings languages, but only if `listings` with a language hasn't been used in the root document:               ! Package Listings Error: Couldn't load requested language.      My hypothesis is that the starred version of `subimport` is breaking the path for listings, but somehow it's cached if the listing is used outside the import first. Is there a solution to this (outside of not using the starred sub import; I'd like to keep using it if possible...) MWE below. * * * A/List.tex:               \documentclass{article}      \usepackage{import}     \usepackage{listings}     \begin{document}          % Uncommenting the problem, oddly enough.     %\begin{lstlisting}[language=Java]     %public static void main(String[] args) {}      %\end{lstlisting}     \subimport*{Nest/Nest/}{nested}          \end{document}        A/Nest/Nest/nested.tex:               \begin{lstlisting}[language=Java]     //Returns true     private static bool P() {      }     \end{lstlisting}


title: BibDesk to Word via bibfuse: some coding

text: I have recently started working with clinical colleagues who think LaTeX is a synthetic rubber used to make examination gloves, and have been forced to work with MS Word. In my Tex setup, I use BibDesk as my reference manager on a Mac OS, and have found bibfuse to be a nice way of citing papers in Word from BibDesk. The problem is that bibfuse seems to only be able to handle citing journal articles. It does not work very well at citing books, book entries (i.e., "incollection" entries in BibDesk), and websites. Does anyone know how to add to or modify the sampletemplate.doc file in the bibfuse package to accept these entries? The sampletemplate.doc file contains only the following lines of code:               <$publications>     <$itemIndex/>.       <$pubAuthors.unpunctuatedAbbreviatedNormalizedName.stringByRemovingTeX.@componentsJoinedByCommaAndAmpersand/> (<$pubFields.Year/>) <$pubFields.Title/>. <$pubFields.Journal/>      <$pubFields.Volume/>, <$pubFields.Pages/>.     </$publications>      If no one knows how to do that, can anyone tell me what language this is, so I might figure it out and modify if possible?


title: OTF fonts with Miktex

text: This is my code:               %!TEX TS-program = xelatex     %!TEX encoding = UTF-8 Unicode          \documentclass[a4paper]{article}     \usepackage{fontspec}     \usepackage{xunicode}     \usepackage{xltxtra}     \setmainfont[Mapping=tex-text]{Brill-Roman}     \begin{document}     This is a text.     \textit{Here goes!}     \end{document}      I have updated the admin package manager successfully, but it still doesn't work:               This is XeTeX, Version 3.1415926-2.4-0.9998 (MiKTeX 2.9)     entering extended mode     ("C:\Users\Guillaume\Desktop\Medlye\Brill roman essai.tex"     LaTeX2e      Babel  and hyphenation patterns for english, afrikaans, ancientgreek, ar     abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic,      croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, ga     lician, german, german-x-2012-05-30, greek, gujarati, hindi, hungarian, iceland     ic, indonesian, interlingua, irish, italian, kannada, kurmanji, latin, latvian,      lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerman, n     german-x-2012-05-30, nynorsk, oriya, panjabi, pinyin, polish, portuguese, roman     ian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swissgerm     an, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, usengl     ishmax, welsh, loaded.     ("C:\Program Files\MiKTeX 2.9\tex\latex\base\article.cls"     Document Class: article 2007/10/19 v1.4h Standard LaTeX document class     ("C:\Program Files\MiKTeX 2.9\tex\latex\base\size10.clo"))     ("C:\Program Files\MiKTeX 2.9\tex\latex\fontspec\fontspec.sty"     (C:\Users\Guillaume\AppData\Roaming\MiKTeX\2.9\tex\latex\l3kernel\expl3.sty     ("C:\Program Files\MiKTeX 2.9\tex\xelatex\xgreek\expl3\l3names.sty")          LaTeX Warning: You have requested, on input line 48, version                    `2011/12/30' of package l3names,                    but only version                    `1998/04/20 v2.0b L3 Experimental Naming Scheme for TeX Primitiv     es'                    is available.               ! Package expl3 Error: MismatchedLaTeX3packagesdetected..          See the expl3 package documentation for explanation.     Type  H   for immediate help.      ...                                                        l.59   }


title: alignment of table numbers

text: why the numbers indicated from the arrows are not aligned compared to the columns above ? ![enter image description here](http://i.stack.imgur.com/bRcXD.jpg)               \documentclass[border=10.0mm]{standalone}          \usepackage{booktabs,caption}          \usepackage{siunitx}          \sisetup{%              output-decimal-marker={,}%             }                    \begin{document}     \begin{tabular}{*{4}{S}}     \toprule     {Distanza} & {$p$-$q$} & {$f$}  & {$f$} \\     {(mm)}     & {(mm)}    & {(mm)} & {(\%)} \\     \midrule     200        & 100       & 193,5  & 96,7 \\                & 660       & 197,0  & 98,0 \\                & 592       & 195,3  & 97,7 \\     \cmidrule(rl){1-4}     150        & 320       & 144    & 96 \\                & 424       & 147    & 98 \\                & 150       & 144    & 96 \\     \cmidrule(rl){1-4}     100        & 940       & 100    & 100,0 \\                & 884       & 974    & 97,4 \\                & 292       & 955    & 95,5 \\     \bottomrule     \end{tabular}     \end{document}


title: Put figure and listing side by side

text: I'm trying to put a listing and figure side by side. I tried to follow the suggestions in this link How to put algorithm and figure(s) side by side? without using caption package but the listing stays below in the figure.               \begin{figure}[htbp]         \begin{minipage}{.5\textwidth}         \centering         \includegraphics[height=0.7in]{figure}         \caption{Figure one.}         \label{fig:fig1}         \end{minipage}     \end{figure}     \begin{minipage}{.5\textwidth}     \begin{lstlisting}     #include <stdio.h>           main()      {         printf ("Hello World!\n");      }     \end{lstlisting}     \end{minipage}


title: datatool: getting a specific value given the value of another column

text: I am certain this is patently obvious, but the solution is eluding me... Given a dataset stored in CSV:               ID,    col1,  col2, col3     KEY-1, foo    bar,  baz     KEY-2, alice, bob,  chuck      I would like to define a macro `\getCol3{KEY-2}` that returns `chuck`. I am getting tripped up by what appears to be internal key structures (and the fact that I just started using `datatool`).               \DTLgetvalue{\thevalue}{data}{\therow}{\thecol}      is what I assumed was in the right direction, but I cannot construct valid values for `\therow` and `\thevalue`.


title: How to get TeXnicCenter to remember the last page viewed in output PDF (as done automatically by TeXworks)

text: I am using `LaTeX=>PDF`. When using TeXworks if I change the source `.tex` file the PDF viewer remembers the last page which was viewed and shows that page in the output PDF. Whilst using TeXnicCenter however, Adobe PDF reader resets to the first page. How do I resolve this, can I change from using Adobe PDF? or can Adobe PDF be customised somehow?


title: Check if mathversion (font) is defined

text: One can define a new mathversion using `\DeclareMathVersion{sans}`. I wonder if I can test the existence of such a font definition, for example with               \IfMathVersionDefined{sansmath}       {math font is defined}       {math font is not defined}


title: Install packages on cygwin

text: I use latex for cygwin, installed by the cygwin setup GUI. How can I install other missing package? For example i haven't tikz... I've to manually install it or there is a better solution?


title: Biblatex, uniquename, \ifnamesequal{editor}{author}

text: As soon as one uses `biblatex` with biber as backend and `uniquename=true` enabled, the test `\ifnamesequal{editor}{author}` inside the bbx-file (here: `authortitle-dw.bbx`) won't expand to true even if the fields `{editor}` and `{author}` are identical in the bib-file. This is because `uniquename` adds a value to the namelist `labelname` (= `author`) so that `\ifnamesequal{editor}{author}` expands to false in any case. Compare following example with `uniquename=true` and `uniquename=false`. In the first case, the output of the editor is "Zeller" and in the second case "ders". Is there a way to get "ders" even with `uniquename=true`?               \documentclass[a4paper]{article}     \usepackage[T1]{fontenc}     \usepackage[latin9]{inputenc}     \usepackage[ngerman]{babel}\usepackage[style=authortitle-dw,uniquename=true,backend=biber]{biblatex}          \begin{filecontents}{\jobname.bib}     @incollection{Zeller1988,     Address = {G{\"o}ttingen},     Author = {Dieter Zeller},     Booktitle = {Menschwerdung Gottes -- Verg{\"o}ttlichung von Menschen},     Editor = {Dieter Zeller},     Number = {7},     Pages = {141-176},     Series = {NTOA},     Shorttitle = {Menschwerdung},     Title = {Die Menschwerdung des Sohnes Gottes im Neuen Testament und die antike Religionsgeschichte},     Year = {1988}}     \end{filecontents}          \bibliography{\jobname}          \begin{document}     \cite[]{Zeller1988}          \printbibliography     \end{document}


title: Pixel-perfect vertical alignment of image-rendered TeX snippets?

text: What is the most accurate way to automatically calculate the text baseline in an image that has been rendered from a TeX snippet—so that the rendered image can be given proper vertical alignment in a block of text? **My current approach (which isn’t working in all cases):** Here’s an example of what I’m trying to do. Note that these are _screenshots of a web page_ (HTML + CSS + Latin Modern fonts for web) and _not of a TeX document_. The web page is mostly paragraphs of text, but contains embedded PNG images (rendered TeX snippets) for the formulas involving square roots. Here’s how I want it to look: ![big good](http://i.stack.imgur.com/XFuhS.png) But here’s what I’m getting... ![big bad](http://i.stack.imgur.com/kjSt6.png) The second—the smaller—square root formula is aligned correctly, and it was done automatically. I’m calculating the baseline by first rendering a snippet consisting of only a “.” character, and then by measuring the height of the resulting image, after cropping away everything below the “.”, this tells me how much I need to lower the image (using CSS’s `vertical-align` style) in order to align it with the surrounding text’s baseline. This works well for formulas that aren’t too tall. Where it fails is, well, taller formulas, as shown above. In the case of the first—the larger—square root formula, it needs to be lowered less than normal, because it extends higher than normal. My calculations for this are currently wrong, and I’m wondering how I can fix this. **Alternatives?** What are some ways of measuring the baseline (in pixels) of a snippet? I can’t really use `\documentclass{standalone}` for this because it crops the page as tightly as possible, which produces different image heights for `$x$`, `$X$`, and `\sqrt{x}`. I’m thinking I may need to render a calibration snippet consisting of two blank lines prior to a lone `.` (or perhaps a bottom-aligned horizontal rule) instead of just a single `.` character—but that seems a bit kludgey. Is there a way to coax TeX into not placing a formula lower on the page when it is taller than standard text? That is, is there some way I can cause a formula at the top of a page to protrude upward into the top margin? **A second problem** I also noticed that I’m seeing sub-pixel alignment problems. Below are screenshots scaled up to 400% actual size: This formula is ¾ pixel too low: ![too low](http://i.stack.imgur.com/YJEjT.png) At first, I thought I was calculating the `vertical-align` value wrong, so I manually moved it up by one pixel, but then it turns out that it's ¼ pixel too high—which means the problem lies within the image rather than the alignment value: ![too high](http://i.stack.imgur.com/5KkSK.png) I suspect this is fixable by making sure I round the image heights up to the nearest multiple of 4 before I downsample them for embedding in the page. Just wondering if anyone has tackled this problem before, and has any tips. I’m encouraged by these results so far, but doing this correctly turns out to be a lot more subtle than I expected it would be. Naïvely, when I first started this, I hadn’t considered tall formulas or even vertical alignment at all.


title: Plotting the chi square distribution with TikZ

text: I have tried without success to plot the curve of the chi-squared distribution. Is there a generous soul who can come to my rescue.


title: What is this bib style?

text: How to change my bibligraphy style? I have always used the IEEE standard bibliographic style but reading some document I found a _new_ style thet I like so much. In this document instead putting the reference number beetween the square brackets there is a text like the bibtex abbreviation that is more easy to remember! The document is the following, what is this bibliography style? ![enter image description here](http://i.stack.imgur.com/o8g1W.png)


title: Complicated diagram with xy (everything is wrong)

text: I'm trying to create a diagram for the countable direct limit in algebra. The following code               $$\vspace{-1mm}\xymatrix{     &&& A\ar@{-->}[dd]^{\exists!\alpha}\\     A_1\ar[r]^{\!\!\!\alpha_{1,2}} \ar@/^12pt/[urrr]|-{\alpha_{1}} \ar@/_12pt/[drrr]|-{\alpha'_{1}}&     A_2\ar[r]^{\!\!\!\alpha_{2,3}} \ar[urr ]|-{\alpha_{2}} \ar[drr ]|-{\alpha'_{2}}&     A_3\ar[r]^{\!\!\!\alpha_{3,4}} \ar[ur  ]|-{\alpha_{3}} \ar[dr  ]|-{\alpha'_{3}}&     \ldots\\     &&& A'\\}$$      produces the diagram below: ![enter image description here](http://i.stack.imgur.com/QyQHE.jpg) **Questions:**   1. How can I make the arrows `\alpha_1`,`\alpha_2`,`\alpha_3` arrive at their destination A?   2. How to put **labels** `\alpha_{1,2}` **lower (closer to their arrow)**?   3. How to **move objects A and A' a bit to the right** (along with \alpha_i,\alpha'_i) so that the arrow \alpha doesn't intersect `\ldots` and remains straight?   4. When I bend arrows (using PDFtex) I a get rasterized arrow. How can I bend arrows and still have vector graphics?   5. What is wrong with `\alpha'_3`?


title: biber breaks when it's run

text: I'm trying to use biber with biblatex under windows xp. However, when I run it with any argument including `biber --help` it breaks with the same error message:               Biber/Utils.pm did not return a true value at Biber/Internals.pm line 9.     BEGIN failed--compilation aborted at Biber/Internals.pm line 9.     Compilation failed in require at (eval 31) line 2.             ...propagated at C:/strawberry/perl/lib/base.pm line 94.     BEGIN failed--compilation aborted at Biber.pm line 6.     Compilation failed in require at script/biber-MSWIN line 18.     BEGIN failed--compilation aborted at script/biber-MSWIN line 18.      The md5 checksum for biber.exe is: 5eaf7f368d940024869231a34f6f9e7f I do not have Perl installed, but understand that this isn't needed.


title: Path to External Files in Nested \input

text: ## Problem I usually load a helping TeX file that contains my customizations, e.g., usual packages, corporate standard colors, and macros for abbreviations. I want my helping file to also load another external file that is in the same folder. I certainly want to avoid giving the explicit path to the second external file every time. ## Example Let's say the helping file is `cosmetix.tex`, which loads `abbreviations.tex`. `abbreviations.tex` is in the same folder as `cosmetix.tex` and both are in a folder called `common`:               % cosmetix.tex     % ... some customization     % load abbreviations     \input{abbreviations.tex}      My main file is `tester.tex`:               % tester.tex     \documentclass{article}          % load cosmetix     \input{common/cosmetix.tex}          \begin{document}     Dummy text.     \end{document}      This leads to the following error: LaTeX error: File `abbreviations.tex' not found. ## Question How can I use nested `\input`s with files in different folders without (i) converting my code to a package and (ii) using absolute paths? ## Context Although this question is pretty generic, it is also a follow up to my previous question: Reproducing an official letterhead. I have reproduced my institute's letterhead, which in turn needs to load the logo. I load the letterhead using the `\input` mechanism. I know this is not the most elegant way, but until I get time to convert this to a package (or read `scrlttr2` documentation to convert my letterhead to an option file), this is a solution that reasonably works for me. As I mentioned above, I can't use absolute paths because I'm using multiple computers with different operating systems, and therefore, the root of the directory tree is different for each computer.


title: Latex find formatted text and print it at the end of document

text: I am currently coding my interview transcripts for qualitative research by highlighting sentences in different colours (using `soul` and `xcolor` packages). So, I want to print all text which belong to the same code at the end of my document, i.e. all texts which were highlighted, say, in green. How could I do this? I'm using the following commands:               \newcommand{\hlc}[2][yellow]{ {\sethlcolor{#1} \hl{#2}} }          \newcommand{\kod}[2]{%         \marginpar{#1} \IfStrEqCase{#1}{%             {genre}{\hlc[YellowGreen]{#2}}%             {amer}{\hlc[Plum]{#2}}%               % plus other codes %             }[\PackageError{kod}{Undefined option to kod: #1}{}]%     }%      thus in text I have `\kod{genre}{blahblahblah}` for example. Now I'd like to make LaTeX collect and print all `blahblahblah` for all instances where `\kod{genre}{}` is used. Any ideas?


title: Drawing Königsberg landscape showing the bridges

text: Just for fun, I was trying to draw the picture (which I found here): ![](http://i.stack.imgur.com/OOeXi.png) However, I don't know how to create irregular shapes in `tikz`. Can anybody help?


title: Is it feasible to create a standalone package for fonts / styles / layouts?

text: For many of my recent documents, I have started using a rather specific set of packages, settings, fonts and configuration. In one rare case, I even adapted one of the included fonts (in my opinion the `\partial` d should not be slanted when used as a derivative sign; if it is slanted, it specifies the boundary of a set). All of these settings are of course only made on one computer and specifically the font things had to be put into the `texlive/local` tree which makes sharing the settings on several computers a pain (not to think of synchronisation issues) and sharing with collaborators virtually impossible. Ideally, I’d want to create a git repository (or any other DVCS) for all those settings and for each new tex project, I’d copy (or clone or link or use a submodule) this repository into a subdirectory of the main tex file and have it automatically included somehow, so that all my private fonts, settings and packages are found and added without problems. Is this possible without large problems or will tex need some special initialisation routines and fixed paths for this even today? I suspect, I’m not the only one with those problems. How is such a thing solved by others? **Edit / Explanation** I more or less think of the optimal solution to work like a style folder in a HTML file. So, I’d have a folder `style` with all fonts and images in it and a special style sheet, which references all those files. This solution would be totally local and portable. I could move the folder around, rename it or even use the very same folder for all my HTML files, as long as I can reference the main style sheet file. This works because all paths inside the CSS file are relative to that file. The only adaptations I’d have to make are copying/linking/cloning the `style` folder and figuring out the path to the CSS file. I don’t expect the tex solution to be identical. It is a completely different system. But it would be great to do just these two things:   * clone the style/font repository into some subfolder of the current main tex file   * inside the main tex file: include the style file   * done Including the main file might even take a couple of lines to write, no problem there. But I’d very much appreciate it if all of these changes could be local to the folder of the main tex file.


title: Titles aligned horizontally above nodes in figure

text: I am trying to create a flow chart going left-right where each stage has a header aligned with it, at a certain height above the chart. I am trying to use the Hydrogen Splitting Example (see the underlines titles), but that example uses fixed positioning, and I would ideally like to use a fixed vertical coordinate (perhaps based relative to my tallest column), and a relative horizontal one. The below code doesn't work, but hopefully shows what I'm trying to do.               \documentclass{standalone}          \usepackage{tikz}     \usetikzlibrary{shapes,arrows,positioning}          \begin{document}     \pagestyle{empty}          \begin{tikzpicture}[node distance = 1mm, auto,         box/.style={             rectangle,             draw,             fill=blue!20,              text width=5em,             text centered,             rounded corners,              minimum height=4em         }]                % First column         \node [box]                  (b1)   {Box 1};         \node [box, below=of b1]     (b2)   {Box 2};         \node [box, below=of b2]     (b3)   {Box 3};              % Second column         \node [box, right=of b2, xshift=30mm]   (b4) {Box 4};              % Labels at top         \node [above=of b1, font=\large] (title1) {\underline{Column One}};         \node [right=of title1, above=of b4, font=\large]{\underline{Column Two}};               \end{tikzpicture}     \end{document}      ![enter image description here](http://i.stack.imgur.com/iIhcV.png)


title: multicols within colorbox

text: i'm trying to get a gray background for an entire multicols environment and get errors with this "minimal" working example:               \documentclass[11pt,a4paper]{article}     \usepackage[utf8]{inputenc}     \usepackage{graphicx}     \usepackage[table,dvipsnames]{xcolor}     \usepackage{color}     \usepackage{listings}     \usepackage{multicol}     \usepackage[left=2.5cm,right=2.5cm]{geometry}          \begin{document}       \setlength{\parindent}{0mm}       \setlength{\parskip}{11pt}            \begin{titlepage}         \begin{center}           \colorbox{gray}{             \begin{multicols}{2}               \begin{description}                      \item[xyz] \hfill \\                 description                      \item[xyz] \hfill \\                 description                      \columnbreak                      \item[xyz] \hfill \\                 description                      \item[xyz] \hfill \\                 description               \end{description}             \end{multicols}           }         \end{center}       \end{titlepage}     \end{document}      This generates a lot of errors on the closing "}" from the colorbox that make no sense for me. If I comment the colorbox out it compiles without problems. Something I guess is similar I hit while going through the suggestions: A version of colorbox that works inside math environments Since one of the errormessages states that it's automatically creating a math environment/symbol i guess my problem is similar, though the answer to the question is just codesalad i don't understand and thus can't really use. Any explained solution to either prevent LaTex to create a math-environment or getting a grey background under the multicol is highly appreciated. Btw. i just started using LaTeX, so explanations are also highly appreciated.


title: can't get lato fonts to work in texlive 2011

text: This is my first post - so I hope you can help me; and I haven't missed anything obvious. I am interested in using Lato fonts an am using texlive 2011 on Windows 7. My minimal example is:               \documentclass{article}          \usepackage[default]{lato}     \usepackage[T1]{fontenc}          \begin{document}     some text     \end{document}      However, pdf fails to compile with the following error message. I have failed to find the underlying problem (I don't have problems with any other fonts) and thought I'd ask the experts! Compile messages:               ! I can't find file `Labegin.mf'.     <scantokens> input Labegin.mf          <to be read again>                         ;     l.185 ...onteq-2,fonteq) of jobname & "begin.mf");          Please type another input file name     ! Emergency stop.     <scantokens> input Labegin.mf          <to be read again>                         ;     l.185 ...onteq-2,fonteq) of jobname & "begin.mf");          Transcript written on Lato-Reg-01.log.          kpathsea: Running mktexmf Labegin.mf          The command name is C:\texlive\2011\bin\win32\mktexmf     mf-nowin.exe --progname=mf --base=mf \mode:=ljfour; \mag:=1+0/600; nonstopmode; input Lato-Reg-01;     Failed to make gf font by METAFONT.      )     !pdfTeX error: pdflatex.exe (file Lato-Reg-01): Font Lato-Reg-01 at 600 not fou     nd      ==> Fatal error occurred, no output PDF file produced!          kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+0/600 --dpi 600 Lato-Reg-01          The command name is C:\texlive\2011\bin\win32\mktexpk     kpathsea: Appending font creation commands to missfont.log.


title: Why are pagenumbers centered with \pagestyle{headings} on \chapter{}'s first pages?

text: I'm using documentclass `report` with options `twoside` and `openright`. The `pagestyle` is `headings`. This is a minimal working example:               \documentclass[twoside,openright]{report}      \usepackage{blindtext}      \pagestyle{headings}      \begin{document}       \chapter{Chapter}        \blindtext \blindtext        \section{Section}         \blindtext \blindtext      \end{document}      Why is the page number at the first page of the chapter centered at the bottom and not on the right even though the document style `headings` works on all other pages? How to move the page number on the first page of a chapter to the right side as it should be using the document option `openright`?


title: TikZ reversed arrow wrong placement

text: When I place reversed arrow heads as decorations I can do it in two different ways. The two ways place then at different positions, none of them is correct. In the following code I use both of them, to make you see the different placements, but none of the placements is the symmetric version of the non- reversed arrowhead. You can see it on the vertical axis. I want the picture to be symmetric. I can do it with breaking the paths in two parts. Is there a slight modification of this code, that would make it symmetric? (manually changing .25 is not a good idea, since the paths have different lengths)               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{decorations.markings}     \begin{document}          \begin{tikzpicture}[decoration={markings,       mark=at position .25 with {\arrowreversed{latex}},       mark=at position .25 with {\arrow{latex reversed}},       mark=at position .75 with {\arrow{latex}}}]     \clip (-3.2,-2.2) rectangle (3.2,2.2);     \draw[help lines] (-3.2,-2.2) grid (3.2,2.2);     \draw[thick,postaction={decorate}] (0,-2) -- (0,2);     \foreach \c in {-2,-1.5,-1,-.2,1}{       \pgfmathparse{.33*exp(\c/-6)}       \draw[x=\pgfmathresult cm,postaction={decorate},smooth,samples at={-9,-7,...,9}] plot       (\x,{\x*(ln(abs(\x)*\pgfmathresult)*2 + \c)*\pgfmathresult});}     \end{tikzpicture}          \end{document}      Here is the picture * * * (Added by Andrew Stacey): Here's a minimal working example of the problem               \documentclass{minimal}     \usepackage{tikz}     \usetikzlibrary{decorations.markings}     \begin{document}          \begin{tikzpicture}     \draw[thick,postaction={decorate},decoration={markings, mark=at position .25 with {\arrowreversed{latex}}}] (0,0) -- (2,0);     \draw[thick,postaction={decorate},decoration={markings, mark=at position .25 with {\arrow{latex reversed}}}] (0,-.2) -- (2,-.2);     \draw[thick,postaction={decorate},decoration={markings, mark=at position .75 with {\arrow{latex}}}] (2,-.4) -- (0,-.4);               \end{tikzpicture}          \end{document}      with result: ![reversed arrows](http://i.stack.imgur.com/gefmJ.png) The question is to get a syntax which lines up one of the first two arrows with the third (note the direction of drawing of the lines in each case: the third is in the reverse direction to the other two).


title: How to make my own reference for some arbitrary weblink

text: How could I make my own reference (bibtex or other) to some arbitrary weblink like http://www.inf.ed.ac.uk/teaching/courses/anlp/slides/anlp13.pdf so that it appears under the 'References' of the PDF file generated by LaTeX.


title: Generate a ToC from left to right: author, page number, title

text: This is the kind of layout that might occur in a compilation, front page of a journal, magazine, or a book with each author having a separate entry or article. I'm trying to generate a table of contents with sequence author, page number, title on one line (more lines if the title is really long). The toc would look like this (no dashes): author ----- page# ------ article title Jane doe --- 11 --------- Spectral wavelength defoliation from planet x (author might possibly have firstname lastname as separate fields) I cobbled together a non-working sample based on a solution that has the page number on the left, followed by article title with author below the title (by F.Mittelbach). Starting from that solution, I've been unsccessful with generating the layout (author, page, title). In addition, I can't access the author or institution name (i.e. use it in the text if I wanted to). I've tried many variations of the ``basic code'', but still no success. I hope someone can suggest what I'm missing or not understaning -- would be very helpful. A mwe is included.               \documentclass{book}     \usepackage{titletoc}     \newcommand\tocauthor[1]{\\\textmd{#1}}     \newcommand\tocinstitution[1]{}     \newcommand\newpaper[3]{%        \clearpage        \chapter*{#1}%        \addcontentsline{toc}{chapter}{#1\tocauthor{#2}\tocinstitution{#3}}        \textbf{#2}\\        \textit{#3}\par        \vspace{5mm}%     }     % FM's code works: page#,title\\ author -- but not quite what I want     %\titlecontents{chapter}[3pc]  % type, left indent     %   {\addvspace{1.4pc}\bfseries}% above code     %   {}  % numbered entry format     %   {{\hspace*{-3pc}\makebox[3pc]   % numberless entry format     %       {\thecontentspage. \hfil}}}     %   {}  % page format     %   [\addvspace{.2pc}] % below code          % one of the many variations tried, compiles, but incorrect display     \titlecontents{chapter}[0pt]% type,left indent        {\addvspace{1.4pc}\bfseries} % above code        {\contentslabel[\tocauthor]{\Huge\thecontentspage\quad}}% numbered entry format        {} % numberless entry format        {} % page format     %   [ ]% below code     \setcounter{tocdepth}{0}          \begin{document}     \tableofcontents          \newpaper{Title of the first paper}{Jane Doe}{Institution}     The author is \tocauthor from nsf.          \newpaper{The second paper}{Fred Smith}{Round Yonder}     Ever been to \tocinstitution by the bay?     \end{document}


title: How can CSV files be put into LaTeX without having to adjust much?

text: I would like to have a TeX-Snippet that takes a filename as an argument and outputs a table with toprule and bottomrule:               \begin{tabular}{lrr}          \toprule         Fach & Dauer & Einkommen\\          \midrule          Info & 2 & 12,75 \\         MST & 6 & 8,20 \\         VWL & 14 & 10,00\\          \bottomrule     \end{tabular}      ![enter image description here](http://i.stack.imgur.com/Aq8Bi.png) Source: http://www.namsu.de/Extra/pakete/Booktabs.html ## Messreihe.csv This is an example csv file:               Messreihe #,Winkel,Zähler 1,Zähler 2,Koinzidenzen     1,90,35404,41016,155     ,90,31999,38359,155     ,135,30618,36095,126     ,135,30232,36000,120     ,180,30243,33931,118     ,180,29762,34080,129     2,90,28979,36801,118     ,90,29009,37035,144     ,135,29035,35828,115     ,135,28330,35599,122     ,180,28866,33316,118     ,180,28716,33774,99     3,90,29075,37602,139     ,90,28793,37495,133     ,135,28368,35938,116     ,135,28570,35419,129     ,180,28632,34177,114     ,180,28467,34076,111      ## What I've tried ### pgfplotstable               \documentclass[a4paper]{scrartcl}     \usepackage[utf8]{inputenc} % this is needed for umlauts     \usepackage[ngerman]{babel} % this is needed for umlauts     \usepackage[T1]{fontenc}    % this is needed for correct output of umlauts in pdf          \usepackage{booktabs} % For \toprule, \midrule and \bottomrule     \usepackage[locale=DE]{siunitx} % Formats the units and values     \usepackage{pgfplotstable} % Generates table from .csv          % Setup siunitx:     \sisetup{       round-mode          = places, % Rounds numbers       round-precision     = 2, % to 2 places     }          \begin{document}          \begin{table}[h!]       \begin{center}         \caption{Autogenerated table from .csv file.}         \label{table1}         \pgfplotstabletypeset[           multicolumn names, % allows to have multicolumn names           col sep=comma, % the seperator in our .csv file           display columns/0/.style={             column name=$Value 1$, % name of first column             column type={S},string type},  % use siunitx for formatting           display columns/1/.style={             column name=$Value 2$,             column type={S},string type},           display columns/2/.style={             column name=$Value 3$,             column type={S},string type},           display columns/3/.style={             column name=$Value 4$,             column type={S},string type},           display columns/4/.style={             column name=$Value 5$,             column type={S},string type},           every head row/.style={             before row={\toprule}, % have a rule at top             after row={                 Messreihe & Winkel & Zähler 1 & Zähler 2 & Koinzidenzen\\ % the units seperated by &                 \midrule} % rule under units                 },             every last row/.style={after row=\bottomrule}, % rule at bottom         ]{messergebnisse.csv} % filename/path to file       \end{center}     \end{table}          \end{document}      This gives me:               ./csv-physik.tex:47: Illegal parameter number in definition of \pgfplotstable@loc@TMPa. [    ]{messergebnisse.csv}]      ### csvsimple - try 1 This works only when I remove the sharp (`#`) within the CSV file and the formatting is not as desired:               \documentclass[a4paper]{scrartcl}     \usepackage[utf8]{inputenc} % this is needed for umlauts     \usepackage[ngerman]{babel} % this is needed for umlauts     \usepackage[T1]{fontenc}    % this is needed for correct output of umlauts in pdf          \usepackage[locale=DE]{siunitx} % Formats the units and values     \usepackage{csvsimple}          % Setup siunitx:     \sisetup{       round-mode          = places, % Rounds numbers       round-precision     = 2, % to 2 places     }          \begin{document}     \csvautotabular{messergebnisse.csv}     \end{document}      ![enter image description here](http://i.stack.imgur.com/0AsjL.png) ### csvsimple - try 2 This one is not very convenient, because I had to adjust the headers. Another drawback of this solution is that `bottomrule` is missing:               \documentclass[a4paper]{scrartcl}     \usepackage[utf8]{inputenc} % this is needed for umlauts     \usepackage[ngerman]{babel} % this is needed for umlauts     \usepackage[T1]{fontenc}    % this is needed for correct output of umlauts in pdf          \usepackage[locale=DE]{siunitx} % Formats the units and values     \usepackage{csvsimple}     \usepackage{booktabs} % For \toprule, \midrule and \bottomrule     % Setup siunitx:     \sisetup{       round-mode          = places, % Rounds numbers       round-precision     = 2, % to 2 places     }          \begin{document}     \csvreader[tabular=lrrrr,         table head=\toprule Messwert & Winkel & Zähler 1 & Zähler 2 & Koinzidenzen\\\midrule,         late after line=\\]%     {messergebnisse.csv}{a=\a,b=\b,c=\c,d=\d,e=\e}%     {\a & \b & \c & \d & \e}%     \end{document}      ![enter image description here](http://i.stack.imgur.com/m63iL.png) ### datatool - first try This is easy to use, but the style is not correct. And it's not possible to have the sharp `#` within the CSV:               \documentclass[a4paper]{scrartcl}     \usepackage[utf8]{inputenc} % this is needed for umlauts     \usepackage[ngerman]{babel} % this is needed for umlauts     \usepackage[T1]{fontenc}    % this is needed for correct output of umlauts in pdf          \usepackage[locale=DE]{siunitx} % Formats the units and values     \usepackage{datatool}     \usepackage{booktabs} % For \toprule, \midrule and \bottomrule     % Setup siunitx:     \sisetup{       round-mode          = places, % Rounds numbers       round-precision     = 2, % to 2 places     }          \begin{document}     \DTLloaddb{stores}{messergebnisse.csv}     \DTLdisplaydb{stores}     \end{document}      ![enter image description here](http://i.stack.imgur.com/75l5D.png) ### datatool - second try This one is almost what I would like to have. The only thing I miss is the possibility to write a sharp `#` within the table header.               \documentclass[a4paper]{scrartcl}     \usepackage[utf8]{inputenc} % this is needed for umlauts     \usepackage[ngerman]{babel} % this is needed for umlauts     \usepackage[T1]{fontenc}    % this is needed for correct output of umlauts in pdf          \usepackage[locale=DE]{siunitx} % Formats the units and values     \usepackage{datatool}     \usepackage{booktabs} % For \toprule, \midrule and \bottomrule     % start every dtl table with \toprule from booktabs     \renewcommand{\dtldisplaystarttab}{\toprule}          % likewise for \midrule and \bottomrule from booktabs      \renewcommand{\dtldisplayafterhead}{\midrule}     \renewcommand{\dtldisplayendtab}{\\\bottomrule}          % Setup siunitx:     \sisetup{       round-mode          = places, % Rounds numbers       round-precision     = 2, % to 2 places     }          \begin{document}     \DTLloaddb{stores}{messergebnisse.csv}     \DTLdisplaydb{stores}     \end{document}      ![enter image description here](http://i.stack.imgur.com/fx26d.png)


title: Extra line in a tabular using expl3 syntax

text: I'm having trouble using (the amazing) `expl3` package with a tabular environment. Specifically, I'm getting a full extra row in my tabulars when creating rows using `\seq_map_inline`. I can avoid this behavior by not including the `\cr` in the last row (in the MWE below, this would involve a few more lines of code, but was not a huge deal in the original usage), and then including the \cr verbatim. In the MWE I purposely delete a lot of space “just in case” but it does not change anything (except make it harder to read, sorry). Another fix might be inserting negative spacing as in this question, but I'm confused why the kernel is inserting _something_ into my table (it takes up no horizontal space at least, seen by add a `Hi` before the `\end{tabular}`). ## Broken but should be right               \documentclass{article}     \usepackage{xparse}     \ExplSyntaxOn     \DeclareDocumentCommand \myTable {m} {       \seq_set_split:Nnn \l_tmpa_seq {,} {#1}       \begin{tabular}{|c|c|}\seq_map_inline:Nn \l_tmpa_seq {Entry&##1\cr}\end{tabular}     }     \ExplSyntaxOff     \begin{document}     \myTable{A,B,C,D}     \end{document}      ![Broken version: extra line](http://i.stack.imgur.com/koEWE.png) ## Works but more complicated               \documentclass{article}     \usepackage{xparse}     \ExplSyntaxOn     \DeclareDocumentCommand \myTable {m} {       \seq_set_split:Nnn \l_tmpa_seq {,} {#1}       \int_zero:N \l_tmpa_int       \begin{tabular}{|c|c|}         \seq_map_inline:Nn \l_tmpa_seq {Entry&##1           \int_gincr:N \l_tmpa_int           \int_compare:nNnTF{\l_tmpa_int}={\seq_count:N\l_tmpa_seq}{}{\cr}          }          \cr       \end{tabular}     }     \ExplSyntaxOff     \begin{document}     \myTable{A,B,C,D}     \end{document}      ![Works: no extra line](http://i.stack.imgur.com/4PUFy.png)


title: How to make biblatex treat the prenote like an author list?

text: I am trying to customize a biblatex citation style (adapted from biblatex- juradiss). I have the problem that in my text I use many \cite commands which have two or more authors given in the prenote, and I want them formatted similarly to the editors of the publication that is referenced. So if I write               \cite[Smith, John and Johnson, Henry][23]{biblabel}      I would like the output to look like: _Smith_ / _Johnson_ in: _Editora_ / _Editorb_ , other bibliographical data, p. 23. where Editora and Editorb are the editor's surnames from the entry in my .bib file, and "other bibliographical data" stands for whatever biblatex would normally output after the editors. Biblatex does the editor list nicely, and I'd like the authors to look the same. Please note that the slashes are not in italics, so I can't just give the additional author names inline with the slash in the prenote. Also, biblatex uses whitespace in the editor list which is somewhat narrower than usual.


title: Fixed Layout Epub 3 File Format

text: Epub, like the Amazon Kindle .mobi format, is designed for reflowable text. So LaTex seems to have made few inroads as the file format philosophies are so different. I came across an article about "fixed layout" epubs, and I wonder how this is any different from a pdf, which is the archetype of fixed format digital files. Of course, creating a pdf in LaTex is what LaTex does really, really well. So while it is difficult to create a non-fixed layout epub, does anyone have enough information about this new (if it is) epub variant so as to make a class style for LaTex? Here's the article: Fixed Layout Epubs @jon: Whether fixed layout epubs are a good idea or not, the fact is that they exist.


title: tikz stacked disks 3D

text: I would like to know if it is possible to draw an image like this in 3D using tikz? I am having some text around this picture, which looks great in tikz, but I am unable to draw this kind of 3D figure in tikz. Also the shadows around it looks quite complex to me. Any examples, ideas, suggestions? ![enter image description here](http://i.stack.imgur.com/J9wG1.png) Thank You !


title: Shrink margins by reducing paper size

text: Often we are forced to write our manuscripts with a specific style file or document class, which sometimes has ridiculously large margins. Is there an easy way to work out how to shrink the paper size at the expense of reducing the margins? That is, achieve the same effect as taking a pair of scissors trimming the margins down. Smaller margins would be nice when preparing the manuscript as it allows me to have the preview zoomed in without cropping the page. It is important that the layout of the text remains fixed; text width and page breaks have to be identical to the version with the original margins.


title: Why does \ExecuteMetaData break my paragraphs?

text: I have a lot of content to assemble in several different ways and would like to use excerpts from one file in another. I have specified:               \usepackage{catchfilebetweentags}      I then have an external file with tagged sections something like this in it:               %<*tag>     \section{section: tag}          paragraph one          paragraph two     %</tag>      I can suck these into another document easily:               \ExecuteMetaData[bits.tex]{tag}      The problem is that when it comes over, there are no longer any pargraphs. The `\section` is properly formatted, but after that I can't make normal paragraphs work for love or money. Even adding `\para` has no effect. Stragely enough if I just input the file it works fine:               \input{bits.tex}      ...works as expected. The only problem is this gets the _whole_ file, and I only want select portions of it. I looked at organizing the bits file with `\input`s of their own but the system quickly gets messy and hard for my copy- writers to work on. How do I get a normal paragraph environment back in content pulled over via `\ExecuteMetaData`?


title: Positioning TikZ pictures

text: How do I position a TikZ picture relative to body text? I have drawn a circle using TikZ and would like to position it to the side of the body text (so it is easy to see as you're reading, but not in the way). I am not sure how to do this. I have tried changing the coordinates to move the picture, but it seems to only move figures relative to each other rather than moving the entire thing. I would appreciate some help with this. Thanks!               \documentclass{minimal}     \usepackage{tikz}     \begin{document}     Body text.     \begin{tikzpicture}         \draw [fill = lightgray] (0,0) circle [radius = 1.25 cm];     \end{tikzpicture}     \caption{Circular Region}     \end{document}


title: thmbox splits theorems in two pages and the option "nocut" produces many empty spaces in pages.

text: this is a follow up to the problem described here. I have the same problem and the proposed solution does not completely solve the problem. I mean, it does solve the problem but also creates another one. The new problem is that the theorems, lemmas and the rest are placed in such as way that they are not cut (of course), but this leaves then big empty spaces in many pages. So the problem is that, the problem described here does not seem to be fully resolved using the nocut option. Do you any of you have a good idea on how to solve this? Thanks!


title: How to center a text line within an itemize environment?

text: How to center a text line within an itemize enivornment ? What I tried:               \documentclass[a4paper]{article}           \begin{document}      \begin{itemize}       \item {\centering text to center}     \end{itemize}     \end{document}      But the text is not centered, but on the left.


title: Drawing a wordnet with TikZ

text: I try to use TikZ to draw a wordnet like this ![enter image description here](http://i.stack.imgur.com/br7o7.jpg) but I really don't know what to start with. Can anybody help me with drawing this graph? Unfortunately, I don't have enough time to read books about TikZ. It's a part of my hometask for today :(


title: Creating plots in Latex - easy to learn?

text: I am currently working on my summer project for which I created the following plot with Mathematica: ![enter image description here](http://i.stack.imgur.com/bj1bq.png) Now I am not 100% satisfied with the results and one of my professors recommended PGF and TikZ. The problem is I don't know anything about PGF and TikZ and I have to submit my project in 1.5 months. So should I try to learn how to create `beautiful` plots with PGF and TikZ (i.e. is it possible to learn it in a week or so?) or should I just stick with my Mathematica plot? And are there even other alternatives? edit:   As a few people have requested it, here is the Mathematica code:               max = 102000;     psi[x0_, y0_] := Module[{x = x0, y = y0, n = 2, c = 0},        Do[If[Max[First[Transpose[FactorInteger[n]]]] <= y, c++]; n++;, {x}]; c]     data = Parallelize[Table[{n, psi[n, Ceiling[Sqrt[n]]]/n*100}, {n, 2, max, 1000}]];     p1 = Plot[{PrimePi[Sqrt[n]]/PrimePi[n]*100}, {n, 2, max}, PlotRange -> {{0, max}, {0, 55}},        PlotStyle -> {Gray, Thick}, Epilog -> {Inset[Style["\[Pi](\!\(\*SqrtBox[\(n\)]\))/\[Pi](n)",        FontSize -> 13, Bold], {40000, 7}], Inset[Style["\[Psi](n,\!\(\*SqrtBox[\(n\)]\))/n",        FontSize -> 13, Bold], {max/2, 43}]}];     p2 = ListLinePlot[data, PlotRange -> {{0, max}, {0, 100}}, PlotStyle -> {Thick, Gray}];     p3 = Plot[{30}, {n, 2, max}, PlotRange -> {{0, max}, {0, 100}}, PlotStyle -> {Gray, Dashed}];     Show[p1, p2, p3, AxesLabel -> Table[Text[Style[{"n", "%"}[[i]], FontSize -> 13, Bold, Italic]],        {i, 1, 2}], Ticks -> {Table[1/10*(max - 2000)*k, {k, 0, 9, 3}], Table[10 k, {k, 1, 10}]}]


title: How to draw areas between curves of the form $x=f(y)$ and $x=g(y)$?

text: I want to shade the region between two curves whose equations are of the form `$x=f(y)$` and `$x=g(y)$`, where `$f(y)\leq g(y)$` for all `$y\in [c,d]$`. I heard that pgfplots can be used. Also, the fillbetween library doesn't load in my Mac. Can you help me with this, guys? I want something like this one: ![areas using horizontal strips](http://i.stack.imgur.com/ggOte.png) I used GeoGebra to generate the image. Thanks a lot!


title: How to update glossaries package on Ubuntu 12.10?

text: My `texlive` version is               $ tex -version     TeX 3.1415926 (TeX Live 2012/Debian)     kpathsea version 6.1.0     Copyright 2012 D.E. Knuth.     There is NO warranty.  Redistribution of this software is     covered by the terms of both the TeX copyright and     the Lesser GNU General Public License.     For more information about these matters, see the file     named COPYING and the TeX source.     Primary author of TeX: D.E. Knuth.      I need to upgrade the `glossaries` package to the latest version `v3.07 (2013/07/05)` My OS is Ubuntu 12.10 How to upgrade to the latest version of glossaries package? Thanks.


title: Number equations in pandoc by default

text: How to get equations written in `$$...$$` numbered when markdown document is compiled to PDF file. I do not need to make references for equations.


title: Creating a PDF form that accepts uploaded images

text: I am creating some forms that require users to stick photos in boxes. I was wondering if one could, with some PDF magic, create forms that could accept user supplied (via an upload button on the form) digital images (and size them using `\includegraphics`), and then generate a user saveable PDF. I have found almost nothing so far on doing this.


title: LaTeX: Standard Errors (output below the line of maths)

text: ![Regression](http://i.stack.imgur.com/t7buj.png) I'm trying to replicate the above, but am unsure how to deal with putting the standard errors in the line below. Any help?


title: Creating a form action which generates a PDF

text: This is not a duplicate question! The thread I have been referred to uses highly OS dependent ways of accomplishing this task. I am looking for something that OS independent. Please remove the duplicate classification. * * * I am trying to create some forms using `hyperref`. Looking at documentation from Adobe, it appears that it is possible to simply generate a PDF (that a user could save to a PDF file) with user input. Using the following code construct:               \begin{Form}{action=XXX}     ...     \end{Form}      what should XXX precisely be for my case? I could not find any relevant Adobe or `hyperref` documentation. There are examples of XXX for mailing the form, or sending off the data to a cgi script, but not what I am looking for.


title: Numbering appendices by letter instead of number

text: I'm trying to get a hold of numbering the letter of the Appendices. This is how it looks now:               \documentclass[11pt, a4paper, twoside]{article}          % PACKAGES     \usepackage{geometry}     \usepackage{lipsum}               \begin{document}     \tableofcontents          \section{First section}     \subsection{A subsection}     \lipsum[1]          \appendix     \section{Appendices}     \subsection{First appendix}     \subsection{Second appendix}          \end{document}      ![Preview](http://i.stack.imgur.com/jUxwi.png)   But instead of counting the numbers > A.1   >  A.2   >  ... I want to the letters to be increased. It should be something like this: > Appendices   >  A - first appendix   >  B - second appendix   >  C - third appendix where "Appendices" is a section, and the other are subsections. I hope that anyone can help me :)


title: Line breaking in math mode

text: Under default settings a line can be broken in math mode after binary operator with `\binoppenalty` or after relation with `\relpenalty`. I'd like to preserve this behavior but alter the result so the operator or relation is repeated on the next line as should be in Czech typography. Just putting `\discretionary{\subseteq}{\subseteq}{\subseteq}` instead of `\subseteq` raises an error.


title: Redefine existing command

text: My question is whether I can redefine an existing command for example \multicolumn and make the required arguments optional, without loosing the content of multicolumn? Another option would be to get the content of multicolumn and pass it to some custom command. Is it possible? I already read about xparse but i cant figure out how I could use it in my case. I would be greatful for some help or some tips, thanks. I have the following code:               \documentclass[a4paper,12pt,oneside]{scrbook}     \usepackage[dutch]{babel}  %Quotes won't work without babel     \usepackage[utf8]{inputenc}   %This is very important!     \usepackage[T1]{fontenc}          \usepackage{graphicx}     \usepackage[pdfborder={0 0 0}, breaklinks=true, pdftex=true, raiselinks=true]{hyperref}     \usepackage{tabularx}     \newcolumntype{Y}{>{\raggedright}X}          \begin{document}     \section{Description}     \begin{tabularx}{\linewidth}{|Y|Y|}\hline     \multicolumn{2}{c}{some text}\\     \hline     \begin{itemize}     \item  Fixing     \item  Remastering     \item  Converting     \item  Control     \end{itemize}      & \begin{center} \resizebox{10cm}{!}{\includegraphics{picture.png}}\\ \textit{picturedescription}\end{center}     \tabularnewline \hline     \end{tabularx}     \end{document}     \end{comment}      The code is autogenerated so I have no influence on this and my idea was to change the tabularx environment and edit \multicolumn in my own package. I need to place the picture wrapped by the text on the right side and all the text on the left side, is it possible or am I on the wrong path?


title: Latex beamer multimedia, movie15

text: I am using `MiKTeX`, `Windows7`, `Adobe reader X`. I managed to play a video in one of my slides with ether `multimedia` or `mivie15`. The problem is that the video starts and plays for some seconds and then stops before it finishes. Here is some minimal example.               \documentclass[8pt,sans,mathserif]{beamer}%aspectratio=43          \usepackage{ucs}     \usepackage[T1]{fontenc}     \usepackage[utf8x]{inputenc}     \usepackage[english]{babel}          \usepackage{multimedia}     \usepackage[3D]{movie15}          \begin{document}          \begin{frame}     \frametitle{Test}              \begin{center}             \movie[start=6s, width=11cm,height=6cm, poster]{}{video/filter0.avi}         \end{center}     \end{frame}          \begin{frame}         \begin{block}{Test}             \includemovie[autoplay, poster]{4cm}{3cm}{video/filter0.avi}         \end{block}     \end{frame}          \end{document}


title: Powerdot shrink text in figure caption

text: I am using the powerdot class to make my first presentation in LaTeX (LyX). I have a figure whose caption contains a lot of text. Currently the text rolls off the slide. I can manually change the font size, but I'd like powerdot to shrink the text to fit. I have seen that beamer has a similar option.


title: Can I define \supercite to act as \cite?

text: I have a document using supercite and it works fine, but I am now using a different set of packages and cite works better. So rather than me have to change them all, is there a way I can define `\supercite` to act as `\cite`?


title: Creating borders within the specified margins

text: I've been trying to get borders for specific pages for my thesis, using tikz. Unfortunately, the borders exceed the margins specified, and since I have to submit a bound copy of the thesis, this is creating problems. Here is a snippet of what I've been trying               \documentclass{report}          \usepackage[top=1in,bottom=0.75in,left=1.25in,right=1in]{geometry}     \usepackage{tikz}     \usetikzlibrary{calc}     \usetikzlibrary{decorations.pathmorphing}          \begin{document}            \begin{titlepage}     \begin{tikzpicture}     \begin{tikzpicture} [scale=\marginparwidth/1.5in*1.5,overlay,remember picture]                    \draw [line width=0.5mm ]            ($ (current page.north west) + (1in, -1in) $)         rectangle         ($ (current page.south east) + (-1in,1in) $);     \end{tikzpicture}     My university      \end{titlepage}          \end{document}      Can anybody help me out with this issue?


title: Is there a better (British) English dictionary available for TexStudio?

text: I am using the default en_GB dictionary that comes with TexStudio. It seems to be identical to the one distributed with OpenOffice here (at least from the filesize). However it seems to miss a lot of words such as `forecasted` or `aggregator`. Is there a more comprehensive one available for download?


title: Defining a macro in LaTeX with an optional parameter in round brackets

text: Is it possible to build a macro with an _optional_ parameter enclosed in round brackets `()` rather than square brackets, where one can say for example:               \mymacro(){}{}      or               \mymacro{}{}


title: (La)TeX Logo - Where does it come from?

text: Being a big fan of "logo design" I was wondering where the (La)TeX logo comes from. ![enter image description here](http://i.stack.imgur.com/8cOCd.png) I found Custom LaTeX logo explaining how to make my own (La)TeX like logo. Since everything within (La)TeX seems to follow the rules of typography, I'm pretty sure there is something about how this logo is created.


title: A special example environment

text: How can I define an environment named "example" so that:   1. can be broken over pages   2. has a horizontal line above "Example \chap.\no" (e.g. Example 4.10), and vertical line that is spread to the whole content of the example and ends to a square symbol close to the text or formula   3. tables, figures, and other floats can be inserted in the environment   4. the last line of this environment can be text or formula; If it is a formula, the square symbol (QED) should be inserted close to it (the same but not the next line)   5. has a bold horizontal line above "Example 4.8". The line has to be as long as "Example 4.8" length; so it should not have a fixed length.   6. the bottom horizontal line should come to near of the rightmost word at the last line. For example, in the image below, the rightmost word at the last line, is "`5685.`", so we want to draw the bottom horizontal line (and consequently the QED symbol), just near to this word. Just like the following image **EDIT: conditions 5 and 6 added** ![enter image description here](http://i.stack.imgur.com/xCHUz.jpg)


title: Additional vertical space resulting from TikZ image/macro

text: I am creating a document with a header image created in TikZ. I have encountered an unusual behaviour that is frustrating my attempts to control the positioning. If the header is left out (for instance by commenting out `\header` in the code below, the first section begins hard up against the top of the page (in this example). However, with the header image included, called with the macro `\header`, the first section begins lower. The amount it drops down is greater than the separation between the sections. What is this spacing? Where does it come from? Is there a defined length controlling it? Ideally I would like to compensate for it in the definition of `\header` in an associated class file and control precisely where the text will begin below the header.               \documentclass{article}          \usepackage[top=0mm, bottom=30mm, left=20mm, right=20mm, nohead, nofoot]{geometry}     \usepackage{tikz}          \newcommand{\header}{     \begin{tikzpicture}[remember picture,overlay]     \node [rectangle, fill=black!40, anchor=north, minimum width=\paperwidth, minimum height=4cm] (box) at (current page.north){};     \end{tikzpicture}}          \begin{document}          \header          \section{The First}     Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed ipsum ipsum, porta eget rutrum et, scelerisque at tortor. Donec adipiscing est sed odio congue, quis pulvinar leo semper. Sed euismod ut augue a imperdiet. Ut et enim quam. Nam id hendrerit mi, sed pretium tortor.      \section{The Second}     Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed ipsum ipsum, porta eget rutrum et, scelerisque at tortor. Donec adipiscing est sed odio congue, quis pulvinar leo semper. Sed euismod ut augue a imperdiet. Ut et enim quam. Nam id hendrerit mi, sed pretium tortor.           \end{document}      Many thanks


title: KOMA-Script (scrbook): onecolumn table of contents & minitoc in twocolumn document

text: I have problem with formatting of my tables of contents. Please see my MNWE below. I would like to _switch all of my tables into one column layout_. I try to use solution from this tex.stackexchange answer, which use this peace of the tex code:               \unsettoc{toc}{onecolumn}       but it seems, that doesn't work. I tried to understand manual scrbook (page 264), but unfortunately I did not get it. I use miktex/xelatex. I attach also pictures the result of translation.               \documentclass[twocolumn]{scrbook}     \usepackage[nohints]{minitoc}       \unsettoc{toc}{onecolumn}     \usepackage{lipsum}     \begin{document}     \dominitoc     \tableofcontents     \chapter{Foo}     \minitoc     \lipsum[1]     \section{Bar}     \lipsum[2]     \subsection{Baz}     \lipsum[3]     \section{FooBarBaz}     \lipsum[4]     \end{document}      ![enter image description here](http://i.stack.imgur.com/v8ISx.png) **figure 1** : Command `\tableofcontents` * * * ![enter image description here](http://i.stack.imgur.com/120qW.png) **figure 2** : Command `\minitoc`


title: Defining a command with arbitrary number of parameters

text: I've done a few searches, and found possible solutions to my question. However, those that I saw were somehow more complicated than what I think I really need. So please excuse me for asking again. Here's the scenario: I want to define a math command that gives the long exact sequence of the given parameters. So for example, if I write `\longexactsequence{A}{B}{C}{D}` then I expect to have something like `0 \longrightarrow A \longrightarrow B \longrightarrow C \longrightarrow D \longrightarrow 0`. Similarly, if I just write `\longexactsequence{A}`, then I would just get `0 \longrightarrow A \longrightarrow 0`. How can I do this? I'm also pushing this one step further, as I would doubly appreciate a "fix" for breaking the line if the output equation is already too long. Thanks a lot, and all comments, hints, etc would be greatly appreciated!


title: Formatting cites in foonotes and bibliography differently using biblatex

text: I am creating my own class file that I want to use for a series of homeworks I have to write for my studies. I got stuck when trying to get the references sorted as per the university's template. What I need: Cites in footnotes, so I am using `\footcite`. In the **footnotes** I need the following format depending on the reference type.   In case of `@book`:               {Author Lastname}, {Author First letter of firstname}.: {title}, {year}, {pages}      In case of a `@online`                 {Author Lastname}, {Author First letter of firstname}.: {title}, {url} (as of {date})      in the **bibliography** however I need a different format such as   In case of `@book`:               {Author Lastname}, {Author Firstname} ({year}): {title}. {location}:{publisher}, {pages}      In case of `@online`:               {Author Lastname}, {Author Firstname}.: {title}, {url} (as of {date})      For the last couple of days I have been reading the `biblatex` manual, I have searched the web and I have tried a number of ways to accomplish the above. Unfortunately I failed. I seemed to get closer to a solution by playing with the following command:               \DeclareCiteCommand{\footcite}[]     {}%Pre Code     {%Loop Code     \printnames{author}%     \printtext{:}     \newunit\newblock     \printfield{title}%     \printtext{,}     \newunit\newblock     \printfield{year}%      \printtext{,}     \newunit\newblock     \printfield{pages}      }     {\addsemicolon\space}%Sep Code     {}%Post Code      One problem with the above is that I couldn't manage to get the author's name in the right format. I was able to make `biblatex` abbreviate the first name by using the `firstinits` package option but then it was abbreviated in the bibliography, too. That I don't want. The much bigger problem for me is to handle both `@book` and `@online` differently. I don't know how to do that with `\DeclareCiteCommand`. I figured I needed help so I started to create a simplified example. Please see below.               \documentclass{article}          \usepackage[backend=biber,style=authoryear]{biblatex}          \usepackage{filecontents}     \begin{filecontents}{\jobname.bib}     @book{book2000, author={Jon Smith}, title={The Book's Title}, pages = {S. 42 - S. 44}, year={2000}}          @online{web2000, author={Author}, title={The website's Title}, date={2000-01-01}, url={www.myurl.com}, year={2001}}     \end{filecontents}          \addbibresource{\jobname.bib}          \begin{document}          Book\footcite{book2000}     Website\footcite{web2000}          \printbibliography          \end{document}      I really do appreciate any help with the above!


title: Adding mathjax in weebley

text: In weebley I want to write the website content as LATEX so I have found a link that is saying that I will have to insert a code (`<script src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS- MML_HTMLorMML"> </script>`) in Design mode( click Edit HTML/CSS and add this before the tag). I have found the HTML/CSS mode but didn't get `<head>` tag. I see there `header`. Where I will have to add the mathjax link? ![enter image description here](http://i.stack.imgur.com/WCi0Z.png)


title: Latex image not found

text: running `TeXnicCenter LaTex >> PDF` produces the following error:               LaTex warning: File 'Energy_Arc.png' not found.      Output shows empty box where image should be (with same error as above written inside it). I have placed this png in C:\Program Files\TeXnicCenter (I am assuming this is the build location). As per http://stackoverflow.com/questions/3134187/how-to-add-a-jpg-image-in- latex , the code I'm using is               \usepackage{graphicx}     \begin{figure}[ht!]     \centering     \includegraphics[width=90mm]{Capture1.png}     \caption{A simple caption}     \label{overflow}     \end{figure}      Output crashes when compiling Latex >> DVI (but only when attempting to actually view the image in output). I have also tried the above with .jpg (no difference).


title: New command in TeX for fraction

text: Now I need to redefine the fractions as follows By writing `\fr{2,3}`, we get `$\frac{2}{3}$`. How can I achieve this? I have tried               \newcommand{\fr}[1,2]{\frac{#1}{#2}}      but got wrong.


title: Enumerate package wont allow to change format

text: I have a _[journal]{IEEEtran}_ document (I just don't want to change the document type). I have had lots of problems, like: I cannot manage to enumerate even pages to the left and odd pages to the right (I have tried everything). But **most important now** is that the command `enumerate` won't let me put, for example, roman numbers. I am doing it this way:               \begin{enumerate}[i]     ...     \end{enumerate}      Have I the chance to fix all at once: not having to change the document type? How do I enumerate with roman numbers then (not loading any other packages)?


title: How can I remove extra space after `itemize` in moderncv?

text: In a `moderncv` document, using an `itemize` in a `cvitem` produces extra spacing after the itemized list. Here's a minimum working example:               \documentclass{moderncv}          \moderncvstyle{casual}     \moderncvcolor{green}          \name{John}{Smith}          \begin{document}     \makecvtitle          \section{List section}     \cvitem{Some category}{         \begin{itemize}             \item the first             \item the second             \item the third         \end{itemize}     }     \cvitem{Another category}{         \begin{itemize}             \item number one             \item number two             \item number three         \end{itemize}     }     \cvitem{text}{with a description}          More text.          \end{document}      I can add a `\vspace{-1em}` after each `itemize` to remove the space, but that seems like fighting the LaTeX rather than embracing it. Is there a setting I can change to remove the extra spacing here?


title: Reference a slide in Beamer

text: I have an example in my beamer presentation which I mention in another page. I want to include the page of that example in an automatic way. Here is my code. The reference to the example is on the last page. Thank you.               \documentclass[]{beamer}     \usetheme{Madrid}          \usenavigationsymbolstemplate{}          \title{Main Title}      \author{Jane Doe}     \institute{University A}     \date{\today}          \begin{document}          \begin{frame}     \titlepage % Print the title page as the first slide     \end{frame}          \begin{frame}     \frametitle{First Page}     \begin{exampleblock}{Example}     This is an example which will be used later.     \end{exampleblock}     \end{frame}          \begin{frame}     \frametitle{Second Page}     \begin{itemize}     \item Item 1     \item Item 2     \end{itemize}     \end{frame}          \begin{frame}     \frametitle{Third Page}     \begin{itemize}     \item In this slide, we are going to use the sample example on page 2. % Here I want to reference the page of the example automatically.     \end{itemize}     \end{frame}          \end{document}


title: Tex Custom Arrow with oplus symbol

text: I'd like to create the kind of arrow that shows inner classes in UML, that is, an arrow that starts with an `\oplus` symbol as it can be seen here: http://myumlnotes.blogspot.com.es/2007/01/inner-class.html with Tikz. ![enter image description here](http://i.stack.imgur.com/pjRWB.png) Anyone could help me define that arrow? Something like `\pgfarrowsdeclare{OPLUS arrow}{OPLUS arrow}` could be perfect


title: TeXlipse installation problems

text: I have installed the most recent version of Eclipse (version 1.3.0.20100617-0521, build id 20100617-1415) and am trying to install the TeXlipse plugin. I've followed the installation guide thoroughly (although in my build of Eclipse the option was called "Install new software..." instead of "Software Updates/Find and install", but I assume that's because their screenshots are old...) and the installation seems to have gone through fine - no errors, and the Help/About pages suggest that TeXlipse (version 1.4) is installed and working. However, there are no configuration options available, so I can't follow step 2 of the installation guide, and when I try to open a *.tex document my old tex editor (TeXWorks) opens it instead. **What am I doing wrong here?**


title: What are the advantages of using version control (git, CVS etc) in LaTeX documents

text: Why would I need to use version control with my LaTeX documents? I know people who do it, and I've seen questions about it on here and on SO, but I haven't understood what value there is to doing it... [Maybe this should be CW? Also, someone >150 rep add some more tags, e.g. version-control]