title: TeX for Mavericks

text: I just (made the mistake of) upgrading to Mavericks for Mac. When I tried to compile one of my documents, I got the following error               /usr/texbin/pdflatex does not exist.      I consider myself fairly good at LaTex but I'm not that great with the Mac. What does this error mean and how do I go about fixing it?


title: pgfplots groupplot: fillbetween breaks alignment of plots

text: I recently (foolishly) updated all my TeXlive packages, including pgfplots (from 1.10 to 1.11). I now have an issue with the groupplots and fillbetween libraries, where using the fillbetween library 1) doesn't work and 2) breaks the alignment of the group plots. **MWE:**               \documentclass{article}     \usepackage{tikz}     \usepackage{pgfplots}     \pgfplotsset{compat=1.11}     \usepgfplotslibrary{fillbetween,groupplots}          \begin{document}          \begin{tikzpicture}[trim axis group left]          \begin{groupplot}[%     group style={%     group size=1 by 2,     vertical sep=0pt,     x descriptions at=edge bottom},     width=11.5cm,     scale only axis,     xmin=-1.8,     xmax=1.8,     /pgf/number format/use comma,     xlabel={Y [mm]},     ]     \nextgroupplot[height=2.49166666667cm,ylabel={Z [mm]},y label style={at={(axis description cs:-0.08,.5)}},ymin=-0.59,ymax=0.19]          \nextgroupplot[ylabel={$\kappa$ [mm$^{-1}$]},y label style={at={(axis description cs:-0.08,.5)}},ymin=-12,ymax=8,height=6cm]     \addplot[color=green,solid,name path=mittemin] coordinates {(-1.8,-10)  (1.8,-10)};     \addplot[color=green,solid,name path=mittemax] coordinates {(-1.8,-1.5) (1.8,-1.5)};     \addplot[color=green,solid,name path=randmin]  coordinates {(-1.8,0.9)  (1.8,0.9)};     \addplot[color=green,solid,name path=randmax]  coordinates {(-1.8,6.5)  (1.8,6.5)};          \addplot[green!20] fill between[of=mittemin and mittemax];     \addplot[green!20] fill between[of=randmin  and randmax];          \end{groupplot}     \end{tikzpicture}     \end{document}      This yields the following result (no filling, broken alignment): ![broken alignment](http://i.stack.imgur.com/EvIk0.png) After commenting out the (non-functioning) `fill between` statements, the alignment is right again: ![correct alignment](http://i.stack.imgur.com/a6som.png) This hasn't occurred with pgfplots 1.10. Setting `compat=1.10` does not change the output. As far as I can work out, something was changed in the fillbetween library for 1.11, is this a bug or am I missing something?


title: Implementing marginfigure

text: sorry for the absolutely beginner question here. I've been looking at the `tufte-latex` class, specifically the tufte sample book. It makes use of `marginfigures`, which I believe are provided by the sidenotes package. As you can see in the book, there is a `marginfigure` implemented with the code:               \begin{marginfigure}       \includegraphics{file}       \caption{caption}     \end{marginfigure}       However, in my custom class file I use the `sidenotes` package using               \usepackage{sidenotes}      It should be noted that this works fine, I can use normal `sidenotes` without any problems. However, when I go to put in a `marginfigure` using the code above I get the following error:               Environment marginfigure undefined.      \begin{document} ended by \end{marginfigure}      How can this be fixed so that my `marginfigure` implements properly. Sorry for the basic question, but I hadn't found any other fixes. EDIT 1: Those are the only two errors I have. All I do is import the package in my class file, then in the document I try to implement `marginfigure`, but receive the errors above. Do I need to use any other packages alongside it? EDIT 2:MWE               \documentclass{article}     \usepackage{sidenotes}     \usepackage{blindtext}     \begin{document}     \blindtext     \begin{marginfigure}     \includegraphics{marginfigure}     \end{marginfigure}     \end{document}


title: LaTeX - using HA-prosper - Error : \ProcessKeyvalOptions{Hyp}

text: I have started using the `HA-Prosper` packages with a very simple code, but I get an error, here is the code:               \documentclass{prosper}     \usepackage{HA-prosper}     \title{Internet Traffic}     \author{A.B}          \begin{document}     \maketitle          \end{document}      While this a fairly simple code to just create the title, I am getting this sticky error:               ! Package hyperref Error: Wrong DVI mode driver option `ps2pdf',     (hyperref)                because pdfTeX or LuaTeX is running in PDF mode.          See the hyperref package documentation for explanation.     Type  H <return>  for immediate help.      ...                                                        l.4198 \ProcessKeyvalOptions{Hyp}


title: LaTeX Beamer: Frame outside sections - additional problem with outline between sections

text: I refer you to this answer to a similar question. I want exactly what the author of that post wanted, namely a slide with no section in the navigation bar highlighted for that slide. I find that the solution given there does not work for me, presumably because of this code being operative in my case:               \AtBeginSubsection     {       \begin{frame}<beamer>{Outline}         \tableofcontents[currentsection,currentsubsection]       \end{frame}     }          \AtBeginSection     {       \begin{frame}<beamer>{Outline}         \tableofcontents[currentsection,currentsubsection]       \end{frame}     }      I get the desired result of the last frame having no section highlighted in the sidebar. But I get the additional _undesired_ result of a outline slide (with all sections shaded). Below is a full example.               \documentclass{beamer}     \usetheme[hideothersubsections]{Hannover}          \begin{document}                 %=======BEGIN OUTLINE COMMANDS============     \AtBeginSubsection     {       \begin{frame}<beamer>{Outline}         \tableofcontents[currentsection,currentsubsection]       \end{frame}     }          \AtBeginSection     {       \begin{frame}<beamer>{Outline}         \tableofcontents[currentsection,currentsubsection]       \end{frame}     }     %=======END OUTLINE COMMANDS============                    \section{First Section}          \begin{frame}       \begin{itemize}         \item Blah         \item Blah         \item Blah       \end{itemize}     \end{frame}               \section{Second Section}          \begin{frame}       \begin{itemize}         \item Blah         \item Blah         \item Blah       \end{itemize}     \end{frame}          \section{Third Section}          \begin{frame}       \begin{itemize}         \item Blah         \item Blah         \item Blah       \end{itemize}     \end{frame}               \section*{}          \begin{frame}          Thank you for your attention!          \end{frame}               \end{document}


title: ToC links pointing to very same ToC instead of section page

text: I have a strange behavior with my ToC using the `hyperref` package. I have nine special paragraphs defined with `\newcommand{\myparagraph}[1]{\paragraph{#1}\mbox{}\\[6pt]}` which appears in the ToC (because I set `\setcounter{tocdepth}{4}`). The paragraphs are all in different .tex files (branches) which are then `/include{}`d into the main "tree" file. The ToC correctly includes all the paragraphs but strangely, in the pdf, the links from the ToC don't reach the paragraphs but for the last two entries. The first seven entries link back to same page one where the ToC is. On the contrary the last two entries correctly point to their respective pages (actually they point to the paragraph page - 1, but is good enough). Please consider the following three files:               %main.tex          \documentclass[a4paper]{article}          \usepackage{kantlipsum}          % Subliminal refinements towards typographical perfection     \usepackage{microtype}          % Paragraph indentation     %\setlength{\parindent}{1cm}          % Margins     \usepackage[bottom=2.5cm, top=2cm]{geometry}          % Frame package     \usepackage[framemethod=tikz]{mdframed}          %Create Hyperlinks     \usepackage{hyperref}     \hypersetup{         linktoc=all,         colorlinks,         citecolor=blue,         filecolor=blue,         linkcolor=blue,         urlcolor=blue;     }          %Create index     \usepackage{makeidx}     \makeindex          %% Set page layout %%          % Create command for paragraph style (new line after)     \newcommand{\myparagraph}[1]{\paragraph{#1}\mbox{}\\[6pt]}          %Allow for paragraph in TOC     \setcounter{tocdepth}{4}          \setlength{\parskip}{0pt}     \setlength{\parsep}{0pt}     \setlength{\headsep}{0pt}     \setlength{\topskip}{0pt}     \setlength{\topmargin}{0pt}     \setlength{\topsep}{0pt}     \setlength{\partopsep}{0pt}     \linespread{1.5}     \usepackage[compact]{titlesec}          % Make sentence case all titles     %\DeclareFieldFormat{titlecase}{\MakeSentenceCase{#1}}          %% == %%          \begin{document}          \tableofcontents          \include{file1}     \include{file2}     %\include{file3}     %\include{file4}     %\include{file5}     %\include{file6}     %\include{file7}     %\include{file8}     %\include{file9}          \printindex          \end{document}          %file1.tex          \myparagraph{title file 1}          \kant[1-2]          %file2.tex          \myparagraph{title file 2}          \kant[3-4]      I can't replicate all the behaviors I experience in my document (with the last two paragraphs being correctly linked from the ToC) but still you will notice that by clicking on the paragraph title in the pdf's ToC you are linked to the very same ToC instead of the paragraph page.


title: How to create new counter of equation

text: How to create a new counter of equation. The new equation is matriz and use other sequence number.               \documentclass[a4paper,10pt]{article}     \usepackage[utf8]{inputenc}          \begin{document}          \begin{equation}      y = x     \end{equation}          \begin{equation}      y = \frac{1}{x}     \end{equation}          The of next matriz equation is 1.          \begin{matriz}     y = \sqrt x     \end{matriz}          \end{document}      I need, equation 1 equation 2 matriz 1 matriz 2 equation 3 matriz 3 matriz 4 New counter of matriz.


title: Table Frames beyond simple lines

text: Is there a possibility to create frames for tabulars, that go beyond a simple line?               \begin{tabular}{|l|l|}     \hline     A & B\\     \hline     C & D\\     \hline     \end{tabular}      creates lines as a "frame", but these are indistinguishable from the lines that separate the rows and columns. I would like to have, for example thick lines for the frame. Or double lines that look good and not like the one I create like this               \begin{tabular}{||l|l||}     \hline \hline     A & B\\     \hline     C & D\\     \hline \hline     \end{tabular}      Any ideas?


title: How to draw wavy line in the sentence

text: How to draw wavy line in Latex simply in the sentence line of an article paragraph. I know there is a underline `\uwave` comment, but I like to have just wavy line itself, without anything above. I am looking for something such that `\uwave{...}` without .... Adam below provides an answer, but I would like to have a way to shift the underwaveline to the normal position like --- or - - -? Please help!


title: Misaligned month label in TikZ calendar

text: I'm putting together a multi-month calendar in Ti _k_ Z and am seeing some awkward and undesired alignment in the month labels despite using the `month label above centered` style. In particular, the month label appears to be centered only over the first **six** columns, rather than over all **seven:** ![Observed vs Desired alignments of month label](http://i.stack.imgur.com/3PVuH.png) I've reproduced my code below in a minimal context. **Two questions:** What's going on here, and how can I correct this alignment?               \documentclass[letterpaper]{article}     \usepackage[utf8]{inputenc}     \usepackage{tikz}     \usetikzlibrary{calendar,shapes}          \makeatletter%     \tikzstyle{week list sunday}=[             % Note that we cannot extend from week list,             % the execute before day scope is cumulative             execute before day scope={%                    \ifdate{day of month=1}{\ifdate{equals=\pgfcalendarbeginiso}{}{                    % On first of month, except when first date in calendar.                        \pgfmathsetlength{\pgf@y}{\tikz@lib@cal@month@yshift}%                        \pgftransformyshift{-\pgf@y}                    }}{}%             },             execute at begin day scope={%                 % Because for TikZ Monday is 0 and Sunday is 6,                 % we can't directly use \pgfcalendarcurrentweekday,                 % but instead we define \c@pgf@counta (basically) as:                 % (\pgfcalendarcurrentweekday + 1) % 7                 \pgfmathsetlength\pgf@x{\tikz@lib@cal@xshift}%                 \ifnum\pgfcalendarcurrentweekday=6                     \c@pgf@counta=0                 \else                     \c@pgf@counta=\pgfcalendarcurrentweekday                     \advance\c@pgf@counta by 1                 \fi                 \pgf@x=\c@pgf@counta\pgf@x                 % Shift to the right position for the day.                 \pgftransformxshift{\pgf@x}             },             execute after day scope={                 % Week is done, shift to the next line.                 \ifdate{Saturday}{                     % But not if it's already the last day of the month.                     \ifdate{end of month=1}{}{                         \pgfmathsetlength{\pgf@y}{\tikz@lib@cal@yshift}%                         \pgftransformyshift{-\pgf@y}                     }%                 }{}%             },             % This should be defined, glancing from the source code.             tikz@lib@cal@width=7         ]          \tikzoption{day headings}{\tikzstyle{day heading}=[#1]}     \tikzstyle{every calendar}=[week list sunday,         month label above centered,         month text=\textbf{\%mt~\%y-},         day xshift = 0.5cm,         day letter headings]     \tikzstyle{every day}=[anchor=base]     \tikzstyle{day heading}=[]     \tikzstyle{day letter headings}=[         execute before day scope={ \ifdate{day of month=1}{%           \pgfmathsetlength{\pgf@ya}{\tikz@lib@cal@yshift}%           \pgfmathsetlength\pgf@xa{\tikz@lib@cal@xshift}%           \pgftransformyshift{-\pgf@ya}           \foreach \d/\l in {0/S,1/M,2/T,3/W,4/T,5/F,6/S} {             \pgf@xa=\d\pgf@xa%             \pgftransformxshift{\pgf@xa}%             \pgftransformyshift{\pgf@ya}%             \node[every day,day heading]{\l};%           }         }{}%       }%     ]          \makeatother%          % ==================================================          \begin{document}          \begin{tikzpicture}     \calendar (K) [dates=2013-01-01 to 2013-03-last]         if (weekend) [black!40];     \draw[black](K-2013-01-21) circle (0.6em);     \draw[black](K-2013-02-13) circle (0.6em);     \draw[black](K-2013-03-10) circle (0.6em);     \draw[black](K-2013-03-31) circle (0.6em);     \end{tikzpicture}          \end{document}      ![Misaligned month label in TikZ calendar](http://i.stack.imgur.com/5Loro.png)


title: Replacing itemize by mdwlist's itemize* throughout?

text: Most of my documents start with a couple of quick hacks that save me literally a couple of keystrokes a month:               \let\cite\texcite     \let\epsilon\varepsilon      and so on. Now, I'd like to do a similar thing to globally have my `itemize` environments behave like the `itemize*` environment defined by the `mdwlist` package. This is a little trickier, because itemize is an environment, not a command. How do I do this?


title: Not able to show negative signs

text: I have the following.               \item Arrange in ascending order (smallest to largest): $−6, −2, 0, 1, −5, 4, 3$      But this output does not have negative signs.               6, 2, 0, 1, 5, 4, 3      It shows negative in other places.               \item Evaluate $(-2)^2$      This output has a negative sign. Evaluate (−2)2 What am I doing wrong here? Thank you in advance.


title: ConTeXt: Custom register formatting

text: # Background Looking to reproduce custom registers that resembles: ![Custom Index](http://i.stack.imgur.com/ppfLW.png) Index entries are added using:                  \setregisterentry[index][entries={Kenji Fujimoto}][          title={Maguro},          author={Kenji Fujimoto},          authorurl={http://bit.ly/1fNWF0Y},        ]{Maguro}      This produces a reasonably close representation: ![Current Code](http://i.stack.imgur.com/9a2rG.png) # Problem The main problem is that, due to being a register, there is an extra line between alphabetically distinct entries. # Code The code to reproduce the issue:               \setupinteraction[state=start,]          \define[2]\href{\begingroup\goto{\color[blue]{#1}}[url(#2)]\endgroup}          \define[1]\TextCommand{%       * \Word{\currentregisterpageuserdata{title}}, }     \define[1]\PageCommand{%       #1. {\href{\currentregisterpageuserdata{author}}{\currentregisterpageuserdata{authorurl}}}.}          \starttext       \startsection[title={Ikura}]         \setregisterentry[index][entries={Jiro Ono}][          title={Ikura},          author={Jiro Ono},          authorurl={http://www.sushi-jiro.jp},        ]{Ikura}       \stopsection       \startsection[title={Maguro}]        \setregisterentry[index][entries={Kenji Fujimoto}][          title={Maguro},          author={Kenji Fujimoto},          authorurl={http://bit.ly/1fNWF0Y},        ]{Maguro}       \stopsection       \page       \placeregister[index][         n=1,         indicator=no,         textcommand=\TextCommand,         pagecommand=\PageCommand,         pagestyle=normal,         distance=\zeropoint,       ]     \stoptext      # Questions I am wondering (in order of importance):   1. How do you remove the vertical space between alphabetically distinct register items?   2. What is a more ConTeXt-like approach to register customization?   3. How would you reference the register's page number in the `\TextCommand`?   4. How can both periods have hyperlinking removed (or suppressed)? # Idea I tried using `\item`s to apply an itemized list to the index, but could not remove the vertical space from the itemized list. # Related Links   * http://wiki.contextgarden.net/Registers   * http://wiki.contextgarden.net/Command/setupregister   * http://standalone.contextgarden.net/current/context/beta/tex/context/base/strc-reg.mkiv


title: How to insert table of contents based on chapters?

text: _Verified, it does not have the answer in the linked post._ I would like to create table of contents based on chapters. When I insert command `\tableofcontents` almost at the top -- after opening document and making few definitions, as the result I get empty TOC (not desirable). When I move it right before new chapter (as an experiment) and I get nothing -- i.e. no TOC at all (empty TOC has at least heading "Table of contents"). For example:               \tableofcontents           \begin{verse}     some quote     \end{verse}          \def\enddoc{}      \def\input#1{}          \include{intro1}     \include{intro2}          \chapter{Program}       `intro1` and `intro2` are chapters written as separate files. This gives me empty TOC, when I move TOC before chapter "Program" TOC is not created. I added `usepackage` with `\usepackage{tocloft,calc}` and `\usepackage{titletoc}`. No change at all? What do I do wrong way? * * * **Update** I found the culprit, but I don't know how to fix it. My entire document consists of several chapter (with bibliography), each chapter is written as separate file. The preamble is also saved as separate file. What's important currently I can create each chapter as separate pdf (on its own) -- because each chapter includes preamble, not only the main .tex file. In the main .tex file I have such line:               \def\input#1{}      I don't know what it does (my mistake, I should I added explanation in comment), but it allowed me to build entire document so far. When I tested it on the stripped sample .tex, removing it allows TOC to be created correctly, but when I comment it in my main document (not just sample) the compilation fails right from the beginning. First separate chapter file includes preamble (so the inclusion is from the middle of .tex file really) and I get error:               Can be used only in preamble. \documentclass      So, is it possible to build TOC nevertheless, or should I drop this separation if I want to create TOC?


title: Force a block to be backward while using a logo

text: I am preparing a pdf by using beamer applications in Latex. I have a logo which appears in all slides below on the right: ![enter image description here](http://i.stack.imgur.com/Lygsq.jpg) Unfortunately, in one of the slide, it becomes hidden cause of a block: ![enter image description here](http://i.stack.imgur.com/MBUyz.jpg) May I ask you how can I solve this problem? Thanks for your time


title: How to print \upharpoonright?

text: When I run `pdflatex` twice on my LaTeX file, the command `\upharpoonright` does not print the harpoon. Could you let me know how to fix this. I use this command `$ S(T)\upharpoonright D^{i}_{l} $`.


title: Numbered description list with dot leaders?

text: ## The problem: I would like to create checklists for an aircraft. What I'm looking for is a way to create **numbered descriptive lists with dot leaders**. Essentially, I want this, with numbers. ![dot leaders](http://i.stack.imgur.com/RJjDB.png) * * * ## The Code: I have this code, which I took from the above link:               \documentclass[12pt, letter]{article}          \newenvironment{specifications}{%       \let\olditem\item%       \renewcommand\item[2][]{\olditem##1\dotfill##2}%       \begin{description}}{\end{description}%      }          \begin{document}          \begin{specifications}         \item[Input Voltage Range] 36-72 V DC         \item[Input Current] 80 mA         \item[Power over Ethernet] 802.3af-compliant Powered Device     \end{specifications}          \end{document}      I'm frankly not sure where to begin. I'm a novice with LaTeX - I'd prefer a simple answer to a complex one, but most of all I want to learn.


title: a large table. To show entire text

text: How can I proceed with LaTeX code such that to produce a table in which entire text to be showed normally. The photo is: ![enter image description here](http://i.stack.imgur.com/BgcaI.png) The code for last line is:               \hline      VOLUMEN & $a^{3}$ & $\frac{\sqrt{2}}{12}\cdot a^{3}$ & $\frac{\sqrt{2}}{3}\cdot a^{3}$ & $\frac{\sqrt{15+ 7\sqrt{5}}}{4} \cdot a^{3}$ & $\frac{5 \sqrt{3+\sqrt{5}}}{12}\cdot a^{3}$ \\     \hline


title: Non-compliant syntax and Natbib

text: I have been having trouble with my BIB file (exported from Zotero) and have tracked the problem down to non-compliant syntax being used in the URL fileds of my BIB entries. So when attempting to compile using a bibliography style that includes the URL, such as "plainnat", I have been receiving the error message "Misplaced alignment tab character &". The problem is that many of the URLs I have in my URL fields contain "&". Is the only way around this problem to delete the URL entries? I also have another question; when I attempt to use the "plain" style, the citations do not include the author, only "(author?)". Is this normal? A simple example illustrating these issues is copied below. TEX file               \documentclass[10pt]{article}     \usepackage{natbib}          \title{\bf{WIP}}     \begin{document}          \maketitle          \citet{blah_general_2008}          %\bibliographystyle{apalike}     %\bibliographystyle{plainnat}     \bibliographystyle{plain}     \bibliography{MyLibrary}          \end{document}      BIB file               @article{blah_general_2008,         title = {On Blah},         volume = {1},         url = {https://www.blah&.com},         urldate = {2013-09-15},         journal = {Journal of Blah},         author = {Blah, Z.},         month = apr,         year = {2008},         pages = {1--2},     }


title: Removing references to paragraphes in bibliography

text: I am using LaTeX and I keep getting the number of the paragraph where the citation was used next to every entry in the bibliography (Marked in red in the screenshot) ![enter image description here](http://i.stack.imgur.com/VQzc6.png) How can I remove these paragraph indicators? **EDIT** : Here's my first attempt at a minimum working example:               \documentclass{llncs}     \usepackage[latin9]{inputenc}     \usepackage{float}     \usepackage{amsmath}     \usepackage{amssymb}     \usepackage{graphicx}     \usepackage[unicode=true,pdfusetitle,      bookmarks=true,bookmarksnumbered=false,bookmarksopen=false,      breaklinks=false,pdfborder={0 0 1},backref=section,colorlinks=false]      {hyperref}     \hypersetup{      pdftex}     \usepackage{breakurl}          \makeatletter          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.     \floatstyle{ruled}     \newfloat{algorithm}{tbp}{loa}     \providecommand{\algorithmname}{Algorithm}     \floatname{algorithm}{\protect\algorithmname}          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.               \usepackage{longtable}     \usepackage{algorithm}     \usepackage[noend]{algpseudocode}     \usepackage{listings}     \graphicspath{{images/}}     \newtheorem{axiom}{Axiom}     \newtheorem{claimx}{Claim}     \let\doendproof\endproof     \renewcommand{\endproof}{~\hfill\qed\doendproof}          \@ifundefined{showcaptionsetup}{}{%      \PassOptionsToPackage{caption=false}{subfig}}     \usepackage{subfig}     \makeatother          \begin{document}      ... I have my document here ... then I add the bibliography               \bibliographystyle{splncs03}     \bibliography{references}


title: Creating title page with xcoffins

text: I want to create a title page like in the Tschichold example: ![title page](http://i.stack.imgur.com/2rM2E.jpg) using this code: https://github.com/latex3/svn- mirror/blob/master/l3experimental/xcoffins/xcoffins-tschichold-example.tex in MiKTeX 2.8, but get the following message:               ! Package expl3 Error: MismatchedLaTeX3packagesdetected..      I understand that MiKTeX has an issue with expl3 and xpackages and that I should use l3kernel and l3packages instead. So should I use the files provided at https://github.com/latex3/svn-mirror/tree/master/l3experimental/xcoffins and possibly the ones in testfiles? If so, how do I use them?


title: Make newlines expand to custom command

text: I am making a guest list which I will print on a sticker sheet, cut them out, then stick them to envelopes. This means that each guest/guest group will have a bounding box drawn around it as a cutting guide. For the bounding box, I'm using the `fancybox` package and followed the examples in its documentation to create a `fminipage` environment to allow line breaks within a box. I defined a `\newcommand{\guest}[1]...` which says:               \begin{fminipage}{\textwidth}       \center #1     \end{fminipage}      It's a success. I just type in:               \guest{Luke Skywalker}     \guest{Obi-Wan Kenobi}     \guest{Han Solo\\            Princess Leia}      Luke and Obi-Wan have their own boxes, then Han Solo and Princess Leia are placed in one box together. Now, I want to use shortcuts. How do I implement it such that I just input the following:               Luke Skywalker     Obi-Wan Kenobi     {Han Solo      Princess Leia}      Looks like this could be a deep kernel hack, which I do not know anything about. But of course, anything that the community knows is always welcome.


title: How can I remove the year label of the misc type in biblatex?

text: I would like to remove the year label, if it is undefined. What I get: > EC No 197/38 2012 (n.d.) But it should be: > EC No 197/38 2012 In the bibliography I get this, but it is correct for me: > EC No 197/38 2012: Waste electrical and electronic equipment (WEEE), 4 July > 2012, Commission Regulation.               \documentclass{book}     \usepackage[style=authoryear-icomp]{biblatex}     \usepackage{filecontents}     \begin{filecontents}{biblio.bib}     @Misc{EC4July2012,       Title                    = {Waste electrical and electronic equipment ({WEEE}), 4 July 2012},       Author                   = {{EC No 197/38 2012}},       Type                     = {Commission Regulation},     }     \end{filecontents}          \addbibresource{biblio.bib}          \nocite{*}          \begin{document}     Something \autocite{EC4July2012}.     \printbibliography          \end{document}


title: Font size change in svg included in pdflatex beamer document

text: I include an svg I created with matplotlib (see here how - at the bottom) using pyplot.savefig("test.svg") in my latex document.               \documentclass{beamer}     \usepackage{graphicx}     \usepackage{svg}          \begin{document}     \frame{     \includesvg[pdf,width=\textwidth]{test}     }     \frame{     {\Large\includesvg[eps,width=.5\textwidth]{test}}     }     \end{document}      Whatever I try, I cannot change the size of the fonts in the svg. Is it possible that way? What do I do wrong? I would rather like to use python etc. because using a gui like inkscape is for graphs not the method of choice.


title: Problem with references in classic thesis if algorithm2e package is used

text: If I use the `algorithm2e` package together with the `linesnumbered` option and the `classicthesis` package, references to a sub sub section are wrong. If I don't use the `linesnumbered` option, references are correct. Is this a bug? Is there a work-around?               \documentclass{scrbook}     \usepackage[svgnames]{xcolor}     \usepackage{classicthesis}     \usepackage[english]{babel}     \usepackage[latin1]{inputenc}     \usepackage[T1]{fontenc}     \usepackage[ruled, vlined, linesnumbered]{algorithm2e}  % references NOT OK     %\usepackage[ruled, vlined]{algorithm2e}  % references OK          \begin{document}          \chapter{Chapter}          Wrong reference -> \ref{label}          \subsection{Section}          \begin{algorithm}[htbp]       \LinesNumbered       i = 1     \end{algorithm}          \subsubsection{Sub Sub Section}     \label{label}          \end{document}


title: Regular Chaparral comes out bold, bold Chaparral comes out regular. Why?

text: Chaparral.tex:               \documentclass{article}     \usepackage[english]{babel}     \usepackage{fontspec}     \setmainfont{Chaparral Pro}     \begin{document}          Hamburgefonstiv Regular          \textbf{Hamburgefonstiv Bold}          \end{document}      Chaparral.log: http://pastebin.com/wNKG07h0 Result: ![Result](http://i.stack.imgur.com/PGp77.png) Adobe [Caslon/Garamond Premier/Minion/Myriad] Pro come out correctly with equivalent syntax. The .otfs are all present in C:\Windows\Fonts. All came with CS3. LuaTeX beta-0.76.0-2013061707 (rev 4627). Is this a bug I should report to http://tracker.luatex.org/, or is it an issue with Chaparral, or is it working correctly in a way I don't understand? **Edit:** Nevermind. I just found http://tracker.luatex.org/view.php?id=572


title: Command already defined

text: I came across an odd problem compiling LaTeX `exam.cls` document producing with `knitr`. Pasted below is minimal reproducible code. `knitr` compiles fine, but `pdflatex` terminated with:   * Command `\framed` already defined.   * Command `\shaded` already defined.   * Command `\leftbox` already defined. It seems the author of `exam.cls` pasted most of the framed.sty into the class file, which is generating conflicts with anyone who actually wants to load the original `framed.sty` package, including `knitr`. My ugly solution to an ugly problem was to modify `exam.cls` file:               % Original     \newenvironment{framed}% using default \FrameCommand       {\MakeFramed {\advance\hsize-\width \FrameRestore}}%       {\endMakeFramed}          % Modified     \newenvironment{exam-framed}% using default \FrameCommand       {\MakeFramed {\advance\hsize-\width \FrameRestore}}%       {\endMakeFramed}          % Same for "\newenvironment{shaded}" and "\newenvironment{leftbar}"      I would like to find more elegant solution, not rewriting original `exam.cls` file. Thanks in advance for any pointers.


title: Is it possible to let the characters still searchable in an asymptote output?

text: Consider the following MWE. Sorry, I cannot provide the simpler one.               % spiral.tex     \documentclass[preview]{standalone}     \usepackage[inline]{asymptote}          \begin{document}     \begin{asy}         settings.tex="pdflatex";     settings.prc=false;     settings.render=0;          import graph3;     import math;     size(200);     size3(150,180,100);     defaultpen(fontsize(10pt));          currentprojection=orthographic(camera=(8,6,4),up=Z,target=O,zoom=1);          real x(real t) {return t*cos(2pi*t*3);}     real y(real t) {return t*sin(2pi*t*3);}     real z(real t) {return t;}          real xMax=3, yMax=3, zMax=4;          path3 p=graph(x,y,z,0,2.735,operator ..);     triple P=relpoint(p,0.986);     triple Q=(P.x,P.y,0);          pen spiPen=deepcyan+1.2bp;     draw(p,spiPen,Arrow3(size=3));     dot(P);     label("$P$",P,Z+X);          guide3 h=P--Q;     guide3 rho=O--1.2Q;           draw(h,  dashed+0.7bp);     draw(rho,dashed+0.7bp);          real arcd=1.5;     guide3 garc=arc(O,arcpoint(O--X,arcd),arcpoint(rho,arcd));     draw(garc,gray,Arrow3(size=3));          label("$z$",h,E);     label("$\rho$",rho,SW);     label("$\phi$",garc,NE);          pen xyzPen=darkblue+1bp;     xaxis3(0,xMax,xyzPen,Arrow3(size=3));     zaxis3("",0,zMax,xyzPen,Arrow3(size=3));          label("$Z$",zMax*Z,SW);     shipout(bbox(Fill(lightyellow)));     \end{asy}     \end{document}      Compiling with `Asymptote.bat spiral` produces the following. ![enter image description here](http://i.stack.imgur.com/juNDo.png) where my batch `Asymptote.bat` is defined as follows.               rem Asymptote.bat     echo off          rem %1 TeX input filename without extension          if exist "%~1.pdf" del "%~1.pdf"          if exist "%~1.tex" pdflatex "%~1.tex"          if exist "%~1-*.asy" asy -f pdf %~1-*.asy          if exist "%~1.tex" pdflatex "%~1.tex"          for %%x in (pdf tex asy pre) do (if exist "%~1-*.%%x" del "%~1-*.%%x")          for %%x in (aux log pre) do (if exist "%~1.%%x" del "%~1.%%x")      I noticed that the characters in PDF output are not searchable because of conversion. Can we make them still searchable? ## Bonus question: I **CAN** use `asy -f pdf %~1-*.asy` and why can't I use double quotes in `asy` command, i.e., `asy -f pdf "%~1-*.asy"`?


title: Beamer, notes on the second screen and media9 problem

text: When one is asking beamer to generate notes on a second screen, a small version of the slide is also produced. This is troublesome when it comes to a slide containing a video. In my case (`movie9` \+ Acrobat Reader), the video is not placed at the correct location and is partially visible on both screens. Is there a way to exclude the movie elements from the second screen slide thumbnail? Here is minimum example of the issue:               \documentclass{beamer}     \usepackage{graphics}     \usepackage{media9}     \usepackage{pgfpages}     \setbeameroption{show notes on second screen}     \begin{document}          \begin{frame}       \includemedia[%         addresource=sample_mpeg4.mp4,         height=\paperheight,             width=\paperwidth,             flashvars={               flv=sample_mpeg4.mp4               &autoPlay=true       }]{foo bar}{player_flv_maxi.swf}     \end{frame}          \end{document}      You can find the sample video on the Apple website (3rd one). I compile the document with `pdflatex` and view it using Acrobat Reader (9.4.1) on Ubuntu 10.04.


title: portable packages

text: and sorry again for my bad grammar, English is not my native idiom. I start explaining about what I have and then what I want: I built a format for my school so students can build up their thesis without having headache with latex environment (out of topic: wanna upload it when it's done so i can have a viewpoint of all, but dunno if put it like a question or if there's a specific link for that.). What I want of the project is to build it portable, so the students don't have to dowload all MiKTeX, I just want the specific packages I call on my `.sty` and if possible to have them in the same folder. Is there a way so I can migrate the specific packages so I can use them on the same folder of my .sty? Or is there a way to call packages from a diferent directory? I'll add more details if needed.


title: Why are default LaTeX margins so big?

text: I've read that—unless I know a lot about typesetting—I shouldn't change the margins of a LaTeX document. The default margin size of the `article` class is really big and it feels like a lot of space is waste. Thanks to the `geometry` package, it is simple to change the margins, but I'm not sure if I should. Can someone tell me why the default margin size is so big? Also, why shouldn't I change the margin size?


title: The fonts of specific class does not show up (Using TexStudio)

text: Hope you are doing fine. I am a beginner in using Latex and have ran into a problem. I have a `.cls` file and I want to use it for a report. This `.cls` file uses a set of non-free fonts (Fedra fonts). But unfortunately when I use the `.cls` file along with my `.tex` file, the predefined fonts (fedra b fonts, which I already have them and copy them in the font folder of my Windows 8) does not shows up. In fact, the texts appear in another font (in Times New Roman, I suppose) Can you kindly give me some hints how I can solve the problem? (Do I need to put those fonts in other path or folder?) Thanks in advance for your time. P.s: I am using TexStudio and TexLive on Windows 8 P.S (2): I embedded the output as an image in below. ![enter image description here](http://i.stack.imgur.com/pJ5cl.png)


title: Delete new line margin BibTeX

text: I need bibliogrpahy look like in first picture. ![enter image description here](http://i.stack.imgur.com/WOWnT.png) Actually, default look like in second picture. ![enter image description here](http://i.stack.imgur.com/sE40r.png) diplom.tex               \documentclass[a4paper,14pt,russian,oneside,final]{extreport}          \usepackage[utf8]{inputenc}          \usepackage[T2A]{fontenc}          \usepackage[russian]{babel}          \bibliographystyle{styles/belarus-specific-utf8gost780u}          \begin{document}          ~\cite{book_1}     ~\cite{book_2}     ~\cite{book_3}     ~\cite{book_4}          \bibliography{bibliography_database}          \end{document}      bibliography_database.bib               @BOOK{book_1,       title = {“Introducing Adaptive, Aware, and Cognitive Radios.” In Cognitive Radio, Software Defined Radio, and Adaptive Wireless Systems},       publisher = {AA Dordrecht: Springer},       year = {2007},       author = {Fette, Bruce},       pages = {1-16},       language = {russian},       owner = {mstyura},       timestamp = {2013.03.18}     }          @BOOK{book_2,       title = {Implementation issues in spectrum sensing for cognitive radios Signals, Systems and Computers},       publisher = {Conference Record of the Thirty-Eighth Asilomar Conference.},       year = {2004},       author = {Cabric D. AND Misha S.M. AND Brodesen R.W.},       pages = {772–776},       language = {english},       owner = {mstyura},       timestamp = {2013.03.18}     }          @BOOK{book_3,       title = {Теоретико-игровая модель распределения ресурсов в самоорганизующихся системах когнитивного радио // Сборник тезисов, материалы Пятнадцатой Всероссийской научной конференции студентов-физиков и молодых ученых (ВНКСФ-15, Кемерово – Томск)},       publisher = {издательство АСФ России},       address = {Екатеринбург – Кемерово},       year = {2009},       author = {Ошмарин Д.В.},       pages = {672–673},       language = {russian},       owner = {mstyura},       timestamp = {2013.03.18}     }          @BOOK{book_4,       title = {Auction driven dynamic spectrum allocation: optimal bidding, pricing and service priorities for multi-rate, multi-class CDMA},       publisher = {IEEE 16th International Symposium},       year = {2005},       author = {Rodriguez V. AND Moessner K. AND Tafasolli R.},       pages = {1850–1854},       language = {english},       owner = {mstyura},       timestamp = {2013.03.18}     }


title: No \makeatletter required?

text: In typing up some small examples that might create errors in LaTeX (for Documents with typical LaTeX errors), I tried the following:               \documentclass{article}     \def\my@macro#1{-#1-}% This is magic     \begin{document}     \my@macro{hi}% Print -hi-     \end{document}      Since I almost religiously encompass `@`-symbol definitions and/or usage with `\makeatletter` and `\makeatother` (see What do `\makeatletter` and `\makeatother` do?), and since `latex.ltx` issues `\makeatother` at literally the 4th-to-last line, I thought this would flash an error. It didn't. Not only was I able to define the macro, I was able to use it without problem after it is defined. Why is this the case? One clue here, although I don't know why, is that I'm using the TeX `\def` syntax, rather than `\newcommand`, which _does_ produce an error.


title: How to delete a latex macro in the text but not its argument

text: I a newbie in LaTeX. I have the following problem. How to delete a LaTeX macro in the text but not its argument? In particular, how to replace a macro in the text, e.g               \command1{text_inside_the_brackets}      with the text inside the brackets? (the text in the brackets are different). It is very time consuming to replace it manually, anybody has an idea how to make it faster?


title: How to get Lyx to process aliases from the preamble in the graphical editing mode

text: I was trying to create my Lyx document in a structured way by defining a new latex command in the preample for the representation of complex conjugation, to keep all flexibility in case I would like to change it. In the preamble I added:               \let\cc\overline      How do I get Lyx to display the overline in the editor as I type my formulas?


title: Could someone help with me LaTeX ? I don't know why it isn't compiling

text: I am new to LaTeX and i guess computer science in general. I am trying to generate a pdf with an image. I am having a lot of problems. I use MiKTeX 2.8 Here is what I entered               \documentclass{report}     \usepackage{graphicx}     \begin{document}      \includegraphics{Reinhard}     \end{document}      I then hit the check button "pdfLaTeX" and it tells me it can't. I am sure that the picture "Reinhard.jpg" is only my desktop.


title: minted truncates the code if it doesn't fit into one page

text: `minted` works well when the code snippet is short, or fit into one page. The problem occurs when I pasted a code snippet with several hundred lines. Sometimes it processed but the output was truncated; other times it produced a bunch of errors. And if I break it into pages, the amount of characters in each page matter, i.e. it could yield a blank page after the `\end{minted}`. For example:               ....     \begin{minted}[bgcolor=bg,mathescape]{c++}     code here     \end{minted}     ... -> a blank page sometimes appear     \begin{minted}[bgcolor=bg,mathescape]{c++}     code here     \end{minted}     ....      Has anyone encountered this awkward behavior with `minted` package? Any idea or suggestion would be greatly appreciated. Thanks.


title: Margins and text size change when printing from external viewer (using Texmaker 3.1)

text: With Texmaker 3.1 on Win XP Pro SP2, the following MWE prints with different margin widths and font size according to whether, from the window which opens after I press `F1`, I use the print command directly or I click to open open my external viewer (Adobe Reader) and then print from that. I'm aiming for 1 inch margins and 10-point type.               \documentclass[a4paper,10pt]{article}     \usepackage[top=1in, bottom=1in, left=1in, right=1in]{geometry}     \usepackage{listings}     \usepackage{textcomp}     \usepackage{amsfonts}     \usepackage{amsthm}     \usepackage{amsmath}     \usepackage{amssymb}     \usepackage{url}     \usepackage{enumerate}     \lstset{breaklines=true,numbers=left,numberstyle=\tiny,upquote=true,basicstyle=\fontsize{9pt}{6pt}\ttfamily}     \usepackage{graphicx}     \usepackage{epstopdf}     \usepackage{sidecap}     \usepackage{sectsty}     \partfont{\centering}     \DeclareMathSizes{12}{12}{8}{9}     \begin{document}     \title{Document Title}     \maketitle     The quick brown fox jumps over the lazy dog, but is it true that the quick brown dog jumps over the lazy fox?     \end{document}      Printing directly gives the required margins and type size. Firing up Adobe Reader first gives L,R margins of 1.34in and 1.02in respecively, and type size that's clearly smaller than 10pt: the number of characters per line and the layout are the same; it's as if the whole page has been reduced.


title: Adding/subtracting vertical space in »letter« class

text: Is there a way to move the to-address up (or, respectively, the date down) in the »letter« document class? With the to-address on the left and date on the right, I wish for the vertical alignment of the top row of the to-address to be the same as that of the date. Does anyone know a way of doing this?


title: Is there a tool/script available to simply install packages locally?

text: This question is not on how to manually install packages but how to install packages automatically via script. This question is not about MikTeX or the limited tex package management in certain linux distributions (e.g.Ubuntu). This question is about the cases where those management tools are not available or when we don't want to mess with them or where they are not sufficient. Question: Is there a script or tool that can install an arbitrary package by downloading it and installing it in the local tree? The closest I got to that is the following script (which has lots of drawbacks):               PACKAGE=$1     mkdir -p ~/texmf     cd ~/texmf     wget http://mirror.ctan.org/macros/latex/contrib/$PACKAGE.zip     unzip $PACKAGE.zip     mkdir -p tex/latex/$PACKAGE     cd $PACKAGE     for a in *.dtx; do if [ -a $a ]; then latex $a; fi; done      for a in *.ins; do if [ -a $a ]; then latex $a; fi; done      cd -     cp -vf $PACKAGE/*.{sty,def,cls,cfg} tex/latex/$PACKAGE     texhash      It is pretty generic BUT the drawbacks include: not error resilient, does not track dependencies, it doesn't work for all packages, it can produce a mess of files sometimes if the script fails, it doesn't work for packages outside of `contrib`. Also it doesn't work for complicated packages and bundles. The idea is to be able to just type, for example:               $ install_package pdfcomment       Improvements to this script, or alternative tools or scripts are greatly appreciated. I'll be really happy for example, if it works for all these packages that are not available in the cluster (i.e. no root access) I use:               xkeyval oberdiek pgf pgfplots acrotex movie15 datetime filecontents     changepage paralist textcase placeins cool coollist coolstr coolstr     forloop bbm type1cm lastpage pdfmarginpar standalone tufte-latex ifpdf      **EDIT** : Thanks Seamus for the answer, it seems that a more robust script for TDS prepackaged packages is the following:               $PACKAGE=$1     mkdir -p ~/texmf     cd ~/texmf     wget http://www.ctan.org/tex-archive/install/macros/latex/contrib/$PACKAGE.tds.zip     unzip $PACKAGE.tds.zip     texhash      (not all packages have a TDS version.)


title: Producing quality figure and graphics - which Edward Tufte book is the most influential/interesting for TeX users?

text: I know this might be far fetched as a topic on this site, but I don't see where else it would belong (statistics SE? meh, I think we are more oriented toward producing clean and readable stuff than they are). I am aware of Tufte's work as a good reference for producing quality graphics and figures, however I am wondering, which of his books/works should I read? If I were to read only one of his books to inspire myself in making greater TeX documents, figures and graphics, which one should it be? Additional information: Note that I am writing mainly scientific stuff, machine learning and computer engineering papers, also my thesis. Also, I've heard that some LaTeX classes were inspired from Tufte's designs, which one are they? In what regard were they inspired by his works? From which book?


title: How to install Gregorio package on Ubuntu with TeXLive installed?

text: Does anyone here have experience installing the gregorio packages to work in Ubuntu using the non-repo TeXLive? Gregorio isn't packaged on CTAN as far as I could tell, and I don't know enough to be able to figure out how to make the TeXLive install, see the various fonts and whatnot that are required.


title: Howto generate png images of characters using LaTeX

text: I need to generate PNG images of Latin characters and AMS symbols with transparent background. Each image should be exactly in dimensions of its box. I know It's possible with LaTeX because I see online LaTeX formula editors can generate such pictures. Currently I can generate only dvi and pdf files in known paper sizes (a4,letter ...). size of output must be bounded to its content and output must be in png format with transparent background. I wish do this using a program. because there are thousands of characters and symbols that I need their LaTeX-produced images. Please tell me if there are CLI solutions or not. Also some of characters can only produced by XeTeX and XeLaTeX (characters of non-latin scripts)


title: Using calc in TikZ

text: How to use function `calc` in TikZ? For example, suppose I have a function `f(x)=x^2`. Now, I want to find `f(1)` and f`(2)`, and then I want `\draw f(1) -- f(2);`.


title: A good memorandum template for LaTeX

text: Pretty much the title says it all ... does anyone know of a good memorandum template (with an example maybe?). You know, the things companies print on their text and stuff before faxing them out. It is usually composed of a letterhead on top (a logo on the left is optional), and some accounts and banking data in small letters on the bottom of the document. In the middle, goes your text. I'm rather unexperienced in composing LaTeX documents, but I have to make a memo and want it to look rather nice, so bear with me, if something in here sounds silly. Examples: ![Juniata College letterhead](http://i.stack.imgur.com/589RL.jpg) ![Brockhouse letterhead](http://i.stack.imgur.com/miCRf.gif)


title: Making an environment that stores stuff in a box

text: Im trying to make make an environment that both: displays text and stores stuff in a box for later use. For this I need to use the input argument of the enviroment to manufacture a command name, i.e. `\#1`. For some reason I can't get this to work in latex.               \documentclass{article}     \newenvironment{testenv}[1]         {   \textbf{Test Environment}              \newsavebox{\#1}              \begin{lrbox}{\#1}         }         {             \end{lrbox} \usebox{\#1}         }               \begin{document}          \begin{pattern}{aaa}     test     \end{pattern}          \usebox{\aaa}          \end{document}


title: new command with cases?

text: This has been answered here for text outputs with the use of `\IfEqCase` from the xstring package. But if I want to use the output as a value to set a parameter in a function, it fails. Here is my MWE:               \documentclass[a4paper]{article}           \usepackage{lettrine,xstring}          \newcommand*{\Lettrine}[1]{%         \lettrine[lines=1, findent=\IfEqCase{#1}{%             {P}{-0.8em}%             {Q}{1em}%         }[\PackageError{Lettrine}{Undefined option to Lettrine: #1}{}]%         ]{\textit{#1}}{}%     }          \newcommand*{\LettrineSimply}[1]{\lettrine[lines=1, findent=-0.8em]{\textit{#1}}{}}          \begin{document}      \LettrineSimply{P} erfectly working !     \Lettrine{P} ossibly it will work !     \end{document}      `\LettrineSimply` works, but I want to use different _findent_ depending on the letter. In my attempt with the use of `\IfEqCase`, I have the following compilation error:               $ pdflatex MWE_lettrine_command.tex      This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013)      restricted \write18 enabled.     entering extended mode     (./MWE_lettrine_command.tex     LaTeX2e <2011/06/27>     Babel <3.9f> and hyphenation patterns for 15 languages loaded.     (/usr/share/texmf-dist/tex/latex/base/article.cls     Document Class: article 2007/10/19 v1.4h Standard LaTeX document class     (/usr/share/texmf-dist/tex/latex/base/size10.clo))     (/usr/share/texmf-dist/tex/latex/lettrine/lettrine.sty     (/usr/share/texmf-dist/tex/latex/graphics/keyval.sty)     Loading lettrine.cfg     (/etc/texmf/tex/latex/lettrine.d/lettrine.cfg))     (/usr/share/texmf-dist/tex/generic/xstring/xstring.sty     (/usr/share/texmf-dist/tex/generic/xstring/xstring.tex))     (./MWE_lettrine_command.aux)     ! Missing number, treated as zero.     <to be read again>                         \let      l.17 \Lettrine{P}                       ossibly it will work !     ?       If I just _ENTER_ :               ! Illegal unit of measure (pt inserted).     <to be read again>                         \let      l.17 \Lettrine{P}                       ossibly it will work !      Do I try to assign a string to the _findent_ parameter? How can I solve that? Otherwise, is it possible to define tables or associative maps inside commands?


title: Tables: Missing $ inserted

text: I'm trying to learn how to use Latex so I've got a little bit of problems in understanding what is the mistake that I've made. In this case I'm compiling a Table containing multiple datas about currents, voltages and resistences of a circuit and the programme gives back a houndred mistakes about **Missing $** or **Extra {** , then there is a **fatal mistake at lines 1** , but by putting everything under the **%** comment sign I've discovered that the problems still lies in the way I've encoded the lines of the table... > **Error in main.tex (line 29): Missing $ inserted.** $ l.29 {\Large R_ B}& > {\Large 2.2 M\Omega}& {\Large 2.237 M\Omega}& {\Large 2.2... I've inserted a > begin-math/end-math symbol since I think you left one out. Proceed, with > fingers crossed. > > LaTeX Font Info: External font `cmex10' loaded for size (Font)   >  <17.28> on input line 29. ! Extra }, or forgotten $. l.29 {\Large R_B} & > {\Large 2.2 M\Omega}& {\Large 2.237 M\Omega}& {\Large 2.2... > > I've deleted a group-closing symbol because it seems to be spurious, as in > `$x}$'. But perhaps the } is legitimate and you forgot something else, as > in`\hbox{$x}'. In such cases the way to recover is to insert both the > forgotten and the deleted material, e.g., by typing `I$}'. > > **Error in main.tex (line 29): Missing } inserted.** } l.29 {\Large R_B}& > {\Large 2.2 M\Omega}& {\Large 2.237 M\Omega}& {\Large 2.2... > > I've put in what seems to be necessary to fix the current column of the > current alignment. Try to go on, since this might almost work. > > ! Extra }, or forgotten $. } > > **Error in main.tex:** ==> Fatal error occurred, no output PDF file > produced!* These are the Errors. Here you can find the code that I've written. The troubled linesare the ones are the ones presenting numeric Result...they should all contain the same mistake because I've copy/paste them since I've to create 6 Tables, all with the same Layout.               \documentclass[12pt,a4paper]{report}     \usepackage[italian]{babel}     \title{Relazione - Circuiti con BJT e Punti di Bias}     \author{Mengops}     \date{Laboratory of April, 14th 2014}          \begin{document}     \begin{tabular}{cccc}     \hline     \multicolumn{4}{c}{\Large Tabella Circuito 1}\\     \hline     {\Large }& {\Large Teorico}& {\Large Reale}& {\Large Spice}\\     \hline     {\Large R_{B}}& {\Large 2.2 M\Omega}& {\Large 2.237 M\Omega}& {\Large 2.2 M\Omega}\\     \hline     {\Large R_{C}}& {\Large 5.6 k\Omega}& {\Large 5.555 k\Omega}& {\Large 56 k\Omega}\\     \hline     {\Large I_{B}}& {\Large 5 \mu A}& {\Large k\Omega}& {\Large 5.15622 \mu A}\\     \hline     {\Large I_{C}}& {\Large 1 \mu A}& {\Large  k\Omega}& {\Large 1.082 \mu A}\\     \hline     {\Large V_{RC}}& {\Large V}& {\Large 7.079 V}& {\Large 6.0594 V}\\     \hline     {\Large V_{RB}}& {\Large 11.3 V}& {\Large 11.388 V}& 11.344 V}\\     \hline     {\Large V_{BE}}& {\Large 0.7 V}& {\Large 0.615 V}& {\Large 0.656 V}\\     \hline     {\Large V_{CE}}& {\Large V}& {\Large 4.896 V}& {\Large 5.94 V}\\     \hline     \end{tabular}          \end{document}


title: Setting tabular width

text: I'm using a `tabular` within `multicols` and would like to make a table extend its second column right to the edge of the column within `multicols`, so the column is pushed over but the text is still left justified. The code I'm trying to use this:               \documentclass[11pt, a4paper]{article}     \usepackage{tikz}     \usepackage{a4wide}     \usepackage{multicol}     \usepackage{amsmath}          \begin{document}     \begin{multicols*}{2}     \section{Notation}     \begin{tabular}{l l}     $Q_r$ & Heat energy rejected \\     $Q_s$ & Heat energy supplied \\     $R$ & Real gas constant for fluid \\     \end{tabular}     \end{multicols*}     \end{document}


title: Will package `latex-cjk-all` provide CJK support for texlive?

text: Very new to Latex. I installed package `texlive-base` with `apt-get`. Seeking for CJK support, I installed `latex-cjk-all` also, but didn't work. I would like to know:   1. In theory, will package `latex-cjk-all` provide CJK support for texlive?   2. To install fonts, will simply putting `.ttf` to `~/font` work?   3. Are these two commands              sudo apt-get install latex-cjk-all     sudo tlmgr install cjk      virtually doing the same thing?


title: \mathbb{0} and \mathbb{1} with mathdesign/Utopia?

text: In a related question, I asked about getting a blackboard bold 0 in addition to a 1. But now I'd like to do it along with `\usepackage[utopia]{mathdesign}`. If I try to `\usepackage{bbold}`, I get the error               Latex Error: /usr/local/texlive/2011/texmf-dist/tex/latex/bbold/bbold.sty:42 LaTeX Error: Command `\mathbb' already defined.      It seems that `\usepackage{dsmath}` works with `\mathds{01}`, but if possible I'd like to use them with the command `\mathbb`. Is there a way to make that work?


title: Spacing between environments

text: I am trying to define a `dialog` environment while using the `lettrine` package. My problem are the spaces between the dialogs. There is no problem when a dialog consists of more than two lines. But paragraphs with one line are problematic since the number of lines given in lettrine is two. Is it possible to count the lines in a paragraph and determine the space between the paragraphs with respect to the number of lines?               \documentclass{minimal}     \usepackage{graphicx}     \usepackage{lettrine}     \usepackage{needspace}     \usepackage{lipsum}          \newenvironment{dialog}     {\lettrine[lines=2,nindent=3pt,findent=3pt,image=true,loversize=0.7,lraise=-0.2]{myimage.eps}{}}     {\par}               \begin{document}          \begin{dialog}       \lipsum[1]     \end{dialog}          \begin{dialog}       Just one line.     \end{dialog}          \begin{dialog}       \lipsum[2]     \end{dialog}          \end{document}


title: Best way to illustrate Keplers 2nd law with tikz

text: I am trying to visualize Keplers second law of planetary motion with tikz. I managed to do the following:               \documentclass{article}          \usepackage{tikz}               \begin{document}             \begin{tikzpicture}           \draw [rotate around={0:(1.5,0)}] (1.5,0) ellipse (2.5cm and 2cm);     %           \fill (0,0) coordinate (O) circle (2pt) node[below =7pt] {sun};%           \coordinate (A1) at (1.62,2) ;%%           \coordinate (A2) at (2.15,1.93);%%           \coordinate (B1) at (-0.81,0.77);%%           \coordinate (B2) at (-0.9,0.56);%%           \coordinate (B3) at (-0.95,0.39);%%           \coordinate (B4) at (-0.99,0.14);%%           \coordinate (B5) at (-1,-0.05);%%           \coordinate (B6) at (-0.97,-0.31);%%           \coordinate (B7) at (-0.92,-0.52);%%         %     %           \coordinate (C1) at (3.25,-1.43);%%           \coordinate (C2) at (3.51,-1.18);%%     %           \coordinate (P) at (3.42,1.28) ;%%           \fill (P) circle (1pt) node[above right] {planet};%     %     %           \filldraw[fill=blue,opacity=0.5] (O) -- (A1) -- (A2) --cycle;%           \filldraw[fill=blue,opacity=0.5] (O) -- (B1) -- (B2) -- (B3) -- (B4) -- (B5) -- (B6) -- (B7)           --cycle;%           \filldraw[fill=blue,opacity=0.5] (O) -- (C1) -- (C2) --cycle;%     %                \draw (1.5,0) coordinate (M) --node[above]{\footnotesize $a$}           (4,0);%           \fill (M) circle (1pt);        \end{tikzpicture}               \end{document}      This gives the following output: ![Output](http://i.stack.imgur.com/Xx4pj.png) However there are multiple issues: ### How to fill the ellipse sector? To fill the ellipse sectors I approximate them with polygons manually, in particular for the "larger" (but of course with equal area) part I used multiple manual "helper points". I did that by first drawing the image with geogebra, exporting it and cleaning up the code a bit. So is there a smart way to fill the true ellipse segment? ### How to get the equal areas automatically? To make the areas of (approximately) same size I roughly measured the approximations with geogebra and adjusted it with the mouse (very painful :-)). In an ideal solution the following would be possible:   * Specify two points of the ellipse (or the corresponding parameter of a parametrization) then the corresponding swept out area is filled automatically.    * Specify another point of the ellipse and a corresponding swept out area is drawn automatically (with the same area as the first one). You can do this multiple times as you like. ### It should be easy to modify the picture For example when I change the sizes of the axes of the ellipse everything should change accordingly. This is not true in my solution because I specified the points manually. Perhaps it is a good idea to externalize some calculations for this. That's why I added the luatex and python tags. **Edit:** ![Coordinates](http://i.stack.imgur.com/3pSwi.png)


title: Rotate only the shape

text: Is it possible to rotate only the shape, keeping the anchors and text inside the same?               \documentclass[12pt,a4paper,preview,multi={tikzpicture},border=0pt]{standalone}          \usepackage{tikz}     \usetikzlibrary{shapes.geometric}          \def\hexagonosize{30mm}     \def\desloca{-\pgflinewidth}          \tikzset{%         hexagono/.style={draw,shape=regular polygon,regular polygon sides=6,minimum size=\hexagonosize,inner sep=0pt},         hexagono2/.style={hexagono,rotate=90},     }          \begin{document}          \begin{tikzpicture}          \node[hexagono] (centro) at (0,0) {};     \node[hexagono,anchor=150,yshift=\desloca*sin(330),xshift=\desloca*cos(330)] (A) at (centro.330) {A};     \node[hexagono,anchor=210,yshift=\desloca*sin(30),xshift=\desloca*cos(30)]   (B) at (centro.30)  {B};     \node[hexagono,anchor=270,yshift=\desloca] (C) at (centro.90)  {C};     \node[hexagono,anchor=330,yshift=\desloca*sin(150),xshift=\desloca*cos(150)] (D) at (centro.150) {D};     \node[hexagono,anchor=30,yshift=\desloca*sin(210),xshift=\desloca*cos(210)]  (E) at (centro.210) {E};     \node[hexagono,anchor=90,yshift=-\desloca] (F) at (centro.270) {F};          \draw[thick] (A.90) -- (F.45);          \end{tikzpicture}          \begin{tikzpicture}          \node[hexagono2] (centro) at (0,0) {};     \node[hexagono2,anchor=150,yshift=\desloca*sin(330),xshift=\desloca*cos(330)] (A) at (centro.330) {A};     \node[hexagono2,anchor=210,yshift=\desloca*sin(30),xshift=\desloca*cos(30)]   (B) at (centro.30)  {B};     \node[hexagono2,anchor=270,yshift=\desloca] (C) at (centro.90)  {C};     \node[hexagono2,anchor=330,yshift=\desloca*sin(150),xshift=\desloca*cos(150)] (D) at (centro.150) {D};     \node[hexagono2,anchor=30,yshift=\desloca*sin(210),xshift=\desloca*cos(210)]  (E) at (centro.210) {E};     \node[hexagono2,anchor=90,yshift=-\desloca] (F) at (centro.270) {F};          \draw[thick] (A.90) -- (F.45);          \end{tikzpicture}          \end{document}


title: Is there a conflict between the package tabularx and epstopdf?

text: I am trying to use epstopdf to convert EPS files to PDF on the fly, yet I can't get it to work with the `tabularx` package. In summary, can anyone tell my why the following example works?               \documentclass[pdftex,10pt,a4paper]{article}     \usepackage[pdftex]{graphicx}     \def\pdfshellescape{1}     \usepackage{epstopdf}     \usepackage{amssymb,amsmath, amsfonts}     \usepackage{longtable}     \usepackage{ltablex}     \usepackage{tabularx}               \def\pth{X:/Results/results/pictures}     \def\ig{\includegraphics[scale=0.8,keepaspectratio]}               \begin{document}          \begin{longtable}{|c|}     \ig{\pth/result5}\\     \end{longtable}          \end{document}      And when I replace:               \begin{longtable}{|c|}     \ig{\pth/result5}\\     \end{longtable}      with:               \begin{tabularx}{\linewidth}{X}     \ig{\pth/result5}\\     \end{tabularx}      It no longer compiles? I receive the following error:               ! Package pdftex.def Error: File     `X:/Research/Results/lung_project_results/pict     ures/result5-eps-converted-to.pdf' not found.      I'm using Miktex 2.9.4476 When I add `\listfiles`, the log file outputs the following:               *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)       graphicx.sty    1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)         keyval.sty    1999/03/16 v1.13 key=value parser (DPC)       graphics.sty    2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)           trig.sty    1999/03/16 v1.09 sin cos tan (DPC)       graphics.cfg    2007/01/18 v1.5 graphics configuration of teTeX/TeXLive         pdftex.def    2011/05/27 v0.06d Graphics/color for pdfTeX       infwarerr.sty    2010/04/08 v1.3 Providing info/warning/error messages (HO)        ltxcmds.sty    2011/11/09 v1.22 LaTeX kernel commands for general use (HO)       epstopdf.sty    2010/02/09 v2.5 Conversion with epstopdf on the fly (HO)       epstopdf-base.sty    2010/02/09 v2.5 Base part for package epstopdf         grfext.sty    2010/08/19 v1.1 Manage graphics extensions (HO)       kvdefinekeys.sty    2011/04/07 v1.3 Define keys (HO)       kvoptions.sty    2011/06/30 v3.11 Key value format for package options (HO)       kvsetkeys.sty    2012/04/25 v1.16 Key value parser (HO)       etexcmds.sty    2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO)       ifluatex.sty    2010/03/01 v1.3 Provides the ifluatex switch (HO)       pdftexcmds.sty    2011/11/29 v0.20 Utility functions of pdfTeX for LuaTeX (HO)          ifpdf.sty    2011/01/30 v2.3 Provides the ifpdf switch (HO)        amssymb.sty    2009/06/22 v3.00       amsfonts.sty    2009/06/22 v3.00 Basic AMSFonts support        amsmath.sty    2000/07/18 v2.13 AMS math features        amstext.sty    2000/06/29 v2.01         amsgen.sty    1999/11/30 v2.0         amsbsy.sty    1999/11/29 v1.2d           amsopn.sty    1999/12/14 v2.01 operator names        ltablex.sty    1995/11/06 v1.0 Modified tabularx       longtable.sty    2004/02/01 v4.11 Multi-page Table package (DPC)       tabularx.sty    1999/01/07 v2.07 `tabularx' package (DPC)          array.sty    2008/09/09 v2.4c Tabular extension package (FMi)


title: Attaching file into a pdf with pdfLaTeX will crash Adobe Reader

text: I am using the package attachfile to attach a file to the pdf (generated with pdfLaTeX) with the following code               \documentclass[twoside,a4paper,10pt]{article}     \usepackage{attachfile}          \begin{document}       \title{XXX}       \author{YYY}       \maketitle            Here is the file I attached: \attachfile{file.txt}     \end{document}      It compiles without any problem and the pdf will be generated then. But if I open it in Adobe Reader X, it crashes. Interestingly, if I open that in Acrobat 7, it works. Is that any better way to insert file to the pdf so to support different version of pdf reader?


title: eso-pic colorgrid overwriting pdfpages page

text: this may be really obvious but I'm trying to use pdfpages to annotate a pdf "form". To help with filling it in, I'm trying to put a grid on the page. The following code places a grid on the page but it covers the pdf so I cant see what I'm trying to fill. What am I doing wrong? (MWE with `\includepdf ..somepdf` replaced with any pdf file/page)               \documentclass[10pt]{article}     \usepackage{grffile}     \usepackage[colorgrid,texcoord,gridunit=pt]{eso-pic}     \usepackage{pdfpages}               \begin{document}          \includepdf[pages=1-1]{"/home/me/somepdf"}          \end{document}


title: etex.sty not found!

text: I copy `.tex` file from MikTeX to Scientific Word; in MikTeX, everything is fine; but in SW, I got `etex.sty not found.` error. I copy the file `stex.sty` from MikTeX to SW; then I go the following error message.               ! Package etex Error: This package may only be run using an     (etex) etex in extended mode.      I checked my MikTex and find the `etex` file:               C:\Program Files\MiKTeX 2.9\tex\latex\misc      But it does not say which package the file is in? You know that means I do not know which package I need to add to SW. Could someone help me with that?


title: vertical arrow with variable length

text: I wish to have a vertical arrows from the top of the page to the text, with the length of the arrow adjusted automaticall (like vertical fill). Please advise.


title: placing a footnote in a table

text: It seems that placing a footnote in a table is different a footnote in the text. Consider this table               \begin{table}         \centering         \caption{Simulation parameters}         \label{sim-param}         \begin{tabular}{| p{2cm} | p{5.1cm} |}             \hline             Processing Nodes &  UltraSPARC III ISA   \\              interconnect \footnote{the text of footnote}        &  something \\             \hline         \end{tabular}     \end{table}          In the pdf file, I see the number `1` at the top of `interconnect` but there is no `the text of footnote` in the text. Any way to fix that?


title: Alignment not what I would expect

text: I'm using the following source:               \usepackage[fleqn]{amsmath}          \begin{equation}          \begin{aligned}             \notag             &t_m & = & \alpha_1(m_1) & \oplus & \alpha_2(m_2) & \oplus & \cdots & \oplus & \alpha_{m-1}(m_{m-1}) & \oplus & \alpha_{m}(0) \oplus \gamma_{m-1}(0) \oplus m_m0^* \\             &t_a & = & \alpha_1(a_1) & \oplus & \alpha_2(a_2) & \oplus & \cdots & \oplus & \alpha_{a-1}(a_{a-1}) & \oplus & \alpha_{a}(a_a0^*)         \end{aligned}     \end{equation}      I would expect to get a nicely aligned formula with proper spacing between the elements, with the first line extending further than the second. Instead I get this: ![enter image description here](http://i.stack.imgur.com/o4ek4.png) What am I doing wrong?


title: Bold \varepsilon not as bold as it should be!

text: So when I use `\bm{\varepsilon}` and `\bm{\epsilon}`, the latter is LOT more highlighted. How can I make `\varepsilon` as bold as the rest of the symbols?               \documentclass[a4paper,11pt]{report}     \usepackage[utf8]{inputenc}     \usepackage{setspace}     \usepackage{tocbibind}     \usepackage{amssymb}     \usepackage{fleqn}     \usepackage{amsmath} %%I am adding this!     \usepackage{bm}     \usepackage[normalem]{ulem}     \usepackage{mathtools}% http://ctan.org/pkg/mathtools     \usepackage{empheq}     \usepackage{spreadtab}     \usepackage[sc]{mathpazo}          \title{Whatever}     \author{AB}          \begin{document}     \maketitle          \showoutput     \begin{equation}     \varepsilon \epsilon \bm{\varepsilon} \bm{\epsilon}     \end{equation}          \end{document}


title: Bibliograph format for JACS

text: I am using the journal = jacsat (JACS) format and try to create a bibliograph with BibTex, using the \cite commands. This works, in principle, fine, as far as I can see, but I have noticed a flaw in the formatting of the bibliography:   1. the scandinavian character "ø" (o-slash) is rendered in a as \o in the bibtex file, followed by a space character, to avoid confusion with other commands starting with o. However, after formatting, the extra space is not removed, resulting in e.g. "...strø m" Is it possible to remove the extra space in the formatting, in such a way that "...str\o m" is rendered as "strøm"? The workaround is to write {\o}, but as standard conversions (from e.g. Mendeley) produce "\o ", it is a tedious task to correct all the library entries after each update.


title: How to run TeX Live 2014 in Windows 8 64bit?

text: I would like to run TeX Live 2014 in Windows 8 64bit. Installed TeX Live 2014 32bit. When I try to run my first TeX program `first.tex` I get the following error message in command line:               warning: kpathsea: variable `TEXINPUTS' references itself (eventually).     warning: kpathsea: variable `TEXINPUTS' references itself (eventually).     warning: kpathsea: variable `TEXINPUTS' references itself (eventually).      What configuration is to be done in Windows8?


title: How can I insert a subject line in a letter?

text: I am writing a `letter` and I would like to insert a subject line above or below the `\opening`. How should I do this? I prefer not to use `scrlttr2` or `KOMA`


title: Defining an abbreviation for `align`

text: To save myself some keystrokes, I tried to define an abbreviation for `\begin{align}` and `\end{align}`               \documentclass[reqno, 11pt]{article}          \usepackage{amsmath, amsfonts, mathtools, amsthm}     \usepackage{fullpage}          \newcommand{\ba}{\begin{align*}}     \newcommand{\ea}{\end{align*}}          \title{Article Template}     \author{You}          \begin{document}     \maketitle          \section*{3}     \ba     e=mc^2     \ea     \end{document}      For some reason, the abbreviation for `\begin{align}` seems to work, but the abbreviation for `\end{align}` does not. I thought perhaps that `\ea` was already in use, but tweaking the name didn't change anything. Any ideas?


title: problem with defining a shortcut for \end{align}

text: I define `\beq=\begin{align}` and `\eeq=\end{align}`. `\beq` works correctly, but `\eeq` causes the error               ! Paragraph ended before \align was complete.     <to be read again>                         \par       any suggestions?


title: Letterpress effect through PSTricks or Tikz

text: I have already typed in the `META` section of the website a post addressing the question as to how the letterpress (or engraving-like) effect in the headers of the site had been achieved. I know it can be done with vector graphics GUI-driven software (such as Inkscape or Adobe Illustrator and those of their ilk). I do not despise those applications at all (rather on the contrary), but I do my graphic work with `PSTricks` or `Tikz` (or even `Asymptote`) for precisely the same kind of reasons that I use TeX-based typesetting systems, as opposed to other high-quality systems such as Adobe InDesign or Quark. Somebody at the `META` section suggested that maybe I should ask about this point in this section, and here I am. Anyone could say if there is a way that such an effect can be done with our beloved packages (those I have mentioned above)? Of course, it can be done going to the PostScript level, but I'm asking about a more direct way that is already available. EDIT: Alan's answer below works fine. We get a letterpress effect indeed, but I believe it is not the same kind of effect that has been achieved in the header. `Caramdir` has answered in the `META`section that it was not done on TeX -- I understand he means it was done with some GUI-driven application. Anyone knows how to do this with code based on `PSTricks`, `Tikz` or `Asymptote`?


title: two commas on first page

text: When I compile my document I get a very strange first page. It only has 2 commas and the pagenumber on it. Has anyone has this problem before or knows how to solve it? I have included a minimal example below including all packages I use. I am using Texmaker.               \documentclass[11pt, a4paper]{report}     \pagestyle{headings}     \usepackage{textcomp}     \usepackage[official]{eurosym}     \usepackage{epstopdf}     \usepackage[pdftex]{graphicx}     \usepackage{multirow}     \usepackage{array}     \usepackage{tabularx}     \usepackage{textcomp}     \usepackage[font={footnotesize}]{caption}     \usepackage{amsmath}     \usepackage[dutch]{babel}     \usepackage{courier}               \renewcommand{\labelenumi}{\arabic{enumi}}     \renewcommand{\labelenumii}{\arabic{enumi}.\arabic{enumii}}          \begin{document}     \title{Respect my authoritah!}, \author{Cartman, Eric}, \date{\today}      \maketitle          \end{document}      Thanks in advance for the help!


title: \star vs. \ast in formulas. Which one to use?

text: When you read a formula aloud you say "r and r-star are related by this formula". If you write this formula down you normally write an r with a six- handed star, which would actually be an asterisk and not star (with 5 sharp hands) because it's easier to draw by hand. But what to do when typing this formula in LaTeX? Should I set it as I pronounce it?               r^\star = a r      Or as I write it by hand?               r^\ast = a r      And will `\ast` _always_ do the same as `*`?               r^\ast == r^* %???      Is one (`\star` or `\ast`) simply wrong (typographically or semantically) or is it just a matter of personal preference?


title: Recreating a letterhead

text: I am using a .cls template to generate a letterhead for my resume, by the following snippet:               \def\namefont{\huge\bf}     \def\@linename{\begingroup       \def\\{, }       {\namefont\@name}       \vskip 2pt       \fullline       \vskip 2pt       % where do you live?       \@ifundefined{@addressone}{%         % do nothing       }{%         \leavevmode\hbox to \textwidth           {\hfill\vbox{\hbox{\@addressone}                \hbox{\@addresstwo}               }%           }\par       }     \endgroup}      I need to recreate this for a different document, and I have done so like this:               \begin{flushleft}       \huge\bfseries Name     \setlength{\parindent}{0pt}     \end{flushleft}     \medskip\hrule height 0.5pt     \begin{flushright}       address1 \\       address2      \end{flushright}       In the second version, there is a space between the huge name and the vertical line which I'd like to remove. Also the vertical line is black and not grey... How can I match the first version? Note: This is only my second project in LaTeX.


title: Logical String Length

text: How do I do a conditional 'if then else' statement, based on length of string being greater than (or less than, or equal) a specified value. For example, something Like               \def\mystring{XYZ}     \def\mythresh{1}     \ifthenelse{\stringlength{\mystring} > \mythresh}{TRUE}{FALSE}      where `\stringlength` is 'pseudo' for the relevant command, which I am unsure which is the most widely used. Does the logical greater than operator apply here, or is there another command?


title: frown and mathop/stackrel/overset

text: I need something like `\stackrel{\frown}{MM'}` to express the fact that `MM'` is some path. But I am not really satisfied by the look of the result. The `\frown` is too high. Would you please have a suggestion? Edit 1: I just discovered that the font I'm using, ie kpfonts, offers a nice `widearc` command which suits my needs.


title: Hyphenation of Russian text in utf8 encoding?

text: All my attempts to make hyphenation work in Debian Linux 6.0 for Russian text encoded in utf8 has failed. My search on internet indicates that hyphenation should work through babel at least with other encodings (cp855, cp866, cp866av, cp866mav, cp866nav, cp866tat, cp1251, koi8-r, koi8-u, koi8-ru, iso88595, maccyr). A lot of reading and tries was put forward to resolve this issue but so far no success. UTF-8 was around for quite awhile and I guess that somebody already stumbled on this problem before. Is there known solution for hyphenation of utf8 encoded Russian/Cyrillic? PDF file compiles with command bellow (some warrings "Overfull \hbox", "Underfull \hbox")               work$ xelatex book.tex      Bellow is small snippet of tex code for problem demonstration. First and last paragrhaph in English language show "boundaries" where hyphenation should have happened. NOTE: ruhyphen is part of texlive-lang-cyrillic which is installed on the system.               \documentclass[a4paper,twoside,titlepage,openright,10pt]{book}     \pagestyle{headings}          \XeTeXinputencoding ”bytes”     \usepackage[T2A,T2B,T2C]{fontenc}     \usepackage{ucs}     \usepackage[utf8]{inputenc}     \usepackage[english,russian]{babel}          \title{УНИКАЛЬНАЯ ЖЕНЩИНА \\ Проницательность и мудрость для достижения полноты жизни}     \author{Эдвин Луис Коул и Нэнси Корбетт Коул}          \begin{document}          \maketitle          "We will implement prudent and responsible macroeconomic policies to ensure mutually reinforcing effect of growth and to maintain economic and financial stability in the region, and prevent negative spillover effect." \\            Многие женщины начинают поиск истинного <Я> и оказываются обманутыми и разочарованными, пытаясь стать похожими на образец современной женщины. Приспосабливаясь внешне, но сопротивляясь внутренне, они однажды обнаруживают, что глубоко в душе они не являются тем, чем случайно оказались.            Некоторые женщины научились искать и получать розы, обеды и драгоценности и все же не ощущают стабильности, безопасности, удовлетворения от проявления своей индивидуальности и настоящей любви, чего они в действительности желают.            Множество женщин вверили свою жизнь мужчинам, желая жить жизнью своих мужей или любовников, но это ведет лишь к тому, что они разочаровываются в мужчинах, а в итоге и в самих себе.            Многие, очень многие жены отчаянно хотят, чтобы их мужья изменялись, становились зрелыми, брали ответственность на себя и были такими мужчинами, какими они сотворены быть. Они осознают слишком поздно, что подлинно свободна только та замужняя женщина, муж которой <достиг максимума>. \\          "Global growth is too weak, risks remain tilted to the downside, global trade is weakening and the economic outlook suggests growth is likely to be slower and less balanced than desired," the group said in a prepared statement.          \end{document}      System:               Debian GNU/Linux 6.0          work$ xelatex --version     XeTeX 3.1415926-2.2-0.9995.2 (TeX Live 2009/Debian)     kpathsea version 5.0.0     Copyright 2009 SIL International and Jonathan Kew.     There is NO warranty.  Redistribution of this software is     covered by the terms of both the XeTeX copyright and     the Lesser GNU General Public License.     For more information about these matters, see the file     named COPYING and the XeTeX source.     Primary author of XeTeX: Jonathan Kew.     Compiled with ICU version 3.8.1 [with modifications for XeTeX]     Compiled with zlib version 1.2.3.4; using 1.2.3.4     Compiled with FreeType2 version 2.4.2; using 2.4.2     Compiled with fontconfig version 2.8.0; using 2.8.0     Compiled with libpng version 1.2.44; using 1.2.44     Compiled with poppler version 0.12.4          work$ dpkg -l | grep cyrill     ii  console-cyrillic                     0.9-16                            Better    Cyrillic support for Linux console     ii  t1-cyrillic                          4.13                              A basic set of free PostScript fonts     ii  texlive-lang-cyrillic                2009-3                            TeX Live: Cyrillic     ii  xfonts-cyrillic                      1:1.0.1                           Cyrillic fonts for X          work$ dpkg -l | grep latex     ii  latex-beamer                         3.07-2                            LaTeX class to produce presentations     ii  latex-xcolor                         2.11-1                            Easy driver-independent TeX class for color     ii  preview-latex-style                  11.85-1                           extraction of elements from LaTeX documents as graphics     ii  texlive-latex-base                   2009-11+squeeze1                  TeX Live: Basic LaTeX packages     ii  texlive-latex-base-doc               2009-11+squeeze1                  TeX Live: Documentation files for texlive-latex-base     ii  texlive-latex-extra                  2009-10                           TeX Live: LaTeX supplementary packages     ii  texlive-latex-extra-doc              2009-10                           TeX Live: Documentation files for texlive-latex-extra     ii  texlive-latex-recommended            2009-11+squeeze1                  TeX Live: LaTeX recommended packages     ii  texlive-latex-recommended-doc        2009-11+squeeze1                  TeX Live: Documentation files for texlive-latex-recommended


title: algorithm2e-like vertical lines for loops in listings package

text: Is there any way to set vertical lines for loops in pseudo-algorithms written with `listings` package, in an algorithm2e style? As an example, see here: http://csweb.ucc.ie/~dongen/LAF/Algorithms.pdf The reason for my question is that I am using a pseudo-code syntax without _end while_ , _end if_ and so on, in order to save space, but then it is sometimes difficult to follow the structure of nested loops, specially in the case of large algorithms.


title: Layout diagrams

text: I want to create some layout diagrams for a latex talk for students. However I do not want to have any information about the sizes included and do not want any dashed lines (as in the `layout(s)` packages)               \documentclass[a4paper]{book}     \usepackage[]{layout}          \begin{document}     \pagestyle{empty}\mbox{}     \layout     \end{document}      With the `layouts` package I can customize some more things, but I still can not get rid of the sizes and the margin has no full height with a 'notes' bock which I do not understand.               \documentclass[a4paper]{book}     \usepackage{layouts}          \begin{document}     \oddpagelayoutfalse     \twocolumnlayoutfalse     \drawdimensionsfalse     \printheadingsfalse     \currentpage     \marginparswitchtrue      \pagedesign     \end{document}      There is also the `showframe` package, but that is a bit to simple in the shown layout.               \documentclass[a4paper]{book}     \usepackage[texcoord,gridunit=cm]{showframe}     \begin{document}     \pagestyle{empty}\mbox{}     \end{document}      the `geometry` package also has the possibility to show the layout, but I want to compare non-geometry layouts (book standard) with geometry layouts. So i need something that works even without that package. In the end I want to crop the pdfs and include these as images in a talk.


title: Case of diagram labels

text: This is a typesetting question rather than a TeX question. Which should be used for labels in diagrams: title case, sentence case, lowercase, or small caps? I've seen all of these in various diagrams. I think the small caps look really good here on pages 2 and 21. But, I think title case and lower case are more common.


title: Is it possible to use logical connectives in conditionals?

text: > **Possible Duplicate:**   >  How to form "if … or … then" conditionals in TeX? By writing `\ifnum cond1 and cond2`, the compilation is successful but the generated document is conceptually invalid. If possible, how to specify logical connectives?


title: Intersection of 2 lines not really connected in TikZ

text: In the code below I repeat one line (one with opacity=0 and other without it) in order to draw the intersection of 2 lines that are not connected. I am seeking a better way to achieve the same result. Using `arc` would also be a possible solution.               \documentclass[tikz]{standalone}     \usetikzlibrary{intersections,backgrounds}          \begin{document}          \begin{tikzpicture}          \begin{pgfonlayer}{background}     \draw[fill=yellow] (0.25,0.5) rectangle (1.75,1.5);     \end{pgfonlayer}     \draw [name path=a, opacity=0] (0,0) -- (2,2);% line that will be repeated     \draw [name path=b] (0,2) -- (2,0);     \path [name intersections={of=a and b,by=inter}];          \filldraw [yellow] (inter) circle (2pt);     \draw (0,0) -- (2,2);% line repeated          \end{tikzpicture}     \end{document}      Note: I only want to improve the way intersection between two lines is drawn, but keep the current aspect in the intersection of lines and rectangle. Moreover, the rectangle is not empty. ![enter image description here](http://i.stack.imgur.com/VCZC5.png)


title: Drawing little semicircle to show that two intersecting lines are not connected

text: I want my diagram to show that two intersecting lines are not actually connected, but one passes above the other. The best result I would like to achieve would be a small semicircle as used in electrical circuits. Is this possible? There is something similar **at TeXample** but it only handles horizontal and vertical lines. I have this code that makes one of the lines stop a bit before the intersection by creating an empty node. This produces the expected result but I don't think it is the neatest way to do what I want:               \documentclass{article}     \usepackage{tikz}     \begin{document}     \begin{tikzpicture}     \node (A) at (0,1) {A};     \node (B) at (1,-1) {B};     \node (C) at (1,1) {C};     \node (D) at (-1,-1) {D};     \node (i) at (intersection of A--B and D--C) {};      \draw (A) -- (B);     \draw (D) -- (i);     \draw (i) -- (C);     \end{tikzpicture}     \end{document}      ![enter image description here](http://i.stack.imgur.com/RD4Oj.png)


title: Using option for bibliography style

text: I am trying to write with the BioMed Central template. For the bibliotraphy, I have a file named:               bmc_article.bib      In the main `.tex`, the bibliography is included by:               % if your bibliography is in bibtex format, use those commands:     \bibliographystyle{bmc-mathphys} % Style BST file     \bibliography{bmc_article}      % Bibliography file (usually '*.bib' )      In the `bmc-mathphys.sty` the following commands appear:               \DeclareOption{undef}    {\only@first{\def\bibliography@style{0}\def\bibliography@key{undef}                               \def\bibliography@style@name{undefined}}}      \DeclareOption{basic}    {\only@first{\def\bibliography@style{1}\def\bibliography@key{basic}                               \def\bibliography@style@name{Basic Springer}}}      \DeclareOption{chemistry}{\only@first{\def\bibliography@style{2}\def\bibliography@key{chemistry}                               \def\bibliography@style@name{Chemistry}}}      \DeclareOption{bmc}      {\only@first{\def\bibliography@style{10}\def\bibliography@key{bmc}                               \def\bibliography@style@name{BMC Reference Style}}}      I guess I need the "`bmc`" style, but how can I select that option? Where should I select it?


title: Prevent pdflatex from writing a bunch of files

text: If I create just a basic `hello.tex` file an compile it using               pdflatex hello.tex      The `pdflatex` program is creating a plethora of file which is a little annoying. Currently it writes all those files about which I really don't care:               hello.aux, hello.log, hello.nav, hello.out, hello.snm, hello.toc      Is there a way to tell `pdflatex` to only write `hello.pdf` if the build is successful ? If not, can I specify the output directory of those files ? Maybe I could just write them in `/tmp`.


title: TeXstudio automatically creates too many associated files

text: I am using TeXstudio 2.6.2. It is very powerful and easy to use. However, when I do Build & View, it not only builds a `.pdf` file, but also creates a lot of files including `.gz`, `.log`, `.blg`, `.bbl`, and `.aux`. I find it very messy. Is is possible to configure the TeXstudio to only create the `.pdf` file?


title: Preventing output of extra compiler files

text: When I compile a document with _PdfLaTeX + View PDF_ quick build command option selected, Texmaker outputs these files in the same directory with the .tex file:               MyDoc.aux     MyDoc.log     MyDoc.pdf     MyDoc.synctex.gz      Among these files I only need the PDF file. The other compiler output files my be important for debugging or for some other purposes, but as a standard user I find them as nothing but garbage. How do I disable generation of these other three files?


title: TeXShop saving several unwanted files

text: Every time I save a file (having previewed it) in TeXShop, it saves five different files (.aux, .log, .pdf, .synctex.gz, and .tex). Is there a way to change the setting so that it only saves the .tex file? Or the .tex file and .pdf file?


title: How to remove unwanted output files?

text: > **Possible Duplicate:**   >  Deleting external/auxiliary files? When I run pdflatex how can I get rid of rubbish files such as aux, bib, bbl, blg, log, out and keep only tex and pdf output files?


title: Is there a way to automatically delete auxiliary files after compilation?

text: When I compile my `.tex` file, it generates a lot of different files (with extensions such as `.aux`, `.log`), but all I want is the `.tex` and `.pdf` files. Those files just fill my hard drive for nothing. Is there any trick to make LaTeX retain only the `.pdf` and `.tex` files and delete everything else after compilation?


title: Deleting external/auxiliary files?

text: Is there a way to make TeX delete files? In my document a lot of auxiliary files are created and it would be wonderful to have them removed after their content has been used.


title: In TexMakerX, how can I generate only the PDF, with no log, aux or gz files?

text: > **Possible Duplicate:**   >  Prevent pdflatex from writing a bunch of files. Every time I generate the PDF in TexMakerX 2.1 for Windows, it also generates the log, aux and gz files, in which I have no interest. How can I stop that?


title: Clean-up temporary files after PDF is generated

text: > **Possible Duplicate:**   >  Deleting external/auxiliary files? Is anyone aware of a way of how to cleanup temporary files generated by `pdflatex` during the generation of the PDF file? I came across the pdflatex parameter `-aux-directory=` but I cannot find where to set it. I also came across some sort of macro called `LaTeX-clean-intermediate-suffixes`, but neither am I sure how I can execute it manually or even better automatically after the compilation.


title: Does anyone know what the other files that come with compiling are?

text: > **Possible Duplicate:**   >  Prevent pdflatex from writing a bunch of files. Whenever I hit "compile" on MikTeX 2.8, I get a bunch of files I don't need like .aux, notepad files. Is there a way to permanently tell MikTeX to stop giving me those files?


title: Is there a way to organize TeX by-product files?

text: I rarely need the ancillary files TeX produces when compiling a document (`.aux, .log, .out, .synctex.gz`). In fact, I've only ever had to read the `.log`, and that's only a few times. Is there a way to write them to a separate directory, so that my working directory only contains `.tex` and `.pdf` files?


title: How to prevent TeXShop from making .aux, .syntec.gz and .log while compiling?

text: > **Possible Duplicate:**   >  Prevent pdflatex from writing a bunch of files. I'm not a super-user of LaTeX, I only use it for small reports with lots of maths. I often have to do it with other people so we put everything in a dropbox folder. Is there a way to prevent TexShop from making all those .aux, .syntec.gz and .log files while compiling ? We don't use them at all and it makes our folder pretty messy when we have several documents in LaTeX.


title: Texlipse - Preview document fails: "viewer> Can't find a file with extension"

text: I recently installed the Texlipse plugin for Eclipse and MiKTex on Windows 7. My builder settings were automatically set to point to the correct location of the MiKTex exe's. And as far as I can tell my latex project properties look fine. So I think all the settings are correct, but when I try to preview the document I still get the following error in the console:               viewer> Can't find a file with extension: .pdf      I get this error for whatever output format I attempt (except pdf is replaced with the other format). Can anyone tell me what I might be doing wrong? Thank you much! **Solution:** For any future visitors who don't happen to read the comments: I was simply trying to test the Texlipse plugin by running the preview with a blank document. If the document is blank you will get this error message.