title: List of packages originally installed with Tex Live

text: Is there way to get a list of the packages which were installed when TeX Live was initially set up? I can get a list of all present packages with `tlmgr list | grep '^i'` but I do not see a way to differentiate between the packages which we originally installed and the ones I installed later using `tlmgr install`. I am using TeX Live 2011.


title: Drawing shapes around Tikz Tree nodes

text: I have a Tikz tree in my Latex document as follows:               % Set the overall layout of the tree     \tikzstyle{level 1}=[level distance=4.5cm, sibling distance=6.5cm]     \tikzstyle{level 2}=[level distance=4cm, sibling distance=2.5cm]          % Define styles for bags and leafs     \tikzstyle{bag} = [text width=8em, text centered]     \tikzstyle{end} = [circle, minimum width=3pt,fill, inner sep=0pt]     \tikzstyle{atom} = [draw=black,thick]          % The sloped option gives rotated edge labels. Personally     % I find sloped labels a bit difficult to read. Remove the sloped options     % to get horizontal labels.      \begin{tikzpicture}[grow=right, sloped]     \node[bag] {$S_0 = 1$}         child {             node[bag] {$S_1 = 0.90$}                         child {                     node[end, label=right:                         {$S_2 = 0.810$}] {}                     edge from parent                     node[above] {$Y_2 = y_3$}                 }                 child {                     node[end, label=right:                         {$S_2 = 0.900$}] {}                     edge from parent                     node[above] {$Y_2 = y_2$}                 }                 child {                     node[end, label=right:                         {$S_2 = 0.918$}] {}                     edge from parent                     node[above] {$Y_2 = y_1$}                 }                 edge from parent                  node[above] {$Y_1 = y_3$}         }         child {             node[bag] {$S_1 = 1.00$}                     child {                     node[end, label=right:                         {$S_2 = 0.900$}] {}                     edge from parent                     node[above] {$Y_2 = y_3$}                 }                 child {                     node[end, label=right:                         {$S_2 = 1.000$}] {}                     edge from parent                     node[above] {$Y_2 = y_2$}                 }                 child {                     node[end, label=right:                         {$S_2 = 1.020$}] {}                     edge from parent                     node[above] {$Y_2 = y_1$}                 }                 edge from parent                          node[above] {$Y_1 = y_2$}         }         child {             node[bag] {$S_1 = 1.02$}                     child {                     node[end, label=right:                         {$S_2 = 0.918$}] {}                     edge from parent                     node[above] {$Y_2 = y_3$}                 }                 child {                     node[end, label=right:                         {$S_2 = 1.020$}] {}                     edge from parent                     node[above] {$Y_2 = y_2$}                 }                 child {                     node[end, label=right:                         {$S_2 = 1.0404$}] {}                     edge from parent                     node[above] {$Y_2 = y_1$}                 }             edge from parent                          node[above] {$Y_1 = y_1$}         };     \end{tikzpicture}      With result: ![enter image description here](http://i.stack.imgur.com/TFwFc.gif) I would like to draw rounded rectangles around the end nodes of each of the three first-level children. There would therefore be three nodes in each rectangle, with the top three in the first, middle three in the second, and lower three in the last. I would also like labels vertically centered on the right of each rectangle. The final result should be as so: ![What I would like](http://i.stack.imgur.com/OPWgY.gif) As I am completely new to Tikz, I do not know how to achieve this result. Help!


title: Note in the corner of a LaTeX document

text: I would like to put a small note in the upper right corner of my LaTeX document to put my initials for instance. How can I achieve this?


title: Typesetting plus-minus uncertainties with different upper and lower bounds

text: I'm making a data table and need to include my error bars with my data. `$\pm$` works great if the upper and lower bounds are the same, however, several of my data points has a different upper limit than lower. In papers I've read, I've seen plenty of uncertainties expressed as plus x minus y stacked on top of one another with the `$\pm$` sign. Could someone tell me how to typeset such a thing? I'm using a journal-specific document type (`aastex`) and the `deluxetable` coding.


title: How to change the alignment of a tabularx within an easylist?

text: I'm probably missing something super obvious, but my searching has turned up nothing. I want to put a table in the middle of an outline that I'm making with the `easylist` package. The table is coming right after text that's 2 levels deep, but since `tabularx` centers the table by default, the left edge of the table is about a quarter of an inch left of the text, which looks terrible. My current set up looks basically like this.               \usepackage{tabularx}     \usepackage{ltablex}          \begin{document}     \begin{easylist}[articletoc]     \ListProperties(Margin2=.5in,Margin3=1in,Margin4=1.5in)     # Section         ## Subsection     \setlength{\extrarowheight}{1.5pt}     \renewcommand{\tabcolsep}{2pt}     \begin{tabularx}{\linewidth}{ | l | >{\raggedright\arraybackslash}X | }     \hline     this & that \\ \hline     \end{tabularx}     \end{easylist}     \end{document}      If somebody can point me towards how to left align the table with a set distance to either the margin or the edge of the page, I can work with that. Bonus points for a way that actually matches it to the level of indentation of the previous text, rather than hard coding the distance.


title: TikZ - How to automate the creation of patterns having irregularities

text: This is a continuation of How to automatically calculate parameters of a TikZ repeating pattern? I am trying to find the best way to draw a series of industrial patterns. Thanks to the help received, I was able to draw regular patterns. However I now need to draw patterns that have a distribution and size of cavities that vary. I was also forced to move the origin to the center of the envelope, a configuration less convenient than before. I have tried a different approach than before, making the exact shape I am looking for, however it is very much hard-coded, since the cavity numbering pattern does not follow the natural order. I have tried the `\foreach \x / \n [count=\xi]` option, that looked promising, but I have not found a way to use it for every row. Is there a way to optimize the code, and particularly the counter of cavities, missing here?               \documentclass{standalone}     \usepackage{tikz}        \renewcommand{\familydefault}{\sfdefault}      \begin{document}           \begin{tikzpicture}[scale=2.54, thick,       twenty/.style={circle, draw, very thin, fill,text=white, minimum size=.097in , text centered,font=\tiny, inner sep=0.1pt},      sixteen/.style={circle, draw, very thin, fill,text=white, minimum size=.150in, text centered,font=\tiny, inner sep=0.1pt},      ]      \newlength{\hspacing} %Vertical spacing     \newlength{\vspacing} %Horiz spacing     \setlength{\hspacing}{.108cm}          %Begin envelope     \coordinate (O) at (0,0) ;      \coordinate (A) at ( - 0.7475,-0.435) ;      \coordinate (B) at ( 0.7475,-0.435) ;      \coordinate (C) at (0.7475, 0.249) ;      \coordinate (D) at (0.516 ,0.435) ;      \coordinate (E) at (-0.516 ,0.435) ;      \coordinate (F) at (-0.7475, 0.249) ;      \draw (A) --(B)--(C)--(D)-- (E)--(F)-- cycle ;     %End envelope          \node[red, very thin] at (O)  {+}; %origin          %--------------------------------     % Begin top row -mixed cavities- uneven spacing     \setlength{\vspacing}{.28cm}     %small cavity right side     \foreach \x / \n [count=\xi] in {4.5 / \xi,  3.5 / \xi} {     \node [twenty] at (\hspacing*\x, \vspacing){\xi};     }     %Begin large cavity     \foreach \x / \n  in {2 / 3,  0 / 4} {     \node [sixteen] at (\hspacing*\x, \vspacing){\n};     }     \foreach \x / \n  in {2 / 5} {     \node [sixteen] at (-\hspacing*\x, \vspacing){\n};     }     %small cavity left side     \foreach \x /  \n  in  {4.5/ 6,  3.5/ 7} {     \node [twenty] at (-\hspacing*\x, \vspacing){\n};     }     % end top row     %---------------------------     % Begin row 2 small cavity uneven spacing     \setlength{\vspacing}{.168cm}     %---------------------------     \foreach \x /  \n  in {6/ 8,  5 / 9,  4 / 10, 3/ 11, 1/12 } {     \node [twenty] at (\hspacing*\x, \vspacing){\n};     }     \foreach \x /  \n  in  {6/ 17,  5/ 16,  4 / 15, 3/ 14, 1/ 13 } {     \node [twenty] at (-\hspacing*\x, \vspacing){\n};     }     %End small cavity     % end row 2     %---------------------------     % Begin row 3 - small cavity     \setlength{\vspacing}{.056cm}     %Begin small cavity     \foreach \x / \n  in {5.5/18, 4.5/19, 3.5/20, 2.5/21, 1.5/22, 0.5/23} {     \node [twenty] at (\hspacing*\x, \vspacing){\n};     }     \foreach \x / \n  in   {5.5/29, 4.5/28, 3.5/27, 2.5/26, 1.5/25, 0.5/24} {     \node [twenty] at (-\hspacing*\x, \vspacing){\n};     }     %End small cavity     % end row 3     %---------------------------     % Begin row 4 - small cavity     \setlength{\vspacing}{-.056cm}     \foreach \x / \n  in {6/30, 5/31, 4/32, 3/33, 2/34, 1/35, 0/36} {     \node [twenty] at (\hspacing*\x,\vspacing){\n};     }     \foreach \x / \n  in   {6 /42, 5/41, 4/40, 3/39, 2/38, 1/37} {     \node [twenty] at (-\hspacing*\x, \vspacing){\n};     }     %End small cavity     % end row 5     %---------------------------     % Begin row 5  - small cavity     \setlength{\vspacing}{-0.162cm}     %Begin small cavity     \foreach \x / \n  in {5.5/43, 4.5/44, 3.5/45, 2.5/46, 1.5/47, 0.5/48} {     \node [twenty] at (\hspacing*\x, \vspacing){\n};     }     \foreach \x / \n  in {5.5/54, 4.5/53, 3.5/52, 2.5/51, 1.5/50, 0.5/49} {     \node [twenty] at (-\hspacing*\x, \vspacing){\n};     }     %---------------------------     % end row 5     % Begin row 6 -small cavity     \setlength{\vspacing}{-0.27cm}          \foreach \x /  \n  in {6 /55, 5/56, 4/57, 3/58, 2/59, 1/60, 0/61} {     \node [twenty] at (\hspacing*\x,\vspacing){\n};     }     \foreach \x / \n  in  {6 /67, 5/65, 4/65, 3/64, 2/63, 1/62} {     \node [twenty] at (-\hspacing*\x, \vspacing){\n};     }     % end row 6     \end{tikzpicture}     \end{document}


title: Create a new command that exactly mimics memoir's section* command without the spacing before it?

text: I am using `memoir` and currently the `\section*` command does everything I want, except in some cases I don't want the space before it.               \documentclass[12pt]{memoir}     \begin{document}     \section{No Space, top of page}     \section*{Space}     \section*{No space above here, please}     \end{document}      ![Example with spacing](http://i.stack.imgur.com/N3QoH.png) How can I make a new command `\qrr*` that is like `\section*` but without the prepended space? I don't want to accidentally change the formatting of other `\section` and `\section*` commands.


title: Problem in adjusting the mark size in pgfplot

text: I am trying to adjust the marker size in the following `tikspicture`. Unfortunately, when I configure the plot by adding `mark size=0.85`, the compiler complains with the following message.               Illegal unit of measure (pt inserted) ...ark=*, mark size=0.85, draw=black, smooth]      Adding `pt` unit to `mark size=0.85` does not help. Also, specifying the marker color does not have any effect although I forced the color to be black (it will print out in blue). The following is a MWE when I take out the `mark size` option from the code.               \documentclass[crop=true,border=2mm]{standalone}     \usepackage{pgfplots}     \usepgfplotslibrary{polar}     \usepgfplotslibrary{dateplot}      \usepackage{amsmath}     \usepackage{amssymb}     \usepackage{amsfonts}     \usepackage{graphicx}          \pgfplotsset{compat=1.7}          \newlength\figureheight     \newlength\figurewidth     \setlength\figureheight{4cm}     \setlength\figurewidth{4cm}          \begin{document}          \begin{tikzpicture} %[scale=1.0]         \begin{polaraxis}[%             axis on top,             width = \figurewidth,             height = \figureheight,             scale only axis,             ymin=5.e5, ymax=1.5e6,             xtick      ={0, 30, 60, 90, 120, 150, 180, 210, 240, 270, 300, 330},             xticklabels={0, $\frac{\pi}6$, $\frac{\pi}3$, $\frac{\pi}2$, $\frac{2\pi}3$, $\frac{5\pi}6$, $\pi$ , $\frac{7\pi}6$, $\frac{4\pi}3$, $\frac{3\pi}2$, $\frac{5\pi}3$, $\frac{11\pi}6$},             ytick = {5e5, 1.e6, 1.5e6},         ]         \addplot table [%             col sep=comma, trim cells=true, %             x=x, y=y, %             data cs=polarrad, mark=*, draw=black, smooth]             {mydata.dat};         \end{polaraxis}     \end{tikzpicture}     \begin{tikzpicture} %[scale=1.0]         \begin{axis}[%             axis on top,             width = \figurewidth,             height = \figureheight,             scale only axis,             xmin=0, xmax=6.2832,             ymin=5.e5, ymax=1.5e6,             xlabel = {$\theta$},             ylabel = {$\Gamma_{\theta}$},             grid=major,             xtick      ={0, 0.7854, 1.5708, 2.3562, 3.1416, 3.9270, 4.7124, 5.4978, 6.2832},             xticklabels={0, $\frac{\pi}4$, $\frac{\pi}2$, $\frac{3\pi}4$, $\pi$ , $\frac{5\pi}4$, $\frac{3\pi}2$, $\frac{7\pi}4$, $2\pi$},             ]             \addplot table [%                 col sep=comma, trim cells=true, %                 x=x, y=y, %                 mark=*, draw=black, smooth]%                 {mydata.dat};         \end{axis}     \end{tikzpicture}          \end{document}      The content of `mydata.dat` is as follows.               # mydata     x,y     0.0000,1.1686E+06     0.0175,1.1686E+06     0.0349,1.1446E+06     0.0524,1.1165E+06     0.0698,1.1034E+06     0.0873,1.1038E+06     0.1047,1.1059E+06     0.1222,1.1317E+06     0.1396,1.1500E+06     0.1571,1.1372E+06     0.1745,1.1173E+06     0.1920,1.1218E+06     0.2094,1.1257E+06     0.2269,1.1203E+06     0.2443,1.1078E+06     0.2618,1.1043E+06     0.2793,1.1239E+06     0.2967,1.1228E+06     0.3142,1.0912E+06     0.3316,1.0909E+06      Could someone help me adjust the size and color of the marker?


title: Chapter titles using titlesec

text: I want my chapter titles to look like as asked in this post. I have followed the method suggested by "lockstep", that is, using package `titlesec`. It works perfectly fine but here is the question: I want this format for main chapters only and for the rest, that is Contents, Declaration, Index, Bibliography etc I want them centered with normal vertical spaces before and after the title. Pasting the code at the start of Chapter 1 solves the problem partially; it leaves the starting ones (contents, declaration) totally unchanged and applies the same format to Index and Bibliography. Please help.


title: mdframed behaves differently in TeXlive 2011 and TeXlive 2012

text: I've noted some inconsistencies between TeXlive 2011 and TeXlive 2012. I'm maintaining a documentclass which I suddenly realized was not working perfectly after updating to TeXlive 2012. The problem was a conflict bewteen amsthm and thmtools (although I wasn't able to get a reasonably sized MWE illustrating that particular problem).I opted to rewrite the theorem environments in my documentclass, using ntheorem instead and bypassing thmtools. Everything looked fine until I noticed that my framed (mdframed-style) theorems have the wrong margins in TL2012. (This problem is completely independent of the first one I ran into.) Consider the following code:               \documentclass[twoside]{article}     \usepackage{lipsum}     \usepackage[framemethod=TikZ]{mdframed}              \mdfdefinestyle{mdtheoremstyle}{%           linewidth=1pt,           roundcorner=4pt,           frametitlerule=false,%           apptotikzsetting={             \tikzset{mdfframetitlebackground/.append style={fill=black!25}}             \tikzset{mdfbackground/.append style={fill=black!10}}           },           frametitlefont={\sffamily\bfseries\small},           theoremtitlefont={\sffamily\small},           font=\itshape,           frametitleaboveskip=3pt plus 1pt,           frametitlebelowskip=2pt plus 1pt,           innertopmargin=7pt plus 1pt minus 1pt,           innerbottommargin=8pt plus 1pt minus 1pt,           usetwoside=false,           leftmargin=0pt,           rightmargin=0pt,           skipabove=14pt plus 2pt minus 6pt,           skipbelow=14pt plus 2pt minus 6pt         }                 \mdtheorem[style=mdtheoremstyle]{fancytheorem}{Theorem}              \begin{document}              \lipsum[1]         \begin{fancytheorem}           Deep and significant result.         \end{fancytheorem}         \lipsum[2]              \end{document}      Compiling this with (pdflatex and) TL2011, I get the expected result: ![enter image description here](http://i.stack.imgur.com/0nDKY.png) but running the same file through TL2012, I get: ![enter image description here](http://i.stack.imgur.com/5CBM2.png) Notice that the entire frame is shoved to the right, roughly 10pt. Of course, I could hack the margins to make the 2012 version look the same, but I'd like the documentclass to work equally, regardless of the TL version. Any suggestions?


title: What is a working python code snippet for escaping a string, so that it can be included in a tex file?

text: I'm using python to populate a tex template with arbitrary strings - and I would like to escape the strings so they're interpreted and displayed properly inside the tex file (rather than having them mess up my formatting). Where can I find a python code snippet, which will use the tex rules for escaping an arbitrary string? To clarify, I want to do this:               [arbitrary string] --->{latex flags}[arbitrary string]{latex flags}      from inside of a python program, such that I can run latex on:               {latex flags}[arbitrary string]{latex flags}      and latex will not complain about strange characters inside [arbitrary strings]


title: Footnote in tabularx doesn't work (with hyperref)

text: Here is the min file:               \documentclass{article}     \usepackage{tabularx}[1999/01/07] % v2.07     \usepackage{hyperref}% 2012/10/15 v6.83k     \listfiles     \begin{document}          \begin{minipage}[t]{.5\linewidth}     \begin{tabularx}{\linewidth}{c}     text\footnote{footnote test} \\     \end{tabularx}     \end{minipage}          \end{document}      With the above codes, the output pdf file doesn't present "footnote test" in table footnote area.


title: Setting a column of an align environment at a fixed distance from the margin

text: I'd like to set proofs in the style shown in this answer **but** with the right column at a constant distance from the left margin, so that the explanations show up consistently located in the many proofs I have in the document. FWIW, I'm using the `fleqn` option to `article.cls`. Is there some extension to `align` somewhere which does this?


title: How to edit footnote in LyX

text: Is it be possible to edit the footnote of the title of the presentation? I want to edit the author name (because by default it comes with department name) and title of the presentation (because it is quite large). Can it be different from the main title?


title: Table heading formatting

text:
I have had this problem before (sort of) - it's related to this question I asked previously. Basically, I am having trouble with my table headings. I want the headings to be bold and centered regardless of the alignment of the text in the columns below. I have defined a new command `head` to do this, which seems to be working fine except for the last column. If I use `head` in place of `\bfseries` in the last column I get an error               ! Misplaced \noalign. \cmidrule ->\noalign                           {\ifnum 0=`}\fi \@ifnextchar [{\@cmidrule }{\@cmidrule ... l.37 \cmidrule                   (r){1-1} \cmidrule(lr){2-3} \cmidrule(lr){4-5} \cmidrule(l){6-...      I have read various things about "mislpaced \noalign" complaints coming from things to do with backslashes, but I don't see why that last column should behave any differently from the others. I have tried to get the text centered by adding a `\centering` instead but the required `\par` messes up the vertical alignment. Anyway, I don't see that I should have to do something different, but I can't see what I've done wrong?               \documentclass[11pt, a4paper, twoside, fleqn]{report}     \usepackage[showframe]{geometry}          \makeatletter     \g@addto@macro\@floatboxreset\centering % automatically center floats     \makeatother               %Table formatting     %------------------------------     \usepackage{array}     \usepackage{booktabs}     \renewcommand{\arraystretch}{1.5}     \newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}     \newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}     \newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}          \newcommand{\head}[1]{\centering\textbf{#1}}          %Definitions of useful shortcuts (e.g. to add matrix formatting)     %---------------------------------------------------------------               \begin{document}                   \begin{table}          \footnotesize     %%%\addtolength{\tabcolsep}{-0.6pt}          \begin{tabular}{ @{} L{1.5cm}  C{1.5cm} C{2cm} C{1.5cm} C{2cm} L{4cm} @{}}          \toprule          \head{Head}  & \head{Stuff} & \head{Things}  & \head{Stuff} & \head{Things} & \bfseries Stuff Things \\     \head{Head}  & \head{Stuff} & \head{Things}  & \head{Stuff} & \head{Things} & {\head{Stuff Things}} \\          \cmidrule(r){1-1} \cmidrule(lr){2-3} \cmidrule(lr){4-5} \cmidrule(l){6-6} % no "r" here because it's the last             \multicolumn{2}{@{}l}{\bfseries Subheading}\\% \addlinespce          text & text & some much longer text & text &   some much longer text & some even longer even longer even longer text \\          \bottomrule     \end{tabular}          \caption{And here's the caption}     \end{table}                         \end{document}      **Update:** `\listfiles` gives the following:                 report.cls    2005/09/16 v1.4f Standard LaTeX document class
        fleqn.clo    1998/08/17 v1.1c Standard LaTeX option (flush left equations)
       size11.clo    2005/09/16 v1.4f Standard LaTeX file (size option)
        array.sty    2005/08/23 v2.4b Tabular extension package (FMi)
     booktabs.sty    2005/03/16 v1.6180 publication quality tables      We are well aware that our latex is very very out of date! Something I am trying to get fixed. I can overwrite locally if necessary. Just to be clear, the compilation problem arises if I replace               & \head{Stuff} & \head{Things}  & \head{Stuff} & \head{Things} & {\bfseries Stuff Things} \\      with               & \head{Stuff} & \head{Things}  & \head{Stuff} & \head{Things} & \head{Stuff Things} \\      **Update 2** I've edited my code above to make it more obvious that this problem is only arising the last column (the first column is L aligned too, but the `\head` command is centering my heading). As per Johannes_B's suggestion, if I add an extra set of braces to the last column               & \head{Stuff} & \head{Things}  & \head{Stuff} & \head{Things} & {\head{Stuff Things}} \\      the compilation problem goes away but the final column heading remains left aligned: ![table](http://i.stack.imgur.com/Hr2m5.png) Using `makecell` and in particular `thead` seems to work fine, but I'd still like to know what's wrong with my code! Can anyone tell me why I am getting this behaviour?


title: Using "found" code to typeset augmented matrices, want [] instead of ()

text: Here's a minimal example of what I'm doing presently:               \documentclass[a4paper,12pt]{article}     \usepackage{amsmath}     \usepackage{arydshln}     \makeatletter         \renewcommand*\env@matrix[1][*\c@MaxMatrixCols c]{%           \hskip -\arraycolsep           \let\@ifnextchar\new@ifnextchar       \array{#1}}     \makeatother          \begin{document}     $\begin{pmatrix}[ccc:c]       1&2&3&0 \\       4&5&6&0 \\       7&8&9&0 \\     \end{pmatrix}$     \end{document}      Here's what the output looks like: ![Present output \(parens\)](http://i.stack.imgur.com/x0NKL.png) I'd prefer if the left and right brackets on the matrix were square brackets instead of parentheses. Is there an easy way to make such a change?


title: Use a \ref{} value to set a counter value

text: How does one set the value of a counter to the value obtained from a `\ref{}` command? I am using the `xr` package to access labels from another document; I want to add the value of a `\ref{}` to a counter in my current document. I tried `\setcounter{newcount}{\value{\ref{oldlabel}}}` but that doesn't work.


title: Underfull hbox in tabular

text: I'm trying to make a table with fixed column widths. Cells in the first column will generally not have enough text to require a line break within the cell. The second column's cells will quite often be multi-line cells. Whenever I have a cell in the first column require a linebreak I get an "underfull \hbox" warning like: > Underfull \hbox (badness 10000) in paragraph at lines 7--7 Here is an example of what I am currently doing:               \documentclass[twocolumn]{article}          \begin{document}     \begin{table}       \begin{tabular}{|p{0.25\columnwidth}|p{0.75\columnwidth}|}         \hline         longish line of text & second cell that will often have a lot of text\\         \hline       \end{tabular}     \end{table}     \end{document}      I don't require that the column widths be fixed to what they are, or fixed at all. I just want to allow newlines in both columns without having the first column get too wide (and cause excessive newlines in the second column). I also need to have this table fit in a twocolumn environment, which is where most of the space restriction comes from.


title: Remove "Chapter P:" from Preface

text: I'm trying to reproduce this exact format for a Preface. But my toc still shows "Chapter P: Preface", whereas I'd like it to say "Preface" only. Any ideas? Here's the gist:               \documentclass[11pt,oneside]{thesis}     \usepackage{titlesec}          \begin{document}     \frontmatter     \input{title}     \makeacknowledgements     \input{ack}          \makeabstract     \input{abstract}          \tableofcontents     \listoftables     \listoffigures          \mainmatter          %\addcontentsline{toc}{chapter}{Preface}          % preface     \begingroup         \renewcommand\thechapter{P}         \titleformat{\chapter}[display]         {\normalfont\huge\bfseries}{}{20pt}{\Huge}         \addcontentsline{toc}{chapter}{Preface}         \chapter*{Preface}         \section{PSection}         \subsection{PSubsection}     \endgroup          \part{Part 1}     \addtocounter{chapter}{-1}     % ch1: stuff     \chapter{Chapter 1}     \section{Section 1}     \subsection{Subsection 1}          \end{document}      It doesn't seem to be a problem with \include, as I tried it with \chapter{Preface} instead. Still didn't work. Many thanks in advance.


title: Block matrix with vectors

text: I'm trying to typeset matrices composed of row vectors like this: ![enter image description here](http://i.stack.imgur.com/Nm47l.png) It uses a **bar** to represent row vectors. I'd also like vertical bars to represent column vectors. What is the best way to achieve this? Thanks to @Przemysław's answer. Here is also how to typeset the original matrices (with dots):               \[     \mathrm{d}\left[       \begin{array}{c@{\,}c@{\,}c}         & \vdots & \\[3pt]         \raisebox{3pt}{\rule{5mm}{0.2pt}} & \rule{0mm}{10pt} cR & \raisebox{3pt}{\rule{5mm}{0.2pt}}\\[3pt]         & \vdots &        \end{array}     \right]=c\mathrm{d}\left[       \begin{array}{c@{\,}c@{\,}c}         & \vdots & \\[3pt]         \raisebox{3pt}{\rule{5mm}{0.2pt}} & \rule{0mm}{10pt} R & \raisebox{3pt}{\rule{5mm}{0.2pt}}\\[3pt]         & \vdots &        \end{array}     \right]     \]      ![enter image description here](http://i.stack.imgur.com/HW7DA.png) Changing `\vdots` to `\vline` produces the column vectors.


title: Yield symbol (chemistry)

text: I'm trying to format a chemical reaction with LaTeX, and apparently it doesn't accept "→" as a character. Is there any way to do it?


title: Embed all fonts by "exporting as PDF", but cannot copy text any more?

text: I am using `Fontin` as the font style and `XeLaTeX` my document. In order to ensure every computer can display the font style correctly, I decided to re- export the document as PDF with Mac Preview so that all the fonts are embedded in itself (this trick indeed works!). However, a new problem arises. In the re-exported PDF file, once I copy the text, many spaces are copied. But I can copy text in my original PDF file. How can I fix this? Being able to copy text from my document is as important as embedding all the fonts.


title: Footnote without a marker

text: I am new to LaTeX. I am trying to write a paper using latex. I want a footnote about the funding source of my work in the first page without marker. I tried below approaches:   1. `\footnotetext{text goes here}` This creates a footnote but with '0' as marker. However, the marker reference does not appear within the normal text where I placed this command.   2. Used `\def\blfootnote{\xdef\@thefnmark{}\@footnotetext}` definition provided at http://help-csli.stanford.edu/tex/latex-footnotes.shtml#unnumber. I placed this definition in the main tex file just after package declaration. But, this gives the below error.                 ! Use of \@ doesn't match its definition.        \blfootnote ->\xdef \@thefnmark{}\@f                                            ootnotetext


title: How do I put footnotes without putting any reference numerical mark on it?

text: \footnotetext{TOV: Tolman, Oppenheimer, Volkoff (1939)}     \footnotetext{Richard C. Tolman: Phys. Rev 55 (1939), 364-373. Static Solutions of Einstein's Firld Equations for mass of Fluid.}     \footnotetext{ J.R Oppenheimer \& G. M Volkoff, phys Rev 55 (1939), 374-381. On Massive Stellar Core}      These footnote texts come up with superscripts and subscript numerical values. How do I get them cleaned?


title: Macro or package for typesetting "LaTeX" (the name)?

text: I just realized there's a LaTeX package for printing the text of "lorem ipsum". _Surely_ then, there's also a macro / package for writing "LaTeX" (with the proper super-/subscript) in a document. But I found googling for this a bit hard. ("LaTeX macro"? Probably not.) Can any of you groks help me out here?


title: Contents of a table, present in a Beamer Frame, are lost, when beamerarticle is used to convert it to a document

text: I have a beamer slide with a table defined in `slides.tex` as below:               \begin{frame}{Results: Partitions-Medial Computation}     \begin{table}[!h]     \begin{tabular}[h]{@{}r r r r @{}}     \toprule     {\bf Type } & {\bf Shape } & {\bf Partitions} & {\bf Midcurves}\\     \midrule     %     %     \bottomrule     \end{tabular}     \end{table}     \end{frame}      I need to prepare a document using these slides so I am using:               \documentclass[a4paper]{article}     \usepackage{booktabs}     \usepackage{beamerarticle}     \begin{document}     %     \input{slides} % as shown above     %     \end{document}      Contents of the table are not shown. When I comment-out `\begin{table}` and `\end{table}` and retain the `tabular` env., it works fine. But with this I am losing `caption/label` that comes with the `table`. Any idea?


title: parskip package, keep the indents

text: That may be a stupid question but is there a way to keep the indent while using the `parskip` package? I use `parskip` to keep spacing between my paragraphs while leaving the table of contents and lists intacts but I would like to keep the indents in my text. Code 1 :               \usepackage{parskip}          \tableofcontents          \section{Section 1}     \subsection{Sub 1}          Paragraph 1          Paragraph 2      Code 2               \setlength{\parskip}{10pt}          \tableofcontents          \section{Section 1}     \subsection{Sub 1}          Paragraph 1          Paragraph 2      Basically I want the aspect of the table of contents (and possible lists) from the code 1 while keeping the indent like in the code 2. The package `parskip` works great but I just don't like that it deletes the indents and I'd like to find a way to prevent it from doing that. Thank you.


title: \cal gives "Undefined control sequence" error

text: I've used `\cal` throughout my document and now when I go to switch the document class the `\cal` is giving me a "Undefined control sequence." error. Any thoughts on why the document class would make a difference?


title: "Pretty-printing" numbers redux: engineering notation

text: Awhile ago I discovered the `siunitx` package as an answer to this question and it kind of blew my mind. For instance, if I'm using `fp` to compute a numerical result (in, say, a homework solution), then I can do the following:               \usepackage{siunitx}     \sisetup{exponent-product = \times,round-mode = figures,%       round-precision = 3, scientific-notation = engineering}          \def\mass{1700}     \def\velocity{29}     \FPmul\Ek{0.5}\mass     \FPmul\Ek\Ek\velocity     \FPmul\Ek\Ek\velocity          \SI{\Ek}{\joule}      To get "715 x 10^3 J", properly typeset. This is swell, and the tabular stuff is especially powerful. But it is not really what I want as engineering notation-- that would be "715 kJ". I know `siunitx` knows the metric prefixes, but I can't find anything in the documentation that will get it to use them automatically (i.e. without me saying `\kilo` in the `\SI` statement). Am I missing a key option, or is this not something the package does? And can anyone suggest a work-around?


title: In xcolor, what is an easy way to experiment with color choices?

text: I want to check color choices in `xcolor`, for example for row coloring of a table. Is there a site for   1. code ⇒ color; as in you play with the code and see what color you get   2. color ⇒ code; you choose a color and the site provides you with a code. I am looking for simple experimentation other than compiling a file every time to see how it looks. Moreover, If I have hex code for a color how do I define the color?


title: Correcting (removing) adjustwidth's vertical spacing

text: Consider the following example that uses `changepage`'s `adjustwidth` to set a single paragraph at 80% of the text width (on the left). Compare this to the use of `\parshape` (on the right): ![enter image description here](http://i.stack.imgur.com/7a2AW.png)               \documentclass{article}     \usepackage[a5paper]{geometry}% http://ctan.org/pkg/geometry     \usepackage{changepage,lipsum}% http://ctan.org/pkg/{changepage,lipsum}     \begin{document}          \lipsum[1]          \begin{adjustwidth}{0pt}{.2\textwidth}     \hspace*{\parindent}\lipsum[2]     \end{adjustwidth}          \lipsum[2]          \clearpage          \lipsum[1]          \parshape 1 0pt .8\textwidth     \lipsum[2]          \lipsum[2]          \end{document}      How can I adjust the vertical spacing introduced by `adjustwidth` so that it matches that of the `\parshape` output? I understand that `adjustwidth` sets its contents in a list (see `changepage.tex`), and lists naturally have some gap above/below it. However, `\topsep` is set to zero (`\z@`) already, so I'm not sure where these lengths come from/how to remove them.


title: How do I use the kpse library to get the value of $TEXMFHOME?

text: Inspired by some recent experiments on the subject, I'm trying to use `texlua` to automate the installation, done by multiple users, of a complex environment (multiple packages, classes and formats) on multiple computers running different OS and different distribution (TeXLive, MikTeX and MacTeX). `LuaTeX` appears to be the only program I can rely on to work in such conditions. I need to copy some files somewhere in the `$TEXMFHOME` directory. So, I tried the following to print the local `$TEXMFHOME` path:               -- this is file texlua-file.lua     local kpse = require('kpse')     kpse.set_program_name('texlua-file.lua')     print(kpse.expand_var('$TEXMFHOME'))      Run with `texlua` from `/home/christophe/sandbox/lua`, it gives me the following:               warning: kpathsea: configuration file texmf.cnf not found in these directories: /home/christophe/sandbox/lua:/home/christophe/sandbox/lua/share/texmf-local/web2c:/home/christophe/sandbox/lua/share/texmf-dist/web2c:/home/christophe/sandbox/lua/share/texmf/web2c:/home/christophe/sandbox/lua/texmf-local/web2c:/home/christophe/sandbox/lua/texmf-dist/web2c:/home/christophe/sandbox/lua/texmf/web2c:/home/christophe/sandbox:/home/christophe/sandbox/share/texmf-local/web2c:/home/christophe/sandbox/share/texmf-dist/web2c:/home/christophe/sandbox/share/texmf/web2c:/home/christophe/sandbox/texmf-local/web2c:/home/christophe/sandbox/texmf-dist/web2c:/home/christophe/sandbox/texmf/web2c:/home/christophe/../texmf-local/web2c:/home/christophe:/home/christophe/share/texmf-local/web2c:/home/christophe/share/texmf-dist/web2c:/home/christophe/share/texmf/web2c:/home/christophe/texmf-local/web2c:/home/christophe/texmf-dist/web2c:/home/christophe/texmf/web2c.     $TEXMFHOME      Besides I don't understand the need stated in the `LuaTeX` documentation for the line               kpse.set_program_name("texlua-file.lua")      how can I tell `kpse` where to look for the `texmf.cnf` file without knowing the actual settings of the local TeX distribution?


title: Have some integrals been removed from the mathdesign package?

text: According to The Comprehensive LaTeX symbol list as well as the mathdesign package documentation, `mathdesign` contains `\ointclockwise`, `\ointctrclockwise`, `\oiint`, etc. But when I try to use them, I get `! Undefined control sequence.` Has the package been changed? I’m using MikTeX which downloaded and installed `mathdesign`, but when using it, I get the warning               `Package mathdesign Warning: No font specified on input line 145.`      I can avoid the problem by using the `esint` package instead, but it still puzzles me.


title: Bibtex ordering by appearence of the .bib file instead of the .tex file

text: I'm using TexMaker + BibTex + XeLaTeX and everything was fine, until I noticed that it was ordering the references by the .bib file order instead of the `.tex` file order. So it starts at `[5]` instead of `[1]` because my first citation it's the 5th element in the `bib` file. This are the packages which I'm using:               \usepackage{graphicx} % images     \usepackage{fontspec} %font to show accents in xelatex     \usepackage{url} %for urls     \usepackage[portuguese]{babel} %portuguese documment     \usepackage{color} %for text color      I put the references before the end document:               \bibliographystyle{IEEEtran} %for IEEE references style     \bibliography{references}     \end{document}      Also I always do the `F1`-`F11`-`F1`-`F1` to compile.


title: Mark inline equation to render as image with htlatex

text: Is there any way to mark some inline equation so it was rendered as pictures with `htlatex`? I know there is a way to make `htlatex` to render **all** inline equations as pictures, but i have many simple inline equations and i do not want so `htlatex` created picture for every easy equation. I want it rendered pictures for inline equations which i choose and somehow mark in source. Thanks in advance.


title: Is there an OCR that can convert an image of a formula into a TeX markup?

text: Is there an OCR software that can convert a graphical image (in PNG, GIF, TIFF, PDF... format) of a mathematical formula into the corresponding TeX markup?


title: Tikz Paths in Automata

text: I'm trying to draw an automata in LaTeX with TikZ, but I don't know how to make a long transition between two states. I need a sized label to be placed on it.               \documentclass{article}          \usepackage{tikz}     \usetikzlibrary{automata,positioning}     \begin{document}     \begin{tikzpicture}[shorten >=1pt,node distance=2cm,on grid,auto]              \node[state,initial] (s_0)   {Start 1};         \node[state] (s_1) [right=of s_0] {Start 2};         \node[state] (s_2) [right=of s_1] {Start 3};                        \path[->]          (s_0) edge [bend left] node {Path not long enough for text} (s_1);          \end{tikzpicture}     \end{document}      Gives this result: ![enter image description here](http://i.stack.imgur.com/D18uU.png) Anyone here who could help me?


title: Why can't I get a conditional command to work in a macro invoked within a tikzpicture?

text: I wanted to create a macro that can be invoked in the middle of a tikz path and behave differently, conditional on one of the arguments. Here is an example document:               \documentclass[a4paper]{amsart}          \usepackage{ifthen, tikz}          \newcommand{\nameandlabel}[2]{%         node [midway, \ifthenelse{\equal{#1}{a}}{above}{below}] {#2}%     }          \begin{document}          \begin{tikzpicture}[xscale = 25mm]         \node (a) at (0, 0) {$A$};         \node (b) at (1, 0) {$B$};         \node (c) at (2, 0) {$C$};         \draw (a) -- (b) node [midway, above] {$f$};         \draw (b) -- (c) \nameandlabel{a}{$g$};     \end{tikzpicture}          \end{document}      This document does not compile. It results in this error message, which is surprising because `\equal` is a macro provided by ifthen.               ! Undefined control sequence.     <argument> \equal                        {a}{a}     l.16     \draw (b) -- (c) \nameandlabel{a}{$g$}                                                    ;      I saw discussion on the TeX-LaTeX Stack Exchange that said that ifthen was obsolete and that the `\IfStrEq` macro from the xstring package might be used instead. So I changed the example to the following:               \documentclass[a4paper]{amsart}          \usepackage{xstring, tikz}          \newcommand{\nameandlabel}[2]{%         node [midway, \IfStrEq{#1}{a}{above}{below}] {#2}%     }          \begin{document}          \begin{tikzpicture}[xscale = 25mm]         \node (a) at (0, 0) {$A$};         \node (b) at (1, 0) {$B$};         \node (c) at (2, 0) {$C$};         \draw (a) -- (b) node [midway, above] {$f$};         \draw (b) -- (c) \nameandlabel{a}{$g$};     \end{tikzpicture}          \end{document}      But this results in an even more incomprehensible error message:               ! Argument of \XC@definec@lor has an extra }.     <inserted text>                      \par      l.16     \draw (b) -- (c) \nameandlabel{a}{$g$}                                                    ;      Why does this still not work?


title: Change citation delimiter between works of the same author (biblatex)

text: I can change the delimiter between multiple citations in `biblatex` with `\multicitedelim`, but this only applies to citations with different authors. When I have multiple citations with the same author, however, it seems to print a comma every time. As in the example below, this can be very confusing if you use another symbol, e.g. a semicolon `;` as your citation delimiter, and a comma as your page delimiter. How can I set the delimiter between citations of the same author to be the same as the delimiter between different authors?               \documentclass{article}     \usepackage[style=authoryear, citestyle=authoryear-comp]{biblatex}     \DeclareFieldFormat{postnote}{#1}     \renewcommand{\postnotedelim}{\addcolon\addspace}     \renewcommand{\multicitedelim}{\addsemicolon\space}     \usepackage{filecontents}     \begin{filecontents}{\jobname.bib}     @BOOK{lennon1971,         AUTHOR = "John Lennon",         TITLE = "My really long book on my life",         YEAR = "1971",         LOCATION = "Liverpool",         PUBLISHER = "Penny Lane Press"}     @BOOK{lennon1973,         AUTHOR = "John Lennon",         TITLE = "Music -- why I make it",         YEAR = "1973",         LOCATION = "London",         PUBLISHER = "Johnny Smith"}     @BOOK{mccartney1979,         AUTHOR = "Paul McCartney",         TITLE = "Penny Lane is still in my ears",         YEAR = "1979",         LOCATION = "New York",         PUBLISHER = "Peter Alden"}     \end{filecontents}     \addbibresource{\jobname.bib}     \begin{document}     \cites[282, 1967]{lennon1971}{lennon1973}{mccartney1979}     \printbibliography     \end{document}      ![enter image description here](http://i.stack.imgur.com/JsXV7.png)


title: Create tabs in tabularx environment

text: I just have a question if it's possible to insert tabs into one cell in `tabularx`. For a better illustration of this problem I will include pictures. ![TextBox text](http://i.stack.imgur.com/CWLYF.png) This is what I have in textbox in my program. So I can determine where the tab keys, newlines and spaces are. I need same format in cell in `tabularx`. In LaTeX code I have this:               \begin{tabularx}{\columnwidth}{lX}     \multicolumn{2}{l}{\textbf{Identification:}} \\     \textbf{End A:} & Something \newline Wire 1: asd Color: black Type: copper \newline Wire 2: asd Color: red Type: aluminium \\     \textbf{End B:} &  \\     \end{tabularx}      ![Latex output](http://i.stack.imgur.com/NtjjH.png) But I need to have the same spacing like in textbox. Is there any possibility how to do it? Because I really dont want to create as many columns as I need for it and then multicolumn those which are not used. Maybe something similar as \> in `tabbing`.


title: How to make the TOC's part entry in one column while the others in two columns?

text: I use the `tocloft` package to design the Table of Contents. I want the part entries listed in one column and all the other entries such as chapter, section, subsection ... should be listed in two columns. For example, I want to have:                                                Part I entry     ------------------------------------ \hrule ---------------------------------     Chapter 1 chapter title ............ 1|Chapter 2 chapter title ............ 4           1.1 section title............. 2|      2.1 section title............. 5               1.1.1 subsection title ... 3|          2.1.1 subsection title ... 6                                                Part 2 entry     ------------------------------------ \hrule ---------------------------------     Chapter 3 chapter title ............ 7|Chapter 4 chapter title ........... 10           3.1 section title............. 8|      4.1 section title............ 11               3.1.1 subsection title ... 9|          4.1.1 subsection title .. 12      Em, the following is my MWE:               % !Mode:: "TeX:UTF-8"     \documentclass{book}     \usepackage{tocloft}     \usepackage{etoolbox}     \usepackage{tikz}          \renewcommand\cftpartafterpnum{\nopagebreak\vspace{-.7em}\par\tikz\draw (0,-0.1) -- (0,0) -- (\linewidth,0) -- (\linewidth, -0.1);\vspace{-2em}}     \setlength{\cftpartnumwidth}{0pt}     \setlength{\cftbeforepartskip}{.6em}     \makeatletter     \renewcommand{\cftpartfont}{\bfseries%       \def\numberline##1{\gdef\@temp@numberline{##1}}%     }     \renewcommand{\cftpartfillnum}[1]{%         {}%         {\centering\makebox[0em]{\cftpartpagefont}\cftpartafterpnum}%     }     \makeatother          % http://tex.stackexchange.com/questions/78980/how-to-emulate-titletoc-with-tocloft     \pretocmd{\part}{\addtocontents{toc}{\par}}{}{}     \pretocmd{\chapter}{\addtocontents{toc}{\par}}{}{}          \begin{document}     \tableofcontents          \part{Part Title}     \chapter{Chapter Title}     \section{Section Title}     \subsection{Subsection Title}     \subsubsection{Subsubsection Title}     \subsubsection{Subsubsection Title}     \section{Section Title}     \section{Section Title}     \subsection{Subsection Title}          \part{Part Title}     \chapter{Chapter Title}     \section{Section Title}     \subsection{Subsection Title}     \section{Section Title}     \section{Section Title}     \subsection{Subsection Title}     \subsubsection{Subsubsection Title}               \part{Part Title}     \chapter{Chapter Title}     \section{Section Title}     \subsection{Subsection Title}     \section{Section Title}     \section{Section Title}     \subsubsection{Subsubsection Title}          \end{document}       So how can I make all entries in two columns except the part ones just like the sample style presented Here. Thanks.


title: Group two tables so that they appear on successive pages

text: I have a table that is too big to fit on a page without shrinking the text to unreadable sizes. As a result, I have split it in to two. I can't use longtable to do this automatically as I am also using `\resizebox` to control the text size. I'm finding that the tables are being placed so that table #1 is one page, two image floats are on the next page, then table #2 is on the third page. How can I force the two tables to be placed together on successive pages and not split apart by another float?


title: How to build a document header?

text: I have been working on print media and I would like to format my current word style to LaTeX. I am very new to this knowledge but wanting to learn for my profession. I am really looking forward for a header like this but been messing a lot myself with the code. I believe we can do it using table but my code is a mess. It would be great if someone helps me to fix this. I need this format above my page header. Sorry for not providing sample. ![enter image description here](http://i.stack.imgur.com/qFu74.png)


title: can one use \figure with the grid-system package?

text: Using the grid-system package http://www.ctan.org/tex- archive/macros/latex/contrib/grid-system Very little documentation on it. When I tried adding a `\figure` in a cell, I get Latex error.               \documentclass[12pt,notitlepage]{article}%     \usepackage{float}     \usepackage{grid-system}     \begin{document}          \begin{Row}%     \begin{Cell}{2}            test     \end{Cell}     \begin{Cell}{1}          \begin{figure}         test     \end{figure}          \end{Cell}     \end{Row}          \end{document}      now, when I compile this using texstudio on windows (Miktex 2.9) I get the error: ![Mathematica graphics](http://i.stack.imgur.com/aAkUj.png) when I compile on Linux, using texlive 2013, I get: ![Mathematica graphics](http://i.stack.imgur.com/mFcPk.png)


title: Fill a node shape

text: I am trying to fill a custom shaped node but as can be observed in the example below the fill does not occur naturally rather it uses its default shape to fill. Any insights?               \documentclass[letterpaper]{article}     \usepackage{tikz}          \usetikzlibrary{shapes.geometric,calc}          \setlength{\parindent}{0pt}          \begin{document}          \begin{tikzpicture}     \draw (0,0) -- (\textwidth-0.4pt, 0) node[         fill=blue!20,         append after command={[rounded corners=0pt](b.west)|-(b.north)},         append after command={[rounded corners=0pt](b.north)-|(b.east)},         append after command={[rounded corners=1pt](b.east)|-(b.south)},         append after command={[rounded corners=5pt](b.south)-|(b.west)},         anchor=north west,         at start,         text=white]      (b) {Example} ;     \end{tikzpicture}     \end{document}      ![enter image description here](http://i.stack.imgur.com/yrOPg.png)


title: Can I include the last index inside the label of an enumeration?

text: Can I achieve something like this with automatic numbering?               Examples:       1 of 93: Example one       2 of 93: Example two       ...       92 of 93: Example ninety-two       93 of 93: Example ninety-three      I can change the label of enumerate, but I can't reference the number of items.


title: How to move from makeindex to xindy?

text: Is there an easy, lightweight way to manage multiple glossaries and indices using xindy rather than makeindex? Everything _works_ currently using makeindex, but it's not as nice as it could be. I'm fine with how things look for now, but I'd like to start using the preferred tool as soon as possible. Evidently xindy is the way to go. I understand a possible workaround is to use makeindex4, which is a wrapper to xindy that tries to behave like makeindex, but I'd like to avoid using yet another program, and makeindex4 doesn't come with TexLIVE 2012. If anyone could point me to a xindy style file that is similar to the glossaries style 'altlist', I could probably modify it from there. Thoughts? Thanks in advance! (Other info: I use TexShop 2.47 for Mac.) (Also, I LOVE this site and have found many forums very helpful. Unfortunately, I can't vote anything up because I lack reputation. I wish voting for answers would help build reputation!)


title: How to add name of project or group in 'author' field in bibtex?

text: So I want to include list of authors classically separated by 'and', but at the end I want to have the name of that group or the project they were working on. I want to get something like this for instance, in bibliography: "N. Suzuki et al. (Planck Colaboration)" Is there an additional field that I can use, or some special way in which I could add this name to the 'author' field? Edit: I am currently using 'abbrv' style, but it is not really satisfying, because I would like to have field 'year' displayed before field 'pages' both for journals and for books.


title: LuxiMono on OS X / TeXShop

text: This is perhaps a very stupid question -- I'm trying to get the luximono font activated for listings in a LaTeX document. I'm not very LaTeX savvy concerning the whole TeX installation architecture. I am on OS X 10.6, and I am using TeXShop. I understand that luximono is not part of the normal tex live installation. So what I did is follow the instruction of this question. I have now               \usepackage[scaled=0.8]{luximono}      in my document, but the font of the listing looks all bad, some serif font. I get an error message in the log:               LaTeX Font Warning: Font shape `OT1/ul9/m/n' undefined     (Font)              using `OT1/cmr/m/n' instead on input line 175.      I have a hunch that when I ran `getnonfreefonts -a`, there is no environment variables `$TEXMFHOME` or `$TEXMFLOCAL` set, so perhaps it installed in the wrong place? I have folder `/usr/local/texlive/` on my computer, I don't know if this is the right place, or if the standard OS X ghostscript is somewhere else? **EDIT** Maybe this helps: I seem to have two folders, `/usr/local/texlive/2010/texmf/fonts` and `/usr/local/texlive/texmf- local/fonts`. The installation was done into the latter.


title: Where can I find the LaTeX3 manual?

text: Few month ago I saw a big pdf-manual of all LaTeX3-packages and the new syntax. I think it was bigger than 300 pages. I can't find it on the web. Does anyone have a link?


title: How to use downloaded moderncv template with MiKTeX?

text: I have downloaded a template named `moderncv` but don't know how to use it. As I am a beginner, please suggest me the pdf's describing the solution.


title: How can I encode the current document as a QR code with pst-barcode?

text: \documentclass{article}     \usepackage{pst-barcode}          \begin{document}     \begin{pspicture}       \psbarcode{\input{\jobname.tex}}{}{qrcode}     \end{pspicture}     \end{document}      I tried placing `\expandafter`s before and after `\psbarcode`, but no juice. It can handle control sequences just fine, but it will expand them. How can I get it to not expand its argument at all (save, of course, `\input`) and take it verbatim? The encoding of this particular document is ![enter image description here](http://i.stack.imgur.com/TOzN8.png)


title: How to detect if option provided via \tikzset

text: I would like to be able to detect if a particular option has been provided via a `\tikzset` and issue a message based on that. The MWE yields: ![enter image description here](http://i.stack.imgur.com/QqHFt.png) But once the conditional works (just a comment for now) it should yield: ![enter image description here](http://i.stack.imgur.com/1pnRP.png) ## Notes:   * Even though I don't think that this case introduces any additional complexity, I am not concerned about the case where a `\tikzset` uses a style defined by another `\tikzset`. ## Code:               \documentclass{article}     \usepackage{tikz}               \tikzset{Hollow/.style={red}}     \tikzset{Solid/.style={green}}          \newcommand{\TikzPicture}{%         \begin{tikzpicture}             \draw [ultra thick, blue, ->, My Options] (0,0) -- (1,0)             % If option Hollow is specified                 node [right] {Error: Option Hollow specified.}             ;         \end{tikzpicture}%     }%          \begin{document}          \tikzset{My Options/.style={Hollow}}     \TikzPicture          \tikzset{My Options/.style={}}     \TikzPicture     \end{document}


In my understanding, vector graphics font can be shrunk or expanded without limitation. In other words, its size spans in continuous real numbers. But I got surprised after getting the following warnings: ![enter image description here](http://i.stack.imgur.com/fEmnh.png)               \documentclass{article}     \usepackage[a4paper,margin=2cm]{geometry}     \pagestyle{empty}     \usepackage[OT1]{fontenc}     \makeatletter     \DeclareMathSizes{\f@size}{\f@size}{0.6\f@size}{0.3\f@size}     \makeatother          \newcommand\foo[1]     {{#1%     Such as $E=mc^2$ or,     \[     \int_{a_1}^{b^2}f(x)\,\textrm{d}x=F(b^2)-F(a_1)     \]     }}          \parindent=0pt     \begin{document}     \begin{description}     \item[Huge]     \foo{\Huge}     \item[huge]     \foo{\huge}     \item[LARGE]     \foo{\LARGE}     \item[Large]     \foo{\Large}     \item[large]     \foo{\large}     \item[normalfont]     \foo{\normalfont}     \item[small]     \foo{\small}     \item[footnotesize]     \foo{\footnotesize}     \item[scriptsize]     \foo{\scriptsize}     \item[tiny]     \foo{\tiny}     \end{description}     \end{document}      ![enter image description here](http://i.stack.imgur.com/KRzTC.png) Why does vector graphics font not exist for a certain size?


title:
LaTeX equivalent of

 in HTML?

text:
In HTML, all I would have to do is:               This is line one
.
.
     This is line two      to get the following output:               This is line one     .     .     This is line two      I've been playing around with `\\\` and `\newline` but can't get it to work. Can someone provide a working example? **UPDATE:** Ok, I found out I was doing it entirely wrong. I relied on extra line breaks to give me more vertical space. **`\baselineskip`** matches my needs better and gives the user more fine control.


title: mathtools: the use of intertext in align

text: If I use `\intertext{some sentence or two}` and then continue `align`, will the `align` environment break across a page break where the text is inserted or is it still unbreakable? > If it is still unbreakable, is there a way to make it breakable without > using a new `align` environment and `\phantom{some equation}` to re-align > the the alignment position. So consider:               \documentclass{article}     \usepackage{mathtools}     \begin{document}     Suppose this text takes us just above the page breaking point (let's say 5 lines).     \begin{align*}     1 &= 1\\     2 &= 2\\     \intertext{sentence 1\\     sentence 2.}     3 &= 3\\     4 &= 4\\     5 &= 5     \end{align*}     \end{document}      If the box doesn't break, there will be a significant gap of white space which will look ugly. However, if it breaks at `\intertext{}`, the look will flow more natural picking up the remainder of the `align` environment after the page break.


title: How can I set the urlseen label of biblatex?

text: I'd like to set the default _visited on <date>_ to _accessed on <date>_ (as per my teacher's specifications). I believe I need to change the `urlseen` label to accomplish this. Is changing the `urlseen` label the way to go, and if so, how can I do this?


title: How can I fix jumping TikZ pictures in beamer?

text: The problem of stuff jumping in beamer is a common one, (see e.g. Avoiding jumping frames in beamer) and we've seen it here from time to time (I imagine the "related" list at the side will be quite long on this one!). With a TikZ picture, one method of fixing this is to manually specify the bounding box. I'd like to get rid of the word "manually" in that sentence! This oughtn't to be too hard to implement, my imagined scheme would involve writing out the final bounding box to the `.aux` file so that it is available for use at the start of the tikzpicture environment. First question: has anyone implemented this yet? If (as I suspect) not, I'd _like_ the second question to be "could someone do it for me?" but that's not in the spirit of the site. So here's my idea for how this would be done:   1. On each slide of a frame, the tikzpicture saves its bounding box.   2. At the end of the frame, the tikzpicture writes out the largest bounding box to the `.aux` file (note that the largest may not be the last).   3. On subsequent runs, the way that the bounding box was written out tells the tikzpicture what its bounding box ought to be and it draws a `\useasboundingbox` path accordingly (at the start of the picture). So second question, which is a bit open-ended but hopefully I can get away with it: what are the pitfalls of the above. And third question, (yup, I'm really stretching things here): if there is a part of the above that someone _just happens to know_ , please put the code in an answer. I'm sufficiently confident of my TeX skills that I'll be able to take the pieces and put them together, and also to adapt pieces. So I'm _not_ asking anyone to code this for me, just help me find the pieces needed. (though if anyone _does_ code it ...) Here's a very simple example of what I mean (you have to compile it to see, though). As everyone knows, the earth goes around the sun. But not in _this_ presentation. Cosmology according to this presentation is a ... little bit weird.               \documentclass{beamer}     \usepackage{tikz}          \begin{document}     \begin{frame}     \begin{tikzpicture}     \foreach \k in {1,...,8}     {       \fill<\k>[orange] (0,0) circle[radius=.5];       \fill<\k>[blue] (\k * 45:3) circle[radius=.2] coordinate (a);     }     \draw (0,0) -- (a);     \end{tikzpicture}     \end{frame}     \end{document}      **Note:** The above example is a very simple example, it is _not_ a live example. I don't want an answer that fixes that particular example, I'm looking for a system of fixing _every possible example_.


title: Add a figure title and x-axis label to a figure matrix created using pdfpages

text: ### Background I previously asked: Can I convert a 16 page pdf into an 8x2 matrix in LaTeX? I ended up creating a 3x5 matrix of images from a 15 page pdf by compiling a document "foo.tex":               \documentclass{article}                                                                               \usepackage{pdfpages}                                                                                \begin{document}                                                                                \includepdf[landscape = false,                                                                        pages={1-15},                                                                                nup=3x8,                                                                                delta={10 10}]{myplots.pdf}                                                               \end{document}              Which gives the document foo.pdf: ![enter image description here](http://i.stack.imgur.com/cwniK.jpg) I have used the `caption` package to place captions on a separate page, as described in the answer to a separate question by putting this in the preamble:               \usepackage{caption}     \usepackage{letltxmacro}% http://ctan.org/pkg/letltxmacro     \captionsetup{labelsep=none}     \DeclareCaptionTextFormat{none}{} \captionsetup{labelsep=none,textformat=none}      And then include foo.pdf in my manuscript as a figure with the following command:               \begin{figure}[p]       \caption{This is my caption that will end up on another page}       \begin{center}         \includegraphics[width=0.9\textwidth]{foo.pdf}       \end{center}       \label{fig:foo}     \end{figure}     \end{document}      ### Question Now, I need to add a title and an x-axis label to the overall figure (not to the individual plots), how can I do this? I have looked in the pgfpages documentation, and could not find any such feature. ### Updates / What I have tried using overpic, as suggested in the related question suggested by @percusse would work after adding `ofset=10mm,10mm` to the `pdfpages` command, except that it is not clear how to rotate the text 90 degrees for the x-axis. I have come up with a temporary "good-enough" solution and posted this as an answer


title: Independent Columns Environment

text: I am creating a two-page syllabus with a tikz calendar in the left column and all of the content on the right side of the page. Currently the right content is just like a normal article class document with the left margin adjusted by the geometry package to avoid overlapping the absolutely positioned tikz calendar. **Question** : Is there any way in (Xe)Latex to put the two columns into environments, such that whatever I put in on the left column is completely independent from the right and vice versa, which would effectively lock the tikz pictures to pages, ignoring the right side _content_. **My Goal** : A master document for all of my syllabi, where the right side _content_ is simply an \input{thecontent}. The left side will be a tikz calendar (one on the first page, one on page 2) **Problem** : I have a master document, but if the right column _content_ (the _\input{content}_ ) is a shorter document or more likely a longer document, I have to keep moving the tikzpicture environment around in order to get the calendars on the left side of the page. Text seems to push them to the next page. NOTE: Currently, the tikzpicture environments are positioned absolutely on the page. --------------->               \documentclass[10pt]{article}     \usepackage{fontspec}          %CUSTOM VARIABLES     \newcommand{\content}{./"Winter2012/Listening and Speaking 1/Listening_and_Speaking_1_Syllabus"}     %UNUSED COMMANDS, BUT PERHAPS USEFUL LATER     \newcommand{\institution}{Universität Innsbruck}     \newcommand{\department}{Institut der Anglistik}     \newcommand{\class}{Listening \& Speaking I}     \newcommand{\designation}{SL/2}     \newcommand{\ECTS}{ECTS: 2.5}     \newcommand{\hours}{[W 10.00-12.00]}     \newcommand{\office}{}          %SET MARGINS (AND PAGE DIMENSIONS)     \usepackage[top=2.8cm,bottom=2cm,left=7cm,right=2cm,head=30pt]{geometry}          \usepackage{wrapfig}          %USE THISPAGESTYLE{EMPTY} BELOW MAKETITLE OR {FANCY}     \usepackage{tikz}     \usetikzlibrary{shapes,calendar,mindmap,patterns}     \usepackage{everypage} % put something on every page          %HEADER FOOTER     \usepackage{fancyhdr}     \lhead{} \chead{\textsc{}} \rhead{\textsc{{\Huge\class}\\\institution} }     \lfoot{\textsc{J. Komar}} \cfoot{\textsc{}} \rfoot{\textsc{\today}}     \renewcommand{\headrulewidth}{0.0pt}      \renewcommand{\footrulewidth}{0.0pt}     %\renewcommand{\headersep}{5cm}     \pagestyle{fancy}%ADD HEADER FOOTER TO PAGE EXCEPT TITLE PAGE     %USE THISPAGESTYLE{EMPTY} BELOW MAKETITLE OR {FANCY}     \usepackage{lipsum}%To generate test text, use \lipsum[#NUMOFLINES#] in body          %\newcommand\event[2]{\ifdate{equals=#1} {\node [anchor=north west, text width=3.5cm,event]{#2};      \newcommand\event[2]{         \ifdate{equals=#1} {     % In the following, the event nodes are defined     % The \rule in the node text is necessary to match the "text depth=0.5ex" of the date nodes             \node [yshift=6pt,xshift=5pt,anchor=west,text height=1.5ex, text width=3.5cm,event]{#2};          }{}     }          \newcommand\redevents{         \tikzstyle{event}=[black,fill=red!10]         %\event{2012-10-31}{This is a very long event text running over three lines.}         %\event{2012-11-07}{Short event!}         %\event{2012-11-14}{Third of the longish events\ldots}     }          \usepackage{enumitem}     \setlist{nolistsep}     \begin{document}%BEGIN DOCUMENT     %BACKGROUNDS     \AddEverypageHook{ % on every page...ensure \usepackage{everypage} in header     \begin{tikzpicture}[remember picture, overlay]     \node[xshift=1.8cm] at (current page.north west) {\begin{tikzpicture}[remember picture,overlay,fill opacity=0.5]\path[fill=yellow!15] (0,0) rectangle (4.5cm,-\paperheight);\end{tikzpicture}};     \node[yshift=-.5cm,xshift=0cm] at (current page.north west) {\begin{tikzpicture}[remember picture, overlay]\path[fill=blue!15] (0,0) rectangle (\paperwidth,-2cm);     \end{tikzpicture}};     \end{tikzpicture}     }          \begin{wrapfigure}{l}{0.5cm}     \tiny     \begin{tikzpicture}[remember picture]     \path[use as bounding box] (0,0) rectangle (1,1); % adjust to fit     \node[xshift=2.2cm,yshift=-3.5cm](NW) at (current page.north west) {};       \calendar [day list downward,                   month text=\%mt\ \%y0,                   month yshift=5em,                   name=cal,                   dates=2012-10-01 to 2012-12-last,                   at={(NW)},                   every day/.style={                        anchor=mid,                        text depth=0.5ex,                        text height=1.5ex,                        text width=.3cm,                        align=center},                  execute after day scope={                        \redevents                   }                   ]         if (Wednesday) {\draw[black] (0,0) circle (4pt);}         if (weekend) [transparent!0]         if (day of month=1) {           \node at (0pt,2em) [anchor=base west,color=black] {\small\tikzmonthtext};           \draw[anchor=north,yshift=8pt] (0,0)--(4,0);     };     \end{tikzpicture}     \end{wrapfigure}          \input{\content}%inputted right column          %%%%%%%%%%%%%%%%END OF CONTENT          \begin{wrapfigure}{r}{0.5cm}     \tiny     \begin{tikzpicture}[remember picture]     \path[use as bounding box] (0,0) rectangle (1,1); % adjust to fit          \node[xshift=2.2cm,yshift=-3.5cm](NW) at (current page.north west) {};       \calendar [day list downward,                   month text=\%mt\ \%y0,                   month yshift=5em,                   name=cal,                   dates=2013-01-01 to 2013-02-last,                   at={(NW)},                   every day/.style={                        anchor=mid,                        text depth=0.5ex,                        text height=1.5ex,                        text width=.3cm,                        align=center},                  execute after day scope={                        \redevents                   }                   ]         if (Wednesday) {\draw[black] (0,0) circle (4pt);}         if (weekend) [transparent!0]         if (day of month=1) {           \node at (0pt,2em) [anchor=base west,color=black] {\small\tikzmonthtext};           \draw[anchor=north,yshift=8pt] (0,0)--(4,0);     };     \end{tikzpicture}     \end{wrapfigure}          \end{document}      ![enter image description here](http://i.stack.imgur.com/EsezP.png)


title: Add an asterisk left of an enumerate

text: I am looking for a simple way of adding an asterisk or some small image to the left of an enumerate such that the indentation of the enumeration is not affected by the latter. I have read Add asterisk after labels in enumerate and Add an asterisk in front of section label in TOC in which the latter has the effect am looking for. > Update: egreg's solution below is nice and does answer the problem. But I > want the possible `newcommand` to be used without introducing an > `newenvironment` like just having `\moditem` inside the enumerate and > working with `enumitem`.


title: Why is the "layout" option for the geometry package undefined?

text: I am having problem while using `layout` options with `geometry` package, I cannot seem to compile the `.tex` file. With the following code :               \documentclass{article}     \usepackage{geometry}     \usepackage[T1]{fontenc}     \geometry{paperwidth=10in,paperheight=6in,layout=a6paper}     \usepackage{lipsum}          \begin{document}     \lipsum[1-10]     \end{document}      I am getting this error when compiling `.tex` with `pdflatex`               ! Package keyval Error: layout undefined.      >   1. Please help me resolve this problem? >   2. And how do I check if all options in the package are working. > I am using `MikTeX 2.8` on `Windows XP` and `WinEdt` IDE.


title: Why doesn't the IEEEtran document class recognize "definition" environments?

text: I have an IEEEtran document class. I want to put a simple definition inside the document:               \begin{definition}     blab bla     \end{definition}      I am getting the error below: _Environment definition undefined. \begin{definition}_


title: Open parenthesis followed by j produces "crash" (slight overlap of glyphs)

text: Using the Termes font in a large dictionary project, the open parenthesis and lower case Roman j glyphs are often in contact, and my proofreader has asked me to fix the problem, which she calls a "crash". I've tried inserting a small space manually in these places, but I wonder if there's another solution. Italics are not involved, so I see that italic correction will not work, but perhaps there is something similar for inappropriate touching between ( and j? The text is `raggedright`; I'd prefer not to make any substantial changes to the rest of the code. Example:               \usepackage{tgtermes}     \usepackage[T1]{fontenc}     ...     to inlay (\tiny{~}\normalsize jewels     to inlay (jewels     ...      ![enter image description here](http://i.stack.imgur.com/Ftwu1.png)


title: Redefine \defcitealias{key}{text} to include optional arguments?

text: Among a hundred or so citations in my thesis only one misbehaves. It is a book with four authors, say Abraham, Barminton, Cetralini and Durman (2008), that never appears as Abraham et al (2008) --- always all four authors are listed. With all other references, full list of authors appears only when the reference is cited for the first time. I've spent much time trying to identify what makes this reference special, but all to no avail. I've considered a workaround with `\defcitealias{ABCD2008}{Abraham et al. (2008)}` and then using `\citetalias{ABCD2008}` to get Abraham et al. (2008). All works perfectly. Unfortunately, this culprit is one of the most frequently used references and often I used it as `\citet[][sec. 3](ABCD2008)` or `\citet[e.g.][](ABCD2008)` and similarly with `\citep`. Would it be possible to redefine `\defcitealias{key}{text}` so I could use it with two optional arguments, like I use `citet` and `citep`? Here is a link to http://crpit.com/natbib.sty and the relevant lines are               \newcommand\defcitealias[2]{%        \@ifundefined{al@#1\@extra@b@citeb}{}        {\PackageWarning{natbib}{Overwriting existing alias for citation #1}}        \@namedef{al@#1\@extra@b@citeb}{#2}}          \DeclareRobustCommand\citetalias{\begingroup        \NAT@swafalse\def\NAT@ctype{3}\NAT@parfalse\NAT@citetp}          \DeclareRobustCommand\citepalias{\begingroup        \NAT@swatrue\def\NAT@ctype{3}\NAT@partrue\NAT@citetp}      Any help will be much appreciated.


title: The scope of LaTeX commands

text: This is a very basic question. However, I didn't find simple rules for it, so I asked it here. Some LaTeX commands (like `\noindent`) affect the whole paragraph. Some of them (like `\emph`) affect their argument (`\emph{Text goes here}`), and some (like `\color`) affect the remaining part of the paragraph (unless they're put in `{}`). I don't know how to differentiate between these cases.


title: XeTeX \color runaway argument

text: \documentclass[11pt,a4paper] {article}     %\usepackage{fontspec}     \usepackage{listings}     \usepackage{xcolor}     %\setmainfont[BoldFont=黑体]{宋体}     %\XeTeXlinebreaklocale "zh"     %\XeTeXlinebreakskip = 0pt plus 1pt minus 0.1pt     %\linespread{1.5}     \lstset{     numbers = left,     framexleftmargin=10mm,     frame=none,     backgroundcolor=\color[rgb]{245,245,244},     keywordstyle=\bf\color{blue},     identifierstyle=\bf,     numberstyle=\color[RGB]{0,192,192},     commentstyle=\it\color[RGB]{0,96,96},     stringstyle=\rmfamily\s1shape\color[RGB]{128,0,0},          showstringspaces=true     }     \begin {document}     \title{实验课}     \author{ coolwind}     \maketitle     \paragraph{}     你好，世界！          \begin{lstlisting}[language=C]          #include <stdio.h>          int main()     {     printf("Hello world!\n");          for (int i = 0; i < 100; i ++)     {     for (int j = 0; j < 100; j ++)     {     int tmp = i + j;     }     }     return 0;     }          \end{lstlisting}     \end {document}


title: How can I highlight YAML code in a pretty way with listings?

text: I'm trying to highlight simple YAML (the markup language, not the CSS framework) code. I know that there is a solution using pygments and minted, however, I would prefer a solution with `\lstdefinelanguage`. This is my code so far:               \lstdefinelanguage{yaml}{       keywords={true,false,null,y,n},       keywordstyle=\color{darkgray}\bfseries,       ndkeywords={},       ndkeywordstyle=\color{black}\bfseries,       identifierstyle=\color{black},       sensitive=false,       %moredelim=[l]{}{:},       comment=[l]{#},       morecomment=[s]{/*}{*/},       commentstyle=\color{purple}\ttfamily,       stringstyle=\color{blue}\ttfamily,       %morestring=[l]{-}{},       morestring=[b]',       morestring=[b]"     }      Two things are missing, though:   1. I would like to print all keys bold   2. I would like to print all strings, also the ones without qotes, to be blue. I tried to accomplish these two things with the commented lines in the code above. Unfortunately, they did not work. Any suggestions on how I can make this work? Here is a small YAML example:               key: value     map:         key1: value1         key2: value2     list:       - element1       - element2     # This is a comment     listOfMaps:       - key1: value1a         key2: value1b       - key1: value2a         key2: value2b      This is the output I currently get: ![enter image description here](http://i.stack.imgur.com/HB5ad.png)


title: Compute denominator and numerator of irreducible fraction from arbitrary fraction

text: I would like to reduce each fraction `i/n` to its irreproducible form (and let's assume i is less than n) and displayed not as a `\frac` fraction but like it is used e.g. in the frame numbers used in latex beamer, i.e. also as `j/m` When using `pgfmath` the result is a little surprisig and the terms are usual fractions, MWE:               \documentclass[border=4pt]{standalone}     \usepackage{pgfmath,fp}     \usetikzlibrary{calc}     \pgfkeys{/pgf/number format/frac}     \newcommand{\fractions}[1]{%       \foreach \x in {1,...,#1}         {\pgfmathparse{\x/#1}\pgfmathprintnumber{\pgfmathresult}\hspace{1em}}     }     \begin{document}       \fractions{16}     \end{document}      which results in ![eWrong fractions](http://i.stack.imgur.com/x3rTj.png) How can i get that to `1/16 1/8 3/16 1/4 5/16 3/8 7/16` ... ?


title: Wrapper box for TikZ picture

text: I am trying to wrap a tikzpicture node inside a box, so that I can refer to this "bounding box" from inside the picture for positioning the nodes relative to that box. I am looking for a command similar to the following one (in this example only "My Node B" is placed on top of the current page):               \documentclass{beamer}     \usepackage[T1]{fontenc}         \usepackage{tikz}          \begin{document}          \begin{frame}         \frametitle{Test Frame}         \makebox[\textwidth]{  % %%% any alternative?         \begin{tikzpicture}[overlay, remember picture]             \draw (current bounding box.north) node (__node_ref)                 [anchor=north,fill=gray]             {My node A};         \end{tikzpicture}         }              \begin{tikzpicture}[overlay, remember picture]             \draw (current page.north) node (__node_ref)                 [anchor=north,fill=gray]             {My node B};         \end{tikzpicture}          \end{frame}          \end{document}      This way, I can resize the external box and keep the relative position of the nodes of the tikzpicture intact. I tried using \makebox, \framebox and \pfgbox (the latter from inside the {tikzpicture}), but none of them worked. I know that normally "current bounding box" might work, but I am doing this within Beamer+XeLaTeX and I can only access to the node "current page", so that I have to use "shift" for centering the nodes again. Any ideas?


title: Error using russian letters for appendix counter with hyperref and subfig

text: I'm preparing a text in russian with `pdflatex`. According to standard appendices must be numbered with russian uppercase letters. But I've found that if subfloats used in appedix, the `hyperref` produces error on second `pdflatex` pass.               ! Undefined control sequence.     <argument> subfigure.\T                              2A\CYRA .1.1      Here is code to reproduce the error:               \documentclass[a4paper]{book}     \usepackage[utf8]{inputenc}     \usepackage[russian]{babel}     \usepackage[T2A]{fontenc}     \usepackage{graphicx}     \usepackage[config,font=small,labelsep=period]{caption,subfig}     \usepackage[unicode]{hyperref}          %use russian alphabet for subfigure counter      \makeatletter       \def\thesubfigure{\textit{\asbuk{subfigure}}}       \providecommand\thefigsubsep{,~}       \def\p@subfigure{\@nameuse{thefigure}\thefigsubsep}     \makeatother          \begin{document}          \chapter{Sample Chapter}          \appendix     %use russian alphabet for appendix counter     \makeatletter       \gdef\thechapter{\@Asbuk\c@chapter}     \makeatother          \chapter{Sample Appendix}          Reference \ref{fig_images}, also \ref{fig_image1} and \ref{fig_image2}.          \begin{figure}       \centering       \subfloat[][]{\label{fig_image1}\includegraphics[width=0.15\linewidth]{image1}}       \hspace{0.15\linewidth}       \subfloat[][]{\label{fig_image2}\includegraphics[width=0.15\linewidth]{image2}}       \caption[]{\label{fig_images}         Images:         \subref{fig_image1}~---~first;         \subref{fig_image2}~---~second;       }     \end{figure}          \end{document}      Is there any workaround to make it works? Or maybe any alternatives for `subfig` package?


title: Importing missing glyphs in font

text: I'm using a title font which has very few characters, and I need '+' and '=' for a given title, which are missing. Using `fontspec`, is it possible to import only these two missing glyphs from another font? **Note:** it _is_ a very similar question to this one, but I'd like to know if it can be done easily with `fontspec`.