title: Postprocess row with pgfplotstable

text: I am trying to surround all elements in a specific table row with square brackets, using `postproc cell content` in `pgfplotstable`. As shown in the MWE, it works well for processing a column, but not for a row:               \documentclass{article}     \usepackage{pgfplotstable}     \begin{document}          \pgfplotstabletypeset[         string type,         every first row/.append style={postproc cell content/.append style={/pgfplots/table/@cell content/.add={[}{]}}},         columns/B/.append style={postproc cell content/.append style={/pgfplots/table/@cell content/.add={[}{]}}},     ]{         A B C         m s kg         1 2 3         4 5 6         7 8 9     }     \end{document}      ![Result](http://i.stack.imgur.com/gQKW9.png) I had expected to see all elements in the second row (`every first row`) as well as in column `B` surrounded by square brackets. Does `postproc cell content` not work on a per row basis?


title: TikZ object misaligned with main document: slightly shifted to the right

text: The TikZ picture is not aligned with the main content of the document. It slightly shifts to the right. Notice how the words go outside the frame on the right side. Any hints on how to correct this behavior and have the TikZ object properly aligned with the rest of the document?               \documentclass[a4paper]{article}     \usepackage[a4paper,top=2cm,bottom=2cm,showframe]{geometry}     \usepackage{tikz}     \usetikzlibrary{matrix,positioning}     \pagestyle{empty}     \setlength\parindent{0em}          \begin{document}     Classical Latin slowly changed with the Decline of the Roman Empire, as education and wealth became ever scarcer. The consequent Medieval Latin, influenced by various Germanic and proto-Romance languages until expurgated by Renaissance scholars, was used as the language of international communication, scholarship, and science until well into the 18th century, when it began to be supplanted by vernacular languages.          \bigskip          \begin{tikzpicture}       \matrix[matrix of nodes, row sep=0.4em,         column 1/.style={nodes={text width=0.2\textwidth, align=flush left}},         column 2/.style={nodes={text width=0.8\textwidth, align=flush left}},         Title43/.style={font=\large\textsc{#1}}] {         % BLAH BLAH         |[Title43={Heading 1}]| & \\         {tralala} & {Classical Latin slowly changed with the Decline of the Roman Empire, as education and wealth became ever scarcer. The consequent Medieval Latin, influenced by various Germanic and proto-Romance languages until expurgated by Renaissance scholars, was used as the language of international communication, scholarship, and science until well into the 18th century, when it began to be supplanted by vernacular languages.} \\         {tralala} & {lo lo lo lo lo l ooooo ooo oo o ooooooo\\o oooooooooo oooooooo ooooo oo o.} \\         [1em]% BLAH BLAH 2         |[Title43={Heading 2}]| & \\         {tralala} & {lo lo lo lo lo l ooooo ooo oo o ooooooo\\o oooooooooo oooooooo ooooo oo o.} \\         & {lo lo lo lo lo l ooooo ooo oo o ooooooo\\o oooooooooo oooooooo ooooo oo o.} \\         {} & {lo lo lo lo lo l ooooo ooo oo o ooooooo\\o oooooooooo oooooooo ooooo oo o.} \\         {tralala} & {lo lo lo lo lo l ooooo ooo oo o ooooooo\\o oooooooooo oooooooo ooooo oo o end.} \\       };     \end{tikzpicture}          asdasd asd asd as as asd\\     asdassa asdas dasdasd\\     dasdasdsadasd\\     dasdasdasdasdasd     asdasdas     das     dasdasdasdsadasdas sadas ddasdasdasdsadasdas sadas ddasdasdasdsadasdas sadas ddasdasdasdsadasdas sadas ddasdasdasdsadasdas sadas ddasdasdasdsadasdas sadas ddasdasdasdsadasdas sadas ddasdasdasdsadasdas sadas ddasdasdasdsadasdas sadas ddasdasdasdsadasdas sadas ddasdasdasdsadasdas sadas ddasdasdasdsadasdas sadas ddasdasdasdsadasdas sadas ddasdasdasdsadasdas sadas ddasdasdasdsadasdas sadas ddasdasdasdsadasdas sadas ddasdasdasdsadasdas sadas ddasdasdasdsadasdas sadas ddasdasdasdsadasdas sadas ddasdasdasdsadasdas sadas ddasdasdasdsadasdas sadas ddasdasdasdsadasdas sadas ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d ddasdasdasdsadasdas sadas d     \end{document}      Solved by adding `inner sep=0em` to the matrix.


title: Comparing two versions of programming code with LaTeX

text: I'd like to compare two versions of program with vertical line between them. How can I do this with LaTeX? ![enter image description here](http://i.stack.imgur.com/iwDpM.png)


title: How can I convert math-less latex documents into Microsoft Word?

text: Like most people here, my resume/CV is in LaTeX, but there are always these annoying companies (or more often, recruiters) who will only look at resumes in Microsoft Word format. How can I translate my beautiful LaTeX document into .doc without making it look horrible?


title: Miktex on windows 8: fatal format file error

text: I've just freshly installed miktex 2.9 on windows 8. Plain tex seems to work but running latex on a simple file produces               This is pdfTeX, Version 3.1415926-2.4-1.40.13 (MiKTeX 2.9)     (Fatal format file error; I'm stymied)      Searching for this error suggests that I should regenerate format files via miktex's options program, which I have done. Indeed I observe that miktex options->update formats touches the files `latex.fmt` and `pdflatex.fmt` (and others) in the following directory:               C:\Users\Jenny\AppData\Local\MiKTeX\2.9\miktex\data\le\pdftex      However the error still occurs. (I also tried miktex options->format->build, which seems to do the same thing but one file at a time). I'm not sure how to verify that latex is looking in the right place for these files. In miktex options->roots I see the path `C:\Users\Jenny\AppData\Local\MiKTeX\2.9` with description "UserInstall, UserConfig". However I can't see any environment variables pointing to this directory. Following this answer I tried defining               TEXMFCACHE=C:\Users\Jenny\AppData\Local\MiKTeX\2.9      to no avail. I also tried copying the .fmt files to both of these directories:               C:\Users\Jenny\AppData\Roaming\MiKTeX\2.9\miktex\data\le\pdftex     C:\ProgramData\MiKTeX\2.9\miktex\data\le\pdftex


title: What's wrong with this Sweave Document

text: Every time I run the code below, it runs without error. It is only when I try to sweave the output in the last frame requested does it fail. What's more confusing to a LaTeX/Sweaving newbie like myself is that I paste the xtable(....) function into another R session, it produces LaTeX output to my output window. I even pasted the generated LaTeX output back into my document as a new slide and it worked swimmingly. Any help you can provide will be greatly appreciated.               \documentclass{beamer}     \usepackage[OT1]{fontenc}     %\usepackage[top=2cm, bottom=2cm, left=2cm, right=2cm]{geometry} %set the margins     \usepackage{Sweave}          % before compiling, need to change working directory in open version of R          <<echo=FALSE, eval=TRUE>>=         library(xtable)         Aye <- sample(c("Yes", "Si", "Oui"), 177, replace = TRUE)         Bee <- sample(c("Hum", "Buzz"), 177, replace = TRUE)         Sea <- sample(c("White", "Black", "Red", "Dead"), 177, replace = TRUE)     @               \begin{document}                 \begin{frame}     \frametitle{First Slide}     Contents of the first slide     \end{frame}          \begin{frame}     \frametitle{Second Slide}     <<>>=         xtable(format(addmargins(table(Aye, Sea))))     @          \end{frame}               \end{document}


title: Add custom key to display units in glossary with siunitx

text: I decided to enrich my list of symbols by adding a unit column with a newly defined key "unit".               \glsaddkey      {unit}      {}      {\glsentryunit}      {\Glsentryunit}      {\glsunit}      {\Glsunit}      {\GLSunit}      A new entry looks like               \newglossaryentry{insu}{         type=symbols,         name=thermal resistance,         symbol={\ensuremath{R\mathrm{c}}},         description={ratio of the temperature difference across an insulator and the heat flux for a particular material or assembly of materials},         unit={\ensuremath\protect\si{\watt}},     }      and produces following error with the last curly brace, that closes the `\newglossaryentry`.               > ! Undefined control sequence.     \@glo@tmp ->\ensuremath \protect \si {\watt }      Moving the code inside the `unit` key, for testing purpose, to the key `symbol` works like a charm, but unfortunately not the intended place. Changes around the `protect` and `ensuremath` have no effect. The asterisk variant of `\glsaddkey*` doesn't help either. What is the conflict between adding a new key to a glossary entry and the `\si` command? Here a short MWE:               \documentclass{scrreprt}%     \usepackage{siunitx}     \usepackage{glossaries}          \glsaddkey      {unit}      {}      {\glsentryunit}      {\Glsentryunit}      {\glsunit}      {\Glsunit}      {\GLSunit}          \makeglossaries          \newglossaryentry{test}{      name=Test,      unit=\si{\meter},      description=sample description}          %-------------------------          \begin{document}          \printglossaries     \gls{test}          \end{document}


title: Strike through text without affecting text box size

text: I want to strike through text with a simple line. Unfortunately, in the solution(s) I found, the text always has a larger distance to the next line (see example). How can I strike through text without increasing the distance to the next line?               \documentclass[12pt]{beamer}     \usepackage{amsmath,amssymb,amsthm}     \usepackage{lmodern}     \usepackage[english]{babel}     \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}               %%%%%%%%%%%%%%%%%%%%%%%%%     \usepackage[normalem]{ulem}     \newcommand\tst{% thick strike through  %% from http://tex.stackexchange.com/questions/134088/mis-alignment-of-columns-in-tabular-environment-when-using-ulem-and-beamer       \bgroup%       \markoverwith{\textcolor{red}{\rule[.8ex]{1pt}{0.8pt}}}%       \ULon%     }          \begin{document}          \begin{frame}     \begin{align*}     P = \{ & \tst{S\rightarrow X_{1,4,2}}\\            & X_{1,4,1}\rightarrow X_{1,1,1}X_{2,3,1},\\            & X_{1,4,1}\rightarrow X_{1,1,1}X_{2,3,1}\}     \end{align*}     \end{frame}          \end{document}


title: Difficulty with Tikz curves

text: I would like to draw this curve:   ![enter image description here](http://i.stack.imgur.com/Mdbrh.png)   Using tikz, I did the following               \begin{tikzpicture}     \draw [<->,thick] (0,5) node (yaxis) [above, text width=3.5cm,align=center] {$B_{J}(x)$}             |- (7,0) node (xaxis) [right] {$x$};     \draw (0,0)--(0.3,0.9)--(0.6,1.2);     \end{tikzpicture}      But, the co-ordinates are breaking my head. Is there an easy way to do this? ![enter image description here](http://i.stack.imgur.com/OvSas.png)


title: Nomenclature as a chapter

text: Using `nomencl` I am trying to make a nomenclature at the end of my PhD thesis. But the header of the previous chapter (in this case the appendix) is printed on the second page. How can I change the header in nomenclature to be NOMENCLATURE instead of the previous chapter? I don't know if it is relevant but I'm using `book` and creating another index with `makeidx`.


title: latex removing columns in latex tables

text: I have a latex table in which I have entered some data that I want to share with another party. I have entered data with values that I think the parameters should take. I want to keep those values available as a reference. However I want to send the table (in pdf format) without the values visible so that the other party can input/share their values. How can I delete the values of a certain column except for the column header? Here is an example of the table:               \begin{tabular}{|r|c|c|}\hline     Parameter & Symbol & Value\\\hline\hline     Saturation Magnetization & $M_s$ & 100 emu/cc\\     \sd & $\sigma_{Ms}$ & 5\%\\\hline     Anisotropy & $H_k$ & 8kOe\\     \sd & $\sigma_{Hk}$ & 5\%\\\hline     Coercive field & $H_c$ & \\\hline     Exchange coupling & $A_x$ & 2.5e-9 erg/cm\\     \sd & $\sigma_{Ax}$ & 5\%\\\hline     \end{tabular}      I wish to keep the actual values in the latex file, but blank out the values in the pdf file to share with the other party, while the column header ("Value" in this case) is not blanked out. It would be nice if with a little switch we can turn the values on and off in the pdf file. Is there a way to do that? Thanks.


title: subfigure, 1 big on the left, 2 small above each other on the right

text: > **Possible Duplicate:**   >  Help aligning tables. How to place with the package subfigure or subfig 3 subfigures as indicated in the title: 1 big on the left, 2 small above each other on the right? That is, something like this:               .   b     a      .   c      The a subfigure roughly having the same height as b and c together. Is a table required?


title: error when using tcolorbox

text: I am trying to use the `tcolorbox` package and just by putting               \documentclass[xcolor=dvipsnames,10pt]{beamer}          \usepackage{tcolorbox}          \begin{document}          \end{document}      into my code with no further instructions about the functions of the package I received the following error when compiling               Runaway argument?     {title/.store in=\kvtcb@title , notitle/.style={title=}, adjust text/\ETC.     ! Paragraph ended before \pgfkeys@@qset was complete.     <to be read again>                         \par      l.170   parskip/.style={before={\par                                         \pagebreak[0]\noindent},after={\par}},      Could any one help me? I really want to use this package!


title: RTL captions with newfloat?

text: Is it that the `float` package begins to show its age? I cannot get it to work right with XeLaTeX. Here is an example:               \documentclass{article} % compile with xelatex     \usepackage{float}     \usepackage{polyglossia}        \setmainlanguage{hebrew}        \setotherlanguage{english}       \newfontfamily\hebrewfont[Script=Hebrew]{Ezra SIL}% or{SBL Hebrew}          \newfloat{thingy}{htbp}{lot}[section]     \begin{document}       \begin{thingy}         \[ E = m c^2 \]         \begin{hebrew}\setRTL\caption{This caption should be set RTL}\end{hebrew}      \end{thingy}     \end{document}      ![caption is not laid-out right-to-left as it should](http://i.stack.imgur.com/BzVqq.png)


title: Error using smartdiagram package:

text: I am trying to use the `smartdiagram` package and wanted to replicate an example in the documentation. Here is my MWE:               \documentclass[10pt]{article}     \usepackage{tikz}     \usepackage{smartdiagram}     \begin{document}     \begin{tikzpicture}     \smartdiagram[circular diagram]{Set up,Run,Analyse,Modify~/ Add}     \end{tikzpicture}     \end{document}      When I compile it using `pdflatex`, I get this error: > ! TeX capacity exceeded, sorry [input stack size=5000]. \pgf@selectfontorig > ->\pgf@selectfontorig \nullfont l.6 ...r diagram]{Set > up,Run,Analyse,Modify~/ Add} ! ==> Fatal error occurred, no output PDF file > produced! The same error crops up when compiling with `xelatex` and `lualatex`. I am using an up to date TeXLive 2013 on an AMD 64 PC running Kubuntu 12.04. Can someone please tell me what to do to get the example working?


title: Please help me input the following formula correctly

text: This is the formula I want to be made in LaTeX. ![This is my old big formula](http://i.stack.imgur.com/HDKCQ.png) The problem is to make this formula aligned. I've made something like this               \begin{gather}     1 = \cos \, (\bar x, \bar x) = \cos^2 \, (\bar x, x) + \cos^2 \, (\bar x, y) + \cos^2 \, (\bar x, z) = \notag \\     \begin{array}{rl}     = & \alpha_1^2 + \beta_1^2 + \gamma_1^2 = 1, \\     & \alpha_2^2 + \beta_2^2 + \gamma_2^2 = 1, \\     & \alpha_3^2 + \beta_3^2 + \gamma_3^2 = 1, \\     \end{array}     \tag{5} \\     0 = \cos \, (\bar y, \bar z) = \cos \, (\bar y, x) \cos \, (\bar z, x) + \cos \, (\bar y, y) \cos \, (\bar z, y) + \cos \, (\bar y, z) \cos \, (\bar z, z) = \notag \\     \begin{array}{rl}     = & \alpha_2 \alpha_3 + \beta_2 \beta_3 + \gamma_2 \gamma_3 = 0, \\     & \alpha_3 \alpha_1 + \beta_3 \beta_1 + \gamma_3 \gamma_1 = 0, \\     & \alpha_1 \alpha_2 + \beta_1 \beta_2 + \gamma_1 \gamma_2 = 0. \\     \end{array}     \notag     \end{gather}      And I've got this ![New one](http://i.stack.imgur.com/8tpcG.png) Do you have any ideas how to make it look more pretty? P. S. I use MikTeX on Windows.


title: Using MinionPro for math and ArnoPro for text

text: As the title says, I want to use ArnoPro as my main font for text while using MinionPro for all math (inline or display). What I did for ArnoPro was since I have Windows on my laptop as well as Linux Mint (which is what I'm using now and for LaTeX), I followed the instructions here and installed the Arno Pro fonts from my Windows Adobe into Linux. I now have the following as my minimal example (I hope it is minimal enough); note the HUGE preamble:               \documentclass[12pt]{article}     \usepackage{bigints}     \usepackage{microtype}     \usepackage[textlf,mathlf,minionint]{MinionPro}        % If I want to use MinionPro instead of ArnoPro,      % I simply comment out all packages below this.          %\DeclareSymbolFont{missing}{OML}{cmr}{m}{n}     %\DeclareMathSymbol{\ell}{\mathord}{missing}{'140}     %\usepackage[]{mathspec}     %\defaultfontfeatures{Ligatures={TeX}}     %\setmathsfont(Digits,Latin,Greek)[UprightFont=ArnoPro-Regular,     %BoldFont=ArnoPro-Bold,     %ItalicFont=ArnoPro-Italic,     %BoldItalicFont=ArnoPro-BoldItalic,     %Numbers={Proportional}]{ArnoPro}     %\setmathrm     %[UprightFont=ArnoPro-Regular,     %BoldFont=ArnoPro-Bold,     %ItalicFont=ArnoPro-Italic,     %BoldItalicFont=ArnoPro-BoldItalic     %]{ArnoPro}     %\setmathsf     %[UprightFont=ArnoPro-Regular,     %BoldFont=ArnoPro-Bold,     %ItalicFont=ArnoPro-Italic,     %BoldItalicFont=ArnoPro-BoldItalic     %]{ArnoPro}     %\setmathtt     %[UprightFont=ArnoPro-Regular,     %BoldFont=ArnoPro-Bold,     %ItalicFont=ArnoPro-Italic,     %BoldItalicFont=ArnoPro-BoldItalic     %]{ArnoPro}     %\setmathcal     %[UprightFont=ArnoPro-Regular,     %BoldFont=ArnoPro-Bold,     %ItalicFont=ArnoPro-Italic,     %BoldItalicFont=ArnoPro-BoldItalic     %]{ArnoPro}     %\setmathbb     %[UprightFont=ArnoPro-Regular,     %BoldFont=ArnoPro-Bold,     %ItalicFont=ArnoPro-Italic,     %BoldItalicFont=ArnoPro-BoldItalic     %]{ArnoPro}     %\RequirePackage{xltxtra,xunicode}     %\defaultfontfeatures{Mapping=tex-text, Numbers=OldStyle}     %\aliasfontfeatureoption{Ligatures}{Historic}{Historical}     %\setromanfont     %[Mapping=tex-text,      %Ligatures={Common},      %Numbers=OldStyle,      %SizeFeatures={%     %   {Size={-10}, Font=*Caption},     %   {Size={10-13.0}, Font=*},     %   {Size={13.01-19.9}, Font=*Subhead, Ligatures=Rare, Contextuals={Swash,Alternate}},     %   {Size={19.91-},Font=*Display, Ligatures=Rare, Contextuals={Swash,Alternate}}},     %UprightFont=ArnoPro-Regular,     %BoldFont=ArnoPro-Bold,     %ItalicFont=ArnoPro-Italic,     %BoldItalicFont=ArnoPro-BoldItalic     %]{Arno Pro} %          \begin{document}     I am \textbf{attempting} \textit{some} math:     \[\oint\vec{\text{E}}\cdot d\boldsymbol{\ell}=0\]      Again, some more: $\vec{\nabla}\times\vec{E}=0$     \paragraph{Example:} One more:     \begin{eqnarray*}     \bigintss\left(\frac{x^2}{x^{\frac{1}{2}}}-\frac{2x}{x^{\frac{1}{2}}}+\frac{1}{x^{\frac{1}{2}}}\right) dx&=&0     \end{eqnarray*}'     \end{document}      The following picture is the result of MinionPro (running luatex in the terminal): ![](http://i.stack.imgur.com/0Wx7m.png) While this is the result of ArnoPro (running xelatex in the terminal): ![](http://i.stack.imgur.com/rTi43.png) Note how the ArnoPro text for some reason looks a bit.. choppy, compared to MinionPro, for some reason when I run (for ArnoPro) `xelatex doc.tex` in the terminal it turns out like this (i.e. the top parts of e and o letters, among others, are missing). But when I look at other documents created with ArnoPro, this isn't the case and it looks fine! That's another issue I'm concerned with. Apart from that issue, you can see why I would want MinionPro for math as ArnoPro math doesn't have much support. I could use MnSymbol for ArnoPro but the integrals and some other symbols just look terrible, and I think the letters in MinionPro are better suited for math purposes at least, so I'd prefer simply having MinionPro for math and ArnoPro for text. How can I do so? Also, does MinionPro have enough symbols for higher-level math and physics (i.e. graduate level of study) as other packages like amsmath do; if not, what are your suggestions for other packages so it blends in well with ArnoPro text like MinionPro math symbols do? I'm entering 4th year of my undergrad and I'd just rather have these worries dealt with now rather than later. I have quite a few other questions but I feel it would be way too long to add here, so I should probably save those for another time.


title: \int does not work on my LyX

text: Just starting to use LaTeX to type up my homework. I am doing differential equations right now and I have to type in an integral symbol. However when I do that, and try to make a DVI, LyX gives me an error (both when producing pdf and dvi). The error is following:               MiKTeX Problem Report     Message: Not all fonts could be loaded. See 'File->Document Properties', for details.     Data:      Source: Programs\MiKTeX\Yap\MFC\DviDoc.cpp     Line: 636     MiKTeX: 2.9     OS: Microsoft Windows 7 Home Premium Edition, 64-bit (build 7600)     SystemAdmin: no     PowerUser: no     Root0: C:\Users\affan\AppData\Roaming\MiKTeX\2.9     Root1: C:\Users\affan\AppData\Local\MiKTeX\2.9     Root2: C:\ProgramData\MiKTeX\2.9     Root3: C:\Program Files (x86)\MiKTeX 2.9     UserInstall: C:\Users\affan\AppData\Roaming\MiKTeX\2.9     UserConfig: C:\Users\affan\AppData\Roaming\MiKTeX\2.9     UserData: C:\Users\affan\AppData\Local\MiKTeX\2.9     CommonInstall: C:\Program Files (x86)\MiKTeX 2.9     CommonConfig: C:\ProgramData\MiKTeX\2.9     CommonData: C:\ProgramData\MiKTeX\2.9      Also a very similar error occurs when I try to change text into bold. I am assuming I am missing some sort of font files (since that's what the error refers to). Anyways, let me know how I can fix this.


title: LyX enumeration style from numbers to letters

text: I'd like to use, for this specific instance, letter style enumeration [ like a) b) c) ] . I realize that I can nest one enumerate environment in another and the style will change, but I don't want a dangling "1." from the topmost enumerate environment.


title: How to do the 'curvy L' for Lagrangian or Laplace Transforms?

text: I am new to TeX, working on it for about 2 months. Have not yet figured out how to script the 'curvy L' for Lagrangian and/or for Laplace Transforms. As of now I am using the 'L' - which is not good! :-( Any help? **UPDATE** The 2 best solutions are;               \usepackage{ amssymb }     \mathcal{L}      and               \usepackage{ mathrsfs }     \mathscr{L}      I got my answers at, http://detexify.kirelabs.org/classify.html


title: Latex subsections inside figure - toc shows subsections

text: I try to put a lot of these elements inside my thesis:               \subsection{Maschine}     \begin{figure}[!ht]     \begin{center}     \begin{tikzpicture}     \node[fill=gray!10,text width=0.9\textwidth, draw, minimum height=1 cm] at (1,9)     {\begin{center}\textbf{Factory}\end{center}};     \node[fill=white,text width=0.9\textwidth, draw, minimum height=1 cm] at (1,8)     {String bestehend aus beliebig vielen Komponenten};     \node[fill=white,text width=0.9\textwidth, draw, minimum height=1 cm] at (1,7)     {\texttt{<Factory> Komponenten </Factory>}};     \end{tikzpicture}     \end{center}     \vspace{0.5cm}     Description     \end{figure}      I want to have them fixed. So I wrote a figure tag around the subsection. Before this code I used the next line to prevent, that these subsections are shown in the table of content:               \addtocontents{toc}{\protect\setcounter{tocdepth}{1}}      But they are shown, because of the figure tag around the subsections. Is there a way to prevent latex from putting them into the toc or keep the subsections together without the figure tag?


title: Acronyms without double dots using glossaries

text: I want to typeset my acronyms with abbreviating dots with, for instance, `P.C.A.` standing for `principal component analysis` and use macros for them. This question provides a trick to avoid double dots when the acronym is at the end of a sentence so that `This could be done with a \pca.` gives > This could be done with a P.C.A. and not > This could be done with a P.C.A. . Now, i would like to combine this approach with the acronym related commands of `glossaries`. Thus, I defined an acronym with this command               \newacronym{pca}{\pca}{principal component analysis}      and then use it with `\gls{pca}`               This could be done with a \gls{pca}.      However, the `glossaries` command add some characters between \pca and the full stop so that the trick mentioned before does not work and I get a double dot. Any idea how I could deal with that? Here is a minimal working example. The `xspace` package and command can be removed ; they are intended to conform to the english usage.               \documentclass{article}     \usepackage[acronym]{glossaries}     \makeglossaries          \usepackage{xspace}     \makeatletter     \DeclareRobustCommand{\abren}[1]{%         \@ifnextchar{.}%             {#1}%             {#1.\@\xspace}%     }     \makeatother          \newcommand{\pca}{\abren{P.C.A}}          \newacronym{pca}{\pca}{principal component analysis}          \begin{document}     This could be done with a \pca. %good          This could be done with a \gls{pca}. %good          This could be done with a \gls{pca}.%awkward     \end{document}


title: How to fill a specified area using PSTricks

text: I want to fill some regions which are only parts of a shape in a PSTricks drawing (marked with some dashed `\psline` in the following drawings ):               % !TEX TS-program = latex         \documentclass{standalone}     \usepackage[usenames,dvipsnames]{pstricks}     \usepackage{epsfig}     \usepackage{pst-grad} % For gradients     \usepackage{pst-plot} % For axes     \begin{document}     \scalebox{1} % Change this value to rescale the drawing.     {     \begin{pspicture}(0,-3.069199)(14.022783,3.089199)     \psbezier[linewidth=0.04](0.6365238,2.0708008)(1.2730476,2.842058)(4.0465226,1.8336606)(4.3165236,0.8708007)(4.5865245,-0.09205922)(2.9158728,-2.3652732)(1.9165238,-2.3291993)(0.9171748,-2.2931254)(0.0,1.2995436)(0.6365238,2.0708008)     \psellipse[linewidth=0.04,linestyle=dashed,dash=0.16cm 0.16cm,dimen=outer](3.5165238,-0.72919935)(1.6,1.2)     \psline[linewidth=0.04cm,linestyle=dashed,dash=0.16cm 0.16cm](3.0,0.35080063)(3.0,-1.6000001)     \psline[linewidth=0.04cm,linestyle=dashed,dash=0.16cm 0.16cm](2.7965238,0.27080062)(2.8,-1.8000001)     \psline[linewidth=0.08cm,arrowsize=0.05291667cm 2.0,arrowlength=1.4,arrowinset=0.4]{->}(5.98,-0.5108009)(7.98,-0.5108009)     \psline[linewidth=0.04cm,arrowsize=0.05291667cm 2.0,arrowlength=1.4,arrowinset=0.4]{->}(10.856523,-3.049199)(10.856523,2.6908007)     \psline[linewidth=0.04cm,arrowsize=0.05291667cm 2.0,arrowlength=1.4,arrowinset=0.4]{->}(8.256523,-0.58919936)(13.16,-0.5708009)     \psbezier[linewidth=0.04,linestyle=dashed,dash=0.16cm 0.16cm](10.036524,1.8708006)(10.83123,2.4777942)(11.258667,1.9593135)(11.676524,1.0508007)(12.094381,0.14228788)(11.856241,-2.2529888)(10.856523,-2.2291994)(9.856805,-2.20541)(9.241818,1.2638069)(10.036524,1.8708006)     \psline[linewidth=0.04cm,linestyle=dashed,dash=0.16cm 0.16cm](10.876524,1.7908007)(11.236524,1.7908007)     \psline[linewidth=0.04cm,linestyle=dashed,dash=0.16cm 0.16cm](10.876524,1.5108007)(11.436523,1.5108007)     \psline[linewidth=0.04cm,linestyle=dashed,dash=0.16cm 0.16cm](10.876524,1.2308006)(11.516524,1.2308006)     \psline[linewidth=0.04cm,linestyle=dashed,dash=0.16cm 0.16cm](10.876524,0.95080066)(11.636524,0.95080066)     \psline[linewidth=0.04cm,linestyle=dashed,dash=0.16cm 0.16cm](10.916524,0.6708007)(11.716524,0.6708007)     \psline[linewidth=0.04cm,linestyle=dashed,dash=0.16cm 0.16cm](10.876524,0.35080063)(11.796524,0.35080063)     \psline[linewidth=0.04cm,linestyle=dashed,dash=0.16cm 0.16cm](10.876524,0.07080064)(11.796524,0.07080064)     \psline[linewidth=0.04cm,linestyle=dashed,dash=0.16cm 0.16cm](10.876524,-0.20919935)(11.876524,-0.24919935)     \psline[linewidth=0.04cm,linestyle=dashed,dash=0.16cm 0.16cm](10.876524,-0.48919937)(11.716524,-0.48919937)     \psline[linewidth=0.04cm,linestyle=dashed,dash=0.16cm 0.16cm](10.876524,-0.80919933)(11.796524,-0.80919933)     \psline[linewidth=0.04cm,linestyle=dashed,dash=0.16cm 0.16cm](10.876524,-1.0891993)(11.756524,-1.0891993)     \psline[linewidth=0.04cm,linestyle=dashed,dash=0.16cm 0.16cm](10.876524,-1.3691994)(11.676524,-1.4091995)     \psline[linewidth=0.04cm,linestyle=dashed,dash=0.16cm 0.16cm](10.916524,-1.6491994)(11.436523,-1.6491994)     \psline[linewidth=0.04cm,linestyle=dashed,dash=0.16cm 0.16cm](10.876524,-1.9291993)(11.356523,-1.9291993)     \psdots[dotsize=0.16](3.716524,-0.96919936)     \usefont{T1}{ptm}{m}{n}     \rput(4.052344,-1.1041993){$y_0$}     \usefont{T1}{ptm}{m}{n}     \rput(1.992344,1.1358007){$\Omega$}     \usefont{T1}{ptm}{m}{n}     \rput(6.7723446,-0.30419937){$\varphi$}     \usefont{T1}{ptm}{m}{n}     \rput(4.982343,-2.2641995){$\mathcal{V}(y_0)$}     \usefont{T1}{ptm}{m}{n}     \rput(10.512345,-0.90419936){$0$}     \usefont{T1}{ptm}{m}{n}     \rput(10.822344,2.8958006){$\hat{x}_N$}     \usefont{T1}{ptm}{m}{n}     \rput(13.092344,-0.3041993){$x_N$}     \usefont{T1}{ptm}{m}{n}     \rput(11.8523445,-2.5041995){$\varphi(\mathcal{V}(y_0))$}     \psline[linewidth=0.04cm,linestyle=dashed,dash=0.16cm 0.16cm](3.6,0.3691991)(3.6,-1.0108008)     \psline[linewidth=0.04cm,linestyle=dashed,dash=0.16cm 0.16cm](3.42,0.3691991)(3.42,-1.3108009)     \psline[linewidth=0.04cm,linestyle=dashed,dash=0.16cm 0.16cm](2.58,0.1891991)(2.58,-1.7108009)     \psline[linewidth=0.04cm,linestyle=dashed,dash=0.16cm 0.16cm](4.18,0.1891991)(4.18,0.28919908)     \psline[linewidth=0.04cm,linestyle=dashed,dash=0.16cm 0.16cm](3.22,0.3691991)(3.22,-1.4508009)     \psline[linewidth=0.04cm,linestyle=dashed,dash=0.16cm 0.16cm](3.82,0.32919908)(3.82,-0.67080086)     \psline[linewidth=0.04cm,linestyle=dashed,dash=0.16cm 0.16cm](4.02,0.28919908)(4.02,-0.27080092)     \psline[linewidth=0.04cm,linestyle=dashed,dash=0.16cm 0.16cm](2.42,-0.0308009)(2.42,-1.4308009)     \psline[linewidth=0.04cm,linestyle=dashed,dash=0.16cm 0.16cm](2.22,-0.2308009)(2.22,-1.2308009)     \psline[linewidth=0.04cm,linestyle=dashed,dash=0.16cm 0.16cm](2.02,-0.4708009)(2.02,-0.91080093)     \end{pspicture}      }          \end{document}


title: footnotemark and footnotetext creates undesired indentation

text: I have looked for a solution for quite some time now, but I couldn't find anything useful. The problem seems to be minor but still visible. If I use `footnotemark` within `align` to create a footnote, which is named via `footnotetext`, the following paragraph is slightly indented. This cannot be changed, even if I use `\noindent`. Check the following simply example:               \documentclass[a4paper, 12pt, headsepline]{scrreprt}     \usepackage[onehalfspacing]{setspace}     \usepackage{amsmath, amssymb, mathtools}     \usepackage{mathptmx}     \usepackage[a4paper]{geometry}     \usepackage[pangram]{blindtext}          \begin{document}     \begin{align*}     X_{t+1} &=  \frac{X_{t+1}+X_{t+1}}{Y_t}       \intertext{Some intertext...:\footnotemark}      X_{t+1} &=  \frac{X_{t+1}+X_{t+1}}{Y_t}     \end{align*}     \footnotetext{English text is better understandable}      \Blindtext[1][1]     \end{document}       There is a tiny horizontal space, before the blindtext starts. This seems to be added to any regular paragraph indentation as well - if you decide to make a new one after the align environment. Does anyone know how to handle this correctly?


title: Compilation of LaTeX style files?

text: I've just gone through every google search I can think of without success. Is there an archive, database, list, or other compilation of LaTeX style files? I've found plenty of style files specific to certain journals or conferences, but are there any 'generic' themes out there? I'd like to make my document look a little different from whatever the out-of-the-box LaTex default, and more than just changing the font... I'm no pro, and don't have the expertise, time, or motivation to write my own style file. Also, I assume there are plenty of style files out there, analagous to the different 'Themes' or 'templates' used by microsoft products. Ideally there would be an image/example so that i could see what the style made the document look like. Where are they?


title: How to fix this? Cannot show the symbol. Plus, I cannot run the \begin{cases}

text: The LateX does not show equation like I want; F(x)= exp[-exp(\frac{x - \mu}{\sigma})]. It appears like the image below. Besides, my \begin{cases} .... \end{cases} cannot run. This is my code:- ![enter image description here](http://i.stack.imgur.com/Ek9zD.png)                   \documentclass{beamer}              \usepackage{amsmath}         \usepackage{amssymb}         \usepackage{comicsans}         \usepackage{graphicx}         \usepackage[inline]{enumitem}         \usepackage{array}              \makeatletter         \newcommand*{\rom}[1]{\expandafter\@slowromancap\romannumeral #1@}         \makeatother              \begin{document}             \begin{frame}        \frametitle{1.2.1 Gumbel Distribution}              \begin{itemize}          \item a.k.a the Extreme Value Type  \rom{1} distribution is bounded and has the                   following probability density function $$F(x)= exp [- exp(\frac{x-\mu}{\sigma})]$$              %repair this          where, \\         $\mu$ is the location parameter,\\         $\sigma$ is the scale parameter, ($\sigma$>0).\\         \vspace{0.3cm}              The shape of the Gumbel model does not depend on he distribution parameters.               \end{itemize}          \end{frame}               \begin{frame}          $$          F(x) = \begin{cases}          0, $ \text{$x>\mu$} \\          exp[-{$\frac{x-\mu}{\sigma}}$], & $x \geq \mu$                       \end{cases}           $$ \\               where \\          $\xi$ is the shape parameter, \\          $\mu$ is the location parameter, \\          $\sigma$ is the scale parameter, ($\sigma$ > 0) [2]                    \end{frame}          \end{document}


title: I can't find format file latex.fmt

text: I recently removed (most of) my installation of latex due to problems with the hyperref package. I reinstalled texlive using               sudo apt-get texlive texlive-latex-extra      which gave these messages (among other things):               Running mktexlsr. This may take some time... done.     Running updmap-sys. This may take some time...      updmap-sys failed. Output has been stored in     /tmp/updmap.nxBASPom     Please include this file if you report a bug.          Sometimes, not accepting conffile updates in /etc/texmf/updmap.d     causes updmap-sys to fail.  Please check for files with extension     .dpkg-dist or .ucf-dist in this directory          dpkg: errors under treatment of tex-common (--configure):     under proces installed post-installation-script returned final stragegies 1     E: Sub-process /usr/bin/dpkg returned an error code (1)      I can't run latex anymore. It gives the following answer:               kpathsea: Running mktefmt latex.fmt     I can't find the format file 'latex.fmt'!      I dont understand what is wrong. Can somebody help me?


title: Dropbox & LaTeX compiling automation

text: I'm in the middle of a "drop a file here and compile it using LaTeX" project. I have a Dropbox and I would like to drop a .tex file in a specific folder and have a script that compiles it for me. I'm on Mac OS X (Snow Leopard). Can you point me on a .sh script or an Automator one (a tutorial would be good too) that compiles my documents into a .pdf file using pdfLaTeX? How could I handle the LaTeX document dependencies like .sty, images, whatever? **EDIT** : I posted the question on SuperUser and I found a good suggestion about using latexmk+folderactions, so go to Dropbox + Latex: automated pdf compile [SU] for details.


title: LaTeX 'Cannot execute this comand'

text: working first time with TeX, installed TexNicCenter and MikTeX. I got some .tex files which i want to convert to .pdf just to make sure everything is installed properly and it works so i can stark working on the TeX thing. Problem: I chosed Latex -> Pdf as my profile and entered each option as told by my professor in his screenshot. LatexCompiler: `C:\Program Files\Miktex\miktex\bin\pdflatex.exe` Arguments for the compiler: `-interaction=nonstopmode -max-print-line=120"%wm"` BibTex Compiler: `C:\Program Files\Miktex\miktex\bin\bibtex.exe` Arguments: "%bm" MakeIndex Compiler: `C:\Program Files\Miktex\miktex\bin\makeindex.exe` Arguments: "%bm" When using this profile on an existing .tex file this happens: Adobe Reader opens, says he couldn't find the selected file, another error occurs stating that it wasnt possible to execute the command "%bm". Yes i googled for that (http://latex-community.org/forum/viewtopic.php?f=31&t=6897), but those solutions don't help me. Also, in the ouptut-log box in the bottom of texniccenter it says, that there are 0 error and 0 warnings. However it also says, **that pdflatex has a bad file descriptor and bibxtex and makeindex couldn't open their needed .aux and .idx files**. What can i do here to make the given .tex files run properly?


title: What possibilities are there of using OpenType fonts and margin kerning?

text: I really like the protrusion and margin kerning features of pdfTeX and LuaTeX. I also like to use other fonts than those available for TeX. What choices do I have when I want to use both? Also, what problems with typography should I expect?


title: Why does Latin Modern make strange-appearing output?

text: In Should I use fix-cm? the issue came up of strange output from Latin Modern. Here is an MWE to get this issue:               \documentclass[11pt]{article}     \usepackage{lmodern}     \begin{document}     TRUE          FALSE     \end{document}      has output as on the left of this image. Commenting out `\usepackage{lmodern}` produces output as on the right of this image. This is compiled with pdflatex in TeX Live 2012 and viewed with Adobe Reader 10.1.5 on Mac OS X. ![Goofy LM, nice CM](http://i.stack.imgur.com/JPINk.png) Here is the result of `\listfiles`:                *File List*      article.cls    2007/10/19 v1.4h Standard LaTeX document class       size11.clo    2007/10/19 v1.4h Standard LaTeX file (size option)      lmodern.sty    2009/10/30 v1.6 Latin Modern Fonts       ot1lmr.fd    2009/10/30 v1.6 Font defs for Latin Modern      ***********      Many sources around the web (Wikipedia, this answer) say that the hinting in Latin Modern is not the best. On the other hand, the default Computer Modern in TeX Live is apparently not actually Metafont, but the Postscript Type 1 conversion by Bluesky, which the same sources say is the highest-quality vector conversion of CM. Is this accurate? Xavier provided this pdf which demonstrates the issue; it renders correctly on some systems and not on others. In Adobe Reader 10.1.5 it looks like this. ![CM Serif, LM Serif, CM Sans, LM Sans](http://i.stack.imgur.com/mwvwX.png)


title: Broken display of 11pt typewriter text in Acrobat Reader

text: I set some all-caps words in my document as typewriter. Using `scrartcl` as documentclass, with a default fontsize of 11pt, yields a PDF that looks rather bad in Acrobat Reader. Here is an example:               \documentclass{scrartcl}     \usepackage[T1]{fontenc}     \usepackage{lmodern}     \begin{document}     \texttt{FOO\_BAR}     \end{document}      When using another documentclass like `article` or with documentclass `scrartcl` and the option `[fontsize=10pt]` everything renders fine. I tested Acrobat Reader 11 on MacOS Lion and Version 9 on Windows XP. On the other hand, using e.g. MacOS Preview or Skim as PDF viewers, even the original version with fontsize 11pt renders fine. **[Update]** Here is a screenshot of the rendering in Acrobat Reader 11 on MacOS Lion: ![enter image description here](http://i.stack.imgur.com/Gvpa7.png) and a screenshot from the rendering in MacOS Preview: ![enter image description here](http://i.stack.imgur.com/ddEjo.png) Here you can see that e.g. the letters F and R in Acrobat are not as high as the other letters, in contrast to the rendering of Preview (or when using a fontsize of 10pt or 12pt). **[Update]** This is not a duplicate of Why are Bitmap-Fonts used automatically?. In my example you can see, that I already use modern and I just checked, that Acrobat really says that Type 1 fonts are used. So I have no problems with bitmap/Type3 fonts. Is there any way to make those typewriter texts look good in Acrobat Reader with size 11pt?


title: How do I adjust the width of Beamer's footnote "area"?

text: I have a Beamer template with a vertical "ToC bar" along the right side. I have the problem that when I insert footnote citations (e.g. `biblatex`' `\footfullcite`), the resulting footnote protrudes into the ToC bar on the right. This leads me to suspect that footnotes are typeset in a different "area" of a frame than the main content (since the main frame content does not "invade" the navigation bar). How do I adjust the width of this footnote area so that long footnotes do not protrude into the ToC bar on the right?


title: Centering Math Formulas

text: I am using LaTeXila in Ubuntu and I want to center my math equation so I have this written:               $\[ 2^{10} \]$      But when I try to compile into PDF, it outputs the error:               Bad math environment delimeter      How do I get it to center math text properly? Thanks


title: Use alternate cite keys depending on document version

text: My biggest enemy is the page limit. I use short versions of my BibTeX entries in order to keep the list of references short. I now have a situation where I include the file in the journal article and also in a book. I want to use the long reference in the book and the short in the journal. I defined a boolean that is set to true if we are in the journal tex files and then defined a command that is supposed to return the short or long key depending on the value of the boolean. But somehow this does not work. Is there a way to reach my goals?               \documentclass{article}          \usepackage{natbib}          \usepackage{ifthen}     \provideboolean{jl}     \setboolean{jl}{true}               % cite alternate between the long and short citation key     \newcommand{\citekeyshortlong}[2]{\ifthenelse{\boolean{jl}}{#1}{#2}}               \begin{document}          \citet[\page 48]{\citekeyshortlong{XY-short}{XY-long}}          \end{document}


title: missing 'jump to source button' on TeXtudio?

text: I use TeXstudio and for some reason the jump to source button disappeared on my newly compiled files when I right click, but it is still there when I compile older files. The packages I used are the same, what is causing the problem? The use manual says: > TexMakerX provides an integrated `pdf-viewer` which offers forward- and > inverse-search. Make sure that `synctex` is activated in the `pdflatex` > command (option `-synctex=1` needs to be added), though TexMakerX will ask > you if it can correct the command itself if it is not set correctly. This option is activated, so why is the button still gone?


title: Summary of Tikz commands

text: Many times, when I'm coding a tikz-picture, I don't remember the command syntax or the name of one option, and I have to look in pgf-manual is not very short. Does anybody has a summary of Tikz commands fit to one or two pages?


title: Problem with TikZ area legend

text: I am trying to produce an area legend like the following picture. ![enter image description here](http://i.stack.imgur.com/Li2Gn.jpg) For some reasons, the output of the following code does not produce a single box for each dataset in the legend.               \begin{tikzpicture}     \begin{axis}[         width=\figurewidth,         height=\figureheight,         scale only axis,         xmode=log,         ymode=log,         xlabel = {$|\mathrm{Velocity\ Divergency}|$},         x tick label as interval=false,         xtick={},         xtickten={-18,-16,...,4},         yticklabels={$0.0001\%$, $0.001\%$, $0.01\%$, $0.1\%$, $1\%$, $10\%$, $100\%$},         xmin=1e-18, xmax=1e+4,         ymin=1e-5,ymax=1,         grid=none,         ymajorgrids,             bar shift=0pt,         area legend,          % align right:         legend style={                       cells={anchor=west},                       legend pos=outer north east,         }     ]     \addplot [fill=blue!100,         ybar interval] table [x=Lower, y=Count] {     Lower Upper Count     9.9e-15 1e-14      0.1231     1e-14   1e-13      1e-15     1e-13   1e-12      0.0000     1e-12   1e-11      0.0000     1e-11   1e-10      0.0000     1e-10   1e-9       0.0000     1e-9    1e-8       0.0000     1e-8    1e-7       0.0001     1e-7    1e-6       0.0001     1e-6    1e-5       0.0004     1e-5    1e-4       0.0010     1e-4    1e-3       0.0048     1e-3    1e-2       0.0313     1e-2    1e-1       0.1562     1e-1    1e+0       0.3464     1e+0    1e+1       0.2684     1e+1    1e+2       0.0645     1e+2    1e+3       0.0036     1e+3    1e+4       1e-15     };     \addlegendentry{Interp}     \addplot [fill=red!100, ybar interval] table [x=Lower, y=Count] {     Lower Count     1e-17 1     1e-16 1     };     \addlegendentry{Div-free}     \end{axis}     \end{tikzpicture}      It produces small bar plots beside the legend names as can be seen in the picture below. ![enter image description here](http://i.stack.imgur.com/HCLxZ.png)


title: MathPSFrag, Bounding box

text: I have been trying to use the MathPSFrag package to get a some of those super sweet figures we are all dreaming about. In running the MathPSFrag-Test.nb I pass all the test but trying a simple plot and export it via the following .nb it crashes               Needs["MathPSfrag`"];          myplot = Plot[Sin[x], {x, 0, 2 Pi}, Frame -> True]          PSfragExport["myfilename", myplot] // UnPSfrag               StringForm::sfq: "Unmatched backquote in "`Could not determine bounding box from file `1` in directory `2`. I intentionally did not clean up temporary files, which will have to be removed manually."          UnPSfrag::bboxfailed: `Could not determine bounding box from file `1` in directory `2`. I intentionally did not clean up temporary files, which will have to be removed manually.          $Aborted      The input eps for the psfrag looks nice, but after I run the psfrag commands and look at the output eps file (unfragged in terms of the MathPSFrag terminology) Do any of you guys have any suggestion on how I can make this boundary box bigger? All help is appreciated.


title: One caption in listoffigures for a ContinuedFloat

text: I am using the `\ContinuedFloat` command of the `subfig` package to print a series of figures in more than one page. I would like to have one caption in the List of Figures and "compress" the pages so that only the first and the last are shown. EDIT: Since I am using also the `cleveref` package, I would like to have a link for both the pages. So it should be 2 --> links to page 2, 3 --> links to page 3, and the hyphen that is a "neutral" symbol. For example, what I get now is: **List of Figures**   1. A result that requires two pages. (cont.) 2   2. A result that requires two pages 3 while I would like to have: **List of Figures**   1. A result that requires two pages 2-3 Here is the MWE:               \documentclass{article}     \usepackage{graphicx}     \usepackage{subfig}     \begin{document}          \listoffigures          \clearpage          \begin{figure}     \centering     \subfloat[][]{\includegraphics[scale=.9]{fig1}}     \\     \subfloat[][]{\includegraphics[scale=.9]{fig2}}     \caption{A result that requires two pages. \emph{(cont.)}}     \end{figure}          \begin{figure}     \ContinuedFloat     \centering     \subfloat[][]{\includegraphics[scale=.9]{fig3}}     \\     \subfloat[][]{\includegraphics[scale=.9]{fig4}}     \caption{A result that requires two pages.}     \end{figure}     \end{document}


title: Conjugation - How to typeset it?

text: Can you help me? I do not know what to type in order to show the conjugation. I mean that the matrix B has complex entries and C is the transpose matrix of B, then B* is C with a line above. How do I do that?


title: Problem with htlatex and tables

text: Please consider the following minimal working example, let's call it `mintab.tex` (based on the example in here)               \documentclass{article}          \makeatletter     \def\toprule{\noalign{\ifnum0=`}\fi \hrule \@height 2.0pt \hrule     \@height 2pt \@width 0pt \futurelet\@tempa\@xhline}          \def\midrule{\noalign{\ifnum0=`}\fi \hrule \@height 2pt \@width 0pt     \hrule \@height 0.7pt \hrule \@height 2pt \@width 0pt     \futurelet\@tempa\@xhline}          \def\botrule{\noalign{\ifnum0=`}\fi \hrule     \@height 2pt \@width 0pt \hrule \@height 2.0pt     \futurelet\@tempa\@xhline}          \def\hline{\noalign{\ifnum0=`}\fi\hrule \@height .5pt \futurelet       \reserved@a\@xhline}     \def\@xhline{\ifx\reserved@a\hline\vskip\doublerulesep       \vskip-0.5pt\fi\ifnum0=`{\fi}}          \def\HD#1#2{\vrule height #1pt depth #2pt width 0pt\relax}     \newcommand{\up}{\HD{12}{0}}% for tables     \newcommand{\down}{\HD{6}{6}}%          %%%% for htlatex:     \def\headerps@out#1{\special{! #1}}%     \newlength{\columnlines}     \setlength{\columnlines}{0.1 pt}     \makeatother          \usepackage{amsmath,amsfonts,amssymb,bm,latexsym}               \usepackage{times}     \usepackage{url}     \usepackage[breaklinks]{hyperref}     \usepackage{breakurl}     \hypersetup{colorlinks=, linkcolor=, citecolor=, filecolor=, urlcolor=}               \begin{document}          \title{Testing of tabular}          \maketitle          \section{Introduction}          Test here:          % \typeout{HEREEEEEE}     % \typeout{\show\toprule}     % \show\toprule     % \typeout{OUT}          \begin{table}[!h]%t1     \caption{Conditional probabilities of a putative QTL genotype given     the flanking marker genotypes for a backcross population}     {\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}}lccc@{}}     \toprule{} &  & \multicolumn{2}{c}{\it QTL genotypes} \down\\     \cline{3-4}\up {\it Marker genotypes}& {\it Expected frequency} &     {$QQ(p_{j1})$} & {$Qq(p_{j2})$}\\ \midrule ${MN}/{MN}$     &$(1-r_{MN})/4$ & $1$ & $0$\\[2pt] ${MN}/{Mn}$   &$r_{MN}/2$ &$1-p$     &$p$\\[2pt] ${MN}/{mN}$       &$r_{MN}/4$ &$p$       &$1-p$\\[2pt]     ${MN}/{mn}$ &$(1-r_{MN})/2$ &$0$         &$1$\\ \botrule     \end{tabular*}}     {\vskip2pt Here $p=r_{MQ}/r_{MN}$, where $r_{MQ}$ is the     recombination fraction between the left marker M and the putative QTL     and $r_{MN}$ is the recombination fraction between two flanking     markers M and N. The possibility of a double recombination event in     the interval is ignored.} \vskip-12pt     \end{table}          \end{document}      This one builds fine with `pdflatex mintab.tex`; however, if I issue `htlatex mintab.tex`, it fails with:               $ htlatex mintab.tex     ...     (/path/to/texlive/2011/texmf-dist/tex/latex/psnfss/ot1pcr.fd) [3]     [4]     l.58 --- TeX4ht warning --- empty \PopStack\Table:Stck\TableNo? ---     l.58 --- TeX4ht warning --- extra \RecallEndP ---     ! Missing } inserted.     <inserted text>                      }     l.58 \toprule{} &                        & \multicolumn{2}{c}{\it QTL genotypes} \down\\     ?       If you uncomment the "typeouts", this is what you get for the PDF case:               HEREEEEEE     \show \noalign {\hrule height2.0pt \hrule height2pt width0pt \futurelet }     > \toprule=macro:     ->\noalign {\ifnum 0=`}\fi \hrule \@height 2.0pt \hrule \@height 2pt \@width 0p     t \futurelet \@tempa \@xhline .     l.52 \show\toprule          ?      OUT      and for the `htlatex` case, it 'crashes' and you have to press a ENTER a couple of times to list through all the errors:               HEREEEEEE     ! Argument of \g:Advance has an extra }.     <inserted text>                      \par      l.51 \typeout{\show\toprule}          ?      Runaway argument?     ! Paragraph ended before \g:Advance was complete.     <to be read again>                         \par      l.51 \typeout{\show\toprule}          ?      Runaway text?     \show \let \mth:op \advance \let \bgroup \def \def 0{1}{\par }\tmp:cnt \ETC.     ! Forbidden control sequence found while scanning text of \write.     <inserted text>                      }     l.51 \typeout{\show\toprule}          ?      \show \let \mth:op \advance \let \bgroup \def \def 0{1}{\par }\tmp:cnt \bgroup      \def \def 0{1}{\afterassignment }\tmp:cnt \afterassignment \afterassignment \xd     ef \def 0{1}{0}\egroup \mth:op \tmp:cnt \xdef \def 0{1}{0}\egroup \mth:op \tmp:     cnt \def 1{0}\futurelet \def 0{1}\def \bgroup \def \def 0{1}{1}\tmp:cnt 1\after     assignment \xdef \def 0{1}{0}\egroup \mth:op \tmp:cnt {\bgroup \def \def 0{1}{1     }\tmp:cnt 1\afterassignment \xdef \def 0{1}{0}\egroup \mth:op \tmp:cnt }\bgroup      \def \def 0{1}{1}\tmp:cnt 1\afterassignment \xdef \def 0{1}{0}\egroup \mth:op      \tmp:cnt by 1 \vtop {\let \prOteCt \relax \Protect \gl:nopartrue \vtop {\let \p     rOteCt \relax \Protect \gl:nopartrue \hrule height2.0pt \hrule height2pt width0     pt \futurelet cmyk 0 0 0 0}}      > \toprule=macro:     ->\noalign {\ifnum 0=`}\fi \hrule \@height 2.0pt \hrule \@height 2pt \@width 0p     t \futurelet \@tempa \@xhline .     l.52 \show\toprule          ?      OUT      Strangely, you cannot even show this `\g:Advance`:               ? i     insert>\show\g:Advance     > \g=undefined.     <insert>  \show\g                      :Advance     l.59 \toprule{} &                        & \multicolumn{2}{c}{\it QTL genotypes} \down\\      I'm pretty sure this has something to do with the `\toprule` command, but I cannot tell what (maybe the backtick?) Well, anyone have an idea, how I can modify this file so it also builds with `htlatex`?


title: Cannot edit my document in Adobe Reader

text: I am typing and creating a tex file using Latexila (which I _think_ is compiling via pdftex) and am asking a few friends to help edit this doc. These friends, however, are not conversant with tex, and thus wish to simply use Adobe Reader to edit the doc. But, when they attempt to do so, they are unable to because they say that Reader will not let them do so because the doc is password protected or something to the like. How can I change this? I was not even aware I was putting any password on the doc, and have tried (in Natilus) changing said doc to read and write by anyone, but to no avail. BTW, I am using the current version of Latexila (2.6.2) on Ubuntu 13.04.


title: Don't indent the bibliography

text: How can I prevent the items in the bibliography from being automatically moved approximatively 1 cm to the right? If I use `\bibitem[label]{...}` they are nicely aligned with the rest of the text, but if I just use `\bibitem{...}`, so that they get automatically numbered (which is what I want) they are moved to the right, like I explained above. Example: ![enter image description here](http://i.stack.imgur.com/t6y3m.jpg) I want the automatic numbering of the first lines, but the indentation behavior of the last. The Code that creates the above output:               % Created with LyX     \documentclass[english]{article}     \usepackage[OT1]{fontenc}     \usepackage[latin9]{inputenc}     \usepackage{babel}     \usepackage{amsthm}     \usepackage{amsmath}     \usepackage[unicode=true,      bookmarks=false,      breaklinks=false,pdfborder={0 0 1},backref=false,colorlinks=false]      {hyperref}     \usepackage{breakurl}          \makeatletter     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.     \usepackage{enumitem}       % customizable list environments     \newlength{\lyxlabelwidth}      % auxiliary length           \makeatother          \begin{document}     \begin{thebibliography}{References}     \bibitem{key-1} these lines are what happens when I only use                 \textbackslash{}bibitem\{....\}          \bibitem{key-2} these lines are what happens when I only use                 \textbackslash{}bibitem\{....\}          \bibitem[bla]{key-3} these lines are what happens when I use                 \textbackslash{}bibitem{[}bla{]}\{....\}          \bibitem[blabla]{key-4} these lines are what happens when I use                 \textbackslash{}bibitem{[}blabla{]}\{....                    \}\end{thebibliography}          \end{document}`


title: LyX layout for Eurographics

text: Has anyone used/written/heard-of a LyX layout for Eurographics publications? (e.g., Computer Graphics Forum, Symposium on Geometry Processing, etc.) Eurographics publications provide a LaTeX class/style file, but using it in LyX requires some trial-and-error with Evil Red Text (explicit LaTeX in LyX documents). In particular, these features cannot be used directly in LyX:   1. Teaser graphics (the figure above the abstract)   2. ACM classification (the `classification` environment)   3. The `proof` and `theorem` environments.   4. The preamble of the document has to be manually edited.


title: Logotype without moving header on every page down

text: I am trying to insert a logo on the first page without moving the header on every page down. With the following code the logo get inserted but every header on every page is pushed down. The code (before `\begin{document}`):               \usepackage{fancyhdr, graphicx}     \renewcommand{\headrulewidth}{0pt}     \fancyhead[L]{}     \fancyhead[R]{     \includegraphics[width=3.5cm]{jedem.pdf}     }     \pagestyle{plain}      The code (after `\begin{document}`):               \thispagestyle{fancy}      Appreciate if someone can point me in the right direction.


title: Appendices merged into the last "part"

text: I'm writing my Thesis using TeXnicCentre 2.02 and MiKTeX 2.9. I found a small issue that I can't fix... I'm using some **parts** in the document, and it happens that the **appendices** are inside the last part. I've tried to use `\backmatter` without success. Can you give me a piece of advice? A part of my preamble:               \documentclass[11pt,openright,twoside]{toptesi}     ...     \usepackage{indentfirst}     \usepackage[toc]{appendix}     \usepackage[colorlinks=false, pdfborder={0 0 0}]{hyperref}     \usepackage{nameref}     ...          %% Document Parts %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \begin{document}          \include{Cpt_0}     \include{Cpt_1}     \part{Part 1}     ... some chapters ...     \part{Part 2}     \include{Cpt_2}     \include{Cpt_3}          \appendix     \appendixpage     \addappheadtotoc          \include{App_1}     \include{App_2}     \include{App_3}          \printbibliography     \end{document}


title: Junicode and Small Caps

text: How can I use Junicode small caps fonts with LuaLaTeX? The solution posted in textls breaks smallcaps with luatex did not work or I just can't fix it. Example:               \defaultfontfeatures{Ligatures=TeX}     \setmainfont[SmallCapsFont={Junicode},SmallCapsFeatures={Letters=SmallCaps}]{Junicode}     \newfontfamily\scfont[Letters=SmallCaps]{Junicode}


title: cross-reference chapter title from different file

text: My dissertation is several chapters, each written in a different .tex file. How can I reference the chapter number from one chapter in the text of another? For example, how would I produce > '... will be discussed more thoroughly in chapter 3.' where '3' is dynamically generated based on its order in the list of chapters included (using `\include`) in the master file?


title: Is there a Copy-and-Paste List of Popular Math Formulas?

text: I prepare lessons for my students in printed form as well as on a Wordpress blog. All my prep is done in a simple text editor in Markdown, and I have generally avoided putting in math formulas and instead just relied on the dry erase marker in class, or directing the students to a certain formula sheet that comes with their books. I get by, but a colleague of mine recently tipped me off to LaTex/Tex when I was telling him about Markdown. I've been able to install MathJax in wordpress, and I have a Multimarkdown preview app (Marked) that also connects to MathJax, so I've been able to get a couple of test posts up. I'd love to just have a plain text file that I could copy and paste from that has popular formulas for an intro stats class (standard deviation, confidence interval, mean, etc.). I'd also just love a bunch of practice problems I could copy the original LaTeX code and paste right into my text editor. I guess I'm looking for a math textbook in its original LaTeX code, or a resource for math teachers designed for copy and pasting. Does such a resource exist?


title: longtable leaves final page with default margins

text: A multi-page table formats more or less OK, but the last page reverts to the default margins. (Minor question: I assume my inability to make the table fill the height of the page with \textheight is a noob error.) Code example shortened from 15 pages, still too long:               \documentclass[letterpaper,10pt,notitlepage]{report}     %%\usepackage{fullpage}     \usepackage[utf8x]{inputenc}     \usepackage{longtable}          \begin{document}     \title{\textit{mnp} Model}     \author{ Gregg Hauser}     \maketitle          \begin{abstract}     \end{abstract}     \begingroup     % lousy job of formatting the page - heading and page number are way left of center ...     \setlength{\hoffset}{-1.25in}     \setlength{\voffset}{-.5in}     \setlength{\topmargin}{0pt}     \setlength{\textheight}{9in}     %     %chapter Unsolved Problems in Physics     \textit{mnp} Model and the Unsolved Problems in Physics\\     http:\slash \slash en.wikipedia.org\slash wiki\slash List\_of\_unsolved\_problems\_in\_physics\\     \\     \begingroup     \newskip\LTpre \LTpre=0pt     \newskip\LTpost \LTpost=0pt     \begin{longtable}{ p{1in} p{.7in} p{3.5in} p{1.5in} }     %%\hline     % use & to separate \\ \hline to end     Category\slash Issue & Date & Comments & Confidence \\ \hline      \endfirsthead     \multicolumn{4}{c}%     {\tablename\ \thetable\ -- \textit{Continued from previous page}} \\ %% \hline     Category\slash Issue & Date & Comments & Confidence \\ \hline      \endhead     \\     \multicolumn{4}{l}{\textbf{Quantum gravity, cosmology, general relativity}} \\ %% \hline      \raggedright Vacuum catastrophe & 2011-11-05 & 10\^14 GV\slash m3 as vacuum energy density (higher than other numbers?) -      does that suggest that a figment has a known size? In the \textit{mnp} Model a cubic meter of space could be empty      or could have an integer number of figments. Gravity (m-figments) would still work through such a region      (no gravitational effects in truly empty regions, though). Particles might “stop” but would be bringing in figments,      so will not stay in place. In “our neighborhood”, if each      (calculated) 1x10\^-9erg per cm\^3 or 10\^-16J or 6.2415x10\^2eV per cm\^3 or 6.2415x10\^11eV\slash m\^3 & low \tabularnewline %% \hline      Quantum Gravity & 2011-11-05 & The nature of the \textit{mnp} Model.      The model suggests that objects appear lighter to heavier than terrestrial gravity would suggest as follows:      black holes appear lighter (and lighter yet from other galaxies),      terrestrial objects appear “normal” at intermediate distances but lighter at inter galactic distances,      emissive objects like the sun appear heavier than terrestrial objects at all distances,      but may appear “lighter” as the distance increases,      and massively emissive objects such as super novas appear much more massive than they (were).      Gravity is propagated at the speed of light (and less). & high \\ %% \hline      Black Holes & 2011-11-05 & The “thermal” radiation emitted by black holes is m-figments,      which are emitted (and need to be emitted so that black holes participate in gravitation).      “Information” in the number of m, n, and p figments remains. Structures remain,      though the \textit{mnp} Model sees more rearrangements of structure than particle physics does.      Neutrinos may pass through black holes, though greater contents may reduce the odds of transit.      The neutrinos emerging would be mediators of (long distance) gravity as well. & high \\ %% \hline      \raggedright Quasiparticles and Phonons & 2011-10-29 & Looking at the Wikipedia phonon article,      the suggestion that Fourier analysis proves quantum effects strikes the author as a tautology.      A finite Fourier transform on a finite field will only yield wavelengths as integral multiples      (or rational fractions at best) which when inverted will leave continuities out of the picture.      Fourier analysis is very useful for calculation and maybe for understanding "points of view" and possibly for finding valleys or peaks in potential.      The author is not comfortable with discrete analysis creating quasi particles that then interact with electrons.      Maybe better left unsaid in professional company. & medium low     \tabularnewline %% \hline          \end{longtable}     \endgroup          unreviewed 2012-08-12     \endgroup          \end{document}


title: How to use 1. (number followed by dot) format instead of [1] format in bibliography

text: The editor asked me to use the following format. > Reference   >  1. Author, blah blah Instead of > Reference   >  [1] Author, blah blah ... Even though in the main text, [1] style has been used. For example, * * * > Smith [1] has proposed ... > > Reference   >  1. Smith, * * * This is what I want. Could you please advise how I can do the above? Thanks in advance.


title: Rounded parenthesis in References

text: I am trying to make my references have parentheses instead of brackets. I have               \usepackage[super]{natbib}      in my preamble but when i did               \usepackage[super,round]{natbib}      that only changes how my citations look in the actual document. I am looking for > (1) Masaaki Aoki, et.al. Structural insight into ...etc.. instead of > [1] Masaaki Aoki, et. al. ...etc thanks, J


title: Bibliography style with no brackets

text: > **Possible Duplicate:**   >  How to use 1. (number followed by dot) format instead of [1] format in > bibliography How to change my bibliography from: [1] BlaBla [2] BlaBla to:   1. BlaBla   2. BlaBla ?


title: Removing brackets from the reference

text: > **Possible Duplicate:**   >  How to use 1. (number followed by dot) format instead of [1] format in > bibliography I'm using the `amsart` class, and the command `\begin{thebibliography}` for references. This puts all the enumerations of references in square brackets, and I want to get rid of this. That is, I want the references to look like               1. ~~     2. ~~      rather than               [1]. ~~     [2]. ~~      How can this be achieved??


title: hdashline with tabularx together with custom row height is not working

text: I tried to set up a table with different custom row height and a dashed line. I'm using **tabularx** for the table and **arydshln** for the dashed line. When I import arydshline before tabularx it starts throwing errors and does not draw the dashed line correct, when I import tabularx before arydshline ruins the right and left table border.               \documentclass[letterpaper, 11pt]{article}          %\usepackage{arydshln} % Throws some errors and does not draw a correct line when placed here          \usepackage{tabularx}          %\usepackage{arydshln} % Ruins the left and right table border when placed here          \begin{document}              \begin{table}[h!]             \begin{tabularx}{\textwidth}{|X|X|X|X|} \hline                      \multicolumn{4}{|>{\hsize=4\hsize}X|}{}\\[-2ex]                 \multicolumn{3}{|>{\hsize=3\hsize}X}{\textbf{\Large 1}}  &                 \multicolumn{1}{>{\raggedleft}X|}{2} \\[1ex] % \hdashline % That is the dashed line i want to show                  \end{tabularx}         \end{table}          \end{document}      The example is reduced to the minimum, sadly I need all those three things, **dashedline** , **tables** and **custom row height**. Here are some pictures of the output: Crapped dashed line: ![crapped dashed line](http://i.stack.imgur.com/ZTzce.png) Crapped table border: ![enter image description here](http://i.stack.imgur.com/NQOgu.png)


title: edit text on blank page?

text: As my title, how do I put the text and footer on the blank page which after every title page? This is my code so far, but this only effect on the blank page before the title page!Also I use python and json to load the data. Sorry for late updating, this is the completed code which I use for my json file but it also has the same problem. I think there may has some conflict problem between my code, but I don't know how to fix it. Is anyone know where's the problem? Thank you very much.   page 6 is the blankpage before title page, page 7 is title page and page 8 is the blankpage after title page               \documentclass[11pt,letterpaper,twoside]{book}          \usepackage{fancyhdr}     \usepackage{fontspec}     \usepackage{color}     \usepackage{colortbl}     \usepackage{longtable}     \usepackage{array}     \usepackage{anysize}     \usepackage{tabu}     \usepackage{multicol}     \usepackage[explicit]{titlesec}     \usepackage{titletoc}     \usepackage{xparse}     \usepackage{amsfonts}     \usepackage[autolanguage]{numprint}     \usepackage{geometry}     \usepackage{ifoddpage}     \usepackage{lipsum}          \geometry{paperheight=11in,paperwidth=8.5in,textwidth=7.25in,textheight=9in,top=1in,bottom=1in,headsep=0.125in,footskip=0.125in,left=0.75in,right=0.5in,twoside}          \geometry{marginparsep = 0.5in}          \titlecontents{section}[5em]{}{\vspace{.1em} \hspace{-2.5em} }{}    {\hspace{.5em}\titlerule*[4pt]{.}\contentspage}     \titlecontents{subsection}[5em]{}{}{}{}          \setmainfont[Mapping=text-tex]{Calibri}     \setcounter{secnumdepth}{-1}      \definecolor{green}{rgb}{0.3,.7,0.3}     \definecolor{blue}{rgb}{0.3, 0.3, .6}     \definecolor{white}{rgb}{1,1,1}     \definecolor{grey}{rgb}{.6,.6,.6}     \pagestyle{fancy}     \setlength{\parskip}{1.5ex}     \setlength{\parindent}{0.0in}     \voffset = 0pt     \hoffset = 0pt          %force section start with new page     \let\stdsection\section     \renewcommand\section{\newpage\stdsection}               \newcommand{\delppart}[1]{\part{#1}}     \newcommand{\delpsection}[1]{\section{#1}}     \newcommand{\delpsubsection}[1]{\subsection{#1}}     \newcommand{\delpsubsubsection}[1]{\subsubsection{#1}}     \newcommand{\delpsubsubsubsection}[0]{\subsubsubsection}     \newcommand{\bulletl}[0]{\renewcommand{\labelitemi}{$\bullet$}}     \newcommand{\checkl}[0]{\renewcommand{\labelitemi}{$\checkmark$}}     \newcommand{\figurebottom}[1]{\begin{figure}[b]#1\end{figure}}     \newcommand{\twocol}[1]{\begin{multicols}{2}{#1}\end{multicols}}     \newcommand{\greenrow}[1]{\rowcolor{green}#1}     \newcommand{\bluerow}[1]{\rowcolor{blue}#1}     \newcommand{\greyrow}[1]{\rowcolor{grey}#1}     \newcommand{\white}[1]{\color{white}#1}     \newcommand{\none}[1]{#1}               \setlength{\unitlength}{1mm}%footnote          \fancypagestyle{plain}{     \fancyhf[]{}     \fancyfoot[LE,RO]{ \normalsize  BlahBlahBlahBlah\\BlahBlahBlahBlah}     \fancyfoot[C]{- \thepage\  -}     \renewcommand{\headrulewidth}{0pt}     \renewcommand{\footrulewidth}{0.4pt}     }          \fancypagestyle{empty}{     \fancyhf[]{}     \fancyfoot[LE,RO]{ \normalsize  BlahBlahBlahBlah\\BlahBlahBlahBlah}     \fancyfoot[C]{- \thepage\  -}     \renewcommand{\headrulewidth}{0pt}     \renewcommand{\footrulewidth}{0.4pt}     }          \fancyhf{}     \renewcommand{\sectionmark}[1]{\markright{#1}}          \fancyhead[R]{\Huge \rightmark}     \fancyfoot[LE,RO]{ \normalsize BlahBlahBlahBlah\\BlahBlahBlahBlah}     \fancyfoot[C]{- \thepage\  -}          \renewcommand{\headrulewidth}{0.4pt}     \renewcommand{\footrulewidth}{0.4pt}     \renewcommand{\footrule}{%     \checkoddpage     \ifoddpage\hfill\else\fi\rule{2.5in}{\footrulewidth}\vskip\footruleskip}          \newcommand*\BPText{THIS PAGE IS INTENTIONALLY LEFT BLANK.}               \makeatletter     \renewcommand*\cleardoublepage{%     \clearpage\if@twoside \ifodd\c@page\else     \hbox{}     \vspace*{2.125in}     \begin{center}     \BPText     \end{center}     \vspace{\fill}     \thispagestyle{empty}     \newpage     \if@twocolumn\hbox{}\newpage\fi\fi\fi}     \makeatother          \newcommand{\dontbreak}[1]{\hbox{#1}}     \newcommand{\noinfo}[0]{-}     \newcommand{\defaultnum}[1]{\numprint{#1}}     \newcommand{\percentage}[1]{\numprint{#1}\%}          \titleformat{\part}[display]{\normalfont \huge\raggedleft  \vspace{0.6in} \titlerule}{}{-70pt}{#1\Huge}     \titleformat{\section}{}{}{0pt}{}               \newcommand{\defaulttabletitlemacro}[1]{\none{#1}}     \newcommand{\defaultcoltitlerowmacro}[1]{\greenrow{#1}}     \newcommand{\defaultcoltitleitemmacro}[1]{\textbf{#1}}     \newcommand{\defaultrowmacro}[1]{\none{#1}}     \newcommand{\defaultitemmacro}[1]{ \hspace*{\fill}#1}     \newcommand{\defaultrowtitlemacro}[1]{\none{#1}}     \newcommand{\defaultsumrowmacro}[1]{\greenrow{#1}}     \newcommand{\defaultsubsumrowmacro}[1]{\greyrow{#1}}     \newcommand{\defaultsubsubsumrowmacro}[1]{\greyrow{#1}}     \newcommand{\defaultsumitemmacro}[1]{\none{#1}}     \newcommand{\defaultsubsumitemmacro}[1]{\none{#1}}     \newcommand{\defaultsubsubsumitemmacro}[1]{\none{#1}}     \newcommand{\defaultdiffrowmacro}[1]{\bluerow{#1}}     \newcommand{\defaultdiffitemmacro}[1]{\hspace*{\fill}#1}     \newcommand{\defaultdifftitlemacro}[1]{\none{#1}}     \newcommand{\defaultsumtitlemacro}[1]{\none{#1}}     \newcommand{\defaultsubsumtitlemacro}[1]{\none{#1}}     \newcommand{\defaultsubsubsumtitlemacro}[1]{\none{#1}}          \newcommand{\defaultsubtabletitlemacro}[1]{ \textbf{#1}}     \newcommand{\centerit}[1]{\begin{center}\itshape{#1}\end{center}}          \NewDocumentCommand{\myrule}{O{1pt} O{3pt} O{black}}{%     \par\nobreak % don't break a page here     \vspace{0.01in}      \kern\the\prevdepth % don't take into account the depth of the preceding line     \kern#2 % space before the rule     {\color{#3}\hrule height #1 width\hsize} % the rule     \kern#1 % space after the rule     \nointerlineskip % no additional space after the rule     }          \newcommand{\goalheader}[1]{#1\myrule[3pt][0pt][green]}     \nprounddigits{2}               \begin{document}               \part{Test Chapter One}     \lipsum[1-37]     \part{Test Chapter Two}     \lipsum[1-8]          \end{document}      Thanks!


title: How to specify the caption names in bilingual captions without babel or polyglossia?

text: I use Axel Sommerfeldt's bicaption package to setup bilingual captions. `bicaption` needs `babel`'s `\selectlanguage` to set the different caption names for different languages. However, I cannot use the faculty of `babel`/`polyglossia` since it doesn't work for east Asian languages. It is easy to set a `name` option for the two captions, but I can't set different names for different types of floats. For example,               \documentclass{article}     \usepackage{caption}[2012/02/19 v3.2f]     \usepackage{bicaption}[2011/10/30 v1.0a]     \captionsetup[bi-first]{name=Foo}     \captionsetup[bi-second]{name=Bar}          \begin{document}          \begin{figure}       \centering FIGURE       \bicaption{XXX}{YYY}     \end{figure}          \begin{table}       \centering TABLE       \bicaption{XXX}{YYY}     \end{table}          \end{document}      I tried               \captionsetup[bi-first,figure]{name=Foo}      there's no effect. And I tried               \captionsetup[bi-first]{figurename=Foo}      then I got an error > `! Package caption Error: Can be used only in preamble.` So what can I do? Is there a simple way to use `bicaption` without `babel`? In an older version of `caption` package (e.g. 2011/11/10 v3.2e), `figurename` and `table` options can be used in `document` environment, but the latest `caption` allows them only to be used in the preamble. I cannot see any advantage to set `\@onlypreamble\caption@SetName`. However, even if I use the old version of `caption`, I still cannot set the name for user-defined (via `newfloat` package) floats in bilingual captions. * * * Note: I do not like the `\bicaption` provided by `ccaption` package, it is complicated to use. And I have the ability to define my own version of `\bicaption`, but it seems also a bad option. Currently I can use this weird trick:               \captionsetup[bi-first]{font=bi-first}     \captionsetup[bi-second]{font=bi-second}     \DeclareCaptionFont{bi-first}{%       \def\tablename{Table}%       \def\figurename{Figure}}     \DeclareCaptionFont{bi-second}{%       \def\tablename{Alter-table}%       \def\figurename{Alter-figure}}


title: Forcing two tables to be at the top of the page on facing pages

text: The person at the desk next to me is writing his Ph.D. thesis, and is trying to decide how to lay out some tables. He has too much data for one table, but is not a fan of rotated tables. So we were talking and had the idea that he could make two tables, and place them on adjacent pages so you could see them at once. However, you'd have to make sure they didn't wind up on the front/back of a single page. Is there a way to do that, or is this sheer madness?


title: Border on top of paragraph

text: I am trying to put a line over a paragraph in LaTeX. I tried this code:               \noindent\makebox[\linewidth]{\rule{\textwidth}{2pt}}     \noindent\colorbox{gray}{\parbox{\dimexpr\textwidth-2\fboxsep\relax}{\textbf{Text}}}      But there is a small space between the line and the paragraph as shown in this image: ![enter image description here](http://i.stack.imgur.com/BZE2L.png) Do you know how I can remove this space between the paragraph and the text?


title: endfloat and ctable are incompatible?

text: It seems that `endfloat` and `ctable` are incompatible:               \documentclass[a4paper]{article}     \usepackage{endfloat}     \usepackage{ctable}     \begin{document}          \ctable[caption = Queries available, pos = H, center, botcap]{ll}     {% notes     }     {% rows     \FL     search ``by='' & purpose     \ML     abstract & search terms in the publication abstract     \\\noalign{\medskip}     author & match authors in the publication     \\\noalign{\medskip}     id.taxon & Taxon identifier number from TreeBase     \\\noalign{\medskip}     tree & The title for the tree     \LL     }      Gives the error:               ! Undefined control sequence.     \\  ->\let \reserved@e                             \relax \let \reserved@f \relax \@ifstar {\let \reserv...     l.21 }      Is there any way to work around this problem? Either   1. an alternative to `endfloat` that works for `ctable`,    2. or at least a way to make `endfloat` ignore the `ctable` instead of error? ### Edit: I'm looking for a solution that still uses `ctable` for the table. Ideally some option that I can set in the preamble to resolve the conflict, or create `endfloat`-style behavior without the `endfloat` package? (Editing the table itself isn't in the spirit of the `endfloat` package, since I could equally well move the table to the end manually, but that is not a good programmatic solution to apply over many documents.)


title: Issues with TeX sub-formula formatting

text: As generally acknowledged TeX offers superb formatting capabilities for math in an automated fashion. Nevertheless there are some areas with clear deficiencies that one either has to accept or manually improve on a case by case basis. One of the biggies in that respect is TeX's handling of sub-formulas (i.e., material inside a brace group, e.g., and index, but also any group on top- level). TeX sets such sub-formulas always in natural width even if the whole formula is subject to severe stretching or shrinking otherwise. As an example, consider the following (not very sensible) example:               \documentclass{article}          \newlength\x          \begin{document}          \newcommand\formula{$ a+\mathbf{b+c}+d+e+f = \sum_{i=1}^{n-x-y-z} x_{i+j}$}          \settowidth\x{\formula}          \hbox to \x{\formula}    % natural width          \addtolength\x{-20pt}          \hbox to \x{\formula}   % now shrink it a lot          \addtolength\x{100pt}          \hbox to \x{\formula}   % now stretch a lot in the opposite direction          \end{document}      The formula here has a number of obvious sub-formulas in the subscripts and superscript, but for illustration I also added a sub-formula via `\mathbf`. Of course the usage of `\mathbf` in this way is wrong!!! (it should not be applied to several symbols), but I'm sure you would find this in documents. In any case just `{b+c}` would have had the same effect here. Now what do you think happens if we run this? This: ![enter image description here](http://i.stack.imgur.com/gQiUp.png) As one can see the naturally "boxed" sub-formulas are very wrong the moment the rest of the formula is subject to stretching or shrinking. Until recently no TeX engine successor addressed this issue. With LuaTeX opening up a lot of the internals of TeX I had some hope that this would be different. However, upon studying the manual my conclusion is that this area (sor far it least) has not been addressed (or considered). As far as I can see the only way something could be done in LuaTeX about this issue would be to use the `mlist_to_hlist` callback. However, this would really mean replacing the full math typesetting algorithm, which of course could be a way to solve the problem but ... but what is needed is not that (as 99% of this algorithm is next to perfect) but to add support to not simply box sub-formulas at their natural width. So long text ... here is the short question:   * Is this analysis correct, or did I overlook something?   * And in case anybody knows: are there plans to look into the sub-formula issue and provide support for it eventually? (it is not listed on the "to-dos" for math)  In case somebody wonders that I talk about "this sub-formula issue" as if it is something like a known thing ... it is, it was already raised way back in E-TeX: guidelines to future TeX extensions which at the time a some thorough (if not say heated) discussions.


title: How can I anchor TikZ matrix cell contents to 'baseline' without shifting cell location?

text: The cells in my tables often contain expressions with superscripts. This results in a text baseline that appears to "wander" between adjacent cells. For example               \begin{tikzpicture}[every node/.style={minimum size=7mm}]     \matrix{         \node[fill=gray!10]{$a$};  &  \node[fill=gray!20]{$a^2$};  &  \node[fill=gray!30]{$b$}; &  \node[fill=gray!40]{$b^2$}; \\};     \end{tikzpicture}      produces ![enter image description here](http://i.stack.imgur.com/BjZKY.png) I understand that the way to align the text of all cells to a common baseline is to use `anchor=base`, but this has the side effect of jumbling the cells. For example               \begin{tikzpicture}[every node/.style={anchor=base,minimum size=7mm}]     \matrix{         \node[fill=gray!10]{$a$};  &  \node[fill=gray!20]{$a^2$};  &  \node[fill=gray!30]{$b$}; &  \node[fill=gray!40]{$b^2$}; \\};     \end{tikzpicture}      produces ![enter image description here](http://i.stack.imgur.com/b1f7C.png) Is there a way to align all text to a common baseline, without shifting the cells as well? * * *               \documentclass[]{article}          \usepackage{tikz}          \begin{document}          \begin{tikzpicture}[every node/.style={minimum size=7mm}]     \matrix{         \node[fill=gray!10]{$a$};  &  \node[fill=gray!20]{$a^2$};  &  \node[fill=gray!30]{$b$}; &  \node[fill=gray!40]{$b^2$}; \\};     \end{tikzpicture}          \begin{tikzpicture}[every node/.style={anchor=base,minimum size=7mm}]     \matrix{         \node[fill=gray!10]{$a$};  &  \node[fill=gray!20]{$a^2$};  &  \node[fill=gray!30]{$b$}; &  \node[fill=gray!40]{$b^2$}; \\};     \end{tikzpicture}          \end{document}


title: LaTeX is mishandling TikZ characters in Venn diagrams

text: I am running TikZ (pgf_210.tds), TeX 3.141592, and Fedora 14. I am working on Venn diagrams. The examples all do the right art work, but draw the set identification as in               \draw \firstcircle node[text=white, below] {$A$}     \draw \secondcircle note[text=white, above] {$B$}      on top of each other just left of the midpoint of the left arc of the intersection. Any thoughts? * * *               \begin{document}     %% From a tikz Venn example     \usepackage{tikz}     \begin{document}     \begin{tikzpicture}[fill=gray]     \begin{scope}     \clip (-2,-2) rectangle (2,2)        (1,0) circle(1);       \fill (0,0) circle (1);     \end{scope}          \begin{scope}     \clip (-2,-2) rectangle (2,2)        (0,0) circle(1);     \fill (1,0) circle(1);     \end{scope}          draw (0,0) circle (1) (0,1) node [text=black,above] at (2,2) {$A$}         (1,0) circle (1) (1,1) node [text=black,above] at (1,1) {$B$}         (-2,-2) rectangle (3,3);     \end{tikzpicture}     \end{document}


title: Change list bullet style independently from each other in ConTeXt

text: # Background I would like to vary the style of multiple itemized lists on the same page, independently from one another. # Code A short example:               \setuppapersize[A5]     \setupcolors[state=start]          % Itemized in a bullet list by default.     \definestartstop[RegularList][       before={\startitemize[joinedup]},       after={\stopitemize},     ]          \defineframed[StyleBulletFramed][       frame=off,       height=0.5em,       width=0.5em,       background=color,       backgroundcolor=red,     ]          % First level of indenting (regular bullets) use the bullet style.     \setupitemize[1][broad][       stopper=,       width=\zeropoint,       symbol=,       command=\StyleBulletFramed{},     ]          \define[3]\regularlist{\item #1 #2 #3}          \startnotmode[ModeCompactInstructions]     \definestartstop[Instructions][       before={\startitemize[n,joinedup]},       after={\stopitemize},     ]          % First level of indenting (regular bullets) use the bullet style.     \setupitemize[1][][       stopper=,       width=\zeropoint,            % ???       %command={\StyleBulletFramed[width=1em,height=1em]{}\hskip0.5em},     ]          \define[1]\instruction{\item #1.}          \starttext          \startbodymatter       Chemicals       \startRegularList         \regularlist{80}{ml}{water}         \regularlist{20}{ml}{sodium}       \stopRegularList            Instructions       \startInstructions         \instruction{Drop sodium into water}         \instruction{Run away}       \stopInstructions     \stopbodymatter          \stoptext      This produces: ![Dependent Lists](http://i.stack.imgur.com/PruPY.png) # Problem The red bullets in the first list are perfect for the first list. However, the red bullets have issues in the second list:   * The bullet size should be larger (large enough to hold a two-digit number)   * The bullets should be behind the number # Questions The first question has me stumped; the second question I can probably use `\defineitemlist` to resolve. How would you:   1. ensure the number is drawn on top of the bullet?   2. format the lists independently (i.e., larger bullet in second list)? # Missing Resource I thought I could define a named group, but the `\defineitemgroup` documentation is non-existent.


title: Should I make a package or class for my usual preamble, or include it in every document?

text: This TeX.SE thread is a good resource for how to make your usual preamble into a package or document class. I would like to know _why_ I should do that. What are the pros and cons of doing so, as compared with just leaving the preamble in every document you write? Here's how I see it: **Pros of leaving the preamble in every document**   * Easy to edit it if necessary   * If I forget how I defined something, I can just scroll up and look   * Only one file to keep track of per document   * If I send my document to someone else, they can compile it immediately, without any fussing over where to put my package/class file   * Progressive changes to my preamble don't cause an accumulation of files that can never be moved lest all old documents break **Cons of leaving the preamble in every document**   * Takes up more room on the computer   * You have to scroll down a bit more before getting to start writing in your document _(the pros and cons of making a package or class being exactly dual)_ To me, this comes down heavily against making a package or class. Am I missing considerations that would tip the balance the other way? Perhaps for certain documents, one choice is better than the other?


title: Disable changebar command in the header

text: I want to add changebars to toc-entries. It actually works fine but I had to disable the command in the `\mark` commands (so that changebar settles and stops the "rerun" messages in the log-file). The following works but I'm wondering why I have to patch two commands. Why isn't it enough to patch `\markboth`?               \documentclass{article}     \usepackage{etoolbox}     %must be before babel, as babel redefines markboth:     \patchcmd{\markboth}{\begingroup}{\begingroup\let\cbline\relax}{}{}     \pretocmd{\leftmark}{\let\cbline\relax}{}{}     \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage[ngerman]{babel}     \usepackage{changebar}     \newcommand\cbline{}     \DeclareRobustCommand\cbline{\cbstart\cbend}          \usepackage{fancyhdr}     \pagestyle{fancy}     \fancyhf{}     \lhead{\leftmark}          \begin{document}     \tableofcontents          \section[toc\cbline]{Document}          abc\cbline     \end{document}      ## Edit Using `\def` instead of `\let` when patching `\markboth` works:               \patchcmd{\markboth}{\begingroup}{\begingroup\def\cbline{}}{}{}      But I still don't understand why it is necessary as `\markboth` uses `\let` for label and index command.


title: Texshop and inverse search

text: I just updated to the latest version of TexShop and now my inverse search (from the pdf to the source) does not work anymore. Neither with command+click nor with right click -> sync. It used to work flawlessly until before the update. The options that I have in preferences -> engine are the default options, i.e.: "pdflatex --file-line-error --syncTex=1" (I only use pdflatex). Any suggestion?


title: Display the definition of each items in beamer one by one using onslide or any method

text: I have three items in a slide and there is one block where I would like to show the definition of each items. On each click or button press I want to change the item name and the corresponding definition. I was able to do this for the graphics, but I was not able to achieve this effect for the text. The sample tex document is as follows:               \documentclass[mathserif]{beamer}           % Setup appearance:          \usetheme{CambridgeUS}     \setbeamertemplate{items}[ball]     \usefonttheme[onlylarge]{structurebold}     \usecolortheme[RGB={205,173,0}]{structure}      \setbeamerfont*{frametitle}{size=\normalsize,series=\bfseries}     \useoutertheme{infolines}           %Pacakges     \usepackage{xcolor}     \usepackage{graphics}          \usepackage{amsmath}     \usepackage{xcolor}          \mode<presentation>{}          \begin{document}         \begin{frame}{Motivation}         \begin{itemize}             \item<1-> Travel time              \item<2-> Residence time             \item<3-> Biology         \end{itemize}              \begin{block}{Definition}             <1> {Travel time is the time required by the particle to move from one point to another point.}             <2> {Residence time is the time required for the particle to get out of the system.}             <3> {Biology is the study of living things.}         \end{block}           \end{frame}     \end{document}


title: How can several boxplots be combined into a single figure as groups?

text: Currently I have the following MWE:               \documentclass[a4paper]{standalone}          \usepackage{pgfplots}     \usepgfplotslibrary{external,colormaps,groupplots,statistics}     \pgfplotsset{compat=1.8}     \usepackage{tikz}     \usetikzlibrary{arrows,shapes,positioning}                    \begin{document}          \begin{tikzpicture}     \begin{groupplot}[     boxplot/draw direction=y,     ylabel={segmentation time (secs)},     xtick={1,2},     width=6cm,     height=8cm,     boxplot/box extend=0.5,     xticklabels={visualization disabled,visualization enabled},         x tick label style={             text width=2.5cm,             align=center         },           group style={             group size=2 by 2,               horizontal sep=2cm,vertical sep=2cm           },     ]          \nextgroupplot[title=dataset 1]     \addplot+[boxplot]     table[row sep=\\,y index=0] {     data\\     60\\     516\\     710\\     503\\     1253\\     };     \addplot+[boxplot]     table[row sep=\\,y index=0] {     data\\     759\\     419\\     309\\     883\\     299\\     };          \nextgroupplot[title=dataset 2]     \addplot+[boxplot]     table[row sep=\\,y index=0] {     data\\     516\\     480\\     1356\\     200\\     736\\     };     \addplot+[boxplot]     table[row sep=\\,y index=0] {     data\\     684\\     340\\     700\\     325\\     377\\     };          \nextgroupplot[title=dataset 3]     \addplot+[boxplot]     table[row sep=\\,y index=0] {     data\\     956\\     320\\     811\\     330\\     381\\     };     \addplot+[boxplot]     table[row sep=\\,y index=0] {     data\\     280\\     749\\     392\\     870\\     488\\     };          \nextgroupplot[title=dataset 4]     \addplot+[boxplot]     table[row sep=\\,y index=0] {     data\\     658\\     579\\     891\\     545\\     558\\     };     \addplot+[boxplot]     table[row sep=\\,y index=0] {     data\\     514\\     630\\     416\\     559\\     462\\     };          \end{groupplot}     \end{tikzpicture}               \end{document}      Which nets me the following output (which is usable I guess): ![Example](http://i.stack.imgur.com/G5t13.jpg) I would like to have them all in a single picture though. Kind of like the way you can group the boxes in box charts. So, to describe it more precisely:   * X ticks are dataset 1 through 4   * On every x tick are two box plots, one for disabled and one for enabled   * For clarity each pair of boxplots should be visually grouped together (maybe shift them towards eachother?) I have been searching through the PGFPlots manuals and web but haven't found anything that works so far. Can anyone help me out?


title: edge direction changed by adding '-latex' option

text: The following is one example to illustrate my point. The two edges differs in the '-latex' option. How come this option will affect the direction. As I understand it, this option just change how the arrow tips are rendered. The result is this: ![enter image description here](http://i.stack.imgur.com/LHfmf.png) Is it a bug or a feature?               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{arrows}          \begin{document}     \begin{center}     \begin{tikzpicture}[scale=6, transform shape]     \tikzstyle{every node} = [circle, fill=gray!30]         \node (a) at (0, 0) {A};         \node (b) at +(0: 1.5) {B}             edge [<-, green,dashed, -latex, bend left=30] (a)             edge [<-, green,dashed, bend right=30] (a)             ;     \end{tikzpicture}     \end{center}     \end{document}      Edit: My intention is just to change the arrrow tip style, which is achieved in this. The accepted answer explains how it works. This is the final code, which only changes the style of arrow tips, using `>=latex`:               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{arrows}          \begin{document}     \begin{center}     \begin{tikzpicture}[scale=6, transform shape]     \tikzset{>=latex}     \tikzset{every node/.style={circle, fill=gray!30}}         \node (a) at (0, 0) {A};         \node (b) at +(0: 1.5) {B}             edge [<-, red,dashed, bend left=30] (a)             edge [<-, red,dashed, bend right=30] (a)             ;     \end{tikzpicture}     \end{center}     \end{document}


title: Why is my tabular wider than the sum of its columns’ widths?

text: It's simple to create the tabular with columns of fix width, e.g.               \begin{tabular}{|p{95mm}|p{95mm}|} \hline     a & b \\ \hline     b & b \\ \hline     c & b \\ \hline     \end{tabular}       However, the width of all table **will not be 190mm**. (the text width was set to190mm). By other words, the width of the every column is more than wrote in table preamble. Did you have to do with this phenomenon?