title: How to make this table fit on a portrait A4 page?

text: \begin{table}[htbp]       \centering         \footnotesize       \caption{Add caption}         \begin{tabular}{ccccccccc}         \toprule         Bank  & Country &       &       & Conditional joint probability of default &       &       & Total assets & Total liabilities \\         \midrule               &       & 15 Sept. 2008 & 10 Mar. 2009 & 2 May 2010 & 25 Nov. 2011 & 19 Dec. 2013 &       &  \\         Erste Group Bank AG & AUT   & 0.084 & 0.133 & 0.094 & 0.201 & 0.091 & 209.30 & 194.12 \\         Raiffeisen Bank & AUT   & 0.094 & 0.121 & 0.080 & 0.256 & 0.097 & 146.63 & 135.69 \\         Dexia SA & BEL   & 0.052 & 0.111 & 0.059 & 0.154 & 0.060 & 412.05 & 412.37 \\         KBC Groep NV & BEL   & 0.145 & 0.140 & 0.123 & 0.256 & 0.134 & 282.94 & 266.17 \\         Danske Bank A/S & DEN   & 0.071 & 0.118 & 0.071 & 0.191 & 0.075 & 3422.61 & 3296.76 \\         BNP Paribas & FRA   & 0.230 & 0.293 & 0.209 & 0.333 & 0.208 & 1955.94 & 1870.31 \\         Credit Agricole SA & FRA   & 0.156 & 0.286 & 0.151 & 0.330 & 0.162 & 1718.51 & 1669.22 \\         Natixis & FRA   & 0.108 & 0.119 & 0.146 & 0.404 & 0.164 & 504.50 & 487.11 \\         Societe Generale & FRA   & 0.168 & 0.285 & 0.167 & 0.278 & 0.166 & 1176.79 & 1125.68 \\         Commerzbank AG & GER   & 0.182 & 0.335 & 0.180 & 0.277 & 0.153 & 657.61 & 630.23 \\         Deutsche Bank AG & GER   & 0.182 & 0.262 & 0.146 & 0.322 & 0.204 & 2155.37 & 2100.71 \\         IKB Bank & GER   & 0.038 & 0.052 & 0.055 & 0.202 & 0.051 & 31.25 & 30.27 \\         Alpha Bank & GRE   & 0.034 & 0.060 & 0.031 & 0.096 & 0.035 & 57.68 & 56.25 \\         Allied Irish Banks PLC & IRE   & 0.040 & 0.062 & 0.037 & 0.124 & 0.019 & 132.96 & 118.50 \\         Irish Life and Permanent & IRE   & 0.038 & 0.071 & 0.039 & 0.097 & 0.090 & 71.85 & 68.34 \\         Bank of Ireland & IRE   & 0.035 & 0.061 & 0.040 & 0.109 & 0.092 & 153.50 & 143.25 \\         Banca Italease & ITA   & 0.030 & 0.043 & 0.081 & 0.336 & 0.105 & 10.53 & 8.89 \\         Banca Monte dei Paschi di Siena & ITA   & 0.117 & 0.261 & 0.115 & 0.205 & 0.068 & 234.03 & 223.05 \\         Banca Popolare di Milano & ITA   & 0.166 & 0.232 & 0.132 & 0.224 & 0.079 & 51.22 & 47.16 \\         Banco Popolare SC & ITA   & 0.110 & 0.119 & 0.090 & 0.157 & 0.084 & 130.86 & 121.44 \\         Intesa Sanpaolo SpA & ITA   & 0.158 & 0.242 & 0.131 & 0.230 & 0.162 & 626.90 & 579.14 \\         Mediobanca SpA & ITA   & 0.152 & 0.242 & 0.129 & 0.259 & 0.152 & 74.80 & 67.77 \\         UniCredit SpA & ITA   & 0.133 & 0.162 & 0.116 & 0.336 & 0.164 & 914.11 & 859.31 \\         Banco Comercial Portugues SA & POR   & 0.097 & 0.147 & 0.078 & 0.148 & 0.075 & 91.92 & 87.54 \\         Espirito Santo Financial Group & POR   & 0.076 & 0.126 & 0.075 & 0.198 & 0.092 & 79.53 & 73.54 \\         Banco Bilbao Vizcaya & SPA   & 0.185 & 0.251 & 0.154 & 0.321 & 0.164 & 3198.97 & 3082.27 \\         Banco de Sabadell SA & SPA   & 0.067 & 0.120 & 0.085 & 0.195 & 0.103 & 1180.67 & 1126.09 \\         Banco Santander SA & SPA   & 0.178 & 0.249 & 0.169 & 0.325 & 0.163 & 1226.99 & 1179.73 \\         Nordea Bank & SWE   & 0.108 & 0.193 & 0.097 & 0.243 & 0.110 & 6397.94 & 6164.55 \\         Skandinaviska Enskilda Banken & SWE   & 0.077 & 0.112 & 0.073 & 0.192 & 0.078 & 2361.34 & 2252.18 \\         Svenska Handelsbanken AB & SWE   & 0.118 & 0.196 & 0.112 & 0.285 & 0.112 & 2453.99 & 2359.46 \\         Swedbank AB & SWE   & 0.058 & 0.090 & 0.070 & 0.195 & 0.071 & 1856.19 & 1758.06 \\         Credit Suisse Group & SWI   & 0.210 & 0.265 & 0.209 & 0.405 & 0.186 & 1040.23 & 999.14 \\         UBS SG & SWI   & 0.151 & 0.194 & 0.159 & 0.351 & 0.196 & 1410.64 & 1352.78 \\         ING Groep NV & NL    & 0.083 & 0.199 & 0.114 & 0.259 & 0.174 & 1270.56 & 1223.33 \\         SNS Bank Netherlands & NL    & 0.128 & 0.072 & 0.056 & 0.165 & 0.039 & 128.21 & 123.64 \\         Barclays PLC & UK    & 0.119 & 0.185 & 0.167 & 0.317 & 0.142 & 1560.52 & 1495.32 \\         HBOS PLC & UK    & 0.065 & 0.209 & 0.115 & 0.317 & 0.217 & 568.00 & 540.36 \\         Lloyds Banking Group & UK    & 0.166 & 0.207 & 0.117 & 0.228 & 0.156 & 966.05 & 919.46 \\         Standard Chartered & UK    & 0.201 & 0.126 & 0.219 & 0.417 & 0.116 & 385.26 & 358.62 \\         \bottomrule         \end{tabular}%       \label{tab:addlabel}%     \end{table}%      I produce the above code using the Excel2Latex addin in Excel. I want to fit this table (portrait) on a single A4 page. However, the above code produces: ![enter image description here](http://i.stack.imgur.com/Sg6YK.png) How can I edit the table to make it fit? Also there are a few things which I'm not sure how to change. For example, the '`Conditional joint probability of default`' should span over the 5 dates rather than being forced into the same column as the middle date '`2 May 2010`'. Furthermore, I have a feeling that the bank names could be too long for the first column, if so, perhaps we can make the banks with longer names use up 2 rows rather than one row? * * * EDIT: The below is what I have for my document.               \documentclass[twoside, a4paper, 12pt]{article}          \usepackage{microtype}     \usepackage{booktabs}     \usepackage{array}     \usepackage{multirow}     \usepackage{siunitx}     \usepackage{caption}          \DeclareRobustCommand*{\tabstack}[1]{%       \begin{tabular}[t]{@{}c@{}}#1\end{tabular}%     }          \setlength{\textwidth}{6.5in}     \setlength{\oddsidemargin}{0in}     \setlength{\evensidemargin}{0in}     \setlength{\parindent}{0pt}     \setlength{\parskip}{1ex plus 0.5ex minus 0.2ex}          \linespread{1.5}          \usepackage[top=1in, bottom=1in, left=1in, right=1in]{geometry}          \raggedbottom      If I do not remove the `12pt` I get the following output for the table: ![enter image description here](http://i.stack.imgur.com/nsHgK.png) But if I remove the `12pt` the table shows up nicely: ![enter image description here](http://i.stack.imgur.com/56d1g.png)


title: How to configure Table of contents itself?

text: The aim is to manually configure the page(s) the TOC itself. The font size of TOC name. Also I need to configure pagestyle of this(these) page(s) The components by using `\titlecontents` I've already did. The next code in .cls doesnt't works               \renewcommand\tableofcontents{\newpage \fontsize{16}{16}                                    \thispagestyle{fancy}                                  }      Similar declaration for chapters works perfectly               \renewcommand\chapter{\newpage                         \thispagestyle{fancy}%                         \global\@topnum 0 %                         \@afterindenttrue%                          \secdef{\@chapter}{\@schapter}}


title: Where's Adv. Editor for me to turn line number on at texstudio?

text: My Texstudio is 2.7.0 portable, running on Windows 8.1. The problem is that I can't turn on the line number display. I consult texstudio: show line numbers in editor, but there's no Adv. Editor in my preference and after searching through all the options, I find nowhere to turn on the line number indicator. The picture below gives more details. ![enter image description here](http://i.stack.imgur.com/JTFKN.png) ![enter image description here](http://i.stack.imgur.com/gPE8C.png)


title: Straight quotes in tabbing

text: I need to display source code using the tabbing environment and \sffamily. (Please note that I cannot use neither listings nor verbatim since I cannot dynamically set my tab stops). I defined an environment sftabbing for doing this. A Minimal Working Example is as follows               \documentclass{article}          \newenvironment{sftabbing}       {\par\sffamily\small\tabbing}       {\endtabbing\par}          \begin{document}          \begin{sftabbing}     INSERT \= INTO Shippers(CompanyName, Phone) \\     \> VALUES ('Federal Express', '02 752 75 75') \\ \\     UPDATE \= Shippers \\     SET \> CompanyName='Fedex' \\     WHERE \> CompanyName='Federal Express' \\ \\     SELECT \> ProductID, ProductName \\     FROM \> Products P \\     WHERE \> EXISTS ( \\     \> SELECT \= * \\     \> FROM \> Orders O JOIN Customers C ON \\     \> \> O.CustomerID = C.CustomerID JOIN \\     \> \> OrderDetails D ON O.OrderID = D.OrderID \\     \> WHERE \> C.Country = 'Germany' AND D.ProductID = P.ProductID )     \end{sftabbing}          \end{document}      However, in this case the quotes are transformed into curly quotes and I would need they remain straight quotes. How to achieve this ? I know that the package upquote achieve this for the verbatim environment. By the way, is there any way to improve the definition of my environment so that I do not need to write `\\\` to change lines ?


title: Offset for node - psbrace around nodes

text: I already asked in the question Describing leaves of a tree with an underbrace using pstree/pstricks how to use a underbrace. Now I'd like to use `\Tfan` instead of `\Tf`, but the trick with the angle doesn't seem to work there (I also don't really understand why it's working with `\Tf`). I have to attach the `psbrace` not at the center of the nodes, but with a bit of offset - the `psbrace` should be a bit longer. Herbert Voß provides a solution in this maillist post, unfortunately I don't understand the methods used there and I can't manage to adopt them to my problem. He suggests basically suggests two methods. One is to replace `\rnode{A}{$a$}` by `\rnode[bc]{A}{$a$\vphantom{gt}}`. But I couldn't manage to get this working also for horizontal space as desired. The second method is to connect the `psbrace` not to `(A)` but to `(!\psGetNodeCenter{A} A.x A.y .2 sub)`. How is this called? How is the syntax of `!whatever` working? How could I adopt this? ![Output for minimal example](http://i.stack.imgur.com/DBhrD.png)               \documentclass[english]{article}          \usepackage{pst-plot}     \usepackage{pstricks}     \usepackage{pst-node}     \usepackage{pst-tree}     \usepackage{pstricks-add}          \usepackage{babel}     \begin{document}         \begin{pspicture}(1,-5)         \pstree[levelsep=50pt,treesep=12pt]{\Tcircle{ }} {             \skiplevel {                \Tf[name=firstleaf]{}               \Tf{}               {\psset{linestyle=none}  \Tr{$\cdots$} }               \Tf[name=lastleaf]{}             }                  \tspace{1.5cm}                  \pstree{\Tr{ }}{\Tfan[name=firstantree]}             {\psset{linestyle=none}  \Tr{$\cdots$} }             \pstree{\Tr{ }}{\Tfan[name=lastantree]}         }         \psbrace*[ref=tC,rot=90,nodesep=5pt]([angle=-165]firstleaf)([angle=-15]lastleaf){leaves}               \psbrace*[rot=90,ref=tC,nodesep=5pt,nodesepA=-5pt](firstantree)(lastantree){subrees}              \end{pspicture}     \end{document}


title: Nice template for writing a speech

text: The title says it all. I think that a beautiful speech deserves to be written in a beautiful template. I can just simply take a basic article or something alike and type the speech, but as a LaTeX geek, I would like the speech to look wonderful. Possibilities for margin notes would be appreciated, they might give some clues to improvise in the middle of the speech.


title: How to output environment content to a file while enclosing content by a box?

text: This is the source:               \documentclass{article}     \begin{document}     \begin{obj}{name-of-obj}     This is a test code.     \begin{equation}     a < b     \end{equation}     \end{obj}     \end{document}      I want to enclose the content of obj by a box. Using `framed` package, it is possible by defining:               \newenvironment{obj}[1]{%     \begin{framed}     }{%     \end{framed}     }      However, at the same time, I want to generate xml file like:               <?xml version="1.0"?>     <root>     <obj name="name-of-obj">     <content mime="application/x-latex"><![CDATA[     This is a test code.     \begin{equation}     a < b     \end{equation}     ]]></content>     </obj>     </root>      (It seems VerbatimOut in `fancyvrb` realizes xml output but it spoils usual dvi output.) How can I implement this feature?


title: Converting LyX to LaTeX

text: I'm working with a colleague who uses LyX (I use LaTeX), and we have a hard time exchanging documents because of conversion issues. Is there any easy way to convert LyX to LaTeX and vice versa?


title: Alignement of tikz-pictures and tables in subfigures

text: Basically, I'm trying to explain the _depth-first search_. I'd like to align my images in the following manner: ![DFS](http://i.stack.imgur.com/YjjjJ.png) I'd like to put two graphs in each single line, with the corresponding 'table' (representing a stack) on the right side of each one:   * There are 14 graphs and 12 tables   * The first graph and the last one have no table. Here's my code:               \documentclass{book}          \usepackage[italian]{babel}     \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage{lmodern}          \usepackage{geometry}     \geometry{a4paper,top=2.5cm,bottom=2.5cm,left=2cm,right=2cm}     \usepackage{tikz}     \usepackage{tkz-graph}     \usepackage{multirow}     \usepackage{subcaption} %using this package     \usepackage{array}          \newcommand{\myblue}{blue!80}     \newcommand{\mylgray}{black!15}          % I'd like to put two graphs in each single line, with the corresponding 'table' on the right side of each one.     % There are 14 graphs and 12 tables.     % The first graph and the last one have no table.          \begin{document}          % graph 1, NO table     \begin{tikzpicture}       \GraphInit[vstyle=Dijkstra]       \Vertex[L=$v_1$]{A}           \Vertex[x=1.4,y=1.2,L=$v_2$]{B}           \Vertex[x=1.4,y=-1.2,L=$v_3$]{C}       \Vertex[x=3.2,y=1.2,L=$v_4$]{D}       \Vertex[x=3.2,y=-1.2,L=$v_5$]{E}       \Vertex[x=4.6,y=0,L=$v_6$]{F}           \tikzset{EdgeStyle/.style={-}}       \Edge (A)(B)       \Edge (A)(C)       \Edge (B)(D)       \Edge (C)(E)       \Edge (B)(E)       \Edge (D)(F)       \Edge (E)(F)     \end{tikzpicture}          % graph 2, with the 1st table     \begin{tikzpicture}       \GraphInit[vstyle=Dijkstra]       \begin{scope}         \SetVertexNormal[Shape=circle,FillColor=black!20]         \Vertex[L=$v_1$]{A}       \end{scope}       \Vertex[x=1.4,y=1.2,L=$v_2$]{B}           \Vertex[x=1.4,y=-1.2,L=$v_3$]{C}       \Vertex[x=3.2,y=1.2,L=$v_4$]{D}       \Vertex[x=3.2,y=-1.2,L=$v_5$]{E}       \Vertex[x=4.6,y=0,L=$v_6$]{F}         \tikzset{EdgeStyle/.style={-}}       \Edge[color=\mylgray](A)(B)       \Edge[color=\mylgray](A)(C)       \Edge[color=\mylgray](B)(D)       \Edge[color=\mylgray](C)(E)       \Edge[color=\mylgray](B)(E)       \Edge[color=\mylgray](D)(F)       \Edge[color=\mylgray](E)(F)     \end{tikzpicture}          % graph 3, with the 2nd table     \begin{tikzpicture}       \GraphInit[vstyle=Dijkstra]       \begin{scope}         \SetVertexNormal[Shape=circle,FillColor=black!20]         \Vertex[L=$v_1$]{A}         \Vertex[x=1.4,y=1.2,L=$v_2$]{B}       \end{scope}             \Vertex[x=1.4,y=-1.2,L=$v_3$]{C}       \Vertex[x=3.2,y=1.2,L=$v_4$]{D}       \Vertex[x=3.2,y=-1.2,L=$v_5$]{E}       \Vertex[x=4.6,y=0,L=$v_6$]{F}         \tikzset{EdgeStyle/.style={-}}       \Edge (A)(B)       \Edge[color=\mylgray](A)(C)       \Edge[color=\mylgray](B)(D)       \Edge[color=\mylgray](C)(E)       \Edge[color=\mylgray](B)(E)       \Edge[color=\mylgray](D)(F)       \Edge[color=\mylgray](E)(F)     \end{tikzpicture}          % graph 4 ...     \begin{tikzpicture}       \GraphInit[vstyle=Dijkstra]       \begin{scope}         \SetVertexNormal[Shape=circle,FillColor=black!20]         \Vertex[L=$v_1$]{A}         \Vertex[x=1.4,y=1.2,L=$v_2$]{B}         \Vertex[x=3.2,y=-1.2,L=$v_5$]{E}       \end{scope}             \Vertex[x=1.4,y=-1.2,L=$v_3$]{C}       \Vertex[x=3.2,y=1.2,L=$v_4$]{D}         \Vertex[x=4.6,y=0,L=$v_6$]{F}         \tikzset{EdgeStyle/.style={-}}       \Edge (A)(B)       \Edge[color=\mylgray](A)(C)       \Edge[color=\mylgray](B)(D)       \Edge[color=\mylgray](C)(E)       \Edge (B)(E)       \Edge[color=\mylgray](D)(F)       \Edge[color=\mylgray](E)(F)     \end{tikzpicture}          \begin{tikzpicture}       \GraphInit[vstyle=Dijkstra]       \begin{scope}         \SetVertexNormal[Shape=circle,FillColor=black!20]         \Vertex[L=$v_1$]{A}         \Vertex[x=1.4,y=1.2,L=$v_2$]{B}         \Vertex[x=1.4,y=-1.2,L=$v_3$]{C}         \Vertex[x=3.2,y=-1.2,L=$v_5$]{E}       \end{scope}               \Vertex[x=3.2,y=1.2,L=$v_4$]{D}         \Vertex[x=4.6,y=0,L=$v_6$]{F}         \tikzset{EdgeStyle/.style={-}}       \Edge (A)(B)       \Edge[color=\mylgray](A)(C)       \Edge[color=\mylgray](B)(D)       \Edge (C)(E)       \Edge (B)(E)       \Edge[color=\mylgray](D)(F)       \Edge[color=\mylgray](E)(F)     \end{tikzpicture}          \begin{tikzpicture}       \GraphInit[vstyle=Dijkstra]       \begin{scope}         \SetVertexNormal[Shape=circle,FillColor=black!20]           \Vertex[L=$v_1$]{A}           \Vertex[x=1.4,y=1.2,L=$v_2$]{B}               \Vertex[x=3.2,y=-1.2,L=$v_5$]{E}       \end{scope}        \begin{scope}         \SetVertexNormal[Shape=circle,FillColor=black!90,TextColor=white]           \Vertex[x=1.4,y=-1.2,L=$v_3$]{C}       \end{scope}              \Vertex[x=3.2,y=1.2,L=$v_4$]{D}         \Vertex[x=4.6,y=0,L=$v_6$]{F}         \tikzset{EdgeStyle/.style={-}}       \Edge (A)(B)       \Edge[style=dashed](A)(C)       \Edge[color=\mylgray](B)(D)       \Edge (C)(E)       \Edge (B)(E)       \Edge[color=\mylgray](D)(F)       \Edge[color=\mylgray](E)(F)     \end{tikzpicture}          \begin{tikzpicture}       \GraphInit[vstyle=Dijkstra]       \begin{scope}         \SetVertexNormal[Shape=circle,FillColor=black!20]           \Vertex[L=$v_1$]{A}           \Vertex[x=1.4,y=1.2,L=$v_2$]{B}               \Vertex[x=3.2,y=-1.2,L=$v_5$]{E}           \Vertex[x=4.6,y=0,L=$v_6$]{F}       \end{scope}        \begin{scope}         \SetVertexNormal[Shape=circle,FillColor=black!90,TextColor=white]           \Vertex[x=1.4,y=-1.2,L=$v_3$]{C}       \end{scope}       \Vertex[x=3.2,y=1.2,L=$v_4$]{D}            \tikzset{EdgeStyle/.style={-}}       \Edge (A)(B)       %\Edge[style=dashed](A)(C)       \Edge[color=\mylgray](B)(D)       \Edge (C)(E)       \Edge (B)(E)       \Edge[color=\mylgray](D)(F)       \Edge (E)(F)     \end{tikzpicture}          \begin{tikzpicture}       \GraphInit[vstyle=Dijkstra]       \begin{scope}         \SetVertexNormal[Shape=circle,FillColor=black!20]           \Vertex[L=$v_1$]{A}           \Vertex[x=1.4,y=1.2,L=$v_2$]{B}               \Vertex[x=3.2,y=-1.2,L=$v_5$]{E}           \Vertex[x=4.6,y=0,L=$v_6$]{F}           \Vertex[x=3.2,y=1.2,L=$v_4$]{D}       \end{scope}        \begin{scope}         \SetVertexNormal[Shape=circle,FillColor=black!90,TextColor=white]           \Vertex[x=1.4,y=-1.2,L=$v_3$]{C}       \end{scope}              \tikzset{EdgeStyle/.style={-}}       \Edge (A)(B)       %\Edge[style=dashed](A)(C)       \Edge[color=\mylgray](B)(D)       \Edge (C)(E)       \Edge (B)(E)       \Edge (D)(F)       \Edge (E)(F)     \end{tikzpicture}          \begin{tikzpicture}       \GraphInit[vstyle=Dijkstra]       \begin{scope}         \SetVertexNormal[Shape=circle,FillColor=black!20]           \Vertex[L=$v_1$]{A}           \Vertex[x=1.4,y=1.2,L=$v_2$]{B}               \Vertex[x=3.2,y=-1.2,L=$v_5$]{E}           \Vertex[x=4.6,y=0,L=$v_6$]{F}             \end{scope}        \begin{scope}         \SetVertexNormal[Shape=circle,FillColor=black!90,TextColor=white]           \Vertex[x=1.4,y=-1.2,L=$v_3$]{C}           \Vertex[x=3.2,y=1.2,L=$v_4$]{D}       \end{scope}              \tikzset{EdgeStyle/.style={-}}       \Edge (A)(B)       %\Edge[style=dashed](A)(C)       \Edge[style=dashed](B)(D)       \Edge (C)(E)       \Edge (B)(E)       \Edge (D)(F)       \Edge (E)(F)     \end{tikzpicture}          \begin{tikzpicture}       \GraphInit[vstyle=Dijkstra]       \begin{scope}         \SetVertexNormal[Shape=circle,FillColor=black!20]           \Vertex[L=$v_1$]{A}           \Vertex[x=1.4,y=1.2,L=$v_2$]{B}               \Vertex[x=3.2,y=-1.2,L=$v_5$]{E}                  \end{scope}        \begin{scope}         \SetVertexNormal[Shape=circle,FillColor=black!90,TextColor=white]           \Vertex[x=1.4,y=-1.2,L=$v_3$]{C}           \Vertex[x=3.2,y=1.2,L=$v_4$]{D}           \Vertex[x=4.6,y=0,L=$v_6$]{F}       \end{scope}              \tikzset{EdgeStyle/.style={-}}       \Edge (A)(B)       %\Edge[style=dashed](A)(C)       %\Edge[style=dashed](B)(D)       \Edge (C)(E)       \Edge (B)(E)       \Edge (D)(F)       \Edge (E)(F)     \end{tikzpicture}          \begin{tikzpicture}       \GraphInit[vstyle=Dijkstra]       \begin{scope}         \SetVertexNormal[Shape=circle,FillColor=black!20]           \Vertex[L=$v_1$]{A}           \Vertex[x=1.4,y=1.2,L=$v_2$]{B}                        \end{scope}        \begin{scope}         \SetVertexNormal[Shape=circle,FillColor=black!90,TextColor=white]           \Vertex[x=1.4,y=-1.2,L=$v_3$]{C}           \Vertex[x=3.2,y=1.2,L=$v_4$]{D}           \Vertex[x=3.2,y=-1.2,L=$v_5$]{E}           \Vertex[x=4.6,y=0,L=$v_6$]{F}       \end{scope}              \tikzset{EdgeStyle/.style={-}}       \Edge (A)(B)       %\Edge[style=dashed](A)(C)       %\Edge[style=dashed](B)(D)       \Edge (C)(E)       \Edge (B)(E)       \Edge (D)(F)       \Edge (E)(F)     \end{tikzpicture}          \begin{tikzpicture}       \GraphInit[vstyle=Dijkstra]       \begin{scope}         \SetVertexNormal[Shape=circle,FillColor=black!20]           \Vertex[L=$v_1$]{A}                              \end{scope}        \begin{scope}         \SetVertexNormal[Shape=circle,FillColor=black!90,TextColor=white]           \Vertex[x=1.4,y=1.2,L=$v_2$]{B}           \Vertex[x=1.4,y=-1.2,L=$v_3$]{C}           \Vertex[x=3.2,y=1.2,L=$v_4$]{D}           \Vertex[x=3.2,y=-1.2,L=$v_5$]{E}           \Vertex[x=4.6,y=0,L=$v_6$]{F}       \end{scope}              \tikzset{EdgeStyle/.style={-}}       \Edge (A)(B)       %\Edge[style=dashed](A)(C)       %\Edge[style=dashed](B)(D)       \Edge (C)(E)       \Edge (B)(E)       \Edge (D)(F)       \Edge (E)(F)     \end{tikzpicture}          \begin{tikzpicture}       \GraphInit[vstyle=Dijkstra]       \SetVertexNormal[Shape=circle,FillColor=black!90,TextColor=white]         \Vertex[L=$v_1$]{A}         \Vertex[x=1.4,y=1.2,L=$v_2$]{B}         \Vertex[x=1.4,y=-1.2,L=$v_3$]{C}         \Vertex[x=3.2,y=1.2,L=$v_4$]{D}         \Vertex[x=3.2,y=-1.2,L=$v_5$]{E}         \Vertex[x=4.6,y=0,L=$v_6$]{F}             \tikzset{EdgeStyle/.style={-}}       \Edge (A)(B)       %\Edge[style=dashed](A)(C)       %\Edge[style=dashed](B)(D)       \Edge (C)(E)       \Edge (B)(E)       \Edge (D)(F)       \Edge (E)(F)     \end{tikzpicture}          \begin{tikzpicture}       \GraphInit[vstyle=Dijkstra]       \SetVertexNormal[Shape=circle]         \Vertex[L=$v_1$]{A}         \Vertex[x=1.4,y=1.2,L=$v_2$]{B}         \Vertex[x=1.4,y=-1.2,L=$v_3$]{C}         \Vertex[x=3.2,y=1.2,L=$v_4$]{D}         \Vertex[x=3.2,y=-1.2,L=$v_5$]{E}         \Vertex[x=4.6,y=0,L=$v_6$]{F}             \tikzset{EdgeStyle/.style={-}}       \Edge (A)(B)       %\Edge[style=dashed](A)(C)       %\Edge[style=dashed](B)(D)       \Edge (C)(E)       \Edge (B)(E)       \Edge (D)(F)       \Edge (E)(F)     \end{tikzpicture}          % graph 2     \begin{tabular}{ |c| }      $v_1(0, -$) \\     \cline{1-1}     \end{tabular}          \bigskip          % graph 3     \begin{tabular}{ |c| }      $v_2(1, -)$ \\     \cline{1-1}      $v_1(0, -$) \\     \cline{1-1}     \end{tabular}          \bigskip          \begin{tabular}{ |c| }      $v_5(2, -)$ \\     \cline{1-1}      $v_2(1, -)$ \\     \cline{1-1}      $v_1(0, -$) \\     \cline{1-1}     \end{tabular}          \bigskip          \begin{tabular}{ |c| }      $v_3(3, -)$ \\     \cline{1-1}      $v_5(2, -)$ \\     \cline{1-1}      $v_2(1, -)$ \\     \cline{1-1}      $v_1(0, -$) \\     \cline{1-1}     \end{tabular}          \bigskip          \begin{tabular}{ |c| }     \multicolumn{1}{c}{$v_3(3, 4)$} \\     \multicolumn{1}{c}{$\uparrow$} \\      $v_5(2, -)$ \\     \cline{1-1}      $v_2(1, -)$ \\     \cline{1-1}      $v_1(0, -$) \\     \cline{1-1}     \end{tabular}          \bigskip          \begin{tabular}{ |c| }      $v_6(5, -)$ \\     \cline{1-1}      $v_5(2, -)$ \\     \cline{1-1}      $v_2(1, -)$ \\     \cline{1-1}      $v_1(0, -$) \\     \cline{1-1}     \end{tabular}          \bigskip          \begin{tabular}{ |c| }      $v_4(6, -)$ \\     \cline{1-1}      $v_6(5, -)$ \\     \cline{1-1}      $v_5(2, -)$ \\     \cline{1-1}      $v_2(1, -)$ \\     \cline{1-1}      $v_1(0, -$) \\     \cline{1-1}     \end{tabular}          \bigskip          \begin{tabular}{ |c| }     \multicolumn{1}{c}{$v_4(6, 7)$} \\     \multicolumn{1}{c}{$\uparrow$} \\      $v_6(5, -)$ \\     \cline{1-1}      $v_5(2, -)$ \\     \cline{1-1}      $v_2(1, -)$ \\     \cline{1-1}      $v_1(0, -$) \\     \cline{1-1}     \end{tabular}          \bigskip          \begin{tabular}{ |c| }     \multicolumn{1}{c}{$v_6(5, 8)$} \\     \multicolumn{1}{c}{$\uparrow$} \\      $v_5(2, -)$ \\     \cline{1-1}      $v_2(1, -)$ \\     \cline{1-1}      $v_1(0, -$) \\     \cline{1-1}     \end{tabular}          \bigskip          \begin{tabular}{ |c| }     \multicolumn{1}{c}{$v_5(2, 9)$} \\     \multicolumn{1}{c}{$\uparrow$} \\      $v_2(1, -)$ \\     \cline{1-1}      $v_1(0, -$) \\     \cline{1-1}     \end{tabular}          \bigskip          \begin{tabular}{ |c| }     \multicolumn{1}{c}{$v_2(1, 10)$} \\     \multicolumn{1}{c}{$\uparrow$} \\      $v_1(0, -$) \\     \cline{1-1}     \end{tabular}          \bigskip          \begin{tabular}{ |c| }     \multicolumn{1}{c}{$v_1(0, 11)$} \\     \multicolumn{1}{c}{$\uparrow$} \\     \\     \cline{1-1}     \end{tabular}          \end{document}      Thank you in advance. Any help would be appreciated.


title: How do I ask beamer to exactly fill up a slide?

text: Inspired by a recent question with a very similar sounding title, I would actually _love_ to implement auto-magic vertical stretch for beamer slides (where, maybe unlike full documents, I think makes a lot of sense!). I've been very interested in controlling the vertical spacing on items in a slide for a long time (to me the default looks too “cramped”), and following ideas such as these, I've also implemented some hacks to manually control the vertical spacing on a slide using only an option such as `[wide=10pt]` on the frame. This is better than manually peppering my slides with `\medskip` and `\bigskip`s, and it kind of works, but not all the time (see below). What I would love, however, is to have all of these done automatically for me, without having to manually tune the required amount of spacing on each slide. So, following the advice on the question from that first link, I came up with something that almost works, but still has plenty deficiencies. For testing I'm using a document that looks like:               \documentclass{beamer}          \newcommand{\addstretch}[1]{\addtolength{#1}{\fill}}     \newcommand\stretchy{\only<2>{%     %  \addstretch{\baselineskip}% Doesn't look very nice       \addstretch{\abovedisplayskip}%       \addstretch{\abovedisplayshortskip}%       \addstretch{\belowdisplayskip}%       \addstretch{\belowdisplayshortskip}%       \addstretch{\parskip}%     }}          \begin{document}          %%%%%%%%%%%%%%%%%%%%%%%%     \begin{frame}{A few paragraphs (with\only<1>{out} stretching)}     \stretchy          As any dedicated reader can clearly see, the Ideal of practical reason is a representation of the things in themselves.          I have shown elsewhere, the phenomena should only be used as a canon for our understanding.          The paralogisms of practical reason are what first give rise to the architectonic of practical reason.     \end{frame}          ...      And the first few pages look like: ![beamer stretch output](http://i.stack.imgur.com/BclpE.png) The full source is here and an annotated version of the generated pdf is here. This approach, just like my previous hack, has several problems:   * Spacing around `equation` or `center` environments doesn't seem to be consistent with other spaces between paragraphs. Also, to me, it's kind of hard to figure out which lengths are the ones responsible for the extra space that I often get, having to resort, again, to manual hacks trying to “kill” the extra space.   * Beamer makes it very difficult to consistently modify spaces within different environments. Notoriously, `itemize` and `columns` environments reset those spacings, so nasty hacks are needed to pass spacing options, e.g., from a frame to an itemize. Sometimes I can make them work for specific combinations, but often in the future I'm prone to find more combinations which I hand't considered and break my desired spacing rules.   * Nested subitems are particularly problematic, just setting the same spacing rules at the beginning of each itemize block makes some of the spaces too big.   * In general, interactions between `itemize`, `equation`, and `center` environments produce—at least to me—somewhat unpredictable results.   * Stretching in a `columns` environment doesn't work at all. Ideally what I would like is to simply have to say:               \begin{frame}[stretch]          ... frame contents ...          \end{frame}      and then have all the contents in the frame nicely vertically stretched and filling up all the space in the slide, with minimum or no manual modifications on the slide content. Do you think we could implement something like that?


title: Creating a custom math symbol from scratch

text: I want to use a special symbol from the Comprehensive LaTeX Symbol List called `\diamondtimes`. Unfortunately, when I include the `MnSymbol` package that provides this symbol, it also affects how other things look like. Since I need only this single symbol, is there any way to **design it from scratch** so that I don't have to include any extra packages? Maybe it can be build by adding something on top of the standard `\diamond` symbol? In fact, I want the diamond produced by `\diamondtimes` to be the same size as `\diamond`, since I plan to use both. **Update:** Since it has such a simple shape, I would prefer to make it from scratch (or put something on top of `\diamond`). Here is the original code from Sym-Geometric.mf:               beginoperator(med_op_size#, 1); "medium diamond times";       pickup rule_pen;       r := w/2 - side_bearing;       draw square(centre, r / sqrt(2), 45);       draw (centre + sqrt .5 * r * dir  45) -- (centre + sqrt .5 * r * dir 225);       draw (centre + sqrt .5 * r * dir 135) -- (centre + sqrt .5 * r * dir 315);     endchar;      What language is this in and can I just reuse this somehow?


title: Changing document format regardless of the document class!

text: Is there any way to change the format of a document such as single/double column, margins, etc regardless of the `documentclass` used? I am using `iopart.cls` and it does not have a `twocolumn` option. how can I make it two column and adjust margins without changing the `documentclass`?


title: Problem with xargs package

text: I am trying to do what I though was fairly simple - use an xargs defined macro in a CS. MWE:               \documentclass{article}     \usepackage{xargs}     \usepackage{etoolbox}     \makeatletter     \def\abx@foo@baz@bar{test}     \def\abx@field@original@default@test{baz}          \newcommandx*{\blx@imc@thefield}[3][1=original,2=default]{\csuse{abx@field@#1@#2@#3}}          \def\blx@getformat#1#2{%       \ifcsundef{abx@#1@\blx@imc@thefield{test}@#2}         {no}         {yes}}          \begin{document}     \blx@getformat{foo}{bar}     \makeatother     \end{document}      For me, this always gives:               ! Missing \endcsname inserted.     <to be read again>                         \begingroup      l.17 \blx@getformat{foo}{bar}      I cannot for the life of me work out why. Running it through tracing, it dies in an internal xargs macro. The `\abx@field@original@default@test` macro works fine on its own, it just doesn't like being in the `\ifcsundef` test. If I replace the xargs `\newcommandx` with a plain `\def` (without optional args, of course), it works. I've tried protecting the newcommandx call, tried passing optional args with defaults to the macro etc. but always get the same error. Any ideas much appreciated.


title: Persuade me to write my thesis in ConTeXt, or not

text: I'm going to write my master thesis in Computer Science, regarding Operation Research, (in Italian). I have about a month and a half to collect the results and write everything down. I have had a good deal of experience with LaTeX, but I can't say I'm "enjoying" it as much as it was the first time, when everything was new and looked cool. Now I know LaTeX's shortcomings and ugliness, and it somehow lost its "beauty" to me. This may seem a stupid remark to do on a typesetting language but it's still reasonable in my opinion. So I'd be curious about what I could get if I changed for change's sake, i.e. try something new, possibly better. The best candidate for this "adventure" would be ContTeXt. I'm fairly sure ConTeXt won't require me to cut&paste my favourite "preamble" into my thesis, as I did with every other tex file instead, and it may allow me to get fancy effects in an easier way than with LaTeX, or get me a more readable source. The cons are obviously the learning curve, having to convert it back to LaTeX if I get to write an article out of it, or lose time to get things done. So, I'm wondering if you had compelling arguments to make me either switch to ConTeXt or stay with LaTeX?


title: Clipping Elements in Tikz

text: I am trying to draw a picture using TikZ in LaTeX. In this example, I have drawn two curved lines and a vertical line. I would like to make the lower curved line only visible to the right of the vertical line. In other words, I would like to clip the lower curved line. However, I do not want to clip the entire picture. I would still like to view the entire top curve. Is this possible in TikZ?               \documentclass{article}     \usepackage{tikz}     \begin{document}          \begin{tikzpicture}[scale=5]     \draw (.1,1.6) .. controls (.6,1.6) and (1.5,1) .. (2,1);     \draw (.1,1) .. controls (.6,1) and (1.5,.4) .. (2,.4);     \draw[dashed] (1,0) -- (1,2);     \end{tikzpicture}          \end{document}


title: \prevdepth error with mdframed and listings

text: I get strange errors with the last versions of `mdframed` (v 1.4) and `listings` (v 1.4). Here is a minimal example:               \documentclass{minimal}     \usepackage{mdframed}     \usepackage{listings}          \begin{document}     \begin{mdframed}     \begin{lstlisting}     blah     \end{lstlisting}     bloh     \end{mdframed}     \end{document}      The error I get is > You can't use `\prevdepth` in horizontal mode. which I don't really understand... Any pointer as to what is going on would be greatly appreciated.


title: How do I make the list of figures use an automatically shortened version of the caption?

text: Many of my captions are quite long and appear as 5 or more lines in the list of figures. To save me the effort of using the optional argument in the caption are there any packages that can produce the list of figures with just the first line and some sort of symbol to indicate that that is not the full caption?


title: xindy for ancient Egyptian transliteration

text: I am preliminarily trying to work with creating a couple of indexes with xindy in a XeLaTeX file. One index will be the normal index about names, and I may disturb the list later on. A second list is about transliterated words As I use ancient Egyptian hieroglyphs transliterated, I need to create an index being ordered in a certain order: Unicode A722 should be the first letter, then Unicode A357+i as second letter, Unicode A725 as third and so forth (As those signs do not appear in the majority of the normal fonts, I prefer to give the code out of it). The order is the usual academic order, but it is completely artificial, and not officially supported by any of the languages normally used in XeLaTeX (unless Ancient Egyptian has become a modern language and I did not know about it...). Is there any information online in order to create a new ordering system for the index, or anyone on the list has any suggestion about a way to proceed?


title: When I cite an author twice a long line is drawn instead of the name

text: I create my bibliography using JabRef and include it via:               \bibliographystyle{amsalpha}      \bibliography{foo}       When I have two different citations from the same author in the second citation a long line is drawn instead of the authors name. How can I fix this?


title: What encoding and line-feeds should I use in my TeX files to ensure portability?

text: In many of the editors and tools I use, I'm given the option to choose an "encoding" as well as a choice among "new lines". For example, in BBEdit, I am given the following for encoding ![enter image description here](http://i.stack.imgur.com/00f1E.png) and this ![enter image description here](http://i.stack.imgur.com/5y4wk.png) for new lines. Are there settings for these that are more likely to ensure portability across platforms and tools? Are there corresponding settings or options in LaTeX code that need to match the choices made here?


title: Macro saving a value for next run

text: I need a macro, which saves a string (like the content of a label) to the aux file. During the next run, there should be a macro checking, if that string has been set in the last run or not. My solution so far presented as an example:               \documentclass{minimal}     \usepackage{etoolbox}          \makeatletter     \def\csxdefaux#1{%         \protected@write\@mainaux{}{%             \expandafter\string\expandafter\xdef\expandafter\string\csname #1\endcsname{}%         }%     }     \makeatother          \begin{document}         \ifcsdef{setValue}{value set}{value \emph{not} set}         \csxdefaux{setValue}              \ifcsdef{strange:value}{strange value set}{strange value \emph{not} set}         \csxdefaux{strange:value}     \end{document}      This results (after multiple compilations) in: ![enter image description here](http://i.stack.imgur.com/GJOFc.png) So although the pair of `\csxdefaux` and `\ifcsdef` macros obviously works for normal strings, it fails for strings with special characters. What would be a good way to achieve the same as with my solution but supporting a wide range of special characters like colons, digits, umlauts?


title: Different languages in my bibliography biber problem

text: I am starting to use biber with biblatex for my bibliography. I cite books in French and Spanish therefore several books and articles have accented letters in titles or author's names. I hadn't had any problem compiling my .bib file, which I have been using for two now, with bibtex. But now with biber there seems to be problems with some of my entries, not all though. I am using TexShop and compile with Latex. Here you'll find some lines from my preamble that might be relevant:               \usepackage[british]{babel}      \usepackage{csquotes}      \usepackage[backend=biber,style=authoryear]{biblatex}           \addbibresource{MyBib.bib}           \usepackage[colorlinks, allcolors=blue, breaklinks]{hyperref}       \begin{document}       \autocite{key}            \end{document}      When I run the bibtex (the graphic option is called bibtex buy I am using biber as backend) I get the following message at the very beginning: > "\x{fffd}" does not map to ascii at > /var/folders/1t/gfg6lx791ds0hfh1hxskk8y40000gp/T/par-696675636873/cache-955b5cd96386991ca6623279060097e4c757d28e/inc/lib/Biber/Utils.pm > line 932. Trying to compile with Latex again I get the message: > Undefined control sequence. St\x{fffd}phanie This argument corresponds to the author name in one of my entries. I modified the entry as shown below:               St{\'e}phanie      in my .bib (JabRef), but this does not solve the issue. What can I do? And is there a way of finding a solution that does not involve going through my entire bibliography database changing characters one by one?


title: change label of a single theorem using ntheorem

text: My question refers to the minimal example pasted below. I would like to change the title of the second theorem (the one with yyy) to `Theorem 7'` without affecting the theorem counter. That is, the theorems should be labelled as follows:               Theorem 1 xxx     Theorem 7' yyy     Theorem 2 zzz     Theorem 3 uuu      Possibly this can be done using `\setcounter`, but this does not solve the problem with the prime after the 7. So my question is whether it is possible to manipulate particular theorem labels?               \documentclass{scrartcl}     \usepackage{ntheorem}     \newtheorem{thm}{Theorem}        \begin{document}     \begin{thm} %Theorem 1     xxx     \end{thm}     \begin{thm} % Theorem 7'     yyy     \end{thm}     \begin{thm} %Theorem 2     zzz     \end{thm}     \begin{thm} %Theorem 3     uuu     \end{thm}     \end{document}      * * * I am getting back to Marco Daniels answer. Consider the following three minimal examples. I do not understand why the first doesn't work while the second and third is fine. Can anyone tell me? First example (produces strange error):               \documentclass{article}          \usepackage[thmmarks,hyperref]{ntheorem}      \usepackage[colorlinks=false, citecolor=blue, pdfstartview=FitH,plainpages=false] {hyperref}          \newtheorem{thm}{Theorem}                                 \newtheorem{prop}[thm]{Proposition}          \begin{document}     \begingroup     \def\thethm{\ref{a}'}     \addtocounter{thm}{-1}     \begin{prop}      yyy     \label{test}     \end{prop}     \endgroup     \end{document}      Second example, hyperref removed, otherwise identical code (works fine):               \documentclass{article}          \usepackage[thmmarks]{ntheorem}           \newtheorem{thm}{Theorem}                                 \newtheorem{prop}[thm]{Proposition}          \begin{document}     \begingroup     \def\thethm{\ref{a}'}     \addtocounter{thm}{-1}     \begin{prop}      yyy     \label{test}     \end{prop}     \endgroup     \end{document}      Third example, code as in the first example but \thethm is changed (also works well):               \documentclass{article}          \usepackage[thmmarks,hyperref]{ntheorem}      \usepackage[colorlinks=false, citecolor=blue, pdfstartview=FitH,plainpages=false] {hyperref}          \newtheorem{thm}{Theorem}                                 \newtheorem{prop}[thm]{Proposition}          \begin{document}     \begingroup     \def\thethm{1'}     \addtocounter{thm}{-1}     \begin{prop}      yyy     \label{test}     \end{prop}     \endgroup     \end{document}      I am really confused about this. Cannot interpret the error message.


title: Two labels in one caption possible?

text: In a lot of journals it is common to have single digit figure numbers and denote parts in the figures as (a), (b), and so on. I wanted to use a similar style. After reading the documentation to the `caption` package and the `cleveref` package I did not find anything similar. I do not want to break up the picture in two parts and use `subfigure` with two captions but keep it all in one. Is there an easy way to realize this? My example looks as follows without the correct references:               \documentclass{scrbook}          \usepackage{caption}     \usepackage{cleveref}          \begin{document}          \begin{figure}       \centering       a \rule{10pt}{10pt} \hspace{1cm} b \rule{15pt}{15pt}        \caption{Common text here. \label{part_a}\textbf{(a)} Description of a. \label{part_b}\textbf{(b)} Description of b. }      \end{figure}           This should read fig. 0.1a and fig. 0.1b but it is only \cref{part_a} and \cref{part_b}.          \end{document}      This gives this output: ![output image](http://i.stack.imgur.com/gNqKf.png)


title: Putting quotation marks in TeX document

text: Have to put double quotes mark for a sentence. I am using Xetex. For the input string ```The work''`, the output is also ```The work''` whereas it should be `“The work”`. Below is the list of packages and languages I am using.               \usepackage{amssymb}     \usepackage{polyglossia}     \usepackage{amsmath}     \setdefaultlanguage{english} \setotherlanguage{sanskrit}     \usepackage{fontspec} \setmainfont{Times New Roman}     \newfontfamily\devanagarifont[Scale=MatchUppercase]{Mangal.TTF}     \newfontfamily\devtransl[Mapping=DevRom]{Times New Roman}     \usepackage{graphicx}          \begin{document}     ``The work''     \end{document}


title: Using a package only for certain tables

text: I am using the `tabularx` environment since it the `X` component of the columns is very useful and necessary for the tables I want to produce. However, a single one of my tables is longer that a page, and I would like it to break over the page, without any of my other `tabularx` tables breaking over the page. Is there a way of doing this? I have found the `ltablex` package that will do the job of breaking the tables, but I don't wish it to apply to all my tables. Is it some way of using `\renewenvironment`?               \documentclass{article}      \usepackage{fullpage}      \usepackage{tabularx}      \usepackage{ltablex}    % This is the package I would like to apply to a single table     \usepackage{bigstrut}      \begin{document}           \begin{center}     \begin{tabularx}{\textwidth}{|l X l|}     \hline     & \textbf{HEADING} & \textbf{HEADING} \bigstrut \tabularnewline     \hline     \textbf{Number} & \textbf{WORDS} & \textbf{WORD} \bigstrut[t] \tabularnewline     & TEXT & \tabularnewline     \textbf{Number} & \textbf{WORDS} & \textbf{WORD} \tabularnewline     & TEXT & \tabularnewline     \textbf{Number} & \textbf{WORDS} & \textbf{WORD} \tabularnewline     & TEXT & \tabularnewline     \textbf{Number} & \textbf{WORDS} & \textbf{WORD} \tabularnewline     & TEXT & \tabularnewline     \textbf{Number} & \textbf{WORDS} & \textbf{WORD} \tabularnewline     & TEXT & \tabularnewline     \textbf{Number} & \textbf{WORDS} & \textbf{WORD} \tabularnewline     & TEXT & \tabularnewline     \textbf{Number} & \textbf{WORDS} & \textbf{WORD} \tabularnewline     & TEXT & \tabularnewline     \textbf{Number} & \textbf{WORDS} & \textbf{WORD} \bigstrut[t] \tabularnewline     & TEXT & \tabularnewline     \end{tabularx}     \end{center}     \end{document}      This has enough lines of text in it to go over the page length. I was thinking along the lines bringing the `ltablex` package down into the environment, and I need to retain the `X` functionality of the `tabularx` environment


title: threeparttable \midrule-sized space

text: I want to add some space between rows of my threeparttable. One way is to add `\midrule`s, but that adds lines which are visually confusing. Is there a `\midspace` command? Side question: Is `threeparttable` the best table to use in `memoir`?


title: How to specify transparent colors?

text: What options are there to specify transparent colors, say the background in the example below? I thought `xcolor` would be able to do this but I can not find any reference to "alpha" or "transparency" in the manual.               \documentclass{article}     \usepackage{listings,xcolor}          \lstset{frame=shadowbox, backgroundcolor=\color{green}}          \title{Transparency test}          \begin{document}     \maketitle     \begin{lstlisting}     Hello, world.     \end{lstlisting}     \end{document}      Is it possible to do it with XeLaTeX or LuaLaTeX?


title: Which latex editor is able to access all documentation of all packages?

text: I am looking for an editor or documentation browser that can look up all commands from all packages, for eg I want to for 'whiledo' then I want a window or pane to pop up with the required reference information. Also one forgets the command so it would be helpful to type in 'loop commands' and a list of possible commands is displayed. `texdoc` does not do this as it requires a package name. The Perl pod browser works in this way.


title: colour cells in a table according to the value

text: I have seen the following code in response to another similar question that works when the numbers in the table are between 0 and 100. How do I have to modify this code so that it works for numbers between 0 and 1 (or any arbitrary range?). My idea is that I need to modify the line:               \cellcolor{black!##1}      so that it somehow multiples this by 100, but I can't figure out how to do this. Here is the full code that works for the numbers given (between 0 and 100) - I would like to do the same for number between 0 and 1. Thanks               \documentclass{article}     \usepackage[table]{xcolor}     \usepackage{pgfplotstable}          \pgfplotstableset{         color cells/.style={             col sep=comma,             string type,             postproc cell content/.code={%                     \pgfkeysalso{@cell content=\rule{0cm}{2.4ex}\cellcolor{black!##1}\pgfmathtruncatemacro\number{##1}\ifnum\number>50\color{white}\fi##1}%                     },             columns/x/.style={                 column name={},                 postproc cell content/.code={}             }         }     }          \begin{document}     \begin{table}\caption{Correlation or something}     \centering     \pgfplotstabletypeset[color cells]{     x,a,b,c,d     a,90,10.5,0,0     b,0,80,10,10     c,0,0,95,5     d,0,10,5,85     }     \end{table}     \end{document}


title: Kerning subscripts

text: \newcommand{\EQ}{\begin{equation}}     \newcommand{\EN}{\end{equation}}     \EQ     \vec{F}_{TOTAL} = \vec{F}_g + \vec{F}_{OTHER}     \EN      The small g after F looks like it's hanging in space. Using               \EQ     \vec{F}_{\hspace{-0.2ex}TOTAL} = \vec{F}_{\hspace{-0.4ex}g} +          \vec{F}_{\hspace{-0.3ex}OTHER}     \EN      works, but seems a little inefficient, and requires different numbers for different subscripts. Is there any other way of dealing with this? added: minimal working program with \mkern               \documentclass[10pt, twoside]{book}     \usepackage[utf8]{inputenc}     \usepackage{microtype}          \usepackage[USenglish]{babel}                         \usepackage[T1]{fontenc}     \usepackage[urw-garamond]{mathdesign}     \usepackage{garamondx}     \usepackage{amsmath, amsthm} %, amssymb}     \newcommand{\EQ}{\begin{equation}}     \newcommand{\EN}{\end{equation}}          \renewcommand{\vec}[1]{\mathbf{#1}}                 \newcommand{\vecdd}[1]{\ddot{\mathbf{#1}}} %bold vector with double derivatvie dot               \begin{document}          \EQ     \vec{F}_{\mkern -2mu TOTAL} = \vec{F}_{\mkern -5mu gn} + \vec{F}_{\mkern -2mu OTHER}     \EN     \end{document}


title: Use the beta variant

text: Is it possible to use the curled beta: ϐ (U+03D0) in a formula? There are variants available for `\epsilon`, `\theta`, `\phi`, `\rho`, `\sigma` and `\phi` with `\varepsilon`, `\vartheta`, etc... but there is no `\varbeta`. Why is that?


title: Will TeX become mainstream one day?

text: I remember starting LaTeX when I was in the last year of my undergraduate studies .I was fascinated by a book in Industrial Organisation, partly because it was a good book per se, but also because I liked the way it looked like. In the very first pages it stated that it was prepared in TeX. This made me curious, and triggered my mind to want to know more about it. After doing my little research, I found Mittelbach et al. sublime companion for LaTeX in the library. It took me a while to figure out how to start producing some work, even the simplest cases. I firstly read about the WYSIWYG editors and I used LyX for a couple of months. However I was not satisfied with it and I wanted to actually use a 'real' editor. Therefore I switched to TeXmaker that I use until today along with TeXStudio (which I like better). My point is that this 'journey' is not simple, as it requires a lot of effort, time and research (luckily this forum helps a lot in this aspect). Given the, admittedly, struggle of producing beautiful papers, and the possible enhancements, where do you see TeX going? Will it become mainstream or is this just a dream?


title: How to use variables inside a command when generating a table?

text: I'm not sure about the question, since I do not really understand why it fails. I tend to use commands to generate my tables, and when I use the `#1` style of accessing the arguments it works. But now I have a wider dataset, and need to use this trick: How to make define a command that takes more than 9 arguments to get all the arguments together in one command. Minimal example:               \documentclass[]{article}     \begin{document}          \newcommand\rowdata[2]{%         \def\firstPoint{#1}%         \def\secondPoint{#2}%         \createRow         % #1 & #2 \\ would work.     }     \newcommand\createRow{ %         \wlog{\firstPoint \secondPoint} % it appears in the log          \firstPoint & \secondPoint \\ % this fails     }          \begin{table}         \begin{tabular}{l l}             \rowdata{a}{b}             \rowdata{d}{b}             \rowdata{a}{c}         \end{tabular}     \end{table}     \end{document}      And this gives the following error:               ! Undefined control sequence.     \createRow ...dPoint } \firstPoint & \secondPoint                                                        \\      l.16        \rowdata{a}{b}      If I remove the `&` it does work, but then I cannot create a table anymore. So what is happening here?


title: How to draw Latex multiple bar chart with error bar

text: Can someone help me with putting error bars on multiple bar graphs. This is what I currently have and it doesn't look any good, so far :(               \begin{figure}     \begin{tikzpicture}     \begin{axis}[     x tick label style={     /pgf/number format/1000 sep=},     ylabel=Accuracy,     enlargelimits=0.05,     legend style={at={(0.5,-0.15)},     anchor=north,legend columns=-1},     ybar interval=0.7,     ]          \addplot+[error bars/.cd,     y dir=both,y explicit]     coordinates {         (1,80) +- (0.0, 0.5)         (2,81) +- (0.0, 1.5)         (3,90) +- (0.0, 1.5)         (4,92) +- (0.0, 0.6)         (5,93) +- (0.0, 0.9)};     \addplot+[error bars/.cd,     y dir=both,y explicit]     coordinates {         (1,90) +- (0.0, 0.5)         (2,86) +- (0.0, 1.5)         (3,80) +- (0.0, 1.5)         (4,82) +- (0.0, 0.6)         (5,83) +- (0.0, 0.9)};     \addplot+[error bars/.cd,     y dir=both,y explicit]     coordinates {         (1,80) +- (0.0, 0.5)         (2,81) +- (0.0, 1.5)         (3,90) +- (0.0, 1.5)         (4,92) +- (0.0, 0.6)         (5,93) +- (0.0, 0.9)};     \addplot+[error bars/.cd,     y dir=both,y explicit]     coordinates {         (1,90) +- (0.0, 0.5)         (2,86) +- (0.0, 1.5)         (3,80) +- (0.0, 1.5)         (4,82) +- (0.0, 0.6)         (5,83) +- (0.0, 0.9)};     \addplot+[error bars/.cd,     y dir=both,y explicit]     coordinates {         (1,90) +- (0.0, 0.5)         (2,86) +- (0.0, 1.5)         (3,80) +- (0.0, 1.5)         (4,82) +- (0.0, 0.6)         (5,83) +- (0.0, 0.9)};     \legend{A,B,C,D,E}     %\draw ({rel axis cs:0,0}|-{axis cs:0,0}) -- ({rel axis cs:1,0}|-{axis cs:0,0});     \end{axis}     \end{tikzpicture}     \end{figure}


title: Label an angle in a triangle

text: I want to label $\angle ACB$ with an arc and $\theta$ outside the arc.               \documentclass[10pt]{amsart}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}     \documentclass[10pt]{amsart}     \usepackage{mathtools,array}     \usepackage{tikz}     \usetikzlibrary{calc,positioning,intersections,quotes,decorations.markings}     \begin{document}         \begin{tikzpicture}         \path (110:4.5) coordinate (A) (-30:3) coordinate (B) (0:0) coordinate (C);         \draw (A)           -- (B) node [at start, above left] {$A$} node [midway, right] {$c$}           -- (C) node [at start, right]      {$B$} node [midway, below] {$a$}           -- (A) node [at start, below]      {$C$} node [midway, left]  {$b$}           -- cycle;         \coordinate (P) at ($(B)!(A)!(C)$);         \draw [dashed] (A) -- (P) node [below, left]{$P$} node [midway, left]{$h$} -- (C);         \tkzMarkRightAngle(A,P,B);         \tkzMarkAngle[size=0.25cm,color=cyan](B,C,A)         \end{tikzpicture}     \end{document}


title: Spacing around align environments

text: I first learnt to use LaTeX using the equation environment, and liked to set out my .tex document with spacing around equations. Now that I use the align environment, putting this additional space before an align will make a large space in my document (compared to a barely noticeable space), which I do not like. Is there a way to edit aligns so that they have behave similarly to equations in this respect? For example:               \documentclass[a4paper]{article}     \usepackage{amsmath}          \begin{document}              text text text text text text text text text text text text          \begin{equation*}             a+b=c         \end{equation*}              text text text text text text text text text text text text          \begin{align*}             a+b=c         \end{align*}              text text text text text text text text text text text text               \begin{equation*}             a+b=c         \end{equation*}              text text text text text text text text text text text text               \begin{align*}             a+b=c         \end{align*}              text text text text text text text text text text text text                \end{document}


title: Decision node on TikZ (diamond)

text: I'm trying to find a way to tame decision nodes (diamond shape) but I just can't do a thing! If I put a formula inside the diamond and if that formula is a little big the shape just grows like a square and becomes to high. I want the decision node to look like this http://sixsigmaspc.com/protectedimages/blockdiagram-flowchart-symbols.gif and not like this: ![enter image description here](http://i.stack.imgur.com/9r6TY.png)               \documentclass{article}     \usepackage{amsmath,tikz}     \usetikzlibrary{shapes.geometric}          \begin{document}     \tikzstyle{decision} = [diamond, draw, text badly centered, inner sep=3pt]          \begin{tikzpicture}         \node [decision] {$\lVert f(\mathbf{x}^{0}) \rVert < \varepsilon_{g}$};     \end{tikzpicture}     \end{document}      I thank you all for the help you can give me. :)


title: OTF and VFB fonts in LaTeX?

text: I have a `ttf` font that I like and I would like to use it in my documents, the creators of this fonts are also sharing a folder called `src` with `otf` and `vfb` files in it with this patterns:   * _Font_ -Regular.otf   * _Font_ -Regular.vfb   * _Font_ -Regular-OTF.vfb   * _Font_ -Regular-TTF.vfb Since I haven't found a really good guide about how to make a LaTeX font out of a `ttf` one, I'm wondering if and how I can use those files in my LaTeX documents, thanks.


title: Problem of different spaces between subscripts and letters in math mode

text: In math mode, the spaces between subscripts and letters are not always the same, but depending on the preceding letters! See e.g. (different colours indicate different spaces)![enter image description here](http://i.stack.imgur.com/3ESZT.png) Is it the feature of packages `{amssymb}` `{amsmath}` or .... Equations using `{newtxmath}` math font:                   \begin{equation}         \left.         \begin{array} {c}         \displaystyle \frac{\partial\epsilon_f}{\partial t} + \nabla \cdot (\epsilon_f \boldsymbol{u}_f) = 0 \\         \displaystyle \frac{\partial  (\rho_f \epsilon_f \boldsymbol{u}_f)}{\partial t} + \nabla \cdot (\rho_f \epsilon_f \boldsymbol{u}_f \boldsymbol{u}_f) = -\epsilon_f \nabla p + \mu \nabla^2(\epsilon_f \boldsymbol{u}_f) + \boldsymbol{f}_b         \end{array}         \right\}         \end{equation}      Is there any global setting/solution for this issue, i.e. to adjust the spacing automatically depending on the letters and subscripts? **EDIT** : put `{bm}` package after `amsmath` and `font` packages will significantly improve the spacing.


title: Glossaries \glossarypostamble - set text single spaced

text: I use the package setspace to set my text single spaced. My list of tables, list of abbreviations and so on I set with the command `\onehalfspacing`. Furthermore I need an annotation in all lists. This annotation should be set single spaced too. It works fine for all my lists. But not for the lists of the package glossaries. I defined the following:               \renewcommand{\glossarypostamble}{\protect\singlespacing\par\vspace{5ex}\noindent\textbf{Anmerkung:}      Alle im Text verwendeten Abkürzungen sind im Abkürzungsverzeichnis aufgeführt. Bei der ersten Verwendung wurden      diese ausgeschrieben und danach die Erklärung in Klammern angefügt. Bei einer erneuten Verwendung des Begriffs      wurde nur die Abkürzung benutzt. Geläufige Abkürzungen und Firmennamen sind nicht aufgeführt.}      Do you have any idea? PS: To set all my lists single spaced I defined this:               \AfterTOCHead{\singlespacing}          \renewcommand*{\glossarypreamble}{\singlespacing}          \makeatletter     \preto\blx@env@bibliography{\singlespacing}     \makeatother


title: pgfmolbio: Undefined control sequence \pmbchromatogram

text: I was trying to make a chromatogram today using `pgfmolbio` using pdfTeX from TeX Live 2013. The code I was using is:               \documentclass{article}      \usepackage[chromatogram]{pgfmolbio}     \pagestyle{empty}     \begin{document}     \pmbchromatogram{seq.scf}     \end{document}       The code gives me following error:               ./figures-1.tex:5: Undefined control sequence.     l.5 \pmbchromatogram                     {seq.scf}      I tried my best to follow the manual page. However, even if I load the `convert` module, the same error message still occurs. I saw `Package ifluatex Info: LuaTeX not detected.` in the log. Could this be the source of the problem? edit: I also tried run the file with `luatex` after read Paul's comment. It gives me the following result:               This is LuaTeX, Version beta-0.76.0-2013061817 (rev 4627)       restricted \write18 enabled.     (./figures-1.tex     ! Undefined control sequence.     l.1 \documentclass                     {article}     ?       edit: Here is the result from `lualatex`.               This is LuaTeX, Version beta-0.76.0-2013061817 (rev 4627)       restricted \write18 enabled.     (./figures-1.tex     LaTeX2e <2011/06/27>     Babel <3.9f> and hyphenation patterns for 78 languages loaded.     (/usr/local/texlive/2013/texmf-dist/tex/latex/base/article.cls     Document Class: article 2007/10/19 v1.4h Standard LaTeX document class     (/usr/local/texlive/2013/texmf-dist/tex/latex/base/size10.clo))     (/usr/local/texlive/2013/texmf-dist/tex/lualatex/pgfmolbio/pgfmolbio.sty     (/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/ifluatex.sty)     (/usr/local/texlive/2013/texmf-dist/tex/luatex/luatexbase/luatexbase-modutils.s     ty     (/usr/local/texlive/2013/texmf-dist/tex/luatex/luatexbase/luatexbase-loader.sty          (/usr/local/texlive/2013/texmf-dist/tex/luatex/luatexbase/luatexbase-compat.sty     )     (/usr/local/texlive/2013/texmf-dist/tex/luatex/luatexbase/luatexbase.loader.lua)     )     (/usr/local/texlive/2013/texmf-dist/tex/luatex/luatexbase/modutils.lua))     (/usr/local/texlive/2013/texmf-dist/tex/luatex/lualibs/lualibs.lua)     ! LuaTeX error ...xlive/2013/texmf-dist/tex/luatex/luatexbase/modutils.lua:57: m     odule 'pgfmolbio' not found:         no field package.preload['pgfmolbio']         [luatexbase.loader] Search failed         [kpse lua searcher] file not found: 'pgfmolbio'         [kpse C searcher] file not found: 'pgfmolbio'     stack traceback:         [C]: in function 'require'         ...xlive/2013/texmf-dist/tex/luatex/luatexbase/modutils.lua:57: in function 're     quire_module'         [string "\directlua "]:1: in main chunk.     \lltxb@requirelua ...xluaescapestring {#2}" \fi )}          l.44 \fi      The log file is attached:               This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013) (format=pdflatex 2013.7.20)  29 JUL 2013 23:36     entering extended mode      \write18 enabled.      %&-line parsing enabled.     **figures-1.tex     (./figures-1.tex     LaTeX2e <2011/06/27>     Babel <3.9f> and hyphenation patterns for 78 languages loaded.     (/usr/local/texlive/2013/texmf-dist/tex/latex/base/article.cls     Document Class: article 2007/10/19 v1.4h Standard LaTeX document class     (/usr/local/texlive/2013/texmf-dist/tex/latex/base/size10.clo     File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)     )     \c@part=\count79     \c@section=\count80     \c@subsection=\count81     \c@subsubsection=\count82     \c@paragraph=\count83     \c@subparagraph=\count84     \c@figure=\count85     \c@table=\count86     \abovecaptionskip=\skip41     \belowcaptionskip=\skip42     \bibindent=\dimen102     )     (/usr/local/texlive/2013/texmf-dist/tex/lualatex/pgfmolbio/pgfmolbio.sty     Package: pgfmolbio 2012/10/01 v0.2 Molecular biology graphs with TikZ          (/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/ifluatex.sty     Package: ifluatex 2010/03/01 v1.3 Provides the ifluatex switch (HO)     Package ifluatex Info: LuaTeX not detected.     )     (/usr/local/texlive/2013/texmf-dist/tex/latex/xcolor/xcolor.sty     Package: xcolor 2007/01/21 v2.11 LaTeX color extensions (UK)          (/usr/local/texlive/2013/texmf-dist/tex/latex/latexconfig/color.cfg     File: color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive     )     Package xcolor Info: Driver file: pdftex.def on input line 225.          (/usr/local/texlive/2013/texmf-dist/tex/latex/pdftex-def/pdftex.def     File: pdftex.def 2011/05/27 v0.06d Graphics/color for pdfTeX          (/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/infwarerr.sty     Package: infwarerr 2010/04/08 v1.3 Providing info/warning/error messages (HO)     )     (/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/ltxcmds.sty     Package: ltxcmds 2011/11/09 v1.22 LaTeX kernel commands for general use (HO)     )     \Gread@gobject=\count87     )     Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1337.     Package xcolor Info: Model `hsb' substituted by `rgb' on input line 1341.     Package xcolor Info: Model `RGB' extended on input line 1353.     Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1355.     Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1356.     Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1357.     Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1358.     Package xcolor Info: Model `Gray' substituted by `gray' on input line 1359.     Package xcolor Info: Model `wave' substituted by `hsb' on input line 1360.          (/usr/local/texlive/2013/texmf-dist/tex/latex/graphics/dvipsnam.def     File: dvipsnam.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)     )     (/usr/local/texlive/2013/texmf-dist/tex/latex/xcolor/svgnam.def     File: svgnam.def 2007/01/21 v2.11 Predefined colors according to SVG 1.1 (UK)     ))     (/usr/local/texlive/2013/texmf-dist/tex/latex/pgf/frontendlayer/tikz.sty     (/usr/local/texlive/2013/texmf-dist/tex/latex/pgf/basiclayer/pgf.sty     (/usr/local/texlive/2013/texmf-dist/tex/latex/pgf/utilities/pgfrcs.sty     (/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/utilities/pgfutil-common.te     x     \pgfutil@everybye=\toks14     )     (/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/utilities/pgfutil-latex.def     \pgfutil@abb=\box26     (/usr/local/texlive/2013/texmf-dist/tex/latex/ms/everyshi.sty     Package: everyshi 2001/05/15 v3.00 EveryShipout Package (MS)     ))     (/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/utilities/pgfrcs.code.tex     Package: pgfrcs 2010/10/25 v2.10 (rcs-revision 1.24)     ))     Package: pgf 2008/01/15 v2.10 (rcs-revision 1.12)     (/usr/local/texlive/2013/texmf-dist/tex/latex/pgf/basiclayer/pgfcore.sty     (/usr/local/texlive/2013/texmf-dist/tex/latex/graphics/graphicx.sty     Package: graphicx 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)          (/usr/local/texlive/2013/texmf-dist/tex/latex/graphics/keyval.sty     Package: keyval 1999/03/16 v1.13 key=value parser (DPC)     \KV@toks@=\toks15     )     (/usr/local/texlive/2013/texmf-dist/tex/latex/graphics/graphics.sty     Package: graphics 2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)          (/usr/local/texlive/2013/texmf-dist/tex/latex/graphics/trig.sty     Package: trig 1999/03/16 v1.09 sin cos tan (DPC)     )     (/usr/local/texlive/2013/texmf-dist/tex/latex/latexconfig/graphics.cfg     File: graphics.cfg 2010/04/23 v1.9 graphics configuration of TeX Live     )     Package graphics Info: Driver file: pdftex.def on input line 91.     )     \Gin@req@height=\dimen103     \Gin@req@width=\dimen104     )     (/usr/local/texlive/2013/texmf-dist/tex/latex/pgf/systemlayer/pgfsys.sty     (/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/systemlayer/pgfsys.code.tex     Package: pgfsys 2010/06/30 v2.10 (rcs-revision 1.37)     (/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex     \pgfkeys@pathtoks=\toks16     \pgfkeys@temptoks=\toks17          (/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/utilities/pgfkeysfiltered.c     ode.tex     \pgfkeys@tmptoks=\toks18     ))     \pgf@x=\dimen105     \pgf@y=\dimen106     \pgf@xa=\dimen107     \pgf@ya=\dimen108     \pgf@xb=\dimen109     \pgf@yb=\dimen110     \pgf@xc=\dimen111     \pgf@yc=\dimen112     \w@pgf@writea=\write3     \r@pgf@reada=\read1     \c@pgf@counta=\count88     \c@pgf@countb=\count89     \c@pgf@countc=\count90     \c@pgf@countd=\count91          (/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/systemlayer/pgf.cfg     File: pgf.cfg 2008/05/14  (rcs-revision 1.7)     )     Package pgfsys Info: Driver file for pgf: pgfsys-pdftex.def on input line 900.          (/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-pdftex.d     ef     File: pgfsys-pdftex.def 2009/05/22  (rcs-revision 1.26)          (/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-common-p     df.def     File: pgfsys-common-pdf.def 2008/05/19  (rcs-revision 1.10)     )))     (/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/systemlayer/pgfsyssoftpath.     code.tex     File: pgfsyssoftpath.code.tex 2008/07/18  (rcs-revision 1.7)     \pgfsyssoftpath@smallbuffer@items=\count92     \pgfsyssoftpath@bigbuffer@items=\count93     )     (/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/systemlayer/pgfsysprotocol.     code.tex     File: pgfsysprotocol.code.tex 2006/10/16  (rcs-revision 1.4)     ))     (/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/basiclayer/pgfcore.code.tex     Package: pgfcore 2010/04/11 v2.10 (rcs-revision 1.7)     (/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex     (/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/math/pgfmathcalc.code.tex     (/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/math/pgfmathutil.code.tex)     (/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/math/pgfmathparser.code.tex     \pgfmath@dimen=\dimen113     \pgfmath@count=\count94     \pgfmath@box=\box27     \pgfmath@toks=\toks19     \pgfmath@stack@operand=\toks20     \pgfmath@stack@operation=\toks21     )     (/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.code.     tex     (/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.basic     .code.tex)     (/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.trigo     nometric.code.tex)     (/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.rando     m.code.tex)     (/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.compa     rison.code.tex)     (/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.base.     code.tex)     (/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.round     .code.tex)     (/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.misc.     code.tex)))     (/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/math/pgfmathfloat.code.tex     \c@pgfmathroundto@lastzeros=\count95     ))     (/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepoints.co     de.tex     File: pgfcorepoints.code.tex 2010/04/09  (rcs-revision 1.20)     \pgf@picminx=\dimen114     \pgf@picmaxx=\dimen115     \pgf@picminy=\dimen116     \pgf@picmaxy=\dimen117     \pgf@pathminx=\dimen118     \pgf@pathmaxx=\dimen119     \pgf@pathminy=\dimen120     \pgf@pathmaxy=\dimen121     \pgf@xx=\dimen122     \pgf@xy=\dimen123     \pgf@yx=\dimen124     \pgf@yy=\dimen125     \pgf@zx=\dimen126     \pgf@zy=\dimen127     )     (/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathconst     ruct.code.tex     File: pgfcorepathconstruct.code.tex 2010/08/03  (rcs-revision 1.24)     \pgf@path@lastx=\dimen128     \pgf@path@lasty=\dimen129     )     (/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathusage     .code.tex     File: pgfcorepathusage.code.tex 2008/04/22  (rcs-revision 1.12)     \pgf@shorten@end@additional=\dimen130     \pgf@shorten@start@additional=\dimen131     )     (/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/basiclayer/pgfcorescopes.co     de.tex     File: pgfcorescopes.code.tex 2010/09/08  (rcs-revision 1.34)     \pgfpic=\box28     \pgf@hbox=\box29     \pgf@layerbox@main=\box30     \pgf@picture@serial@count=\count96     )     (/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/basiclayer/pgfcoregraphicst     ate.code.tex     File: pgfcoregraphicstate.code.tex 2008/04/22  (rcs-revision 1.9)     \pgflinewidth=\dimen132     )     (/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/basiclayer/pgfcoretransform     ations.code.tex     File: pgfcoretransformations.code.tex 2009/06/10  (rcs-revision 1.11)     \pgf@pt@x=\dimen133     \pgf@pt@y=\dimen134     \pgf@pt@temp=\dimen135     )     (/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/basiclayer/pgfcorequick.cod     e.tex     File: pgfcorequick.code.tex 2008/10/09  (rcs-revision 1.3)     )     (/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreobjects.c     ode.tex     File: pgfcoreobjects.code.tex 2006/10/11  (rcs-revision 1.2)     )     (/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathproce     ssing.code.tex     File: pgfcorepathprocessing.code.tex 2008/10/09  (rcs-revision 1.8)     )     (/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/basiclayer/pgfcorearrows.co     de.tex     File: pgfcorearrows.code.tex 2008/04/23  (rcs-revision 1.11)     )     (/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreshade.cod     e.tex     File: pgfcoreshade.code.tex 2008/11/23  (rcs-revision 1.13)     \pgf@max=\dimen136     \pgf@sys@shading@range@num=\count97     )     (/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreimage.cod     e.tex     File: pgfcoreimage.code.tex 2010/03/25  (rcs-revision 1.16)          (/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreexternal.     code.tex     File: pgfcoreexternal.code.tex 2010/09/01  (rcs-revision 1.17)     \pgfexternal@startupbox=\box31     ))     (/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/basiclayer/pgfcorelayers.co     de.tex     File: pgfcorelayers.code.tex 2010/08/27  (rcs-revision 1.2)     )     (/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/basiclayer/pgfcoretranspare     ncy.code.tex     File: pgfcoretransparency.code.tex 2008/01/17  (rcs-revision 1.2)     )     (/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepatterns.     code.tex     File: pgfcorepatterns.code.tex 2009/07/02  (rcs-revision 1.3)     )))     (/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/modules/pgfmoduleshapes.cod     e.tex     File: pgfmoduleshapes.code.tex 2010/09/09  (rcs-revision 1.13)     \pgfnodeparttextbox=\box32     )     (/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/modules/pgfmoduleplot.code.     tex     File: pgfmoduleplot.code.tex 2010/10/22  (rcs-revision 1.8)     )     (/usr/local/texlive/2013/texmf-dist/tex/latex/pgf/compatibility/pgfcomp-version     -0-65.sty     Package: pgfcomp-version-0-65 2007/07/03 v2.10 (rcs-revision 1.7)     \pgf@nodesepstart=\dimen137     \pgf@nodesepend=\dimen138     )     (/usr/local/texlive/2013/texmf-dist/tex/latex/pgf/compatibility/pgfcomp-version     -1-18.sty     Package: pgfcomp-version-1-18 2007/07/23 v2.10 (rcs-revision 1.1)     ))     (/usr/local/texlive/2013/texmf-dist/tex/latex/pgf/utilities/pgffor.sty     (/usr/local/texlive/2013/texmf-dist/tex/latex/pgf/utilities/pgfkeys.sty     (/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex)     ) (/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/utilities/pgffor.code.tex     Package: pgffor 2010/03/23 v2.10 (rcs-revision 1.18)     \pgffor@iter=\dimen139     \pgffor@skip=\dimen140     \pgffor@stack=\toks22     \pgffor@toks=\toks23     ))     (/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/frontendlayer/tikz/tikz.cod     e.tex     Package: tikz 2010/10/13 v2.10 (rcs-revision 1.76)          (/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/libraries/pgflibraryplothan     dlers.code.tex     File: pgflibraryplothandlers.code.tex 2010/05/31 v2.10 (rcs-revision 1.15)     \pgf@plot@mark@count=\count98     \pgfplotmarksize=\dimen141     )     \tikz@lastx=\dimen142     \tikz@lasty=\dimen143     \tikz@lastxsaved=\dimen144     \tikz@lastysaved=\dimen145     \tikzleveldistance=\dimen146     \tikzsiblingdistance=\dimen147     \tikz@figbox=\box33     \tikz@tempbox=\box34     \tikztreelevel=\count99     \tikznumberofchildren=\count100     \tikznumberofcurrentchild=\count101     \tikz@fig@count=\count102          (/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/modules/pgfmodulematrix.cod     e.tex     File: pgfmodulematrix.code.tex 2010/08/24  (rcs-revision 1.4)     \pgfmatrixcurrentrow=\count103     \pgfmatrixcurrentcolumn=\count104     \pgf@matrix@numberofcolumns=\count105     )     \tikz@expandcount=\count106          (/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/frontendlayer/tikz/librarie     s/tikzlibrarytopaths.code.tex     File: tikzlibrarytopaths.code.tex 2008/06/17 v2.10 (rcs-revision 1.2)     )))     (/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/frontendlayer/tikz/librarie     s/tikzlibrarypositioning.code.tex     File: tikzlibrarypositioning.code.tex 2008/10/06 v2.10 (rcs-revision 1.7)     )     (/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/frontendlayer/tikz/librarie     s/tikzlibrarysvg.path.code.tex     File: tikzlibrarysvg.path.code.tex 2009/01/24 v2.10 (rcs-revision 1.1)          (/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/libraries/pgflibrarysvg.pat     h.code.tex     File: pgflibrarysvg.path.code.tex 2009/01/24 v2.10 (rcs-revision 1.6)          (/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/modules/pgfmoduleparser.cod     e.tex     File: pgfmoduleparser.code.tex 2009/01/12 v2.10 (rcs-revision 1.1)     )     \pgf@lib@svg@last@x=\dimen148     \pgf@lib@svg@last@y=\dimen149     \pgf@lib@svg@last@c@x=\dimen150     \pgf@lib@svg@last@c@y=\dimen151     \pgf@lib@svg@count=\count107     \pgf@lib@svg@max@num=\count108     ))     \@pmb@toksa=\toks24     \@pmb@toksb=\toks25          (/usr/local/texlive/2013/texmf-dist/tex/lualatex/pgfmolbio/pgfmolbio.chromatogr     am.tex     File: pgfmolbio.chromatogram.tex 2012/10/01 v0.2 SCF chromatograms     )     (/usr/local/texlive/2013/texmf-dist/tex/lualatex/pgfmolbio/pgfmolbio.convert.te     x     File: pgfmolbio.convert.tex 2012/10/01 v0.2 pgfmolbio graph conversion     )) (./figures-1.aux)     \openout1 = `figures-1.aux'.          LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 4.     LaTeX Font Info:    ... okay on input line 4.     LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 4.     LaTeX Font Info:    ... okay on input line 4.     LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 4.     LaTeX Font Info:    ... okay on input line 4.     LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 4.     LaTeX Font Info:    ... okay on input line 4.     LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 4.     LaTeX Font Info:    ... okay on input line 4.     LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 4.     LaTeX Font Info:    ... okay on input line 4.          (/usr/local/texlive/2013/texmf-dist/tex/context/base/supp-pdf.mkii     [Loading MPS to PDF converter (version 2006.09.02).]     \scratchcounter=\count109     \scratchdimen=\dimen152     \scratchbox=\box35     \nofMPsegments=\count110     \nofMParguments=\count111     \everyMPshowfont=\toks26     \MPscratchCnt=\count112     \MPscratchDim=\dimen153     \MPnumerator=\count113     \makeMPintoPDFobject=\count114     \everyMPtoPDFconversion=\toks27     ) ABD: EveryShipout initializing macros     (/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty     Package: pdftexcmds 2011/11/29 v0.20 Utility functions of pdfTeX for LuaTeX (HO     )          (/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/ifpdf.sty     Package: ifpdf 2011/01/30 v2.3 Provides the ifpdf switch (HO)     Package ifpdf Info: pdfTeX in PDF mode is detected.     )     Package pdftexcmds Info: LuaTeX not detected.     Package pdftexcmds Info: \pdf@primitive is available.     Package pdftexcmds Info: \pdf@ifprimitive is available.     Package pdftexcmds Info: \pdfdraftmode found.     )     (/usr/local/texlive/2013/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty     Package: epstopdf-base 2010/02/09 v2.5 Base part for package epstopdf          (/usr/local/texlive/2013/texmf-dist/tex/latex/oberdiek/grfext.sty     Package: grfext 2010/08/19 v1.1 Manage graphics extensions (HO)          (/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/kvdefinekeys.sty     Package: kvdefinekeys 2011/04/07 v1.3 Define keys (HO)     ))     (/usr/local/texlive/2013/texmf-dist/tex/latex/oberdiek/kvoptions.sty     Package: kvoptions 2011/06/30 v3.11 Key value format for package options (HO)          (/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty     Package: kvsetkeys 2012/04/25 v1.16 Key value parser (HO)          (/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/etexcmds.sty     Package: etexcmds 2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO)     Package etexcmds Info: Could not find \expanded.     (etexcmds)             That can mean that you are not using pdfTeX 1.50 or     (etexcmds)             that some package has redefined \expanded.     (etexcmds)             In the latter case, load this package earlier.     )))     Package grfext Info: Graphics extension search list:     (grfext)             [.png,.pdf,.jpg,.mps,.jpeg,.jbig2,.jb2,.PNG,.PDF,.JPG,.JPE     G,.JBIG2,.JB2,.eps]     (grfext)             \AppendGraphicsExtensions on input line 452.          (/usr/local/texlive/2013/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg     File: epstopdf-sys.cfg 2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Liv     e     ))     ! Undefined control sequence.     l.5 \pmbchromatogram                         {seq.scf}     ? x          Here is how much of TeX's memory you used:      10116 strings out of 493311      198299 string characters out of 6137850      242783 words of memory out of 5000000      13376 multiletter control sequences out of 15000+600000      3640 words of font info for 14 fonts, out of 8000000 for 9000      957 hyphenation exceptions out of 8191      63i,0n,57p,456b,83s stack positions out of 5000i,500n,10000p,200000b,80000s     No pages of output.     PDF statistics:      3 PDF objects out of 1000 (max. 8388607)      0 named destinations out of 1000 (max. 500000)      1 words of extra memory for PDF output out of 10000 (max. 10000000)


title: Problem with text mode in \substack

text: I have defined a differential command in this way               \let\underdot\d     \renewcommand{\d}{\ifmmode\mathop{}\!\mathrm{d}\else\expandafter\underdot\fi}      so that I don't loose the text accent (I don't know how `expandafter` works, I put it there just after trial and error). But I have a problem, if I use `\d` as the first command in a substack, it gives me the _text_ `\d`. Here is an example code:               \documentclass{scrartcl}     \usepackage{mathtools}          \let\underdot\d     \renewcommand{\d}{\ifmmode\mathop{}\!\mathrm{d}\else\expandafter\underdot\fi}          \begin{document}     \[         \substack{\d x = \sigma \d y}     \]     \end{document}      I don't know why this happens, may be my command is bad defined, or may be there is a bug in `\substack` (`subarray`). I can solve it with `{}\\!\d x = …` but I would like to fix it globally. ### How can I fix that? Which is the best way to solve that (may be redefine the command `\d` in another way)?


title: Equation name display, not equation labeling/cross-referencing or equation tagging

text: Is it possible to display an equation name similar to theorem name displays:               \begin{theorem}[Convergence of Cauchy Sequences in $\mathbb{R}$]     Every Cauchy sequence of real numbers is also a convergent sequence of real numbers.     \end{theorem}      So that the theorem number is followed by " _Convergence of Cauchy Sequences in`$\mathbb{R}$`_". I would like to know if that is possible for equations. One example of what I would like to do is:               \begin{equation}[Faraday's Law of Induction]     \nabla\times{\bf E}=-\frac{\partial{\bf B}}{\partial t}     \label{eqn:Faraday}     \end{equation}


title: \underbrace{} choppy

text: Why are my underbraces so ugly? I've tried a few different fonts for the document and it appears it is font that determines the underbraces appearance. I however don't want to change my font. How can I make my underbraces not look so ugly? I use the following packages ( _Edit by Caramdir_ : I removed all non-relevant packages from the list).               \usepackage{amssymb}     \usepackage{amsmath}      ![example](http://i.stack.imgur.com/mP39z.png)


title: Refactoring TeX/LaTeX code

text: Below is some shortened version of some code I wrote that can _automatically_ format a number from decimal to scientific notation. I have been using it for some time now and have a few ideas how to combine it with some other work I have done into a small package for engineering calculations. However, looking back at what was a couple of hours of work, it definitely needs a good overhaul. The code provides two major author commands `\snotation{}` and `\enotation{}` that return the input number in scientific or engineering notation. I tend to go for readability of code rather than algorithmic elegance and find it easier to write the code than read through it later and change it. Neither loops nor if constructions are very reliable with TeX and I chose to "cut and paste code" rather than using these more error prone parts of TeX constructions. **Where can I find some information about re-factoring and polishing TeX code. Have you got a good strategy or tips and suggestions?** Here is the code as a working minimal (excludes the engineering part).               \documentclass{article}     \usepackage{fp,siunitx}     \begin{document}          \gdef\SetNumDecimals#1{\gdef\numdecimals{#1}}     \SetNumDecimals{10}     %% Helper routine for formatting numbers     %% first it round to 4 decimal numbers     %% then it clips the number so that if trailing     %% zeroes exist it removes them prints 16.01 and not 16.010000000     \newcommand\Clip[1]{\FPround\tmp{#1}{\numdecimals}\FPclip\tmp{\tmp}\tmp}%     \newcommand\Clipsmall[1]{\FPclip\tmp{#1}\tmp}%          \gdef\typeset#1#2{       \def\clippednumber{\Clip{#1}}       \def\powers##1{$##1 \times10^{#2}$}       \powers{\clippednumber}      }          \gdef\typesetsmall#1#2{       \def\clippednumber{\Clipsmall{#1}}       \def\powers##1{$##1 \times10^{#2}$}       \powers{\clippednumber}      }          \FPset\PowerOne{10}     \FPset\PowerTwo{100}     \FPset\PowerThree{1000}     \FPset\PowerFour{10000}     \FPset\PowerFive{100000}     \FPset\PowerSix{1000000}     \FPset\PowerSeven{10000000}     \FPset\PowerEight{100000000}     \FPset\PowerNine{1000000000}     \FPset\PowerTen{10000000000}     \FPset\PowerEleven{100000000000}     \FPset\PowerTwelve{1000000000000}     \FPset\PowerFifteen{1000000000000000}          \gdef\Epower{}     \gdef\result{}          \def\Powers#1{%     \FPset\Number{#1}     \FPifgt\Number\PowerTwo        \FPdiv\temp{\Number}{\PowerTwo}        \def\Epower{3}        \FPset\result\temp     \fi     \FPifgt\Number\PowerThree        \FPdiv\temp{\Number}{\PowerThree}        \def\Epower{3}        \global\let\result\temp     \fi          \FPifgt\Number\PowerFour        \FPdiv\temp{\Number}{\PowerFour}        \def\Epower{4}        \global\let\result\temp     \fi          \FPifgt\Number\PowerFive        \FPdiv\temp{\Number}{\PowerFive}        \def\Epower{5}        \global\let\result\temp     \fi          \FPifgt\Number\PowerSix        \FPdiv\temp{\Number}{\PowerSix}        \def\Epower{6}        \global\let\result\temp     \fi          \FPifgt\Number\PowerSeven        \FPdiv\temp{\Number}{\PowerSeven}        \def\Epower{7}        \global\let\result\temp     \fi          \FPifgt\Number\PowerEight        \FPdiv\temp{\Number}{\PowerEight}        \def\Epower{8}        \global\let\result\temp     \fi          \FPifgt\Number\PowerNine        \FPdiv\temp{\Number}{\PowerNine}        \def\Epower{9}        \global\let\result\temp     \fi          \FPifgt\Number\PowerTen        \FPdiv\temp{\Number}{\PowerTen}        \def\Epower{10}        \global\let\result\temp     \fi          \FPifgt\Number\PowerEleven        \FPdiv\temp{\Number}{\PowerEleven}        \def\Epower{11}        \global\let\result\temp     \fi          \FPifgt\Number\PowerTwelve        \FPdiv\temp{\Number}{\PowerTwelve}        \def\Epower{12}        \global\let\result\temp     \fi       \typeset{\result}{\Epower}     }          \FPset\one{1}          \def\piconums#1{%     \FPset\Number{#1}     \FPiflt\Number\one        \FPmul\temp{\Number}{\PowerOne}        \def\Epower{-1}        \global\let\result\temp     \fi     \FPiflt\result\one       \FPmul\temp{\Number}{\PowerTwo}        \def\Epower{-2}        \global\let\result\temp      \else     \fi     \FPiflt\result\one       \FPmul\temp{\Number}{\PowerThree}        \def\Epower{-3}        \global\let\result\temp      \else     \fi     \FPiflt\result\one       \FPmul\temp{\Number}{\PowerFour}        \def\Epower{-4}        \global\let\result\temp     \fi     \FPiflt\result\one       \FPmul\temp{\Number}{\PowerFive}        \def\Epower{-5}        \global\let\result\temp     \fi     \FPiflt\result\one       \FPmul\temp{\Number}{\PowerSix}        \def\Epower{-6}        \global\let\result\temp     \fi     \FPiflt\result\one       \FPmul\temp{\Number}{\PowerSeven}        \def\Epower{-7}        \global\let\result\temp     \fi     \FPiflt\result\one       \FPmul\temp{\Number}{\PowerEight}        \def\Epower{-8}        \global\let\result\temp     \fi     \FPiflt\result\one       \FPmul\temp{\Number}{\PowerNine}        \def\Epower{-9}        \global\let\result\temp     \fi     \FPiflt\result\one       \FPmul\temp{\Number}{\PowerTen}        \def\Epower{-10}        \global\let\result\temp     \fi     \FPiflt\result\one       \FPmul\temp{\Number}{\PowerEleven}        \def\Epower{-11}        \global\let\result\temp     \fi     \FPiflt\result\one       \FPmul\temp{\Number}{\PowerTwelve}       \def\Epower{-12}       \global\let\result\temp     \fi     \FPiflt\result\one       \FPmul\temp{\Number}{\PowerFifteen}       \def\Epower{-15}       \global\let\result\temp     \fi          \typesetsmall{\result}{\Epower}     }          %% main routine     \def\snotation#1{     \FPset\Number{#1}     \FPifgt\Number\one         \Powers{#1}        \else         \piconums{#1}     \fi}          \snotation{0.000000100326}          \snotation{1133009.1495978707}     \end{document}      Apologies for the length of the code.


title: Table (tabu) rotate text sideways (90 degrees)

text: how can I rotate text in a `tabu` environment by 90 degrees? I export my tables from Excel using a plugin and it puts the text which should be rotated into `\begin{sideways} ... \end{sideways}` but Latex throws an error. Here is my code:               \documentclass[10pt,DIV=12,a4paper,numbers=noenddot]{scrreprt}          \usepackage{tabu}     \usepackage{booktabs}          \begin{document}          \begin{table}          \begin{tabu} to \textwidth {X[L] X[L]}          \toprule           AAAAAA & BBBBBB \\          % \begin{sideways}AAAAAA\end{sideways} & \begin{sideways}BBBBBB\end{sideways} \\          \end{tabu}          \end{table}          \end{document}


title: A way to mark things in math mode

text: I want to mark the weight function in an equation, using something similar to `\underbrace`. Using this piece of code:               (x^2y')' + \lambda \underbrace{x^2}_{\text{Weight function}}y = 0      I get ![equation](http://i.stack.imgur.com/pyv8c.png). I don't want such a big space between the `x²` and the other parts of the equation. I wouldn't mind, for example, having an arrow leading downwards, and there to write the description. Is there any way to do what I describe?


title: Changing the hyperref target for back references in biblatex bibliography

text: In my bibliography style, I have added a trigger to change the `biblatex` bibliography back reference mechanism to refer to the paragraph numbers in the margins ("runners") instead of pages.               \def\blx@addbackref@i#1{%       \ifbacktracker         \blx@leavevmode         \if@filesw           \protected@write\@mainaux{}{\string\abx@aux@backref             {\the\c@instcount}{#1}{\the\c@refsection}%             {\ifbool{bbx:runner}%               {\therunner}%               {\thepage}}%           {\noexpand\the\c@page}}%         \fi       \fi%      }      `\therunner` is added to a paragraph by using the macro from the `jurabook` class               \newcommand*{\rn}[2][]{%       \if@dorunners%         \stepcounter{runner}%         #2\marginpar%           [\hfill{\small\sffamily\therunner}\hspace*{\jb@runnersspace@length}]%           {\hspace*{\jb@runnersspace@length}{\small\sffamily\therunner}\hfill}%         \protected@edef\@currentlabel{\therunner}%        \else%         #2       \fi% do NOT delete the percentage sign       \ifthenelse{\equal{#1}{\@empty}}%         {}% nix         %else         {\label{#1}}%     }      Since the runner mechanism is the only feature from the jurabook class I needed, I have copied that macro into my preamble rather than using the entire class. If I now set the `biblatex` option runner to true, thus switching `bbx:runner` to true, the back reference numbers shown in the bibliography show the paragraph numbers shown in the document margins rather than the page numbers for each cited entry. However, if I click the number, the link takes me to the page corresponding to the number rather than the paragraph corresponding to the number. This means that I have an entry that is cited in paragraph number 10 on page 6, the number shown in the bibliography will be 10. Clicking that number, however, takes me to page number 10. Does anyone know how I need to adjust the back referencing mechanism to make the paragraph the `hyperref` target of the numbers shown in the `biblatex` bibliography?


title: Table next to figure using subfig

text: I'm trying typeset a table next to a figure using `subfig`, but I cannot get them to align properly. I have found a similar(/identical) question here, but the solutions/suggestions do not seem to be applicable in my case as (a) I am using a fully-updated TeX Live 2013 distribution; and (b) I do not make use of the `hyperref` package. Since the journal I am preparing this document for kind of forces `subfig` onto me, I would rather solve this without having to resort to using a different subfloat package. The issue: ![enter image description here](http://i.stack.imgur.com/MSV06.png) And a MWE:               \documentclass{article}          \usepackage{graphicx}     \usepackage{subfig}          \begin{document}     \begin{figure}       \centering       \subfloat[Figure]{\rule{4cm}{4cm}\label{subfig:black-hole}}%       \qquad       \subfloat[Table]{%         \begin{tabular}{cc}           \hline           C1 & C2 \\ \hline           A  & A \\           B  & B \\           C  & C \\           D  & D \\           E  & E \\           F  & F \\ \hline         \end{tabular}         \label{subtbl:the-table}       }       \caption{Figure and table.}       \label{fig:figure-and-table}     \end{figure}          \noindent Look at Figure~\ref{fig:figure-and-table}; it includes both a figure (Figure~\ref{subfig:black-hole}) and a table (Table~\ref{subtbl:the-table}).     \end{document}      **Edit:** Just to elaborate on my own silliness: I had already tried `[b]` but I didn't realise that it actually helped. On the top is what I got and on the bottom is what I thought I should get:                 Figure    Table           ---------      |       |      |       |     y|       |        |       |  C1 C2      |       |  -----      ---------  A  B          x      -----        (a)       (b) <- The subcaptions                ---------        |       |      |       |     y|       |  C1 C2        |       |  -----      |       |  A  B      ---------  -----          x              (a)       (b) <- The subcaptions      So I thought that the bottom of the table would be aligned with the x axis instead of the x label, which I assume is impossible without some manual work. I'll just keep looking for a way to do that and ask again if I'm lost. `:-)`