title: PS to PDF conversion quality

text: On the (annoying) occasion that I have to download a paper in PS format, whenever I convert it to PDF (say some PS2PDF website utility), the resulting output is quite hard to read on the screen (the text is faded and very faint). What is the reason for this, and is there a "better" PS2PDF conversion tool?


title: fancyhdr overwrites my page numbering settings

text: \documentclass{mwrep}          %page number on the end of chapter     \makeatletter     \let\ps@closing\ps@plain     \makeatother          %margins     \usepackage{anysize}     \marginsize{3cm}{3cm}{2cm}{2cm}          \usepackage{lipsum}          %mark     \usepackage{fancyhdr}     \pagestyle{fancy}     \lhead{}\chead{}\rhead{}\lfoot{}\cfoot{}\rfoot{\thepage}     \renewcommand{\headrulewidth}{0pt}     \renewcommand{\footrulewidth}{0pt}     %mark          \begin{document}     \chapter{AAAAAAA}     \section{aaaaaaa}     \lipsum     \section{bbbbbbb}     \lipsum     \section{ccccccc}     \lipsum     \chapter{BBBBBBB}     \section{aaaaaaa}     \lipsum     \section{bbbbbbb}     \lipsum     \section{ccccccc}     \lipsum     \chapter{CCCCCCC}     \section{aaaaaaa}     \lipsum     \section{bbbbbbb}     \lipsum     \section{ccccccc}     \lipsum     \end{document}      When you remove code between `%mark`s, you get a number on every page. When I use `fancyhdr`, those settings are overwritten and page number is ommited at the beginning and the end of chapter. Is there a way to fix that? I'm only using `fancyhdr` to change position of page number.


title: Use fleqn with acm_proc?

text: I would like to use the fleqn option to amsmath package. However, my document class gets in the way: Writing                \documentclass[fleqn]{acm_proc_article-sp}      I am warned that the global option is ignored. But, writing,                \usepackage[fleqn]{amsmath}      I get an option clash warning. Is there a way to go around this limitation? I suppose I could hack the class file, but I would prefer not to.


title: Using baposter: position logos

text: I am preparing a poster, and the problem I have is that the logo stays center to the line of title, while i wanna it to respect the top margin. any idea how to do that?               {\includegraphics[scale=0.5]{LOGO1}}  %%%Added left logo     {\sf\bf \smaller What I talk about} % Poster title     {\vspace{0.2em} I am the speaker} % Author names     {\includegraphics[scale=0.5]{LOGO2}}      beside, how can I add a box the title part?


title: babel + xdef compile error

text: The following code throws the error               Incomplete \iffalse; all text was ignored after line 7      when I enable the `babel` package.               \documentclass[a4paper,12pt]{book}     \usepackage[latin1]{inputenc}     %\usepackage[italian]{babel} % uncomment me     \begin{document}     \label{testlabel}     \xdef\mytest{}     \xdef\mytest{\mytest \ref{testlabel}}     \end{document}      To provide a bit of context of what I'm trying to accomplish, see the more verbose example below:               \documentclass[a4paper,12pt]{book}     \usepackage[latin1]{inputenc}     %\usepackage[italian]{babel} % enabling this results in an error     \usepackage{enumerate}          \begin{document}          \xdef\myanswers{}     \newcommand{\myappend}[1]{\xdef\myanswers{\myanswers #1}}     \newcommand{\mycorrect}{\label{risp:\theqcnt}}          \newenvironment{questions}     {\section*{Questions}\vspace{2em}}     {\noindent\textbf{Answers: }\myanswers}          \newcounter{qcnt}     \setcounter{qcnt}{1}     \newenvironment{question}[3]     {\noindent\textbf{Question \theqcnt:}     \begin{enumerate}[(a)]     \item #1     \item #2     \item #3     \end{enumerate}     \myappend{\arabic{qcnt}\ref{risp:\theqcnt} }     }     {\vspace{2em}\stepcounter{qcnt}}          \begin{questions}     \begin{question}{first\mycorrect}{second}{third}\end{question}     \begin{question}{first}{second\mycorrect}{third}\end{question}     \begin{question}{first}{second}{third\mycorrect}\end{question}     \end{questions}          \end{document}


title: Error using XeLaTeX and Biber to cite sources

text: I am using Biber to cite my sources with `biblatex-apa`, with the package `apa6` on OS X. Everything was going smoothly until I added a certain source which caused `xelatex` to stop compiling with the error:               (./test.bbl     ! Illegal parameter number in definition of \NewValue.     <to be read again>                         }     l.36 ...{Introduction to Neural Networks for {C#}}          ?      I will provide an MWE that produces the error (to reproduce, run `xelatex test`, `biber test`, then `xelatex test` again): test.tex               \documentclass[man, 12pt]{apa6}     \usepackage{fontspec}     \usepackage[english]{babel}     \usepackage{csquotes}     \usepackage[backend=biber, style=apa, sorting=nty]{biblatex}     \DeclareLanguageMapping{british}{british-apa}     \addbibresource{test.bib}     \setmainfont{Times New Roman}     \DeclareFieldFormat[online]{title}{\mkbibemph{#1}}          \begin{document}     \title{My Title}     \author{My Name}     \affiliation{Chemistry I H, 4th hour, Ms. Kris Clements}     \note{October 15, 2013}     \shorttitle{Algorithms for protein sequence alignment}          \maketitle     Hello world \parencite{heatonresearch}.     \printbibliography     \end{document}      test.bib               @book{heatonresearch,         Author = {Heaton, Jeff},         Publisher = {Heaton Research},         Title = {Introduction to Neural Networks for {C#}},         Year = {2008}}      A strange thing happens with this setup: If I rerun `biber test`, an error pops up:               Entity: line 2063: parser error : Extra content at the end of the document       <bcf:section number="0">      Could someone please explain what the errors mean, and how I can fix this? My paper is due tomorrow, and it's worked fine up until now. Thanks!


title: Is there anywhere a tutorial of how to publish a book with LaTeX?

text: I am looking for all the tips and what should be considered specifically for the layout of professionally looking books.


title: Adding content on Sequence Diagram / Tikz uml / pgf-umlsd

text: Given the MWE below from Configure arrows in pgf-umlsd (compiled version on the link) :               \documentclass{article}     \usepackage{float}     \usepackage{tikz}     \usetikzlibrary{positioning, fit, calc, shapes, arrows}     \usepackage[underline=false]{pgf-umlsd}     \begin{document}          \begin{figure}[H]         \centering         \begin{sequencediagram}             \newinst{c}{Client}             \newinst[6]{s}{Server}                  \mess[1]{c}{Longer label}{s}             \mess[1]{s}{label}{c}             \mess[1]{c}{label}{s}             \mess[1]{s}{Longer label}{c}         \end{sequencediagram}         \caption{Client-Server messaging}     \end{figure}     \end{document}      I would like to add some "processing contents" on the left of the left dotted vertical bar and on the right of the right dotted vertical bar. (If possible to add some `\newline` inside of these "processing contents" also) * * * **Text example "linearised"* :**                       Client          Server           c^2 | --------------->| init               |                 | f=f(c^2)        g=g(f) | <---------------| f             g | --------------->| check if h=g               | <---------------| OK      * * * *What I mean is that I still want to use the above tex form, which has a nice rendering. The only thing I would like to add are information on both sides **at every start and end of an arrow**. I am looking for a simple solution if it is possible. Thank you in advance for any help you may provide.


title: Matlab2Tikz Error with userdefined matlab colors

text: I try to include from matlab exported (matlab2tikz) tikz files into latex, but get error messages if i don't use matlab default colors. I don't get the problem?! Thanks you guys in advance # Error: !Illegal unit of measure (pt inserted) and ! Missing number treated as zero # Latex:               \begin{figure}[!h]         \centering             \setlength\fheight{0.7\textwidth}         \setlength\fwidth{0.9\textwidth}             \includegraphics{img/image1.tikz}         \caption{Blabla}         \label{fig:blabla}     \end{figure}      # TIKZ FILE               % This file was created by matlab2tikz v0.4.7 running on MATLAB 8.1.     % Copyright (c) 2008--2014, Nico Schlömer <nico.schloemer@gmail.com>     % All rights reserved.     % Minimal pgfplots version: 1.3     %      % The latest updates can be retrieved from     %   http://www.mathworks.com/matlabcentral/fileexchange/22022-matlab2tikz     % where you can also make suggestions and rate matlab2tikz.     %      \begin{tikzpicture}          \begin{axis}[%     width=\fwidth,     height=\fheight,     view={322.5}{30},     scale only axis,     xmin=-0.2,     xmax=1.2,     xmajorgrids,     ymin=-1,     ymax=1,     ymajorgrids,     zmin=-0.1,     zmax=1.5,     zmajorgrids,     axis x line*=bottom,     axis y line*=left,     axis z line*=left     ]     \addplot3 [color=blue,solid]      table[row sep=crcr] {0.001 0.001   0.001\\     };      \addplot3 [color=white!96!green,solid,line width=2.0pt]      table[row sep=crcr] {0.479697819765937 -1.66533453693767e-18   -0.00291092455504537\\     0.46967140529907    -1.72084568816899e-17   -0.00304749019655101\\     };      \addplot3 [color=white!94!green,solid,line width=2.0pt]      table[row sep=crcr] {0.489715272722715 1.22124532708768e-17    -0.0027807983753805\\     0.479697819765937   -1.66533453693767e-18   -0.00291092455504537\\     };      \addplot3 [color=white!92!green,solid,line width=2.0pt]      table[row sep=crcr] {0.49972270061696  1.99840144432529e-17    -0.00265670325886659\\     0.489715272722715   1.22124532708768e-17    -0.0027807983753805\\     };      \addplot3 [color=white!90!green,solid,line width=2.0pt]      table[row sep=crcr] {0.509720409510899 2.66453525910038e-17    -0.00253825813233725\\     0.49972270061696    1.99840144432529e-17    -0.00265670325886659\\     };                    ...etc.                          \addplot3 [color=white!26!red,solid,line width=2.0pt]      table[row sep=crcr] {0.829795595454906 -0.105304898583202  1.38110200542629\\     0.819887002709082   -0.107828908692529  1.38122697033729\\     };      \addplot3 [color=white!24!red,solid,line width=2.0pt]      table[row sep=crcr] {0.839625002204565 -0.102840751537362  1.38096723284625\\     0.829795595454906   -0.105304898583202  1.38110200542629\\     };      \addplot3 [color=white!22!red,solid,line width=2.0pt]      table[row sep=crcr] {0.849338403333923 -0.100435918845974  1.38082311765581\\     0.839625002204565   -0.102840751537362  1.38096723284625\\     };      \addplot3 [color=white!20!red,solid,line width=2.0pt]      table[row sep=crcr] {0.858894935151754 -0.0980874166907242 1.38067020233289\\     0.849338403333923   -0.100435918845974  1.38082311765581\\     };      \addplot3 [color=white!18!red,solid,line width=2.0pt]      table[row sep=crcr] {0.868252379508359 -0.0957923868952757 1.38050895947337\\     0.858894935151754   -0.0980874166907242 1.38067020233289\\     };      \addplot3 [color=white!16!red,solid,line width=2.0pt]      table[row sep=crcr] {0.877369369839138 -0.0935501070091226 1.38033968037477\\     0.868252379508359   -0.0957923868952757 1.38050895947337\\     };      \addplot3 [color=white!1.400000e+01!red,solid,line width=2.0pt]      table[row sep=crcr] {0.886207753298735 -0.0913610489013081 1.38016252820557\\     0.877369369839138   -0.0935501070091226 1.38033968037477\\     };      \addplot3 [color=white!12!red,solid,line width=2.0pt]      table[row sep=crcr] {0.894734885516806 -0.089226416250731  1.37997756748673\\     0.886207753298735   -0.0913610489013081 1.38016252820557\\     };      \addplot3 [color=white!10!red,solid,line width=2.0pt]      table[row sep=crcr] {0.902923998583969 -0.0871451464648408 1.37978494412629\\     0.894734885516806   -0.089226416250731  1.37997756748673\\     };      \addplot3 [color=white!8!red,solid,line width=2.0pt]      table[row sep=crcr] {0.910755941285036 -0.0851129457921532 1.37958495399157\\     0.902923998583969   -0.0871451464648408 1.37978494412629\\     };      \addplot3 [color=white!6!red,solid,line width=2.0pt]      table[row sep=crcr] {0.918222014540111 -0.0831254886403127 1.37937794641879\\     0.910755941285036   -0.0851129457921532 1.37958495399157\\     };      \addplot3 [color=white!4!red,solid,line width=2.0pt]      table[row sep=crcr] {0.9253245154501   -0.0811820599220048 1.37916419853541\\     0.918222014540111   -0.0831254886403127 1.37937794641879\\     };      \addplot3 [color=white!2!red,solid,line width=2.0pt]      table[row sep=crcr] {0.932071571122559 -0.0792840566576747 1.37894400837872\\     0.9253245154501 -0.0811820599220048 1.37916419853541\\     };      \addplot3 [color=red,solid,line width=2.0pt]      table[row sep=crcr] {0.938471567465238 -0.0774304719790548 1.37871788704809\\     0.932071571122559   -0.0792840566576747 1.37894400837872\\     };      \addplot3 [color=black,line width=4.0pt,mark size=6.5pt,only marks,mark=o,mark options={solid}]      table[row sep=crcr] {0.938471567465238 -0.0774304719790548 1.37871788704809\\     };      \addplot3 [color=red,line width=2.0pt,mark size=6.5pt,only marks,mark=o,mark options={solid}]      table[row sep=crcr] {0.938471567465238 -0.0774304719790548 1.37871788704809\\     };      \end{axis}     \end{tikzpicture}%


title: why does \mathbf{\rho} do not show as bold, but \boldsymbol{\rho} do?

text: May be related How can I get bold math symbols? I use Scientific word, and when I wanted to make some symbols and letters as vectors. So I select, in math mode, a symbol, and then using the menu, select the `bold` option, it generates this code, using `\mathbf`. Here is an example               \[     \mathbf{V}_{p/2}=\mathbf{\dot{R}}_{3/2}+\mathbf{\omega}_{3/2}\times     \mathbf{\rho}_{3p}+\mathbf{\dot{\rho}}_{3p,r}%     \]      The above, when compiled with Latex, shows the `\rho` as not bold. Screen shot below. Next, I changed the selection from the menu to `boldsymbol` instead of `bold` and this the new code generated:               \[     \mathbf{V}_{p/2}=\mathbf{\dot{R}}_{3/2}+\mathbf{\omega}_{3/2}\times     \boldsymbol{\rho}_{3p}+\boldsymbol{\dot{\rho}}_{3p,r}%     \]      Now the `\rho` does show as bold when compiled. I was wondering why that is. I would have thought both will be bold, but different fonts? Bit confusing, since I thought what shows on the screen will be what shows in the PDF file. (ps. this issue affects `\omega` as well as `\rho` but not the letter `R` as can be seen) Here is a screen shot. I am using TL 2013 to compiled the .tex code. (I only use SW to type in the Latex via the GUI). Compiled on Linux mint. ![enter image description here](http://i.stack.imgur.com/TEle0.png) Fyi, the options I have to change the fonts are these shown in this screen shot. ![enter image description here](http://i.stack.imgur.com/0qYOt.png)


title: figure between date and bottom of the title page

text: > **Possible Duplicate:**   >  How to insert an image in the front cover of a report? I want to insert a `.eps` figure on the title page of a report. This figure has to be placed after date and then some text below this figure. But I get only title, author, date on the title page. The figure and some text below it comes in next page. Could someone help me to make this figure and text also come on the title page after the date. Below is the code I used.               \documentclass [11pt,a4paper,twoside] {report}     \usepackage[T1]{fontenc}     \usepackage[demo]{graphicx}     \usepackage{titling}     \setlength{\droptitle}{-30em}          \begin{document}     \title{LEARNING LATEX}     \author{rakesh}     \date{\today}      \maketitle          \begin{figure}[h]     \centering     \includegraphics [scale=1, width=2cm,height=2cm] {logo.eps}     \end{figure}           \begin{center}     dummy text1\\ dummy text2, text3.     \end{center}          \end{document}


title: How to superimpose an image on table?

text: I wish to superimpose a colored call-out object as an image indicating a particular cell in a table.The call-out box will be pointed to a cell and will lie over few other cells.


title: Multiple TIKZ-UML usecase not showing correctly when included in document

text: I'm using TIKZ-UML to create four simple usecase diagrams. I have made them individually in seperate files to make sure that they all compile as they should. I include the required packages in my preamble and include a reference to the files containing the tikzpictures in my document. When I compile the first diagram it compiles (and shows) just fine, but the following three diagrams seem to be affected by a width stated in a \usecase of the first diagram. This diagram is the first one that is included in the document:               \begin{figure}     \centering          \begin{tikzpicture}          \umlactor[y=4]{Supervisor}     \umlactor[y=2]{Co-Supervisor}     \umlactor[y=0]{Examinator}          \umlusecase[x=5, y=2, fill=lightgray!50, width=3cm]{Determining examiner availability}          \umlactor[x=10, y=2]{Secretary}          \umlassoc{Supervisor}{usecase-1}     \umlassoc{Co-Supervisor}{usecase-1}     \umlassoc{Examinator}{usecase-1}          \umlassoc{usecase-1}{Secretary}          \end{tikzpicture}     \caption{Scenario: Determining examiner availbility.}     \end{figure}      The other diagrams are much the same, only with a different text for the \usecase (and possibly an other width. The preamble for the diagram contains:               \usepackage{tikz}     \usepackage{tikz-uml}     \usetikzlibrary{positioning,chains,fit,shapes,calc}      Link to example: First diagram OK, next one has the wrong width


title: Automated Cover Letters with Dynamic Content

text: I'm trying to generate cover letters starting from a single document. Since I'm sending the same letter to different persons with different address I thought it would be great to use this document as template and change only the information pulling data from another file, much in the way dynamic HTML documents works. Now I have two documents, the main one that will contain all the letters and pull the information, and the other with the content. Here are my documents: This document is called " **Infection-Label_letters** :"               \documentclass[11pt,a4paper,sans]{moderncv}        \moderncvstyle{classic}              \usepackage{datetime}     \usepackage[ngerman,english]{babel}      \usepackage[english,ngerman]{babel}          \usepackage{etoolbox}% http://ctan.org/pkg/etoolbox          \makeatletter          \patchcmd{\makelettertitle}% <cmd>      {\raggedright \@opening}% <search>      {\@opening}% <replace>      {}{}% <success><failure>      \patchcmd{\makelettertitle}%       {\end{minipage}\\[1em]}%       {\end{minipage}\\[2em]}%       {}{}           \renewcommand*{\makeletterclosing}{        \@closing\\[6em]%        {\bfseries \@firstname~\@familyname}%        \ifthenelse{\isundefined{\@jobtitle}}{}{\\\@jobtitle}% <-- added to orig. def       \ifthenelse{\isundefined{\@enclosure}}{}{%         \\%          \vfill%          {\color{color2}\itshape\enclname: \@enclosure}}}          \def\jobtitle#1{\def\@jobtitle{#1}}          \makeatother          \moderncvcolor{green}         \usepackage[utf8]{inputenc}       \usepackage[scale=0.75]{geometry}     \name{Name}{Surname}     \address{Address}{City}{Country}     \phone[mobile]{+00~(000)~0000~0000}      \email{name@domain.com}          \homepage{www.domain.com}           \begin{document}          % Label #001     \begin{}     \newcommand{\labelName}{Name}     \newcommand{\addressFirstLine}{Address 1}     \newcommand{\addressSecondLine}{Address 2}     \newcommand{\addressThirdLine}{Address 3}     \newcommand{\theName}{Sir}     \newcommand{\theSurname}{ or Madam}     \newcommand{\recipientJob}{News Editor}     \newcommand{\enclosedItems}{one-sheet, demo CD, ''Title'' reviews.}     \include{Infection-Label_letter_template}     \end{}          % Label #002     \begin{}     \newcommand{\labelName}{Name}     \newcommand{\addressFirstLine}{Address 1}     \newcommand{\addressSecondLine}{Address 2}     \newcommand{\addressThirdLine}{Address 3}     \newcommand{\theName}{Sir}     \newcommand{\theSurname}{ or Madam}     \newcommand{\recipientJob}{News Editor}     \newcommand{\enclosedItems}{one-sheet, demo CD, ''Title'' reviews.}     \include{Infection-Label_letter_template}     \end{}               \jobtitle{Band Leader}     \makeletterclosing          \end{document}      This one is called " **Infection-Label_letter_template** :"               \begin{document}          \recipient{\labelName}{\addressFirstLine\\\addressSecondLine\\\addressThirdLine}     \date{\today}     \opening{Dear \theName\theSurname,}     \closing{Sincerely,}     \enclosure[Attached]{\enclosedItems}         \makelettertitle     \parskip 11pt          I'm writing to introduce Band, a death metal band in the vein of Death, Cannibal Corpse, and Monstrosity. During the time the band has been active, we have independently-released our first album, "Title,'' which received positive reviews from magazines and international press. We are now willing to take one step ahead and reach a broader audience with our music.          Infection have finished recording a new album entitled "Title.'' Therefore, our band is currently seeking a recording contract with a quality label like \labelName.           I have enclosed a CD and full press kit. I hope you can give Band's music a listen and consider us for a position on your roster. If you have questions, you can contact me by email at nameo@domain.com or at the address and phone above. Thanks for your time.          \end{document}      I acknowledge that my code is not working, but that's I have at this very moment. I tried to adapt the idea from this link: http://kb.mit.edu/confluence/pages/viewpage.action?pageId=3907466 Any help will be appreciated!


title: Unicode characters in pdflatex output using hexcode without UTF-8 input

text: I want to use Unicode characters (for Korean language, i.e. Hangul: U+AC00 - U+D7A3; maybe also U+1100 - U+11FF) in the output of latex(/pdflatex) while the LaTeX source file should be coded in 7 bit ASCII as before. I would like to have something similar to `\ding{number}` for ZapfDingbats for Unicode selected via its hexcode, something like:               \unicodechar{bc73}      to generate a character. The output should be generated as before:               latex -> dvips -> ps2pdfwr      Until now I have only seen unicode examples using UTF-8 encoding in source code - which is not an option for me - and typically using xelatex (disrupting my book - having problems with the packages I am using). I use TeXLive 2012 (Debian) fully installed (incl. CJK package) under Xubuntu 12.10, so in principle the fonts should be there. I would really appreciate any answer or at least a hint to the solution - or in worst case a reason why this may not be possible at all. NEWLY ADDED: Please read the facts above. No comment or answer is even near the question - look at unicode questions here - this question is totally different. No German Umlaute or Eurosign - that's simple. No entering of Unicode chars in the editor or elsewhere, only visible in the output. No XeLaTeX or LuaLaTeX. Just an example to print Hangul characters under conditions given above or a reason why it won't work with latex/pdflatex - please.


title: pgfplots: Selectively reducing marker size in the legend

text: I have a plot created using `pgfplots` in which I have included a legend. However, I find that the marker sizes in the legend are the same size as the markers used in the main plot. I think this is a bit distracting, and I usually prefer markers in the legend to be slightly smaller than markers in the main plot. (Similarly, legend text to be smaller than labels). The manual says that the legend is implemented as a TikZ matrix; however, I couldn't figure out how to change the marker symbol sizes selectively. My current line in the code that determiens legend style is:               legend style={draw=black,rounded corners=3pt,thin,at={(0.03,0.97)},anchor=north west}      Any changes I make to these option only influences the outer box. Modifying the line to               legend style={draw=black,rounded corners=3pt,thin,at={(0.03,0.97)},anchor=north west,                       font=\small}      only changes the font of the text in the legend itself. **Is there a way to selectively change the marker size in the legend alone?** In a related question, If I mark a particular point with a small rectangle around it (using the draw command), and then want to include that rectangle in the legend to describe what the marking means, how is that done? # Update following @cmhughes recommendation Here is the modified MWE:               \documentclass{standalone}     \usepackage{pgfplots, amsmath, amssymb}     \pgfplotsset{width=7cm, compat=newest}     \pgfplotsset{every axis/.append style={                         legend style={font=\tiny,line width=5pt,mark size=10pt},                         }}     \begin{document}         \begin{tikzpicture}             \begin{axis}[                 xmode =                             log,                 ymode =                             log,                 xlabel =                            {A},                 ylabel =                            {B},                 ]                 \addplot[                     color =                             red,                     mark =                              x,                     mark size =                         2,                     only marks,                 ]                  coordinates                  {                     (2,2.8559703)                     (30,30.5301677)                     (400,400.3050655)                     (5000,5000.1413136)                     (60000,60000.0322865)                 };                 \addlegendentry{some data}             \end{axis}         \end{tikzpicture}     \end{document}      ![enter image description here](http://i.stack.imgur.com/EKuuR.jpg) I went through the code once more and have pinned down the problem to the `addplot[mark size = 2]` option. Commenting out this line changes the marker size in the legend exclusively (Marker size, line widths exaggerated for illustration): ![enter image description here](http://i.stack.imgur.com/w654w.jpg) But I would like to have the option of changing the marker size in the plot according to my needs, and independently scaling down all legend marker sizes.


title: How to manage expansion for this case?

text: My objective is to automatically compile parameterized template from within a main input file. For each compilation, a unique jobname and parameter are passed to the compiler. The problem is, passing parameter requires me to manage both expansion and unexpansion in the proper order. Consider the important part of MWE,               \immediate\write18{pdflatex -jobname=\outputfilename\space "\def\name{\target} \input{template}"}      The `\target` must be expanded while `\def\name` must be unexpanded.               \documentclass[preview,border=12pt]{standalone}     \usepackage{filecontents}     \begin{filecontents*}{template.tex}     \documentclass[preview,border=12pt]{standalone}     \begin{document}     Hello \name     \end{document}     \end{filecontents*}          \usepackage{pgffor,graphicx}     \foreach \outputfilename/\target in {a/Andy,b/Bill,c/Charlie}{\immediate\write18{pdflatex -jobname=\outputfilename\space "\def\name{\target} \input{template}"}}     \begin{document}     The files we created automatically are:          \foreach \outputfilename in {a,b,c}{\fbox{\includegraphics[scale=2]{\outputfilename}}\endgraf}     \end{document}      I have not learnt the token expansion so this case seems very disturbing in my daily usage of TeX. How to manage these expansions?


title: Error using subcaption

text: I've used the subcaption package in the past without any problem. But now, i can't use it, which makes it impossible to compile some important documents. If i try to compile               \documentclass{article}     \usepackage[demo]{graphicx}     \usepackage{caption}     \usepackage[skip=0cm,list=true,labelfont=it]{subcaption}     \begin{document}     \begin{figure}[hptb]     \centering     \begin{tabular}{l l}     \subfloat[\label{fig:g1} Figura 1]        {\resizebox{0.45\textwidth}{!}{\includegraphics{img_a}}} &     \subfloat[\label{fig:g2} Figura 2]        {\resizebox{0.45\textwidth}{!}{\includegraphics{img_a}}} \\     \end{tabular}     \caption{Figure caption.}     \end{figure}     \end{document}      i get the error:               ! Undefined control sequence.     l.14 \subfloat     [\label{fig:g1} Figura 1]      From the file log:               This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012/Debian) (format=latex 2012.9.18)     Package: caption 2012/02/19 v3.2f Customizing captions (AR)     Package: caption3 2012/01/12 v1.4b caption3 kernel (AR)     Package: subcaption 2012/01/12 v1.1d Sub-captions (AR)      Any idea on what the problem might be?


title: Problem installing culmus-latex on ubuntu 12.04

text: I'm trying to get Hebrew to work for my LaTeX/LyX on Ubuntu 12.04. I have TeX Live 2012 installed and the Hebrew works for that. Then I followed the instructions for installing LyX + Hebrew support, this requires installing the `culmus` LaTeX package. I've gotten this to install as well, however for some reason LaTeX doesn't recognize the file `culmus.sty`. The path for the file is `/usr/share/texmf-texlive/tex/latex/culmus/culmus.sty` I've also copied the file to my `~/texmf` directory. I've run both `mktexlsr` and `texhash`, but when I try to compile a LaTeX file with `\usepackage{culmus}`, I get > ERROR: LaTeX Error: File `culmus.sty` not found. In addition, when I save the file in the `~/texmf` directory and compile, I no longer get that error, instead I get:               ERROR: I can't find file `jerus10'.          --- TeX said ---     <*> ...=ljfour; mag:=1; nonstopmode; input jerus10          Please type another input file name     ! Emergency stop.     <*> ...=ljfour; mag:=1; nonstopmode; input jerus10          Transcript written on mfput.log.     grep: jerus10.log: No such file or directory     mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input jerus10' failed to make jerus10.tfm.     kpathsea: Appending font creation commands to missfont.log.          ! Font LHE/cmr/m/n/10=jerus10 at 10.0pt not loadable: Metric (TFM) file not found.     <to be read again>                         relax      l.2 \select@language{hebrew}      The file I'm using as a test goes as follows:               \documentclass[english,hebrew]{article}     \usepackage[utf8x]{inputenc}     \usepackage{babel}     %\usepackage{culmus}          \begin{document}     \selectlanguage{hebrew}     שלום לכל העולם!     \end{document}      Any help would be very appreciated!


title: When I include url on a line, it shows up left-justified instead of centered

text: If I use the `url` package and include a url on a line inside the `centering` environment, it shows up left-justified instead of centered. How can I make it centered? MWE:               \documentclass{article}     \usepackage{url}     \pagestyle{empty} % no page numbers           \begin{document}     \begin{centering}     \par My Name     \par My Department     \par My Department But With More Words     \par My department's Address     \par My phone number and e-mail address     \par Website: \url{http://my.web.site/}     \end{centering}          \end{document}


title: PDF conformance tool

text: Is there a (freely available) tool that will check the conformance of a PDF file to the PDF standard? I've heard this referred to as "pre-flight" or something along those lines.


title: europecv and biblatex compatibility problem

text: I use the `europecv` class and I'd like to use my `biblatex` bibliographies inside. It turns out that `europecv` needs the `ucs` package which is incompatible. Any idea how to deal with this problem?


title: tabular columns too wide

text: I want to fit the following table on a beamer slide.               \begin{tabular}{|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|}     A & B & C & D & E & F & G & H & I & J & K & L & M & N & O & P & Q & R & S & T & U & V & W &   X & Y & Z \\     G & T & U & J & C & P & L & D & O & R & Y & W & X & Z & F & I & V & Q & S & K & A & N & E & M & H & B \\     \end{tabular}      However it won't fit, because there is too much space in a single column. If the borders were to perfectly enclose the letters, it would fit. Does anyone know how to do that?


How to change line width of a column in table? I colored the table and some column lines aren't appearing, It's so tight that only with zoom it appears               \definecolor{cNaoImplementado}{rgb}{0.80,0.80,0.80}     \definecolor{cImplementado}{rgb}{0,0.8,0}          ...     \begin{landscape}         \chapter{Product Backlog}             % Table generated by Excel2LaTeX from sheet 'Plan1'             \begin{longtable}{|p{0.5in}|p{6in}|c|c|}                  \hline               {\bf ID} & {\bf Users Stories} & {\bf Tempo Previsto} & {\bf Status} \\                  \hline \rowcolor{cImplementado}                      1 & Como professor, eu quero decidir quais compromissos são públicos ou privados para manter sigilo. &         10 & Implementado \\                  \hline \rowcolor{cImplementado}                      2 & Como professor, eu quero a partir de uma disciplina cadastrar um plano de ensino com o programa e as bibliografias suplementares para as disciplinas que eu vou ministrar. &         40 & Implementado \\                  \hline \rowcolor{cImplementado}                      3 & Como professor, eu quero cadastrar meus compromissos no sistema para que todos saibam quando não posso agendar outro compromisso. &         40 & Implementado \\             \hline         \end{longtable}               \end{landscape}      ![enter image description here](http://i.stack.imgur.com/Oyj1w.png)


title: Laprint causing end of file during psfrag call

text: I am attempting to create and use file in my TeX document using `laprint.m`. The `laprint` function call produces the `.tex` and `.eps` files as expected. When I try to use `\input{filename}` though I get an error:               File ended while scanning use of \@@@psfrag \input{SparsAvgPerf}     followed by:     \begin{psfrags} on input line 14 ended by \end{document}. \end{document}      Both errors point to `\end{document}` in the uppermost file. The errors do not change whether the `\input` call is inside or outside of my figure environment. This is my first experience with `laprint` and `psfrag`, so I am not even sure where to begin debugging. Edit:                   \documentclass{thesis}         \usepackage{psfrag}         \usepackage{graphicx}         \usepackage{color}         \begin{document}         \input{SparsAvgPerf}         \end{document}      A TeX file of only that produces the same errors, where SparsAvgPerf.TeX is in the same directory, and is the unmodified file created by laprint.m


title: Generate exam from a question bank?

text: I am looking for a LaTeX package that will allow me to generate an exam with questions drawn from a particular question bank. Each question within the bank would be a self-contained block of LaTeX code. For example, in the spirit of the `exam` package, I might have the questions:               \question     $2+2=$     \begin{choices}     \choice 3     \choice 0     \choice 4     \choice $\sqrt{2}$     \choice $-\pi$     \end{choices}          \question     $\int_0^1 x^2\,dx=$     \begin{choices}     \choice $-1$     \choice $1/3$     \choice $\infty$     \choice $1/2$     \choice None of the above.     \end{choices}      This would be a bank containing two questions. Each question is a block of LaTeX code that, if it were to be "drawn" from the bank and inserted into a "parent", compilable LaTeX file, would thereby generate an exam (presumably what such a package would do). Being greedy, I'd really like if I could specify the number of questions $q_1$ to be drawn from question bank $B_1$, $q_2$ from $B_2$, etc. where each bank $B_i$ would be over a specific topic. If this already exists, I have not been able to find it. Preserving the functionality of the `exam` documentclass (or something like it) would make assigning points and/or generating answer keys simultaneous with (random) exam creation.


title: Umlauts in label

text: I'm using LuaLaTeX and wonder why I cannot label theorems with words containing umlauts. For example:               \documentclass[a4paper,12pt]{article}     \usepackage{luatextra}     \usepackage[utf8]{luainputenc}     \usepackage{amsthm}     \newtheorem{thm}{Theorem}     \begin{document}         \begin{thm} {\bf Exämple's_theorem}                  %\label{Exämple's theorem} % does not work                   \label{Exaemple's_theorem} % does work                  Lorem ipsum etc.         \end{thm}     \end{document}      Has anyone a clue why this is and - maybe how to resolve this ? I'm just curious for the underlying reason. Writing 'ae' instead of 'ä' is not a hard thing to do, so no solution is no problem. Additionally `lacheck` says you shouldn't use spaces in labels, but there occurred no errors during compilation - another white spot in my knowing `latex`/`luatex` map.


title: Different backgrounds for title and "normal" frames in beamer

text: I want to draw different backgrounds for the title frame and normal frames in beamer, using tikz. Doing this for the normal frames was straight forward, but that background now also shows up on the title frame (shifted to the bottom), which is not desired:               \documentclass{beamer}      \useoutertheme[subsection=true]{miniframes}%{miniframes}     \defbeamertemplate*{background}{miniframes theme}     {%       \begin{beamercolorbox}{background}       \begin{tikzpicture}         \fill[red] (current page.north west) rectangle ++(0.5cm,-0.5cm);       \end{tikzpicture}       \end{beamercolorbox}     }          \usepackage{tikz}     \usetikzlibrary{calc,positioning}     \usepackage{blindtext}          \title{new template}      \author{Christoph}           \setbeamertemplate{title page}{       \insertauthor            \insertdate            \insertinstitute            \inserttitlegraphic     }     \setbeamertemplate{navigation symbols}{}     \begin{document}      \frame[plain]{\titlepage}     \section{a section}     \subsection{a subsection}     \begin{frame}      \frametitle{Frame 1}     \blindtext     \end{frame}     \begin{frame}      \frametitle{Frame 2}     \end{frame}     \subsection{another subsection}     \begin{frame}      \frametitle{Frame 1}     \blindtext     \end{frame}     \begin{frame}      \frametitle{Frame 2}     \end{frame}     \end{document}      (my example just uses a red rectangle for simplicity) I have tried adding the tikzpicture to the header template, which resulted in a shifted navigation (without `tikzpicture[overlay]`), or the picture not showing up at all (with `tikzpicture[overlay]`). If this can be solved with the headline template, I'll use that. Text added to the frame should not be covered by the background picture.


title: Print a Notebook with LaTeX

text: I just came across something I missed a few years ago: I still use notebooks that do not have the correct margins for writing, i.e., the outer and bottom margins are the end of the page and the inner and top ones have been set by default. Assuming I'm using an A4 paper, I would like to get a template of a sheet that I can tell LaTeX to replicate 'n' times and make myself a beautiful "LaTeX Notebook", which includes the proper margins (perhaps only showing the inner and a light-shaded outer one), lines and page numbers. I've manage to get the margins going on according to Tschichold's rules (see here) using the `geometry` package:               \usepackage[textwidth=0.666667\paperwidth,inner=0.111111\paperwidth,textheight=0.666667\paperheight,headheight=15pt,bottom=0.222222\paperheight]{geometry}      Now, how can I set the lines and margins? Again, I'm not trying to get a box as in the `showframe` option of `geometry`, but just the inner margin along with a gray one on the outside. What should be the line sizes?


title: Error: \Undefined control sequence \setmainfont in Ubuntu 12.04

text: I am getting error on compiling following Latex code:               \documentclass{article}     \usepackage{fontspec}     \setmainfont{Code2000}     \begin{document}     abc     \end{document}      Error:               \Undefined control sequence \setmainfont{Code2000}      I am using Ubuntu 12.04 and Kile Version 2.1.0 Using KDE Development Platform 4.8.5 (4.8.5) I installed `texlive-full` for `fontspec` package. What am I missing because of which it is not recognizing the command `\setmainfont` ? The log file is given below:               This is XeTeX, Version 3.1415926-2.2-0.9995.2 (TeX Live 2009/Debian) (format=xelatex 2014.3.20)  20 MAR 2014 20:00     entering extended mode      %&-line parsing enabled.     **demo_unicode4.tex     (./demo_unicode4.tex     LaTeX2e <2009/09/24>     Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh     yphenation, farsi, arabic, croatian, bulgarian, ukrainian, russian, czech, slov     ak, danish, dutch, finnish, french, basque, ngerman, german, german-x-2009-06-1     9, ngerman-x-2009-06-19, ibycus, monogreek, greek, ancientgreek, hungarian, san     skrit, italian, latin, latvian, lithuanian, mongolian2a, mongolian, bokmal, nyn     orsk, romanian, irish, coptic, serbian, turkish, welsh, esperanto, uppersorbian     , estonian, indonesian, interlingua, icelandic, kurmanji, slovenian, polish, po     rtuguese, spanish, galician, catalan, swedish, ukenglish, pinyin, loaded.     (/usr/share/texmf-texlive/tex/latex/base/article.cls     Document Class: article 2007/10/19 v1.4h Standard LaTeX document class     (/usr/share/texmf-texlive/tex/latex/base/size10.clo     File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)     )     \c@part=\count80     \c@section=\count81     \c@subsection=\count82     \c@subsubsection=\count83     \c@paragraph=\count84     \c@subparagraph=\count85     \c@figure=\count86     \c@table=\count87     \abovecaptionskip=\skip41     \belowcaptionskip=\skip42     \bibindent=\dimen102     )     (/usr/share/texmf-texlive/tex/xelatex/fontspec/fontspec.sty     Package: fontspec 2008/08/09 v1.18 Advanced font selection for XeLaTeX          (/usr/share/texmf-texlive/tex/generic/ifxetex/ifxetex.sty     Package: ifxetex 2009/01/23 v0.5 Provides ifxetex conditional     )     \c@zf@newff=\count88     \c@zf@index=\count89     \c@zf@script=\count90     \c@zf@language=\count91          (/usr/share/texmf-texlive/tex/latex/longtableswas/calc.sty     Package: calc 2007/08/22 v4.3 Infix arithmetic (KKT,FJ)     \calc@Acount=\count92     \calc@Bcount=\count93     \calc@Adimen=\dimen103     \calc@Bdimen=\dimen104     \calc@Askip=\skip43     \calc@Bskip=\skip44     LaTeX Info: Redefining \setlength on input line 76.     LaTeX Info: Redefining \addtolength on input line 77.     \calc@Ccount=\count94     \calc@Cskip=\skip45     )     (/usr/share/texmf-texlive/tex/latex/xkeyval/xkeyval.sty     Package: xkeyval 2008/08/13 v2.6a package option processing (HA)          (/usr/share/texmf-texlive/tex/generic/xkeyval/xkeyval.tex     \XKV@toks=\toks14     \XKV@tempa@toks=\toks15     \XKV@depth=\count95     File: xkeyval.tex 2008/08/13 v2.6a key=value parser (HA)          (/usr/share/texmf-texlive/tex/generic/xkeyval/keyval.tex)))     (/usr/share/texmf-texlive/tex/latex/base/fontenc.sty     Package: fontenc 2005/09/27 v1.99g Standard LaTeX package          (/usr/share/texmf-texlive/tex/xelatex/euenc/eu1enc.def     File: eu1enc.def 2008/03/08 v0.1d Experimental unicode font encoding     )     LaTeX Font Info:    Try loading font information for EU1+lmr on input line 100.               (/usr/share/texmf-texlive/tex/xelatex/euenc/eu1lmr.fd     File: eu1lmr.fd 2007/01/14 v1.3 Font defs for Latin Modern     ))     LaTeX Info: Redefining \itshape on input line 1163.     LaTeX Info: Redefining \slshape on input line 1166.     LaTeX Info: Redefining \scshape on input line 1169.     LaTeX Info: Redefining \upshape on input line 1172.          fontspec.cfg loaded.     (/usr/share/texmf-texlive/tex/xelatex/fontspec/fontspec.cfg))     (./demo_unicode4.aux)     \openout1 = `demo_unicode4.aux'.          LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 4.     LaTeX Font Info:    ... okay on input line 4.     LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 4.     LaTeX Font Info:    ... okay on input line 4.     LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 4.     LaTeX Font Info:    ... okay on input line 4.     LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 4.     LaTeX Font Info:    ... okay on input line 4.     LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 4.     LaTeX Font Info:    ... okay on input line 4.     LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 4.     LaTeX Font Info:    ... okay on input line 4.     LaTeX Font Info:    Checking defaults for EU1/lmr/m/n on input line 4.     LaTeX Font Info:    ... okay on input line 4.     Package fontspec Info: Adjusting the maths setup (use [no-math] to avoid this).      on input line 4.     \symlegacymaths=\mathgroup4     LaTeX Font Info:    Overwriting symbol font `legacymaths' in version `bold'     (Font)                  OT1/cmr/m/n --> OT1/cmr/bx/n on input line 4.     LaTeX Font Info:    Redeclaring math accent \acute on input line 4.     LaTeX Font Info:    Redeclaring math accent \grave on input line 4.     LaTeX Font Info:    Redeclaring math accent \ddot on input line 4.     LaTeX Font Info:    Redeclaring math accent \tilde on input line 4.     LaTeX Font Info:    Redeclaring math accent \bar on input line 4.     LaTeX Font Info:    Redeclaring math accent \breve on input line 4.     LaTeX Font Info:    Redeclaring math accent \check on input line 4.     LaTeX Font Info:    Redeclaring math accent \hat on input line 4.     LaTeX Font Info:    Redeclaring math accent \dot on input line 4.     LaTeX Font Info:    Redeclaring math accent \mathring on input line 4.     LaTeX Font Info:    Redeclaring math symbol \colon on input line 4.     LaTeX Font Info:    Redeclaring math symbol \Gamma on input line 4.     LaTeX Font Info:    Redeclaring math symbol \Delta on input line 4.     LaTeX Font Info:    Redeclaring math symbol \Theta on input line 4.     LaTeX Font Info:    Redeclaring math symbol \Lambda on input line 4.     LaTeX Font Info:    Redeclaring math symbol \Xi on input line 4.     LaTeX Font Info:    Redeclaring math symbol \Pi on input line 4.     LaTeX Font Info:    Redeclaring math symbol \Sigma on input line 4.     LaTeX Font Info:    Redeclaring math symbol \Upsilon on input line 4.     LaTeX Font Info:    Redeclaring math symbol \Phi on input line 4.     LaTeX Font Info:    Redeclaring math symbol \Psi on input line 4.     LaTeX Font Info:    Redeclaring math symbol \Omega on input line 4.     LaTeX Font Info:    Redeclaring math symbol \mathdollar on input line 4.     LaTeX Font Info:    Redeclaring symbol font `operators' on input line 4.     LaTeX Font Info:    Encoding `OT1' has changed to `EU1' for symbol font     (Font)              `operators' in the math version `normal' on input line 4.     LaTeX Font Info:    Overwriting symbol font `operators' in version `normal'     (Font)                  OT1/cmr/m/n --> EU1/lmr/m/n on input line 4.     LaTeX Font Info:    Encoding `OT1' has changed to `EU1' for symbol font     (Font)              `operators' in the math version `bold' on input line 4.     LaTeX Font Info:    Overwriting symbol font `operators' in version `bold'     (Font)                  OT1/cmr/bx/n --> EU1/lmr/m/n on input line 4.     LaTeX Font Info:    Overwriting symbol font `operators' in version `normal'     (Font)                  EU1/lmr/m/n --> EU1/lmr/m/n on input line 4.     LaTeX Font Info:    Overwriting math alphabet `\mathrm' in version `normal'     (Font)                  EU1/lmr/m/n --> EU1/lmr/m/n on input line 4.     LaTeX Font Info:    Overwriting math alphabet `\mathit' in version `normal'     (Font)                  OT1/cmr/m/it --> EU1/lmr/m/it on input line 4.     LaTeX Font Info:    Overwriting math alphabet `\mathbf' in version `normal'     (Font)                  OT1/cmr/bx/n --> EU1/lmr/bx/n on input line 4.     LaTeX Font Info:    Overwriting math alphabet `\mathsf' in version `normal'     (Font)                  OT1/cmss/m/n --> EU1/lmss/m/n on input line 4.     LaTeX Font Info:    Overwriting math alphabet `\mathtt' in version `normal'     (Font)                  OT1/cmtt/m/n --> EU1/lmtt/m/n on input line 4.     LaTeX Font Info:    Overwriting symbol font `operators' in version `bold'     (Font)                  EU1/lmr/m/n --> EU1/lmr/bx/n on input line 4.     LaTeX Font Info:    Overwriting math alphabet `\mathrm' in version `bold'     (Font)                  EU1/lmr/m/n --> EU1/lmr/bx/n on input line 4.     LaTeX Font Info:    Overwriting math alphabet `\mathit' in version `bold'     (Font)                  OT1/cmr/bx/it --> EU1/lmr/bx/it on input line 4.     LaTeX Font Info:    Overwriting math alphabet `\mathsf' in version `bold'     (Font)                  OT1/cmss/bx/n --> EU1/lmss/bx/n on input line 4.     LaTeX Font Info:    Overwriting math alphabet `\mathtt' in version `bold'     (Font)                  OT1/cmtt/m/n --> EU1/lmtt/bx/n on input line 4.          ! Font \zf@basefont=Code2000 at 10.0pt not loadable: Metric (TFM) file or insta     lled font not found.     \zf@fontspec ...ntname \zf@suffix " at \f@size pt                                                        \unless \ifzf@icu \zf@set@...     l.5 \setmainfont{Code2000}          I wasn't able to read the size data for this font,     so I will ignore the font specification.     [Wizards can fix TFM files using TFtoPL/PLtoTF.]     You might try inserting a different font spec;     e.g., type `I\font<same font id>=<substitute font name>'.          ! Undefined control sequence.     \zf@set@font@type ...onttype \zf@basefont \zf@tfm                                                        \or \zf@atsuitrue \ifnum \...     l.5 \setmainfont{Code2000}          The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spelling (e.g., `I\hbox'). Otherwise just continue,     and I'll forget about whatever was undefined.          ! Font \zf@basefont=Code2000 at 10.0pt not loadable: Metric (TFM) file or insta     lled font not found.     \zf@fontspec ...ntname \zf@suffix " at \f@size pt                                                        \fi \zf@firsttimetrue \zf@...     l.5 \setmainfont{Code2000}          I wasn't able to read the size data for this font,     so I will ignore the font specification.     [Wizards can fix TFM files using TFtoPL/PLtoTF.]     You might try inserting a different font spec;     e.g., type `I\font<same font id>=<substitute font name>'.          \c@zf@famc@Code2000=\count96     Package fontspec Info: Defining font family for 'Code2000' with options [] on i     nput line 5.     ! Font \@tempfontb=Code2000 at 10.0pt not loadable: Metric (TFM) file or instal     led font not found.     \\zf@make@font@shapes ...f@suffix " at \f@size pt                                                        \edef \@tempb {\fontname \...     l.5 \setmainfont{Code2000}          I wasn't able to read the size data for this font,     so I will ignore the font specification.     [Wizards can fix TFM files using TFtoPL/PLtoTF.]     You might try inserting a different font spec;     e.g., type `I\font<same font id>=<substitute font name>'.          ! Font \@tempfonta=Code2000 at 10.0pt not loadable: Metric (TFM) file or instal     led font not found.     \\zf@make@font@shapes ...f@suffix " at \f@size pt                                                        \edef \@tempa {\fontname \...     l.5 \setmainfont{Code2000}          I wasn't able to read the size data for this font,     so I will ignore the font specification.     [Wizards can fix TFM files using TFtoPL/PLtoTF.]     You might try inserting a different font spec;     e.g., type `I\font<same font id>=<substitute font name>'.          ! Font \@tempfontb=Code2000/B at 10.0pt not loadable: Metric (TFM) file or inst     alled font not found.     \\zf@make@font@shapes ...f@suffix " at \f@size pt                                                        \edef \@tempb {\fontname \...     l.5 \setmainfont{Code2000}          I wasn't able to read the size data for this font,     so I will ignore the font specification.     [Wizards can fix TFM files using TFtoPL/PLtoTF.]     You might try inserting a different font spec;     e.g., type `I\font<same font id>=<substitute font name>'.          Package fontspec Info: Could not resolve font Code2000/B (it might not exist) o     n input line 5.     ! Font \@tempfonta=Code2000 at 10.0pt not loadable: Metric (TFM) file or instal     led font not found.     \\zf@make@font@shapes ...f@suffix " at \f@size pt                                                        \edef \@tempa {\fontname \...     l.5 \setmainfont{Code2000}          I wasn't able to read the size data for this font,     so I will ignore the font specification.     [Wizards can fix TFM files using TFtoPL/PLtoTF.]     You might try inserting a different font spec;     e.g., type `I\font<same font id>=<substitute font name>'.          ! Font \@tempfontb=Code2000/I at 10.0pt not loadable: Metric (TFM) file or inst     alled font not found.     \\zf@make@font@shapes ...f@suffix " at \f@size pt                                                        \edef \@tempb {\fontname \...     l.5 \setmainfont{Code2000}          I wasn't able to read the size data for this font,     so I will ignore the font specification.     [Wizards can fix TFM files using TFtoPL/PLtoTF.]     You might try inserting a different font spec;     e.g., type `I\font<same font id>=<substitute font name>'.          Package fontspec Info: Could not resolve font Code2000/I (it might not exist) o     n input line 5.     ! Font \@tempfonta=Code2000 at 10.0pt not loadable: Metric (TFM) file or instal     led font not found.     \\zf@make@font@shapes ...f@suffix " at \f@size pt                                                        \edef \@tempa {\fontname \...     l.5 \setmainfont{Code2000}          I wasn't able to read the size data for this font,     so I will ignore the font specification.     [Wizards can fix TFM files using TFtoPL/PLtoTF.]     You might try inserting a different font spec;     e.g., type `I\font<same font id>=<substitute font name>'.          ! Font \@tempfontb=Code2000/BI at 10.0pt not loadable: Metric (TFM) file or ins     talled font not found.     \\zf@make@font@shapes ...f@suffix " at \f@size pt                                                        \edef \@tempb {\fontname \...     l.5 \setmainfont{Code2000}          I wasn't able to read the size data for this font,     so I will ignore the font specification.     [Wizards can fix TFM files using TFtoPL/PLtoTF.]     You might try inserting a different font spec;     e.g., type `I\font<same font id>=<substitute font name>'.          Package fontspec Info: Could not resolve font Code2000/BI (it might not exist)      on input line 5.     ! Font EU1/Code2000(0)/m/n/10=Code2000: at 10.0pt not loadable: Metric (TFM) fi     le or installed font not found.     <to be read again>                         relax      l.5 \setmainfont{Code2000}          I wasn't able to read the size data for this font,     so I will ignore the font specification.     [Wizards can fix TFM files using TFtoPL/PLtoTF.]     You might try inserting a different font spec;     e.g., type `I\font<same font id>=<substitute font name>'.          Missing character: There is no a in font nullfont!     Missing character: There is no b in font nullfont!     Missing character: There is no c in font nullfont!     Missing character: There is no 1 in font nullfont!     [1          ] (./demo_unicode4.aux)           *File List*      article.cls    2007/10/19 v1.4h Standard LaTeX document class       size10.clo    2007/10/19 v1.4h Standard LaTeX file (size option)     fontspec.sty    2008/08/09 v1.18 Advanced font selection for XeLaTeX      ifxetex.sty    2009/01/23 v0.5 Provides ifxetex conditional         calc.sty    2007/08/22 v4.3 Infix arithmetic (KKT,FJ)      xkeyval.sty    2008/08/13 v2.6a package option processing (HA)      xkeyval.tex    2008/08/13 v2.6a key=value parser (HA)      fontenc.sty       eu1enc.def    2008/03/08 v0.1d Experimental unicode font encoding       eu1lmr.fd    2007/01/14 v1.3 Font defs for Latin Modern     fontspec.cfg      ***********           )      Here is how much of TeX's memory you used:      2186 strings out of 494665      44134 string characters out of 1166477      121792 words of memory out of 3000000      5460 multiletter control sequences out of 15000+50000      3648 words of font info for 15 fonts, out of 3000000 for 9000      669 hyphenation exceptions out of 8191      27i,4n,27p,449b,142s stack positions out of 5000i,500n,10000p,200000b,50000s          Output written on demo_unicode4.pdf (1 page).


title: Creating a section template

text: I'm reading a lot of papers, and writing notes on them as I go. I want to make a single document containing one `\section` for every `proceedings-year`, with a `\subsection` for every paper. (I'm using `biblatex`). An example:               \section{Proceedings-Year}          \subsection{\citetitle*{foobarbaz}}     \subsubsection{Topics Addressed}     \begin{itemize}     \item Foo     \item Bar     \item FooBar     \end{itemize}          \subsubsection{Paper Quality}     \textbf{Medium}: This paper is well-written, but foo bar baz blah.           \subsubsection{Notes}     Some notes on the paper. It might be interesting, or not, or whatever.           \subsubsection{Citation}     \begin{quote}     \fullcite{foobarbaz}     \end{quote}     \hrulefill      I'm happy with the layout, but I don't like copy-pasting this layout every time I want to add another section. (Plus, fiddling with the layout gets very tedious quickly). What's the best way to automatically insert a copy of this section template? Approaches I can think of:   * Write a macro. However, I have at least 7 bits of text I'd need to pass in (in the given example), more if a paper covers more than 3 topics. (I've never written a macro, and looking at examples I'm not sure this is the best approach).    * Insert automatically (at the editor level). That's fairly easy to do with a `vim` macro, but means if I edit the layout of the section I'll have to edit lots of times.    * Create a new document class. It seems like this could work, but I have no experience doing so, and I think perhaps it's overkill?  I'm not asking for a full solution (although if one is given, I wouldn't complain), but rather the right (easiest? Quickest?) direction to go in to solve this. Any thoughts are appreciated.


title: Spacing too large with exponents and big Oh

text: What's the correct way to typeset the following to get the normal spacing you would expect were you to, for example, write the terms out by hand.               \documentclass[a4paper,11pt]{article}          \begin{document}     \[ \left( \prod_{i=1}^m X_i \right)^n \]     \[ O\left(\frac{1}{n}\right) \]     \end{document}      In the first case the space to the exponent 'n' is too large. In the latter case the space between the 'O' and the open bracket is too large.


title: Splitting tabular across rows

text: I'm aware of the `cline` command within `tabular` to only draw a line between two columns. Is there an (easy) equivalent for vertical lines? (across rows?) I am aware of the `multirow` package, but I think this solution is particularly tedious and doesn't really allow for the nice tables I expect from LaTeX.


title: Same codes but producing different pdf files after reinstalling MikTex

text: Before re-installing MiKTeX in my computer I used the following codes:               \documentclass[tikz]{standalone}     \usetikzlibrary{calc}          \begin{document}     \begin{tikzpicture}          \coordinate (A0) at (4.04,0);     \coordinate (A1) at (2.93,2.79);     \coordinate (B0) at (-2.02,3.5);     \coordinate (B1) at (-3.88,1.14);     \coordinate (C0) at (-2.02,-3.5);     \coordinate (C1) at (0.95,-3.93);     \coordinate (O) at  (0,0);     \coordinate (An-1) at  (-2.64, 3.06);     \coordinate (Bn-1) at  (-1.33,-3.81);     \coordinate (Cn-1) at  (3.97,.75);          % Draw x and y axis lines     \draw [->, thick] (-4.51,0) -- (5.73,0) node [below] {$x$};     \draw [->,thick] (0,-4.43) -- (0,5.31) node [left] {$y$};          \draw[very thick] (O) circle (4.04cm);     \draw[blue, very thick] (A0) -- (B0)--(C0) --(A0);     \draw[blue, very thick] (A1) -- (B1)--(C1) --(A1);     \draw[dashed] (O) -- (B0);     \draw[very thick] (O) -- (A0);     \draw[very thick] (O) -- (A1);               \def\angleRadius{30pt}         % draw the arc         \draw[->,thick] let \p1=(O), \p2=(A0), \p3=(A1),              \n1={atan2(\x2-\x1,\y2-\y1)}, \n2={atan2(\x3-\x1,\y3-\y1)} in             ($(\p1)!\angleRadius!(\p2)$) arc (\n1:\n2:\angleRadius);         % draw the label         \draw let \p1=(O), \p2=(A0), \p3=(A1),               \n1={atan2(\x2-\x1,\y2-\y1)}, \n2={atan2(\x3-\x1,\y3-\y1)} in              (\p1)+(\n1/2+\n2/2:\angleRadius) node[right] {$\beta$};          \def\angleRadius{15pt}         \draw[thick] let \p1=(O), \p2=(A0), \p3=(B0),              \n1={atan2(\x2-\x1,\y2-\y1)}, \n2={atan2(\x3-\x1,\y3-\y1)} in             ($(\p1)!\angleRadius!(\p2)$) arc (\n1:\n2:\angleRadius);         \draw[dashed] let \p1=(O), \p2=(A0), \p3=(A1),               \n1={atan2(\x2-\x1,\y2-\y1)}, \n2={atan2(\x3-\x1,\y3-\y1)} in              (\p1)+(\n1/2+\n2/2:\angleRadius) node[above=15, left=-5] {$120^\circ$};               \shade [ball color = blue] (A0) circle (0.5ex) node [right=8, below=3] {$A_0$};     \shade [ball color = blue] (B0) circle (0.5ex) node [above] {$B_0$};     \shade [ball color = blue] (C0) circle (0.5ex) node [left=9, below] {$C_0$};     \shade [ball color = blue] (A1) circle (0.5ex) node [right=3] {$A_1$};     \shade [ball color = blue] (B1) circle (0.5ex) node [above=5, left=1] {$B_1$};     \shade [ball color = blue] (C1) circle (0.5ex) node [ below] {$C_1$};     \shade [ball color = blue] (An-1) circle (0.5ex) node [left=3] {$A_{n-1}$};     \shade [ball color = blue] (Bn-1) circle (0.5ex) node [below] {$B_{n-1}$};     \shade [ball color = blue] (Cn-1) circle (0.5ex) node [right] {$C_{n-1}$};          \shade [ball color = black] (O) circle (0.5ex) node [below=8, left=3] {$O$};          \end{tikzpicture}     \end{document}      It produced ![Figure before re-installing MikTex](http://i.stack.imgur.com/jSkUq.png) However, it had a trouble when I was re-installing MiKTeX. The above codes gave ![Figure after re-installing MikTexe](http://i.stack.imgur.com/8Rq7d.png) The problem is the arrows went to wrong positions. It seems that the trick for labeling angles doesn't work anymore. How can I fix this issue? The possible easiest way is to use another labeling trick. But I would prefer not to, since I drew many figures by using that trick. Any suggestion would be appreciated.


title: Package keyval Error: No value specified for margin. -- error from geometry

text: I'm using a resume template from the following URL: (res9b) to be exact. http://rpi.edu/dept/arc/training/latex/resumes/ The problem is that the resume template doesn't include a header. If I simply add a new header, the alignment isn't correct. The header overwrites the first line of the page. So I need a way to align the page lower than the footer. I decided to use the geometry package that was recommended here on a similar post.               \usepackage{geometry}     \def\name{First Last}          \geometry{         top=0.5in,                     inner=0.5in,         outer=0.5in,         bottom=0.5in,         headheight=3ex,               headsep=2ex,               }           \pagestyle{myheadings}      \markright{\name}      \thispagestyle{empty}      ....      But when I compile it, I get this error:               ! Package keyval Error: No value specified for margin.          See the keyval package documentation for explanation.     Type  H <return>  for immediate help.     ...                                                        l.848 \ProcessOptionsKV[c]{Gm}                               %      It looks like the problem has something to do with the res.cls file.               \documentclass[line,margin]{res}      Could that be causing that error somehow? How do I fix this error? I like the format of this resume package and would like to keep it if possible.


title: Latex Beamer Block: Increase border width

text: > **Possible Duplicate:**   >  Can I have framed blocks in beamer? Is it possible to increase the border width of a block? I have identified the following section of code as being responsible for the block layout:               \setbeamertemplate{block begin}{       \vskip.75ex       \begin{beamercolorbox}[rounded=true,shadow=true,leftskip=1.5cm,colsep*=.75ex]{block title}%             \usebeamerfont*{block title}\insertblocktitle           \end{beamercolorbox}%           {\ifbeamercolorempty[bg]{block body}{}{\nointerlineskip\vskip-0.5pt}}%           \usebeamerfont{block body}%           \begin{beamercolorbox}[rounded=true,shadow=true,sep=.75ex,vmode]{block body}%         %\ifbeamercolorempty[bg]{block body}{\vskip-.25ex}{\vskip-.75ex}\vbox{}%           }          \setbeamertemplate{block end}{           \end{beamercolorbox}     }      However, the only things I can seem to change is foreground and background color, and shadow. But what I want to do is make a strong, colored border around the whole block. Is this possible?


title: Remove a part of chapter title from sidebar href and page header

text: My chapter title is "{some special symbol} some text" and that special symbol does not show up properly in the sidebar clickable menu (in the compiled pdf file) as well as in the page header. I was wondering if it is possible to remove that symbol from the side and the header while keeping it in the ToC and in the chapter title? Sample pdf: http://www.scribd.com/doc/118926256/sample-pdf Problem: the customized progress bar shows up in the sidebar as text, the EightFlowerPetalRemoved symbol shows up in the page header as letter Y. Both progress bar and the special symbol show up properly in TOC and the chapter page. Code:               \documentclass{memoir}            \usepackage{type1cm}       \usepackage[unicode]{hyperref} % clickable TOC     \usepackage{ifthen}            % ifthen command     \usepackage{hieroglf}     \usepackage{colortbl}     \usepackage{pifont}     \usepackage{tikz}     \usepackage{progressbar}     \usepackage{bbding}     \usepackage{MnSymbol}     \usepackage{rotating}     \usepackage{newcent}     \usepackage{color,calc}          \newcommand{\threeS}{\progressbar[subdivisions=5, linecolor=blue, tickscolor=blue, filledcolor=gray, emptycolor=white, heightr=0.7, width=1.2em, rou=0.3]{0.6}}          \begin{document}          \tableofcontents*          \chapter{\threeS \EightFlowerPetalRemoved chapter title}          insert a long text here so it spans to the next page....          \end{document}


title: Using BibTeX with latexmk

text: I'm using MiKTeX 2.9 under Windows XP. I have the following directory structure for my document:   * `D:\MyTeX`   * `D:\MyTeX\BibTeX`   * `D:\MyTeX\IPMcast` File latexmkrc contains the line:               $bibtex = 'bibtex -include-directory=D:/MyTeX';      File IPMCast\ipmc.tex contains the line:               \bibliography{BibTeX/network}      When I use the command:               latexmk -r latexmrc ipmc      my document is created minus the BibTeX references. When I manually use the commands:               latex ipmc     bibtex -include-directory=D:/MyTeX ipmc     latex ipmc     latex ipmc      files `ipmc.bbl` and `ipmc.blg` are created and my document is properly created with references. I have tried several variations of `latexmkrc` using apostrophes, quotation marks, back slashes, forward slashes, etc with no luck. The original document was created in 2007 and I believe everything worked properly then. How should I define `$bibtex` in `latexmkrc` file to get this to work?


title: Input file folder

text: In my main LaTeX file I'm using a number of input files which are dynamics (changing the contents). I want to put some of these files in a higher order folder but at the same time don't want to fix it name.               Filefolder\Latexmainfile      how can I change it so that it looks files in Latexmainfile as well as **_ONLY_** in (Filefolder)               \input{./deckblatt.tex}


title: Quotation around text without using brackets

text: I am using the `csquotes` package and its `\enquote{TEXT IS HERE}` very often. Instead of               \documentclass[12pt]{article}     \usepackage[top = 1in, bottom = 1in, left = 1in, right = 1in]{geometry}     \usepackage[russian,english]{babel}         \usepackage[style=russian]{csquotes}     \begin{document}          \enquote{\hspace{.44mm}TEXT IS HERE 1\hspace{.44mm}}          \enquote{\hspace{.44mm}TEXT IS HERE 2\hspace{.44mm}}          \end{document}      I would like to write               \documentclass[12pt]{article}     \usepackage[top = 1in, bottom = 1in, left = 1in, right = 1in]{geometry}     \usepackage[russian,english]{babel}         \usepackage[style=russian]{csquotes}     \begin{document}          \MACRO TEXT IS HERE 1.          \MACRO TEXT IS HERE 2.          \end{document}      where `\MACRO TEXT IS HERE.` = `\enquote{\hspace{.44mm}TEXT IS HERE\hspace{.44mm}}`. This would greatly speed up writing dialogues. Is this possible? Assume that each line so quoted is a new paragraph. (For instance, I know that `PARAGRAPH IS HERE.{{\parfillskip-1pt\par}}` justifies the last line of the paragraph just like putting the paragraph into a bracket environment.) EDIT: I have a strange additional space between the end of the paragraph and the closing quotation mark using the following code               \documentclass[12pt]{article}     \usepackage[top = 1in, bottom = 1in, left = 1in, right = 1in]{geometry}     \usepackage[russian,english]{babel}         \usepackage[style=russian]{csquotes}                 \def\MACRO#1\par{\enquote{#1}\par}                 \usepackage[T1]{fontenc}     \begin{document}          \MACRO TEXT IS HERE.          \end{document}      If I replace `\def\MACRO#1\par{\enquote{#1}\par}` with `\def\MACRO#1\par{\enquote{#1\hspace*{-0.88mm}}\par}`, the white space problem is solved, but is that necessary? What causes TeX to add the large white space between `HERE.` and `>>`?


title: First author in bibliography in lastname, firstname but subsequent authors as firstname lastname

text: The Australian Legal Citation Guide v3 states that for a bibliography, the entry for a book should have the first author appear as lastname, firstname and then all subsequent authors appear as firstname lastname, e.g. > Cook, Catriona, Robin Creyke and Robert Geddes The macro below does this by printing out the first author entry in last, first order and then adding a comma and a space if there is no 'et al' following. I find this doesn't work though. I'm trying to use the `\ifandothers` test but it seems always to return false. So for an 'et al' entry I end up with: > Cook, Catriona, et al I am trying to do this with the macro below. I've been at it for hours and I'm brand new to LaTeX and biblatex so I'm pulling what hair I have left out in frustration. Is the macro I am using correct? I suspect this is a noob error. I would appreciate any help. PS: I'm not even up to the editor part of the macro yet. PPS: This code comes from aglc2.cbx which is part of Will Hardy's AGLC style and is posted at http://github.com/willhardy/aglc               \newbibmacro{author/editor:lastnamefirst}{%     \ifthenelse{\ifuseauthor\AND\NOT\ifnameundef{author}}%         {\ifuseauthor{%         \ifandothers{author}{%             \printnames[sortname][1-1]{author}%             \printnames[default][2-2]{author}%         } {%             \printnames[sortname][1-1]{author}%             \addcomma\addspace%             \printnames[default][2-3]{author}%             }%         }{}}%         {\ifthenelse{\ifuseeditor\AND\NOT\ifnameundef{editor}}{\printnames[sortname]{editor}}{}}%     }      UPDATE: In response to @lockstep's suggestion here is some code that shows that I could not get \DeclareNameAlias to work:               \documentclass[titlepage]{article}     \usepackage[style=aglc2,backend=biber]{biblatex}     \DeclareNameAlias{default}{last-first/first-last}     \bibliography{week1}          \begin{document}     Test citations here:\footcite{ldtl7} and here:\footcite{ldtl7a}     \printbibliography     \end{document}      Here's the bib file:               @BOOK{ldtl7,       year       = 2009,       author     = {Catriona Cook and Robin Creyke and Robert Geddes and David Hamer},       title      = {Laying Down the Law},       edition    = 7,       publisher  = {LexisNexis Butterworths}     }     @BOOK{ldtl7a,       year       = 2009,       author     = {Catriona Cook and Robin Creyke and Robert Geddes},       title      = {Laying Down the Law2},       edition    = 7,       publisher  = {LexisNexis Butterworths}     }      Here's the output:               References     Cook, Catriona, Robin Creyke and Robert Geddes, Laying Down the Law2 (LexisNexis Butterworths, 7th ed, 2009)     Cook, Catriona, Robin Creyke et al, Robert Geddes, Laying Down the Law (LexisNexis Butterworths, 7th ed, 2009)      And in the footnotes:               1 Cook, Catriona, Robin Creyke et al, Robert Geddes, Laying Down the Law (LexisNexis Butterworths, 7th ed, 2009).     2 Cook, Catriona, Robin Creyke and Robert Geddes, Laying Down the Law2 (LexisNexis Butterworths, 7th ed, 2009).


title: LaTeX generated alternative to PDF with multimedia support?

text: Is there some alternative to PDF or PostScript, which is good for publishing documents written in LaTeX and support video and/or audio?


title: How do you number theorems but not definitions?

text: I am using LaTeX theorem style where I have at the top:               \newtheorem{theorem}{Theorem}     \newtheorem{definition}{Definition}     \newtheorem{lemma}{Lemma}      and then I use               \begin{(theorem|definition|lemma)}     ...     \end{(theorem|definition|lemma)}      This numbers the theorems, definitions, and lemmas separately. Is where a way to do it where the definitions aren't numbered (but still use the rest of the theorem style)?


title: Sometimes the resulting PDF doesn't allow copy image

text: In case it matters I am using TeXnicCenter with miktex, LaTeX => PDF configuration. If I do the following:               \includegraphics[scale=0.08]{figure.png}        I get a PDF which looks fine in Adobe Reader. And when the cursor is over the image, it becomes a cross. Selecting it the image is highlighted and I can copy image to the clipboard with a right click. This is quite handy. Now if I use               \includegraphics[scale=0.07]{figure.png}        or any smaller scaling, the pdf looks fine, but the copy image just results in a large black square in the clipboard (still of the correct size though). Searching around, all I've found a thread on LinuxQuestions.org which reports a similar problem (not related to the scaling). Which notes that this is due to a single image sometimes getting stored as multiple overlays in the pdf. They give an alternative way to copy the images (which is inconvenient for non-linux users), but don't give information for how to write the latex to avoid this in the first place. Is there someway to fix this?


title: I get an error when I put an imaginary number in a column of a table with column specifier S (from siunitx package)

text: Using the `siunitx` package. I have a table with column specifier `S` if I then put an imaginary number in it comes up with a compile time error:               ! siunitx error: "table-partial-number"     !     ! No space reserved for a complex on line 20.     !     ! See the siunitx documentation for further information.     ...     | The number in the current table cell contains a complex part,     | but you did not reserve any space to print it:     | it will be missing in the output.      It sounds like I need to enter in some optional argument to make this work but I don't know what that is from reading the manual. Here's some code (remove the i in the left column to make to compile):               \documentclass{article}     \usepackage{siunitx}     \usepackage{booktabs}               \begin{document}               \begin{table}        \centering        \sisetup{table-alignment=center}        \begin{tabular}{ S S S S }        \toprule           \multicolumn{3}{c}{things} & \\               a             &  b             &  c             & {related things}\\        \midrule               1             &  1             &  1             &   1    \\               2             &  1             &  2             &   4    \\               3i             &  2             &  3             &  18    \\               4             &  2             &  4             &  32    \\           \bottomrule        \end{tabular}     \end{table}          \end{document}


title: Beamer: combining footnote in one column with figure in the other one

text: I'd like to put a figure next to a list which contains a footnote. Without the footnote everything works fine. But when I add the footnote, the figure gets shifted to the right and partly appears to be outside the frame margin. I'd like to put the figure back to where it was before I added the footnote. Here is an MWE:               \documentclass{beamer}          \begin{document}          \frame{\frametitle{Title}          \begin{columns}[c]              \begin{column}[r]{5cm}             \begin{itemize}[<+->]             \item The first item             \item The second item\footnote{A footnote}             \item The third item             \end{itemize}          \end{column}              \begin{column}[l]{5cm}             {\rule{2cm}{2cm}}%             %\includegraphics         \end{column}          \end{columns}             }          \end{document}      Any idea how to solve this problem?


title: Centering Subcaptions including a linebreak

text: I found an asnwered question concerning this topic already here: Centering a subcaption Copying `\captionsetup[subfigure]{justification=centering}` doesn't help me thought for I am using different packages. I would like my Captions and Subcaptions to be justified as the text below. Just under my pictures. Any suggestions? Thanks a lot               \documentclass{article}     \usepackage{subfig}     \usepackage[labelfont=bf, justification=justified]{caption}     \usepackage[demo]{graphicx}% Remove demo option in real document          \begin{document}         \begin{figure}     %   \captionsetup[subfigure]{justification=centering}         \centering           \subfloat[Subcaption one \newline including a linebreak ]   {         \includegraphics[width=0.2\textwidth]{image1}         }         \hspace{1cm}         \subfloat[Subcaption two \newline including a linebreak]         {         \includegraphics[width=0.2\textwidth]{image2}         }            \caption{Figure caption \newline with additional text right here}     \end{figure}          \begin{center}     This is correctly justified Text \\ including a longer linebreak than blabla.     \end{center}     \end{document}


title: Put quote in new page if it does not fit

text: I have a `\begin{quote} ... \end{quote}` which I would not like to be broken in separate pages. So if it's at the end of a page and there's not enough space, it would go into a new page automatically. Is it possible to achieve this? I've looked around and found no clues up to now. Obviously, I'm not after the `\newpage` solution. I'd like something automated.


title: Clip, but add arrowheads to end of clipped curve

text: I have the following code:               \documentclass{article}     \usepackage{tikz}          \begin{document}          \begin{tikzpicture}     \clip (-5,-5) rectangle (5,5);     \draw[help lines] (-5,-5) grid (5,5);     \draw[->] (-5,0) -- (5,0) node[right] {$x$};      \draw[->] (0,-5) -- (0,5) node[above] {$y$};      \draw[<->,domain=-5:5,smooth,variable=\t]         plot (\t, {pow(\t,2)});     \end{tikzpicture}               \end{document}      Is it possible to add arrowheads to the ends of the parabola after it has been clipped?


title: The logo doesn't appear properly in the letter

text: I want to have the college logo at the center (in the header) followed by the college name, then a horizontal line , then the letter content. But My Logo is half cut: Here is the code:               \documentclass{letter}          \usepackage{graphicx}     \usepackage{fancyhdr}     \usepackage{geometry}     \usepackage{lipsum}          \geometry{headheight = 275pt}     \fancypagestyle{firstpage}{\fancyhf{}\fancyhead[R]{\includegraphics[scale=0.70, keepaspectratio=true]{pecemblem.pdf}}}     \fancypagestyle{plain}{\fancyhf{}\fancyhead[L]{\includegraphics[height=0.5in, keepaspectratio=true]{pecemblem.pdf}}}     \pagestyle{plain}     \begin{document}%         \begin{letter}{}%             \opening{Dear Some Name,}             \lipsum[1-10]         \end{letter}%     \end{document}%      The output I get is: ![enter image description here](http://i.stack.imgur.com/W0gs0.png)


title: TeXworks PDF viewer zoom

text: In TexWorks pdf viewer is there anyway to zoom to a numerically specified size. Their is no options under "view" that seems to do this. In the bottom left hand corner you can click on the percentage and get "150%" "75%" etc. but I don't see any box where you can input a fixed percentage. Sorry in advance if this has been asked before, I only see other issues with the viewer in a stackexchange search (there are a lot of them).


title: `split` not working with self-defined command

text: I have defined a handy little macro to typeset matrix elements in braket- notation and now want to align the next line to a part of this matrix element, because the equations are really long and aligning to the equal sign would be a colossal waste of space. However, simply putting the `&` inside the arguments of my macro gives me:               ! Misplaced alignment tab character &.     <argument> u_1u_2u_3L&                       P     l.21  \end{split}      So, I was wondering, is there a way to define the macro in a better way that allows to do this, or is it simply not possible and I have to work with `\hspace{-10ex}` or something. Minimal not working example:               \documentclass[a4paper,10pt]{report}     \usepackage{amsmath}          \newcommand{\matrixel}[3]{\left< #1\vphantom{#2#3}\right| #2\left| #3\vphantom{#1#2}\right>}          \begin{document}      \begin{equation}      \begin{split}        \matrixel{u_1u_2u_3L}{&P}{u_1'u_2'u_3'L'} = (a +b)\\        &\times (c+d)      \end{split}      \end{equation}     \end{document}                Note: I'm a bit confused about the terminology. Is this really a "macro" I defined here? Feel free to edit if there's a better word.


title: Possible to Convert Math in Picture into LaTeX? How?

text: Is it feasible to convert math in a picture, say written by hand, into LaTeX? For example, I'd deem it faster to write down (de novo) a 10 x 10 matrix with long, complex entries, rather than typing it in LaTeX or MathType. If I then take a picture or scan my writing, how can it be rendered or transformed into LaTeX?


title: Insert external PDF pages with adapted size, position and margins

text: I'm using the changepage package to adapt my pages as illustrated in this figure: ![enter image description here](http://i.stack.imgur.com/dcimC.png) The paper size is A4 and the page size is B5 (first boarder). Within the B5 region, margins are set up as shown in the figure. Now I want to insert several pages from another pdf document with the pdfpages package: ![enter image description here](http://i.stack.imgur.com/MFrmU.png) The paper size is A4 and the margins are set up as shown in the figure. Now my question: is there a way to include these pages in my document and adapt the page size, position and margins to the ones shown in the first figure?


title: Make latexmk ignore errors and finish compiling

text: I like to use **latexmk** in command line this way:               latexmk -pvc -pdf -xelatex foo.tex      In the event of an error in the translation, I have to _manually terminate_ the compilation in the command line (the letter x) and it just annoys me. Is there any way to modify the command so that when the file is saved has been translated automatically (without regard to previous error)?


title: My personal TikZ template to be easily changed

text: Every time I need to plot a simple function (eg. a parabola), I use a self- made TikZ template that is:               \documentclass{minimal}      \usepackage{pgfplots}      \pgfplotsset{/pgf/number format/use comma,compat=newest}      \pagestyle{empty}      \newcommand{\mygrid}{\draw [color=lightgray,dash pattern=on 2pt off 2pt,xstep=1.0cm,ystep=1.0cm] (-4.5,-4.5) grid (4.5,4.5);}      \newcommand{\Xaxis}{ \draw [->] (-4.5,0) -- (4.5,0) node [above] {$x$};\foreach \x in {-4,-3,-2,-1,1,2,3,4}\draw[shift={(\x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) node[below] {$\scriptstyle\x$};}      \newcommand{\Yaxis}{ \draw [->] (0,-4.5) -- (0,4.5) node [left]  {$y$};\foreach \y in {-4,-3,-2,-1,1,2,3,4}\draw[shift={(0,\y)},color=black] (2pt,0pt) -- (-2pt,0pt) node[left]  {$\scriptstyle\y$};}      \begin{document}       \begin{tikzpicture}[>=latex]        \mygrid        \Xaxis        \Yaxis        \clip(-4.5,-4.5) rectangle (4.5,4.5);        \draw [very thick,blue,smooth,domain=-4.5:4.5] plot (\x,{(\x)^2-2*\x-3});       \end{tikzpicture}      \end{document}      As you can see, the graph is plotted and clipped in a range from -4.5 to 4.5 for the x axis and the y axis, as well. If I need to expand or shrink the plot ranges, I have to do it manually. Any advice to do it in a easier way than the "Find & replace" way? I have an idea:               \newcommand{\myplot}[2]{\mygrid\Xaxis\Yaxis}      But I know I will find troubles in the `\foreach` instance for sure.


title: biblatex per-chapter bibliography and titlesec

text: This is a follow-up to my previous question Proper way to include unnumbered chapters in a per chapter bibliography using biblatex. The solution proposed by Audrey breaks when I use the `titlesec` package to modify the chapter headings. Here's a MWE:               \documentclass{book}               \usepackage{titlesec}                \usepackage{titletoc}          \setcounter{tocdepth}{3}          \usepackage[style = phys,%                 sorting=none,%                 backend=biber,%                 style=numeric,%                 hyperref=auto,%                 backref = true,%                 refsection=chapter,%     %           citereset=chapter,%                 dateabbrev=false,%                 urldate=comp]{biblatex}          \usepackage{nameref}          \makeatletter     % Extend biblatex's \chapter patch to \chapter*     \def\blx@refpatch@chapter#1{%       \ifundef\chapter         {\blx@err@nodocdiv{chapter}}         {\pretocmd\@makechapterhead            {#1}{}{\blx@err@patch{\string\@makechapterhead}}%          \pretocmd\@makeschapterhead            {#1}{}{\blx@err@patch{\string\@makeschapterhead}}}}     % Save data for bibliography titles     \apptocmd\@makechapterhead       {\csdef{subbib:\therefsection}{%          Chapter~\ref{refsection:\therefsection} - \nameref{refsection:\therefsection}}}{}{}     \apptocmd\@makeschapterhead       {\csdef{subbib:\therefsection}{%          \nameref{refsection:\therefsection}}}{}{}          \makeatother          \defbibheading{subbibliography}{%       \section*{References for \csuse{subbib:\therefsection}}}          \titleformat{\chapter}[hang]     {\bfseries \LARGE \bfseries }{ \thechapter}{0.75em}{}[\vspace{2ex}\titlerule]     \titlespacing*{\chapter}{0cm}{0cm}{0.6cm}          \usepackage{filecontents}     \begin{filecontents}{\jobname.bib}     @misc{A01,       author = {Author, A.},       year = {2001},       title = {Alpha},     }     @misc{B02,       author = {Buthor, B.},       year = {2002},       title = {Bravo},     }     @misc{C03,       author = {Cuthor, C.},       year = {2003},       title = {Charlie},     }     \end{filecontents}     \addbibresource{\jobname.bib}          \begin{document}          \chapter*{Introduction}     \begin{refsegment}     \cite{A01}     \end{refsegment}     \chapter{Chapter 1}          \cite{A01,B02}          \chapter*{Conclusion}     \begin{refsegment}     \cite{C03}     \end{refsegment}          \backmatter          \printbibheading[heading=bibintoc]     \bibbysection[heading = subbibliography]          \end{document}      The result in the bibliography is this: ![enter image description here](http://i.stack.imgur.com/EL14k.png) As you can see the references to the chapters have disappeared. There not even any question marks. I guess this means that the `\csuse{subbib:\therefsection}}` portion of the solution by Audrey points towards nothing after I insert the redefinition of the chapter format using `titlesec`'s `\titleformat`. Also, putting the `\titleformat{...}` redefinition of the chapter headings before the biblatex patch ends in the following error `argument of \csdef has an extra }`. Any ideas how to work around this?


title: scrbook margin - ratio between top and bottom is wrong

text: I use the following document class               \documentclass[11pt,a4paper,twoside]{scrbook}      with default header and footer (chapter/section in header and the page number in the footer) My problem is, that the ratio between the margin of the header and the footer is not 1:2 when considering the header but **not** considering the footer. It is always 1:2 considering header and footer. I already tested the commands _headinclude_ and _footexclude_ , but it did not solve the problem. Does somebody have an idea how to solve this issue?


title: Equation alignment without equation index?

text: I asked about this in chat but dead silent. So how can I align an equation without getting the equation index number?


title: How to pass a single file path argument to a macro?

text: I want to iterate all images in a certain directory and import each image with `\includegraphics` from within the `MainInput.tex`. The batch file `IterateFiles.bat` helps us to create a list of image names in the specified directory.               rem IterateFiles.bat     echo off          rem %1 represents the path (relative to the main input file) to the files to be iterated      rem %2 represents the output file name     rem the remaining args represent the extensio of file to be iterated          set curdir=%CD%     cd %1     shift          set output=%curdir%\%1.list     copy nul %output%     shift          :loop     if "%1"=="" goto :eof     dir /b *.%1 >> %output%     shift     goto :loop      The current implementation of `\IterateFiles` macro takes 3 arguments. The first 2 arguments are the path (relative to the `MainInput.tex`) to the directory in which images are saved. The bad thing here is that we need to specify the same path in 2 forms: `..\dirsep Images\dirsep` and `../Images/`.               % MainInput.tex     \documentclass{article}     \usepackage{graphicx}          {     \catcode`\^0     \catcode`\\12     ^gdef^dirsep{\}     }          \newread\myfile     \newcount\TotalFiles          \makeatletter     \newcommand{\IterateFiles}[3]{%     \immediate\write18{IterateFiles #1 \jobname\space #3}     \openin\myfile=\jobname.list\relax     \loop         \read\myfile to \mydata         \unless\ifeof\myfile         \filename@parse{\mydata}         \section*{\mydata}         \includegraphics[width=\textwidth,height=\textheight,keepaspectratio]{#2\filename@base}         \advance\TotalFiles1\relax     \repeat     \closein\myfile     }     \makeatother          \begin{document}     \IterateFiles{..\dirsep Images\dirsep}{../Images/}{jpg png pdf eps}          \section*{Summary}     There are \the\TotalFiles\ files in total.     \end{document}      My question: How to pass a single file path argument `../Images/` (as opposed two arguments) to the above macro?


title: Biber fails at supporting { } in author names

text: I have a bug using Biber and LaTeX: Here is my MNWE: test.bib:               @misc{citation1, title = {Any title}, author = {{{Foo} bar}}, },       test.tex:               \documentclass{book}     \usepackage[backend=biber]{biblatex}     \addbibresource{test.bib}     \begin{document}     Minimal\cite{citation1}.     \end{document}      Where changing the author line in bib-file by `author = {{Foo} bar}` corrects the issue. Errors:               (./test.bbl     Runaway argument?     {{{hash=caae7d4677b9798ddeb82790f6e3b20d}{{{Foo}\bibnamedelimb bar}}{\ETC.     ! Paragraph ended before \name was complete.      When using BibTeX, there is no problem (change `backend=bibtex`). Tried with biber 1.2 and the last biblatex and biber 0.99 and the biblatex included in texlive2011, same problem.


title: marginnote always on right side of the page

text: My documentclass is `book`, so I've got an even and odd sides. I like that the equation number are always aligned on the right side - independent of the page (even/odd). I started using marginnotes. I wanted to do the same, that the notes are always on the right side of the page? How do I do that?


title: Footnotes without numbering

text: I have used the following "no numbering command" for footnotes:               \let\thefootnote\relax\footnote{some text}      to insert a footnote without number (just once). However, now all my footnotes appear without numbers. What's the counter command to cancel the "no numbering command" after I put it? Thanks


title: Split long text in a formula

text: I need to insert a formula containing text within. My problem is this text is long and it goes way over the margins, so I am trying to split the line so it could nicely fit in the page. Nothing I have tried so far worked, I am asking you for a bit of help.               \begin{description}         \item[Caso $\bm{\Leftarrow}$] È verificato per i teoremi della sezione \ref{closprop}.         \item[Caso $\bm{\Rightarrow}$] Sia $L$ un linguaggio regolare tale che $L = L(\mathcal{M})$,                        $\mathcal{M}$ è un DFA con stati $q_1, \ldots, q_n$,                         definito come di consueto e sia $A = \{s_1, s_2, \ldots, s_k\}$.                        Definiamo l'insieme $R^k_{i,j}$ nel modo seguente:                     ${R^k_{i,j} = \left\{x \in A^* \mid \delta^*(q_i, x) = q_j \text{ e } \mathcal{M}                      \text{ nel processare la stringa passa solo per stati } q_l \text { con } l \leq k\right\}}$         \end{description}      Here it is my issue: ![enter image description here](http://i.stack.imgur.com/20hW2.png) Thanks for your assistance.


title: table of contents modification with fancyhdr

text: I am using the fancyhdr package in the article document class. I would like all pages (including the table of contents page) to have the header and footer that I prescribe in the preamble. I would also like to modify the table of contents name with the following command: `\renewcommand\contentsname{\centering\bf TABLE OF CONTENTS}` With this `\renewcommand` in the preamble, LaTeX stops at `\tableofcontents` (no error given). I can either leave the `\renewcommand` in and change to plain pagestyle, or I can remove the command and use my fancy header and footer, but I cannot do both. Does anyone know of a command that will remove/avoid the conflict between the `renewcommand` and the fancy pagestyle?


title: Is there a way to typeout to the console using ANSI colors?

text: I'm trying to colorize diagnostic outputs to the console in order to make my stuff more visible in the endless stream of messages that LaTeX spits out. ## Example However, all of my efforts like, for example               \typeout{^^1b[38;05;54m Indigo!} % Text line contains an invalid character.     \typeout{\char"001B[38;05;54m Indigo!} % \char "001B[38;05;54m Indigo!      seem to get subverted by TeX either not expanding certain commands within `\typeout` or claiming that there were `illegal character`s. ## Question Is there a trick that would make this work?


title: Harvard Citation Styles "et al." and hyperlinking citations to references

text: I am using the Harvard package and a Journal of Finance bst file (downloaded from the home page of Ivo Welch) in a LaTeX document. Here's my code:               \documentclass{report}     \usepackage{harvard}          \begin{document}     Citation one from \citeasnoun{Kozhan}, and also citation two from \citeasnoun{Kozhan}.          \bibliographystyle{jf}     \bibliography{references}          \end{document}      With sample references.bib file:               @inproceedings{Kozhan,       title={The Skew Risk Premium in Index Option Prices},       author={Kozhan, R. and Neuberger, A. and Schneider, P.},       booktitle={AFA 2011 Denver Meetings Paper},       year={2011}     }      This prints as: > Citation one from Kozhan, Neuberger, and Schneider (2011), and also citation > two from Kozhan, Neuberger, and Schneider (2011). I would rather have it as > Citation one from Kozhan, Neuberger, and Schneider (2011), and also citation > two from Kozhan et al. (2011). The guide on the Harvard citation styles (http://tex.loria.fr/bibdex/harvard.pdf) says: > [...] where there are more than two authors, all authors are listed in the > first citation and in subsequent citations just the first author's name > followed by `et al.' is used. However, as can be seen by the example above, this does not seem to be the case. Why? Finally, how can I hyperlink my citations to the relevant entry in the references section?


title: Suppressing figure numbers in wrapfig

text: Like @brannerchinese here, I'd like to suppress the figure numbers for certain figures, but I'd like to do it within the context of the `wrapfig` and `wrapfigure` package/environment. Being rather new at this, I don't really understand the answer that @GonzaloMedina gave him, so I can't generalize that, but I did try blindly copying and pasting the `\newcommand\WLcaption[1]{` (et. al.) into my preamble just in case, and as I guessed, it didn't work (compile failed with error). Also tried `\caption*{text}` in case that had been implemented for `wrapfig` but also no joy. Any ideas on how to do this? I just want a caption for some figures, but no figure numbers.