title: Need help with shrinking sideways table.

text: it's been awhile since I last used LaTex to produce some document. Right now I'm trying to help my wife with producing PhD thesis. And I ran into a problem with a quite big table. I've never used rotated table and found sidewaystable environment that could work for me. But the content is still too big to fit on the page and I'm affraid that she doesn't allow me to break the table on multiple pages. Here is the output: ![output](http://i.stack.imgur.com/f0jf8.png) The code for producing table is as follows:                   \begin{sidewaystable}          \miniscule          \rowcolors{1}{gray!25}{white}     \begin{tabular} {llllll}                    \toprule     \rowcolor{gray!50}          \textbf{Combination sand fly - Leishmania}   & \textbf{Infective dose for sand flies}   &\textbf{Used method}   & \parbox{3.5cm}{ \textbf{Size of total prefeeding load}\\     (promastigotes/midgut)}        &\textbf{No. Promastigotes transmitted     per fly}        &\textbf{\% of transmitting flies}   \\     \midrule          \parbox{4cm}{\emph{P. papatasi - L. Major}\\ \textbf{\citep{War86}}} & $2\times10^6$ promastigotes/ml & \parbox{2cm}{{forced feeding by microcapillaries}} & unknown & \parbox{3cm}{range 0--1000 \\ 80\% females 1--100 \\ 20\% females 100--1000 \\ 5\% more than 1000 } &   11.4--35\%\\          \addlinespace               \parbox{4cm}{\emph{L. longipalpis - L. mexicana}\\ \textbf{\citep{Rog04}}} & $2\times10^6$ amastigotes/ml & \parbox{2cm}{{artificial feeding through membrane}} & unknown & \parbox{3cm}{1086* \\ (86-96\%  metacyclic promastigotes) } &   unknown\\          \addlinespace     \parbox{4cm}{\emph{L. longipalpis - L. infantum}\\ \textbf{\citep{Rog10}}} & $2\times10^6$ amastigotes/ml & \parbox{2cm}{{artificial feeding through membrane}} & \parbox{3cm}{$1.06\times10^4 \pm 2.1\times10^4$ \\(35\% metacyclic promastigotes)} & \parbox{3cm}{$457\pm122*$ \\ (95\%  metacyclic promastigotes) } &   unknown\\          \addlinespace     \parbox{4cm}{\emph{P. duboscqi - L. major}\\ \textbf{\citep{Kim08}}} & $4\times10^6$ amastigotes/ml & \parbox{2cm}{{natural feeding on mouse ears}} & $1\times10^4 – 1\times10^5$ & \parbox{3cm}{range 0--100000 \\ 75\% females 600 and less \\ 25\% females more than 1000 } &   19.26\%\\          \addlinespace     \parbox{4cm}{\emph{L. longipalpis - L. infantum chagasi}\\ \textbf{\citep{Sec12}}} & $4\times10^6$ promastigotes/ml & \parbox{2cm}{{natural feeding on mouse ears}} & $1\times10^4$ & \parbox{3cm}{1002 \\ range 10--10000 \\ 75\% less than 300 } &   unknown\\          \addlinespace     \parbox{4cm}{\emph{L. longipalpis - L. infantum dermotropic }\\ \textbf{\citep{Mai11}}} & $1\times10^7$ promastigotes/ml & \parbox{2cm}{{natural feeding on whole mouse}} & $8\times10^4$ & \parbox{3cm}{1127/13** \\ range 10--11100 } &   58\%\\          \addlinespace     \parbox{4cm}{\emph{L. longipalpis - L. infantum viscerotropic }\\ \textbf{\citep{Mai11}}} & $1\times10^7$ promastigotes/ml & \parbox{2cm}{{natural feeding on whole mouse}} & $1.5\times10^5$ & \parbox{3cm}{104*/24**\\ range 0--1250} &   14.5\%\\          \addlinespace     \parbox{4cm}{\emph{L. perniciosus   - L. infantum dermotropic }\\ \textbf{\citep{Mai11}}} & $1\times10^7$ promastigotes/ml & \parbox{2cm}{{natural feeding on whole mouse}} & $5\times10^5$ & \parbox{3cm}{2350*/29**\\ range 0--42000} &   65\%\\          \addlinespace     \parbox{4cm}{\emph{L. perniciosus - L. infantum viscerotropic }\\ \textbf{\citep{Mai11}}} & $1\times10^7$ promastigotes/ml & \parbox{2cm}{{natural feeding on whole mouse}} & $6.6\times10^4$ & \parbox{3cm}{88*/28** \\ range 0--500} &   33\%\\               \bottomrule     \end{tabular}     \medskip     \tiny            $^*$ an average dose of transmitted parasites per sand fly \\       $^{**}$ median of transmitted parasites per sand fly               \caption[table caption]{Table description}\label{rotfloat2}                          \end{sidewaystable}      For the side note I'm using `memoir` class. I'm also having problem with coloring the rows. Most notably the header contains white margins. Any advice or help with tuning the table is much appreciated.


title: Horizontal alignment within itemize

text: My minimum working example:               \documentclass{article}          \begin{document}          \begin{itemize}          \item 1. First     \item 2. Second     \item 3a. Third     \item 3b. Third     \item 4. Fourth          \end{itemize}          \end{document}      The result: ![enter image description here](http://i.stack.imgur.com/ZwmPX.png) How can I horizontally align the text (First, Second, Third etc)?


title: Add arrow pointing from one table cell to another

text: I have a simple table where I would like to add arrows pointing from certain cells to other cells. In the example below, I would like to add one vertical arrow going from `Start1` to `Finish1` and one horizontal arrow going from `Start2` to `Finish2`. What is the best way to do this?               \documentclass{article}     \usepackage{setspace}         \doublespacing     \begin{document}     \begin{tabular}{l l}     Word & Start1\\     Word & Finish1\\     Finish2 & Start2\\     \end{tabular}     \end{document}


title: How to bold just one word in a line

text: If I have a line of text, how do I make just the first word **bold**? I tried this:               \bf{NTn} = Number of lines      but it made the entire line bold.


title: ulem incompatibility with multiple entries in \cite

text: Consider the LaTeX code:               \documentclass[aps,pre]{revtex4}          \usepackage[normalem]{ulem}          \begin{document}          \sout{     asdas~\cite{a1989, b2001}.     }          \bibliographystyle{apsrev4-1}     \bibliography{references.bib}          \end{document}      where `references.bib` is just a `.bib`-file with some random entries with `a1989` and `b2001` keys. I compile using   1. Latex   2. BibTex   3. Latex   4. Latex At step 4, I get the following error               ! Missing number, treated as zero      If I continue, it just ignores and does what it is supposed to. This only happens when there is more than 1 citation on the same `\cite`. E.g. if I use               asdas~\cite{a1989}~cite{b2001}      it works fine.


title: Footnote in table appears on wrong page

text: I have a `tabular` in a floating `table` environment and want to place a footnote in that table, whereas the footnotetext should appear at the bottom of the page where the table is on. I tried the following:   * `\footnotemark` inside the table and `\footnotetext{...}` after `\end{table}`   * `\tablefootnote` with the `tablefootnote` package   * Surround the `table` environment by `\begin{savenotes}` and `\begin{savenotes}` with the `footnote` package All these solutions produced a footnotemark and corresponding text, however, none of the solutions placed the text of the footnote on the appropriate page. EDIT: For smaller tables (e.g. only the first 4 rows in my MWN), the table appears beneath the footnote which seems even worse... MWN with `\footnotemark` and `\footnotetext{...}`               \documentclass[12pt,a4paper,fleqn]{scrreprt}     \usepackage{booktabs}     \usepackage{amsmath}          \begin{document}          \chapter{A sample chapter}          Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.             Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet,     \begin{table}     \centering     \begin{tabular}{l l} \toprule     column 1    &   column 2 \\ \midrule     main entry 1        & \\     \; sub  &   yes \\     \; sub2 &   yes \\     \; sub3&    (yes)\footnotemark \\     main entry 2        & \\     \; sub  &   yes \\     \; sub2 &   no  \\     \; sub3&    (yes)\\     main entry 3        & \\     \; sub  &   yes \\     \; sub2 &   yes \\     \; sub3&    (yes)\\     \bottomrule     \end{tabular}     \caption{A table with a footnotemark}     \end{table}     \footnotetext{Some footnote}          \end{document}      MWN with `\tablefootnote`:               \documentclass[12pt,a4paper,fleqn]{scrreprt}     \usepackage{booktabs}     \usepackage{tablefootnote}     \usepackage{amsmath}          \begin{document}          \chapter{A sample chapter}          Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.             Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet,     \begin{table}     \centering     \begin{tabular}{l l} \toprule     column 1    &   column 2 \\ \midrule     main entry 1        & \\     \; sub  &   yes \\     \; sub2 &   yes \\     \; sub3&    (yes)\tablefootnote{Some footnote} \\     main entry 2        & \\     \; sub  &   yes \\     \; sub2 &   no  \\     \; sub3&    (yes)\\     main entry 3        & \\     \; sub  &   yes \\     \; sub2 &   yes \\     \; sub3&    (yes)\\     \bottomrule     \end{tabular}     \caption{A table with a footnotemark}     \end{table}          \end{document}      MWN with `\begin{savenotes}` and `\end{savenotes}`:               \documentclass[12pt,a4paper,fleqn]{scrreprt}     \usepackage{booktabs}     \usepackage{footnote}     \usepackage{amsmath}          \begin{document}          \chapter{A sample chapter}          Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.             Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet,     \begin{savenotes}     \begin{table}     \centering     \begin{tabular}{l l} \toprule     column 1    &   column 2 \\ \midrule     main entry 1        & \\     \; sub  &   yes \\     \; sub2 &   yes \\     \; sub3&    (yes)\footnote{Some footnote} \\     main entry 2        & \\     \; sub  &   yes \\     \; sub2 &   no  \\     \; sub3&    (yes)\\     main entry 3        & \\     \; sub  &   yes \\     \; sub2 &   yes \\     \; sub3&    (yes)\\     \bottomrule     \end{tabular}     \caption{A table with a footnotemark}     \end{table}     \end{savenotes}          \end{document}


title: TikZ - flexible arrow positioning

text: The following MWE is translating to the desired `tikz` picture, but the code is not very useful for adjustments. Especially the positioning of some arrows is done very poorly by defining coordinates using millimeter information. The same applies for the dashed frame. Does anybody know a smarter solution to define these coordinates?               % document class     \documentclass{scrreprt}     \usepackage[utf8]{inputenc}               % layout (geometry, single page, margins)     \usepackage[a4paper,left=100pt,right=100pt,top=70pt,bottom=70pt,includeheadfoot]{geometry}          % colorized fonts and frames     \usepackage[table]{xcolor}       \definecolor{anti-flashwhite}{rgb}{0.95, 0.95, 0.96}          % flow chart diagrams     \usepackage{tikz}     \usetikzlibrary{arrows.meta,babel,positioning,graphs}     \usepackage[european,siunitx]{circuitikz}          \tikzstyle{block}       = [draw, fill=anti-flashwhite, rectangle, minimum height=10mm, minimum width=10mm]     \tikzstyle{sum}         = [draw, fill=anti-flashwhite, circle,inner sep=1mm, node distance=20mm]     \tikzstyle{input}       = [coordinate]     \tikzstyle{output}      = [coordinate]     \tikzstyle{branch}      = [circle,inner sep=0pt,minimum size=1mm,fill=black,draw=black]     \tikzstyle{pinstyle}    = [pin edge={<-,thin,black},pin distance=10mm]     \tikzstyle{skip loop}   = [to path={-- ++(0,#1) -| (\tikztotarget)}]     \tikzstyle{hv path}     = [style={to  path={-|  (\tikztotarget)}}]     \tikzstyle{vh path}     = [style={to  path={|-  (\tikztotarget)}}]               \begin{document}          \begin{center}     \begin{tikzpicture}[auto, node distance=20mm,>=latex']         % inputs         \node [input]   (inputx)                                                        {};         \node [input]   (inputy)        [below of =inputx, node distance=40mm]          {};              % sums         \node [sum]     (sumx1)         [right of=inputx, node distance=15mm]           {};         \node [sum]     (sumy1)         [right of=inputy, node distance=15mm]           {};              % controllers         \node [block]   (reglerx)       [right of=sumx1]                                {Regler $X$};         \node [block]   (reglery)       [right of=sumy1]                                {Regler $Y$};              % magnets         \node [block]   (magnet1)       [right of=reglerx, node distance=40mm]          {Magnet 1};         \node [block]   (magnet2)       [below of=magnet1]                              {Magnet 2};         \node [block]   (magnet3)       [right of=reglery, node distance=40mm]          {Magnet 3};              % sums         \node [sum]     (sumx2)         [right of=magnet1]                              {};         \node [sum]     (sumy2)         [right of=magnet3]                              {};              % pendulums               \node [block]   (pendulumx)     [right of=sumx2]                                {Pendel $X$};         \node [block]   (pendulumy)     [right of=sumy2]                                {Pendel $Y$};              % branches               \node [branch]  (valuex)        [right of=pendulumx, node distance=15mm]        {};         \node [branch]  (valuey)        [right of=pendulumy, node distance=15mm]        {};               \node [branch]  (dotx)          [above of=valuex]                               {};         \node [branch]  (doty)          [below of=valuey]                               {};              \node [branch]  (nonlinearx)    at (55mm,30mm)                                  {};         \node [branch]  (nonlineary)    at (58mm,-70mm)                                 {};              % outputs         \node [output]  (outputx)       [right of=valuex, node distance=10mm]           {};         \node [output]  (outputy)       [right of=valuey, node distance=10mm]           {};                   % differentiator         \node [block]   (diffx)         [above of=magnet1]      {$\frac{d x}{d t}$};         \node [block]   (diffy)         [below of=magnet3]      {$\frac{d y}{d t}$};              % arrows             \draw [->]      (inputx) --     node {$x_{soll}$}   (sumx1);         \draw [->]      (inputy) --     node {$y_{soll}$}   (sumy1);              \draw [->]      (sumx1)         --                  (reglerx);         \draw [->]      (sumy1)         --                  (reglery);              \draw [->]      (reglerx)       --                  (magnet1);         \draw [->]      (reglerx.east)  --                  (magnet2.west);         \draw [->]      (reglerx.east)  --                  (magnet3.west);         \draw [->]      (reglery.east)  --                  (magnet1.west);              \draw [->]      (reglery.east)  --                  (magnet2.west);         \draw [->]      (reglery)       --                  (magnet3);              \draw [->]      (magnet1.east)  --                  (sumx2);         \draw [->]      (magnet1.east)  --                  (sumy2);         \draw [->]      (magnet2.east)  --                  (sumx2);         \draw [->]      (magnet2.east)  --                  (sumy2);         \draw [->]      (magnet3.east)  --                  (sumx2);         \draw [->]      (magnet3.east)  --                  (sumy2);              \draw [->]      (sumx2)         --                  (pendulumx);         \draw [->]      (sumy2)         --                  (pendulumy);              \draw           (pendulumx)     --                  (valuex);         \draw           (pendulumy)     --                  (valuey);              \draw [->]      (valuex)        --      node {$x$}  (outputx);         \draw [->]      (valuey)        --      node {$y$}  (outputy);              \draw           (valuex)        --                  (dotx);         \draw           (valuey)        --                  (doty);               \draw [->]      (dotx)          --                  (diffx);         \draw [->]      (doty)          --                  (diffy);              \graph{(diffx)  ->[hv path]                         (reglerx)};         \graph{(diffy)  ->[hv path]                         (reglery)};              \coordinate (x1) at (65.5mm,3mm);         \coordinate (y1) at (65.5mm,-3mm);         \coordinate (x2) at (65.6mm,-17mm);         \coordinate (y2) at (65.7mm,-23mm);         \coordinate (x3) at (65.6mm,-37mm);         \coordinate (y3) at (65.7mm,-43mm);                   \graph{(nonlinearx) ->[vh path, color=red]          (x1)};         \graph{(nonlinearx) ->[vh path, color=red]          (x2)};         \graph{(nonlinearx) ->[vh path, color=red]          (x3)};              \graph{(nonlineary) ->[vh path, color=red]          (y1)};         \graph{(nonlineary) ->[vh path, color=red]          (y2)};         \graph{(nonlineary) ->[vh path, color=red]          (y3)};                  % feedback loops         \path (dotx)    edge  [->,skip  loop=10mm]          (sumx1);         \path (doty)    edge  [->,skip  loop=-10mm]         (sumy1);              % labels         \coordinate [label=$\dot{x}$] (dotxsign) at         (32mm,6mm);         \coordinate [label=$\dot{y}$] (dotysign) at         (32mm,-52mm);                 % dashed frame         \draw (52mm,35mm)       [dashed,thick, color=blue]  --  (132mm,35mm);         \draw (132mm,35mm)      [dashed,thick, color=blue]  --  (132mm,-75mm);         \draw (132mm,-75mm)     [dashed,thick, color=blue]  --  (52mm,-75mm);         \draw (52mm,-75mm)      [dashed,thick, color=blue]  --  (52mm,35mm);              % controller communication         \coordinate (x4) at (32mm,-5mm);         \coordinate (x5) at (38mm,-5mm);         \coordinate (y4) at (32mm,-35mm);         \coordinate (y5) at (38mm,-35mm);              \draw [->, ultra thick,dotted]      (x4)            --          (y4);            \draw [->, ultra thick,dotted]      (y5)            --          (x5);             \end{tikzpicture}     \end{center}          \end{document}


title: Forest with ~500 nodes runs out of TeX memory

text: When using `Forest` package to chart an organizational structure, I have to limit it to 4-5 hierarchy levels, as **both** `pdflatex` or `lualatex` throw an error `! TeX capacity exceeded, sorry [save size=50000].` The forest that fails contains approximately 500-600 nodes. There is only one forest per file. I already tried to increase MikTex 2.9 (updated to the current) main memory by running               initexmf --edit-config-file=pdflatex     initexmf --dump=pdflatex       but the error is still there and the number 50,000 in the error message is still the same. Is there a similar INI file for `lualatex`? **Q:** Are there any other methods that would allow to increase memory utilization allowed for `pdflatex` or `lualatex`? When they run, they do not exceed 43 MB and 75 MB respectively before they exit with the error. I am not providing an MWE yet as 1) I would have to scramble data and it would become hard to read, and 2) it is unlikely anyone here is prepared to spend time sifting thru 500 nodes anyhow. Open to suggestions! One of the answers here suggested a workaround of including               \tikzset{external/system call= {pdflatex -save-size=800000                                     -pool-size=10000000                                     -extra-mem-top=50000000                                     -extra-mem-bot=10000000                                     -main-memory=90000000                                     \tikzexternalcheckshellescape                                     -halt-on-error                                     -interaction=batchmode                                    -jobname "\image" "\texsource"}}       but the error is still there. Also tried to use command line option `\--extra-mem-top=2000000` with no success.


title: Getting correct section numbering for Appendix in a large document

text: I'm writing a thesis which is an aggregate of separate articles. I have the source code for the articles and I'm using `\include` to include them in the main document of the thesis. So in my main.tex (thesis document), I have               \include{article1}     some pages in between the two articles     \include{article2}      The problem that I'm getting is with the Appendix sections. In article 1, I have at the end:               \appendix     \numberwithin{equation}{section}     \section{Coefficients}\label{sec:Coeffic}     \subsection{Good coefficients}     then comes the first line of appendix      This gives in article 1 (when compiled separately with the article class): > A. Coefficients > > A.1. Good coefficients and equation numbers in the Appendix A as (A.1), (A.2) which is ok and what is expected. When I put article 1 within main.tex, I use `\include` command. Also, I removed the document class for article 1 and put `\chapter` instead. But when I compile main.tex (the thesis document), I get the appendix sections as: > .1 Coefficients > > .1.1 Good coefficients and the equation numbers in the appendix A as (.1.1), (.1.2) etc My article 1 is treated as a chapter in the main thesis document (main.tex) and the title and section numbers, equation numbers are preceded by A in main.tex. This is what I want. Maybe it would be ok to get the appendix in my main.tex as > A.A. Coefficients > > A.A.1 Good coefficients and the equation numbers in the Appendix as (A.A.1), (A.A.2) etc to denote that it refers to appendix A of paper A. First A is for the first article and second A is for first appendix. How to get this?


title: How do you cite conference proceedings?

text: This might be a little far fetched for this site, if it's inappropriate, close it, but please direct me to where I could ask this question. My bibliography is growing quite huge and the time has come for me to standardize it. Most of the papers in it are from conference proceedings and I was wondering what is the best way to cite them? For example, let's look at a conference called 'ACM Symposium on User Interface Software and Technology', which when has to be abbreviated becomes UIST. I have a paper from the 9th instance of this conference, in the conference field of my bibtex, what should I write? Proceedings of the 9th annual ACM Symposium on User Interface Software and Technology ?   * Should I write Proceedings as Proc.?   * Should I abbreviate the conference name? (Proceedings of the 9th annual ACM Symposium on UIST)    * Should I chop the Proceedings of the 9th annual? (ACM Symposium on User Interface Software and Technology)   * How bout this? ACM UIST'96 Is it just a question of aesthetics? Edit: Fixed the UIST'09 to become the proper year number, UIST'96.


title: How to type a Backus-Naur form in LaTeX

text: I need to type Backus-Naur form in LaTeX document. I found several packages on CTAN:   * ebnf seems to not work with TeXLive 2009   * latex-bnf does not align the declaration, etc.   * There is a module for ConTeXt, context-bnf Is there a package for modern LaTeX, or should I just use hand-formatting via verbatim?


title: biblatex-apa update appears to print the year of the citation twice

text: biblatex-apa was updated on the 20th and it appears to be broken. All my references now appear as "Smith (20082008)" This is really weird. Why is this happening? I've gone back to `authoryear- comp` for now. I couldn't find out how to contact the author of biblatex-apa. Does anyone (who is better at reading the guts of tex code) have an idea why this has happened? It seems like it's probably a really easy fix... Also, there's a really quirky aspect to this problem when there's two years (as like when you want to cite the third edition, but also mention when the first edition was published: Kuhn (1996[1962]) shows up as Kuhn (1996[1962][1962]1996). That's just _strange_


title: error with multline, but not equation

text: I am working with the first of 3 very long equations and am trying to get it where it will be relatively easy to read. However I get the following error               ! Missing } inserted.     <inserted text>                      }     l.95 \end{multline}      If I use equation instead of multline the code works, but then it is not readable since it is such a long expression. Can anyone help me figure this out?               \documentclass[12]{article}     \usepackage{amsmath}      \begin{document}     \begin{multline}     \dot{u}= \frac{R^2\, X_a + R^2\, X_t \\     +R_{earth}^2\, T_{13}\, g_0\, m \\     -R^2\, m\, q\, \omega \\     +R^2\, m\, r\, v \\     -R^3\, T_{13}\, T_{21}^2\, m\, \omega_{earth}^2\, \cos^2\lambda \\     -R^3\, T_{13}\, T_{31}^2\, m\, \omega_{earth}^2\, \cos^2\lambda \\     +R^2\, T_{31}\, m\, v\, \omega_{earth}\, \cos\lambda \\     -R^2\, T_{21}\, m\, \omega\, \omega_{earth}\, \cos\lambda \\     -\frac{R^3\, T_{11}\, T_{23}^2\, m\, \omega_{earth}^2\, \sin(2\lambda)}{2} \\     -\frac{R^3\, T_{11}\, T_{33}^2\, m\, \omega_{earth}^2\,\sin(2\lambda)}{2} \\     -R^2\, T_{33}\, m\, v\, \omega_{earth}\, \sin\lambda  \\     +R^2\, T_{23}\, m\, \omega\, \omega_{earth}\, \sin\lambda  \\     +R^3\, T_{11}\, T_{21}\, T_{23}\, m\, \omega_{earth}^2\, \cos^2\lambda \\     +R^3\, T_{11}\, T_{31}\, T_{33}\, m\, \omega_{earth}^2\, \cos^2\lambda \\     +\frac{R^3\, T_{13}\, T_{21}\, T_{23}\, m\, \omega_{earth}^2\, \sin(2\lambda)}{2} \\     +\frac{R^3\, T_{13}\, T_{31}\, T_{33}\, m\, \omega_{earth}^2\, \sin(2\lambda)}{2}}{R^2 \, m}     \end{multline}     \end{document}      Edit: Thanks for all the help. Can you explain why the usage of \, is incorrect? I was under the impression that it would provide a narrow space between two adjacent symbols.


title: What is the variable that contains the source file name?

text: I am writing a package that saves information to an external file. I would like to name that file according to the source one; something like foo.tex -> foo.bar But I cannot find any variable that contains 'foo'. I am pretty sure that there must be one because the table of contents is saved to foo.toc. Any pointers?


title: Generating lists and tables of items from commands in the document

text: I would like to define objects all over my document and later evaluate certain components from these objects. Example:               \documentclass{minimal}     \newcommand{\requirement}[3]{#1, #2, #3}     \begin{document}          \requirement{Uwe}{2013-10-12}{Remove window}          \requirement{John}{2013-10-13}{Clean window}               \end{document}      How can I generate a table of all `\requirements` where each given argument of the requirement generates one column? How can I generate an list of all persons. **Background** : I'd like to use LaTeX to write Business Requirements Documents, where I need to define objects such as stakeholders, business requirements and functional requirements that are connected to each other. I might be able to parse the document with Perl/Python etc. but I'd like to develop a TeX-only solution.


title: Left-justified equations with left tags (so it looks like an enumeration)

text: I want to make a math enivornment (preferably a customized align/flalign environment) with left-justified/left-aligned equations (as it is possible with the flalign environment) and left-aligned tags (instead of the default right alignment) but with the same indent handling flalign offers when using right-aligned equations with default right-aligned tags. I've added a screenshot and a MWE for clarification. I'd appreciate any help :-) ![Screenshot of MWE](http://i.stack.imgur.com/Jxyk5.png)               \documentclass[twoside]{scrbook}     \parindent0pt     \parskip6pt     \usepackage[ngerman]{babel}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{amsmath, amssymb, enumitem, color}     \newcommand{\red}{\color{red}}     \newcommand{\set}[1]{\left\lbrace #1 \right\rbrace}     \newcommand{\script}[1]{\mathcal{#1}}     \renewcommand{\complement}{\mathcal{C}}     \makeatletter     \newenvironment{lalign}{\tagsleft@true\flalign}{\endflalign}     \makeatother     \begin{document}          \textbf{Definition} \quad ($\sigma$-field)     \begin{align}     & \Omega \in \script{A} \tag{SF1}\label{SF1} \\     & A \in \script{A} \Rightarrow \complement A \in \script{A} \tag{SF2}\label{SF2} \\     & A_1, A_2, \ldots \in \script{A} \Rightarrow \bigcup_{i=1}^\infty A_i \in \script{A} \tag{SF3}\label{SF3}     \end{align}          \textbf{Exercise} \quad Is $\script{A}$ a $\sigma$-field?     \begin{enumerate}[label=(\roman*)]     \item $\Omega$ arbitrary, $\script{A} = \set{\emptyset, \Omega}$.     \item $\ldots$     \end{enumerate}          \textbf{Solution} \quad          \begin{enumerate}[label=(\roman*)]     \item Let $\Omega$ be arbitrary and $\script{A} = \set{\emptyset, \Omega}$.          {\red It should be like this, but just the other way round:}     \begin{flalign}     && \Omega \in \script{A} & \tag{\ref{SF1}} \\     && \emptyset \in \script{A} \Rightarrow \complement \emptyset = \Omega \in \script{A} \tag{\ref{SF2}} \\     && \Omega \in \script{A} \Rightarrow \complement \Omega = \emptyset \in \script{A} \notag \\     && \emptyset, \Omega \in \script{A} \Rightarrow \emptyset \cup \Omega = \Omega \in \script{A} \tag{\ref{SF3}}     \end{flalign}     {\red This happens when I set \texttt{tagsleft@true} and use \texttt{flalign} for left-aligned equations:}     \begin{lalign}     & \Omega \in \script{A} & \tag{\ref{SF1}} \\     & \emptyset \in \script{A} \Rightarrow \complement \emptyset = \Omega \in \script{A} \tag{\ref{SF2}} \\     & \Omega \in \script{A} \Rightarrow \complement \Omega = \emptyset \in \script{A} \notag \\     & \emptyset, \Omega \in \script{A} \Rightarrow \emptyset \cup \Omega = \Omega \in \script{A} \tag{\ref{SF3}}     \end{lalign}     {\red I don't want centered equations because it should look like an enumeration:}     \begin{lalign}     & \Omega \in \script{A} \tag{\ref{SF1}} \\     & \emptyset \in \script{A} \Rightarrow \complement \emptyset = \Omega \in \script{A} \tag{\ref{SF2}} \\     & \Omega \in \script{A} \Rightarrow \complement \Omega = \emptyset \in \script{A} \notag \\     & \emptyset, \Omega \in \script{A} \Rightarrow \emptyset \cup \Omega = \Omega \in \script{A} \tag{\ref{SF3}}     \end{lalign}     {\red As it should look like (dirty coded, I want the code to be universally usable):}     \begin{lalign}     & \hspace*{1.2cm} \Omega \in \script{A} & \tag{\ref{SF1}} \\     & \hspace*{1.2cm} \emptyset \in \script{A} \Rightarrow \complement \emptyset = \Omega \in \script{A} \tag{\ref{SF2}} \\     & \hspace*{1.2cm} \Omega \in \script{A} \Rightarrow \complement \Omega = \emptyset \in \script{A} \notag \\     & \hspace*{1.2cm} \emptyset, \Omega \in \script{A} \Rightarrow \emptyset \cup \Omega = \Omega \in \script{A} \tag{\ref{SF3}}     \end{lalign}     \item $\ldots$     \end{enumerate}          \end{document}      I'm afraid my question wasn't 100% clear. So here is a new MWE and screenshot referring to the answers which suggested using enumerations. The problem is: I don't want to make an enumeration which is independent from the defined equation labels. Each item shall get the name of the related equation label from \ref{...}. The equation labels must not be numerated. Here's the updated MWE: ![Updated MWE screenshot](http://i.stack.imgur.com/xNekq.png)               \documentclass[twoside]{scrbook}     \parindent0pt     \parskip6pt     \usepackage[ngerman]{babel}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{amsmath, amssymb, enumitem, color}     \newcommand{\red}{\color{red}}     \newcommand{\set}[1]{\left\lbrace #1 \right\rbrace}     \newcommand{\script}[1]{\mathcal{#1}}     \renewcommand{\complement}{\mathcal{C}}     \makeatletter     \newenvironment{lalign}{\tagsleft@true\flalign}{\endflalign}     \makeatother     \begin{document}          \textbf{Definition} \quad ($\sigma$-field)     \begin{align}     & \Omega \in \script{A} \tag{SF1}\label{SF1} \\     & A \in \script{A} \Rightarrow \complement A \in \script{A} \tag{Complement}\label{SF2} \\     & A_1, A_2, \ldots \in \script{A} \Rightarrow \bigcup_{i=1}^\infty A_i \in \script{A} \tag{Union}\label{SF3}     \end{align}          \textbf{Exercise}          \begin{enumerate}[label=(\roman*)]     \item Let $\Omega$ be arbitrary and $\script{A} = \set{\emptyset, \Omega}$.          {\red It should be like this, but just the other way round:}     \begin{flalign}     && \Omega \in \script{A} & \tag{\ref{SF1}} \\     && \emptyset \in \script{A} \Rightarrow \complement \emptyset = \Omega \in \script{A} \tag{\ref{SF2}} \\     && \Omega \in \script{A} \Rightarrow \complement \Omega = \emptyset \in \script{A} \notag \\     && \emptyset, \Omega \in \script{A} \Rightarrow \emptyset \cup \Omega = \Omega \in \script{A} \tag{\ref{SF3}}     \end{flalign}     {\red This happens when I set \texttt{tagsleft@true} and use \texttt{flalign} for left-aligned equations:}     \begin{lalign}     & \Omega \in \script{A} & \tag{\ref{SF1}} \\     & \emptyset \in \script{A} \Rightarrow \complement \emptyset = \Omega \in \script{A} \tag{\ref{SF2}} \\     & \Omega \in \script{A} \Rightarrow \complement \Omega = \emptyset \in \script{A} \notag \\     & \emptyset, \Omega \in \script{A} \Rightarrow \emptyset \cup \Omega = \Omega \in \script{A} \tag{\ref{SF3}}     \end{lalign}     {\red Enumerations aren't an option, because of this false indent handling:}     \begin{enumerate}     \item[(\ref{SF1})] Enumeration with custom item label.     \end{enumerate}     \begin{enumerate}[leftmargin=*]     \item[(\ref{SF2})] Enumeration with custom item label and \texttt{leftmargin=*}     \end{enumerate}     {\red It should be more like this (but it's not the way I want to code it all the time and it isn't 100\% accurate either:}     \begin{flalign*}     &\begin{array}{ll}     (\text{\ref{SF1}}) & \Omega \in \script{A} \\     (\text{\ref{SF2}}) & \emptyset \in \script{A} \Rightarrow \complement \emptyset = \Omega \in \script{A} \\                 & \Omega \in \script{A} \Rightarrow \complement \Omega = \emptyset \in \script{A} \\     (\text{\ref{SF3}}) & \emptyset, \Omega \in \script{A} \Rightarrow \emptyset \cup \Omega = \Omega \in \script{A}     \end{array}&     \end{flalign*}     \item $\ldots$     \end{enumerate}          \end{document}


title: Generate plot with embedded tools useable externally

text: I use a both latex and M$ Word for my technical reports, depending on the person I have to deliver it. To generate my plot, I love using the tikz2pdf script given by Hans Meine but as far as it produce pdf, there is no interactive viewer, such as matplotlib viewer, to zoom in, move curve and so on to analyze my results before making a picture. The point is not to make up the graph, but be able to go deep in the analysis by zooming or moving with the mouse. So I start using matplotlib to generate plot, in order to have the same tool to watch and analyze results and to produce pictures. The problem is that I didn't find a way to execute matplotlib from latex, such as gnuplot. In an other hand, I don't like the gnuplot viewer to analyze my results, it is not very user-friendly. So, my questions are :   * Is there a way to use tikz and have **interactive** viewer (wich interact with mouse action) ?   * Is there a way to manage matplotlib from latex ?   * Is there another viewer, more user-friendly to watch and analyze results ?   * Maybe other ideas ?


title: Alignment of block diagram in hexagon type of layout

text: I am trying to build a block diagram with some control flow using TikZ. The blocks in the diagram should be aligned like the vertices of a hexagon. Also the `\centering` macro is not working for me. Please give me suggestions to center the entire picture and improve the alignment among the blocks.               \documentclass{article}     \usepackage{amsmath}     \usepackage{biblatex}     \usepackage{algorithm}     \usepackage[noend]{algpseudocode}     \usepackage{tikz}     \usepackage{varwidth}     \usetikzlibrary{shapes.multipart, arrows}     \tikzstyle{nodest} = [draw, rounded corners, very thick]          \begin{document}          \centering         \begin{tikzpicture} [node distance=5cm, auto, >=latex']             \node (inputnode)[nodest, align=center, rectangle split, rectangle split draw splits=false] {                 \textbf{Input}                 \nodepart{two}                     $(A, 506, 90)$\\                     $(B, 590, 86)$\\                     $(A, 590, 70)$                 \nodepart{three}                     $(C, 506, 23)$\\                     $(C, 590, 45)$\\                     $(B, 506, 67)$             };                  \node [below of=inputnode] {\begin{varwidth}{15em}\Large{partitions of input tuples are sent to mappers}\end{varwidth}};                  \draw[thick] (inputnode.text split west) -- (inputnode.text split east);             \draw[dashed] (inputnode.second split west) -- (inputnode.second split east);                  \node (map1node)[nodest, rectangle split, rectangle split draw splits=false, right of=inputnode, yshift=2.5cm] {                 \textbf{Mapper 1}                 \nodepart{two} $key = 506, value = (A, 90)$                 \nodepart{three} $key = 590, value = (B, 86)$                 \nodepart{four} $key = 590, value = (A, 70)$             };             \draw[->, thick] (inputnode.two east) -- (map1node);                  \node (map2node)[nodest, rectangle split, rectangle split draw splits=false, below of=map1node] {                 \textbf{Mapper 2}                 \nodepart{two} $key = 506, value = (C, 23)$                 \nodepart{three} $key = 590, value = (C, 45)$                 \nodepart{four} $key = 506, value = (B, 67)$             };             \draw[->, thick] (inputnode.three east) -- (map2node);                  \node [below of=map2node] {\begin{varwidth}{15em}\Large{Mappers}\end{varwidth}};                  \node (reduce1node) [nodest, rectangle split, rectangle split parts=5, rectangle split draw splits=false, right of=map1node, xshift=2cm] {                 \textbf{Reducer 1}                 \nodepart{two} $key = 506$                 \nodepart{three} $(A, 90)$                 \nodepart{four} $(C, 23)$                 \nodepart{five} $(B, 67)$             };             \draw[->, dashed] (map1node.two east) -- (reduce1node.three west);             \draw[->, dashed] (map2node.two east) -- (reduce1node.four west);             \draw[->, dashed] (map2node.four east) -- (reduce1node.five west);                  \node (reduce2node) [nodest, rectangle split, rectangle split parts=5, rectangle split draw splits=false, right of=map2node, xshift=2cm] {                 \textbf{Reducer 2}                 \nodepart{two} $key = 590$                 \nodepart{three} $(B, 86)$                 \nodepart{four} $(A, 70)$                 \nodepart{five} $(C, 45)$             };             \draw[->, dashed] (map1node.three east) -- (reduce2node.three west);             \draw[->, dashed] (map1node.four east) -- (reduce2node.four west);             \draw[->, dashed] (map2node.three east) -- (reduce2node.five west);                  \node [below of=reduce2node] {\begin{varwidth}{15em}\Large{Reducers}\end{varwidth}};         \end{tikzpicture}          \end{document}


title: Overruns in newtheorem in latex

text: I'm defining a newtheorem as follows:                    \newtheorem{definition}{Definition}      the problem is when the definition name is long, it results in overruns. I've tried `\\\` to split the name in two lines, but it's not working. Here is relevant part of my tex file:                \documentclass{vldb}      \usepackage{graphicx}      \usepackage{subfigure}      \usepackage{algorithmic}      \usepackage{algorithm}      \usepackage{url}      \usepackage{times}          \newtheorem{definition}{Definition}      and then I use:                  \begin{definition}[anonymity non-reconstructible fragmentation]      and `anonymity non-reconstructible fragmentation` causes overrun. btw, vldb package is a pre-defined package I can't alter.


title: Formatting arrows between rows of corresponding matrices

text: Some material I'm creating requires output that looks like this:   ![alt text](http://i.stack.imgur.com/98VWA.jpg) (note the position of the arrows). I'm using the following code (with the AMS macros) to generate this, and I'm looking for comments - it works fine, but I'm curious if there's a better/cleaner way to deal with the arrows:               \[       \begin{bmatrix}[rrr|r] 1 & 2 & 0 & -1 \\ 2 & 1 & 1 & 1 \\ -1 & 1 & -1 & -1   \end{bmatrix}       \begin{matrix}[c] ~ \\ \xrightarrow{R_2-2R_1} \\ \xrightarrow{R_3+R_1} \end{matrix}       \begin{bmatrix}[rrr|r] 1 & 2 & 0 & -1 \\ 0 & -3 & 1 & 3 \\ 0 & 3 & -1 & -2 \end{bmatrix}       \begin{matrix}[c] ~ \\ ~ \\ \xrightarrow{R_2+R_3} \end{matrix}       \begin{bmatrix}[rrr|r] 1 & 2 & 0 & -1 \\ 0 & -3 & 1 & 3 \\ 0 & 0 & 0 & 1 \end{bmatrix}     \]      I'm using only the standard AMS macros, together with a cute addition to the matrix macros that I found on the Web that allows column specifications within the AMS matrices:               \makeatletter     \renewcommand*\env@matrix[1][*\c@MaxMatrixCols c]{%       \hskip -\arraycolsep       \let\@ifnextchar\new@ifnextchar       \array{#1}}     \makeatother


title: Sorting with own bibstyle after first author, year, co-author

text: I'm trying to resort my bibliography, but I'm stuck. At the end it should be sorted alphabetically after the first author, then the year, then the co- author and if that's the same the year should be extended with an `a` or `b` At the moment there is a somehow twisted alphabetical sorting, but I couldn't find out how LateX is sorting the bibitems. A graphical demonstration of what I mean: ![enter image description here](http://i.stack.imgur.com/dkSff.jpg) bbx-file:               % $Id: ulm.bbx,v 0.1 2013/06/28 19:09:07 lehman unstable $          \ProvidesFile{ulm.bbx}     [\abx@bbxid $Id: ulm.bbx,v 0.1 2013/06/28 19:09:07 lehman unstable $]          \newbibmacro*{begentry}{}     \newbibmacro*{finentry}{\finentry}          \DeclareBibliographyDriver{article}{%       \usebibmacro{bibindex}%       \usebibmacro{begentry}%       \usebibmacro{author/translator+others}%       \setunit{\labelnamepunct}\newblock       \usebibmacro{title}%       \newunit\newblock       \usebibmacro{journal+issuetitle}%       \addcolon       \usebibmacro{note+pages}%       \newblock       \usebibmacro{date}     %  \setunit{\bibpagerefpunct}\newblock     %  \usebibmacro{pageref}%       \usebibmacro{finentry}}                    \DeclareBibliographyDriver{book}{%       \usebibmacro{bibindex}%       \usebibmacro{begentry}%       \usebibmacro{author/editor+others/translator+others}%       \setunit{\labelnamepunct}\newblock       \usebibmacro{maintitle+title}%       \newunit\newblock       \ifnameundef{editor}           {}           {            \usebibmacro{in:}%            \setunit{\addspace}            \printnames{editor}%            \setunit{\addspace}%            \printtext{(Hrsg)}%            \addspace%            \usebibmacro{title}%            \newblock}%       \newunit\newblock       \printfield{edition}%       \newunit\newblock       \usebibmacro{publisher+location}%       \newunit\newblock       \usebibmacro{chapter+pages}%       \addspace       \usebibmacro{date}%       \usebibmacro{finentry}}          \DeclareBibliographyDriver{incollection}{%       \usebibmacro{bibindex}%       \usebibmacro{begentry}%       \usebibmacro{author/editor+others/translator+others}%       \setunit{\labelnamepunct}\newblock       \usebibmacro{maintitle+title}%       \newunit\newblock       \ifnameundef{editor}           {}           {            \usebibmacro{in:}%            \setunit{\addspace}            \printnames{editor}%            \setunit{\addspace}%            \printtext{(Hrsg)}%            \newblock}%       \addspace\newblock       \printfield{series}       \newunit\newblock       \printfield{volume}       \newunit\newblock       \printfield{edition}%       \newunit\newblock       \usebibmacro{publisher+location}%       \newunit\newblock       \usebibmacro{chapter+pages}%       \addspace       \usebibmacro{date}%       \usebibmacro{finentry}}          \DeclareBibliographyDriver{online}{%       \usebibmacro{bibindex}%       \usebibmacro{begentry}%       \usebibmacro{author/translator+others}%       \setunit{\labelnamepunct}\newblock       \printfield{url}       \newblock       \printfield{note} %ich konnte mit meiner Literaturverwaltung nicht urldate mitangeben. Richtig wäre die Angabe \printfield{urldate}. Ggf. muss man das noch durch ein Makro in Klammern setzen.       \usebibmacro{finentry}}          \DeclareBibliographyAlias{mvbook}{book}     \DeclareBibliographyAlias{bookinbook}{inbook}     \DeclareBibliographyAlias{suppbook}{inbook}     \DeclareBibliographyAlias{mvcollection}{collection}     \DeclareBibliographyAlias{suppcollection}{incollection}     \DeclareBibliographyAlias{mvproceedings}{proceedings}     \DeclareBibliographyAlias{reference}{collection}     \DeclareBibliographyAlias{mvreference}{reference}     \DeclareBibliographyAlias{inreference}{incollection}     \DeclareBibliographyAlias{suppperiodical}{article}     \DeclareBibliographyAlias{review}{article}     \DeclareBibliographyAlias{*}{misc}          \newbibmacro*{maintitle+title}{%       \iffieldsequal{maintitle}{title}         {\clearfield{maintitle}%          \clearfield{mainsubtitle}%          \clearfield{maintitleaddon}}         {\iffieldundef{maintitle}            {}            {\usebibmacro{maintitle}%         \newunit\newblock         \iffieldundef{volume}           {}  \usebibmacro{series+number}%             \newunit\newblock             \printfield{note}%             \newunit\newblock           {\printfield{volume}%                \printfield{part}%                \setunit{\addcolon\space}}}}%       \usebibmacro{title}%       \newunit}          \newbibmacro*{maintitle+booktitle}{%       \iffieldundef{maintitle}         {}         {\usebibmacro{maintitle}%          \newunit\newblock          \iffieldundef{volume}            {}            {\printfield{volume}%             \printfield{part}%             \setunit{\addcolon\space}}}%       \usebibmacro{booktitle}%       \newunit}          \newbibmacro*{journal+issuetitle}{%       \usebibmacro{journal}%       \setunit*{\addspace}%       \iffieldundef{series}         {}         {\newunit          \printfield{series}%          \setunit{\addspace}}%       \usebibmacro{volume}%     %  \setunit{\addspace}%     %  \usebibmacro{issue}%       \setunit{\addcolon\space}%       \newunit}          \newbibmacro*{volume}{%       \printfield{volume}%       \setunit*{\addcolon}%       }          \newbibmacro*{title+issuetitle}{%       \usebibmacro{periodical}%       \setunit*{\addspace}%       \iffieldundef{series}         {}         {\newunit          \printfield{series}%          \setunit{\addspace}}%       \printfield{volume}%       \setunit*{\adddot}%       \printfield{number}%       \setunit{\addcomma\space}%       \printfield{eid}%       \setunit{\addspace}%       \usebibmacro{issue}%       \setunit{\addcolon\space}%       \usebibmacro{issue}%       \newunit}           \renewbibmacro*{issue}{%       \iffieldundef{issue}           {}         {\printtext[parens]{%           {\printfield{issue}%            \setunit*{\addspace}}}%       \newunit}}          \newbibmacro*{series+number}{%       \printfield{series}%       \setunit*{\addspace}%       \printfield{number}%       \newunit}          \newbibmacro*{publisher+location}{%         \iflistundef{publisher}         {}       \printlist{publisher}%       \setunit*{\addcomma\space}       \printlist{location}%       \setunit*{\addcomma\space}%       \newunit}          \newbibmacro*{institution+location+date}{%       \printlist{location}%       \iflistundef{institution}         {\setunit*{\addcomma\space}}         {\setunit*{\addcolon\space}}%       \printlist{institution}%     %  \setunit*{\addcomma\space}%     %  \usebibmacro{date}%       \newunit}          \newbibmacro*{organization+location+date}{%       \printlist{location}%       \iflistundef{organization}         {\setunit*{\addcomma\space}}         {\setunit*{\addcolon\space}}%       \printlist{organization}%     %  \setunit*{\addcomma\space}%     %  \usebibmacro{date}%       \newunit}          \newbibmacro*{location+date}{%       \printlist{location}%     %  \setunit*{\addcomma\space}%     %  \usebibmacro{date}%       \newunit}          \newbibmacro*{chapter+pages}{%     %  \printfield{chapter}%     %  \setunit{\addcomma\space}       \usebibmacro{S.}       \setunit{\bibpagespunct}%       \printfield{pages}%       \addspace}          \newbibmacro*{note+pages}{%     %  \printfield{note}%       \setunit{\bibpagespunct}%       \printfield{pages}%       \addspace}          \ExecuteBibliographyOptions{labelnumber}          \providebool{bbx:subentry}          \DeclareBibliographyOption{subentry}[true]{%       \setbool{bbx:subentry}{#1}}          \DeclareNameAlias{author}{default}     \DeclareNameAlias{editor}{default}     \DeclareNameAlias{translator}{default}          \DeclareFieldFormat{bibentrysetcount}{\mkbibparens{\mknumalph{#1}}}     \DeclareFieldFormat{labelnumberwidth}{\mkbibbrackets{#1}}     \DeclareFieldFormat{shorthandwidth}{\mkbibbrackets{#1}}          \defbibenvironment{bibliography}       {\list          {\printtext[labelnumberwidth]{%         \printfield{prefixnumber}%         \printfield{labelnumber}}}          {\setlength{\labelwidth}{\labelnumberwidth}%           \setlength{\leftmargin}{\labelwidth}%           \setlength{\labelsep}{\biblabelsep}%           \addtolength{\leftmargin}{\labelsep}%           \setlength{\itemsep}{\bibitemsep}%           \setlength{\parsep}{\bibparsep}}%           \renewcommand*{\makelabel}[1]{\hss##1}}       {\endlist}       {\item}          \defbibenvironment{shorthands}       {\list          {\printfield[shorthandwidth]{shorthand}}          {\setlength{\labelwidth}{\shorthandwidth}%           \setlength{\leftmargin}{\labelwidth}%           \setlength{\labelsep}{\biblabelsep}%           \addtolength{\leftmargin}{\labelsep}%           \setlength{\itemsep}{\bibitemsep}%           \setlength{\parsep}{\bibparsep}%           \renewcommand*{\makelabel}[1]{\hss##1}}}       {\endlist}       {\item}          \DeclareBibliographyDriver{set}{%       \entryset         {\ifbool{bbx:subentry}            {\printfield[bibentrysetcount]{entrysetcount}%         \setunit*{\addnbspace}}            {}}         {}%       \newunit\newblock       \usebibmacro{setpageref}%       \finentry}          \def\MKbibnamefirst#1{\expandafter\mkbibnamefirst@i#1..\@nil}     \def\mkbibnamefirst@i#1.#2.#3\@nil{#1}          \renewbibmacro*{name:last-first}[4]{%       \ifuseprefix         {\usebibmacro{name:delim}{#3#1}%          \usebibmacro{name:hook}{#3#1}%          \ifblank{#3}{}{%            \ifcapital              {\mkbibnameprefix{\MakeCapital{#3}}\isdot}          {\mkbibnameprefix{#3}}%            \ifpunctmark{'}{}{\addhighpenspace}}%          \mkbibnamelast{#1}\isdot          \ifblank{#4}{}{\addlowpenspace\mkbibnameaffix{#4}\isdot}%          \ifblank{#2}{}{\addlowpenspace\mkbibnamefirst{#2}}}         {\usebibmacro{name:delim}{#1}%          \usebibmacro{name:hook}{#1}%          \mkbibnamelast{#1}\isdot          \ifblank{#4}{}{\addlowpenspace\mkbibnameaffix{#4}\isdot}%     %     \ifblank{#2#3}{}{\addcomma}%          \ifblank{#2}{}{\addlowpenspace\MKbibnamefirst{#2}}%     %     \ifblank{#3}{}{\addlowpenspace\mkbibnameprefix{#3}\isdot}     }}          \DeclareFieldFormat{parens}{\mkbibparens{#1}}     \renewbibmacro*{date}{\printtext[parens]{\printdate}}          \renewcommand*{\multilistdelim}{\addslash }          \renewbibmacro*{finentry}{}          \newbibmacro*{S.}{%       \printtext{S.}}               \renewbibmacro*{in:}{%       \printtext{In:%     %    \bibstring{In}         \intitlepunct}}          \endinput      cbx-file               % $Id: verbose-inote.cbx,v 1.7 2011/11/13 19:09:07 lehman stable $          \ProvidesFile{ulm.cbx}     [\abx@cbxid $Id: verbose-inote.cbx,v 1.7 2011/11/13 19:09:07 lehman stable $]          \ExecuteBibliographyOptions{labelnumber,sortcites,autocite=inline}     \renewcommand*{\multicitedelim}{\addcomma\space}     \providebool{bbx:subentry}     \DeclareFieldFormat[article,book,collection,inbook,incollection,inproceedings,patent,thesis,unpublished]{title}{#1\addperiod}     \DeclareFieldFormat[article]{journaltitle}{#1}          \DeclareNameAlias{default}{last-first}     \renewcommand{\labelnamepunct}{\addcolon\space}     \AtEveryBibitem{\clearfield{month}}     %\renewbibmacro{in:}{}     \renewcommand*{\finalnamedelim}{%       \ifbibliography% NEW         {\addcomma\space}% NEW         {\ifnumgreater{\value{liststop}}{2}{\finalandcomma}{}%             \addspace\bibstring{and}\space}}     \DeclareFieldFormat[book]{year}{\mkbibquote{#1\isdot}}          \DeclareFieldFormat{pages}{#1\isdot}          \DeclareFieldFormat{entrysetcount}{\mknumalph{#1}}     \newbibmacro*{cite}{%       \printtext[bibhyperref]{%         \printfield{prefixnumber}%         \printfield{labelnumber}%         \ifbool{bbx:subentry}           {\printfield{entrysetcount}}           {}}}          \newbibmacro*{textcite}{%       \iffieldequals{namehash}{\cbx@lasthash}         {\multicitedelim}         {\cbx@tempa          \ifnameundef{labelname}            {\printfield[citetitle]{labeltitle}}            {\printnames{labelname}}%          \addspace\bibopenbracket}%       \ifnumequal{\value{citecount}}{1}         {\usebibmacro{prenote}}         {}%       \usebibmacro{cite}%       \savefield{namehash}{\cbx@lasthash}%       \gdef\cbx@tempa{\bibclosebracket\multicitedelim}}          \DeclareCiteCommand{\cite}[\mkbibbrackets]       {\usebibmacro{prenote}}       {\usebibmacro{citeindex}%        \usebibmacro{cite}}       {\multicitedelim}       {\usebibmacro{postnote}}          \DeclareCiteCommand{\parencite}[\mkbibbrackets]       {\usebibmacro{prenote}}       {\usebibmacro{citeindex}%        \usebibmacro{cite}}       {\multicitedelim}       {\usebibmacro{postnote}}          \DeclareCiteCommand{\footcite}[\mkbibfootnote]       {\usebibmacro{prenote}}       {\usebibmacro{citeindex}%        \usebibmacro{cite}}       {\multicitedelim}       {\usebibmacro{postnote}}          \DeclareCiteCommand{\footcitetext}[\mkbibfootnotetext]       {\usebibmacro{prenote}}       {\usebibmacro{citeindex}%        \usebibmacro{cite}}       {\multicitedelim}       {\usebibmacro{postnote}}          \DeclareCiteCommand{\smartcite}[\iffootnote\mkbibbrackets\mkbibfootnote]       {\usebibmacro{prenote}}       {\usebibmacro{citeindex}%        \usebibmacro{cite}}       {\multicitedelim}       {\usebibmacro{postnote}}          \DeclareCiteCommand{\textcite}       {\let\cbx@tempa=\empty        \undef\cbx@lasthash}       {\usebibmacro{citeindex}%        \usebibmacro{textcite}}       {}       {\usebibmacro{postnote}%        \bibclosebracket}          \DeclareCiteCommand{\supercite}[\mkbibsuperscript]       {\iffieldundef{prenote}          {}          {\BibliographyWarning{Ignoring prenote argument}}%        \iffieldundef{postnote}          {}          {\BibliographyWarning{Ignoring postnote argument}}}       {\usebibmacro{citeindex}%        \usebibmacro{cite}}       {\supercitedelim}       {}          \DeclareMultiCiteCommand{\cites}[\mkbibbrackets]{\cite}{\multicitedelim}     \DeclareMultiCiteCommand{\parencites}[\mkbibbrackets]{\parencite}{\multicitedelim}     \DeclareMultiCiteCommand{\smartcites}[\iffootnote\mkbibbrackets\mkbibfootnote]{\smartcite}{\multicitedelim}          \DeclareFieldFormat{edition}{%       \ifinteger{#1}         {\mkbibordedition{#1}~\printtext{Aufl}}         {#1}}          \renewcommand\mkbibnamelast[1]{\textsc{#1}} %Autor/Editorname in small caps     \renewcommand*{\newunitpunct}{\addcomma\addspace}          \endinput      MWE:               \documentclass{scrreprt}     \usepackage[latin1]{inputenc}     \usepackage[     bibstyle=ulm, citestyle=ulm, maxbibnames=99,     ]{biblatex}          \begin{filecontents*}{books.bib}     @ARTICLE{Jager2012a,       author = {J\"ager, M. and Lang, F. and Frasch, K. and Becker, T.},       title = {Schizophrene Psychosen mit bipolarem Verlauf -- Implikationen f\"ur         Nosologie und Therapie},       journal = {Fortschr Neurol Psychiatr},       year = {2012},       volume = {80},       pages = {520--526},       number = {09},     }          @ARTICLE{Jager2012b,       author = {J\"ager, Markus and Lang, Fabian and Frasch, Karel and Becker, Thomas},       title = {Schizophrenie und aggressives Verhalten -- die Bedeutung katatoner         Ph\"anomene},       journal = {Psychiatr Prax},       year = {2012},       volume = {39},       pages = {84--90},       number = {02},     }          @ARTICLE{Lang2012,       author = {F. Lang and M. K\"osters and S. Lang and T. Becker and M. J\"ager},       title = {Psychopathological long-term outcome of schizophrenia -- a review.},       journal = {Acta Psychiatr Scand},       year = {2012},       pages = {173--182},       month = {11},     }          @ARTICLE{Lang2012a,       author = {Lang, F.U. and Klug, R. and Kunath, M. and Palm, C. and Uttner, I.         and J\"ager, M.},       title = {Fr\"uhe Demenz als Leitsyndrom einer Schizophrenie},       journal = {Nervenarzt},       year = {2012},       pages = {1--4},       publisher = {Springer-Verlag},          }          @ARTICLE{Lang2013,       author = {Lang, F. U. AND Lang, S. AND Becker, T. AND J\"ager, M.},       title = {Therapieresistente schizophrene Psychosen},       journal = {Dtsch Z Nervenheilkd},       year = {2013},       volume = {3},       pages = {145--149},     }               \end{filecontents*}          \bibliography{books.bib}          \begin{document}     \cite{Jager2012a}     \cite{Jager2012b}     \cite{Lang2012}     \cite{Lang2012a}     \cite{Lang2013}          \printbibliography     \end{document}      I've read the biblatex manual, but the only thing I found was `sorting=nyt`, but that doesn't work, because I'm not using biber.


title: Combining several articles using combine package causes errors

text: For my thesis I need to combine two articles into one document. I have looked at the `combine` package which looks perfect for this. However, when I try to typeset my document, I get a lot of errors:               Latex Error: ./main.tex:81 LaTeX Error: Command \c@minilofdepth already defined.     Latex Error: ./main.tex:81 LaTeX Error: Command \c@minilotdepth already defined.     Latex Error: ./main.tex:81 LaTeX Error: Command \c@partlofdepth already defined.     Latex Error: ./main.tex:81 LaTeX Error: Command \c@partlotdepth already defined.     Latex Error: ./main.tex:81 LaTeX Error: Command \c@sectlofdepth already defined.     Latex Error: ./main.tex:81 LaTeX Error: Command \c@sectlotdepth already defined.     Latex Error: ./main.tex:81 LaTeX Error: Command \mtc@savelofdepth already defined.     Latex Error: ./main.tex:81 LaTeX Error: Command \mtc@restorelofdepth already defined.     Latex Error: ./main.tex:81 LaTeX Error: Command \mtchideinmainlof already defined.     Latex Error: ./main.tex:81 LaTeX Error: Command \mtc@savelotdepth already defined.     Latex Error: ./main.tex:81 LaTeX Error: Command \mtc@restorelotdepth already defined.     Latex Error: ./main.tex:81 LaTeX Error: Command \mtchideinmainlot already defined.     Latex Error: ./main.tex:81 Undefined control sequence.     Latex Error: ./main.tex:81 Undefined control sequence.      (`main.tex` is my first article. It makes similar complaints about my other article) The undefined control sequence it complains about is `\begin{document}.` Any thoughts on what I might be doing wrong?


title: How can I draw an egg using TikZ?

text: I would like to draw an egg-format element, but I have only found ways of drawing ellipses.


title: Biblatex entries with last names first and year after authors

text: I'm currently usin `biblatex` with the following settings:               \usepackage[firstinits=true, sorting=nyt, maxbibnames=99]{biblatex}          %Document stuff...          \printbibliography      The resulting bibliography is good looking, but I'm missing two details:   * Authors are written with the first name first (although they seem to be sorted on the last name). What I want is last names first.   * The year is put together with the journal/publisher. I want it after the authors. For example. What I get is > J. J. Monaghan. “Smoothed particle hydrodynamics”. In: Reports on Progress > in Physics 68.8 (2005), pp. 1703–1759. issn: 0034-4885. doi: > 10.1088/0034-4885/68/8/R01. What I want is > Monaghan, **J. J. (2005)** “Smoothed particle hydrodynamics”. In: Reports on > Progress in Physics 68.8, pp. 1703–1759. issn: 0034-4885. doi: > 10.1088/0034-4885/68/8/R01. Is it possible to do this with some settings or do I have to modify the style file?


title: Merging banking and classic style in moderncv

text: Writing my CV in the `moderncv` package, I was caught between the _classic_ style for the main body, and _banking_ style for the header/title. I'm not sure how to merge the two formats. Also on the Banking Style header I would like to add an additional item for LinkedIn. When looking through other questions I saw recommendations to add an MWE, but I'm not sure how to do this either seeing as I'm fairly new to using LaTeX. I can add it if someone can point me in the right direction. Any help is appreciated.


title: biblatex: getting rid of ›nodate‹ where it's inappropriate

text: `biblatex` now has the habit of printing an `(n.d.)` ("no date") when a publication doesn't come with a date of publication specified, as is the case sometimes with grey literature and other obscure formats. This is all fine IMHO, except in one kind of case; one that I come across very often in my every-day work. As a historian, a lot of the material I'm citing is `@UNPUBLISHED`: records, handwritings, all kinds of papers that were never (meant to be) published. They might have a (very precise) date on them, but that's not a date of _publication_ , and, what's more important: when working with records from archives, you don't create a bibliography entry for every single document you're citing. Instead, the bibliography entry is a reference to a larger chunk of records sitting in an archive's basement. Usually, that chunk corresponds to the agency that produced, or is producing, those records. It has some kind of identifier (much like a library call number), but it does not have a date, which just wouldn't make sense. The exact document is given in the `\cite` only, it's addressed via the record number within that chunk, and the sheet number within the record. I'd like to know how to get back to `biblatex's` old behavior of not printing anything when no date is present -- at least for `@UNPUBLISHED`. I know I can modify that entry type's bibliography driver, but maybe there's a more elegant way. I also want to encourage the `biblatex` team to re-consider that issue. If the field `year` is defined as »the year of publication« (§2.2.2), is something that was never published really _lacking_ that kind of information? Wouldn't it make more sense to make that field optional?               \documentclass{scrartcl}     \usepackage{filecontents}     \usepackage[style=authoryear]{biblatex}     \begin{filecontents*}{testbib.bib}     %this entry represents the 2500 running meters of records left behind by the Prussian Ministry of Education, 1807--1935     @UNPUBLISHED{Kultus,       author = {{Akten des preußischen Ministeriums der Geistlichen-, Unterrichts- und Medicinal-Angelegenheiten}},       address = {Geheimes Staatsarchiv Preußischer Kulturbesitz, Berlin: I. HA Rep. 76},       shorthand = {Kultus},     }     \end{filecontents*}     \bibliography{testbib}               \begin{document}     blabla\footnote{said Prussia's Minister of Education in 1812 \parencite[Nr. 123, sheet 456]{Kultus}}          \printbibliography     \end{document}


title: Numbering subsubsections in Lyx

text: I need to number subsubsections i used in my Lyx document. I have tried to use the unnumbered subsubsection and the numbered default one, but it is does not matter whhich one i select . It is always unnumbered anyway.


title: Hyphenation when using \verb command

text: I'm having a problem using `\verb` command. Usually when I want some verbatim font in the current line (not in a new paragraph) I use the `\verb` command, not the `verbatim` environment. So, when I use something like `\verb"HereSomeLongText"` no hyphenation is done, so I get my text out of page margins. How I can get hyphenation inside `\verb`? Please note that I want inline (inside the same line) verbatim like text. Here is some minimal (non) working example where you can see the problem described.               \documentclass[a4paper,10pt]{article}     \usepackage[english]{babel}     \usepackage[left=2cm, right=2.2cm,height=25cm]{geometry}          \DeclareFontFamily{OT1}{cmtt}{\hyphenchar \font=`\-}          \begin{document}     \noindent Here is some TeX example of text  that looks nice, but when      I Want to type some text like  \verb"myDataFileLongName.csv" using the     verb command, there is no hyphenation nor like break adequately, so the     text inside the verb command get out of the page margins.          \\[0.25cm] So I would appreciate so much any help in order to solve this      problem. Thanks, thanks,  thanks,  thanks,  thanks,  thanks,  thanks,      thanks,  thanks,  thanks,  thanks,  thanks,  thanks,  thanks,  thanks,       thanks,  thanks,  thanks,  thanks.     \end{document}


title: System-wide feature file in lualatex

text: I have a font (Dolly) with f_i and f_l ligatures, which requires a feature file to make them work. Everything works fine using the following:               # dolly.fea          languagesystem DFLT dflt;     languagesystem latn dflt;          feature liga {        sub f l  by f_l ;        sub f i  by f_i ;     } liga ;      in the same directory as my .tex file               \documentclass[12pt]{article}          \usepackage{microtype}     \usepackage{fontspec}          \newfontfeature{Microtype}{protrusion=default;expansion=default;}          \setmainfont[         FeatureFile = {dolly.fea},         Microtype,         Renderer=Basic,         Ligatures={TeX},         ItalicFont = {Dolly Italic},     ]{Dolly Roman}          ....      But the problem is that I don't want to put this in the same directory as my `.tex` file each time. The fontspec manual suggests that using a full path should work, but when I do this:               ....     \setmainfont[         FeatureFile = {/path/to/dolly.fea},         Microtype,         Renderer=Basic,         Ligatures={TeX},         ItalicFont = {Dolly Italic},     ]{Dolly Roman}     ....      I get an error               ! LuaTeX error ...2/texmf-dist/tex/luatex/luaotfload/otfl-font-otf.lua:228: bad      argument #1 to 'attributes' (string expected, got boolean).     <to be read again>                         relax      l.16 ]{Dolly Roman}      It also can't seem to find it when I place it in `$TEXMF/fonts/fea/` or in my `$TEXINPUTS` dir. It just proceeds to compile the file without the ligatures. (Note that `kpsewhich` sees it). So, my question: is there any way to set up a features file that I can use system-wide, or at least without copying it to every directory I want to run `lualatex` in?


title: Get Beamer's miniframes to align my subsections dots horizontaly

text: I'm currently learning how to use beamer, and I'm struggling with the miniframe command: Some (not even all) of my subsection dots align vertically, which is really anoying though it takes way too many space that way. I don't know if it's the default setting of this command or if I'm doing anything wrong, but I can't find anyone talking about that issue (maybe I've not been looking hard enough, if so, I apology). here's me code, it's so simple I hardly see how this can help at all but here you go:                   \useoutertheme[footline=authortitle,subsection=false]{miniframes}      Thank you for your time :)


title: Use brackets in a \def macro doesn't work

text: I am using TikZ to draw some graph drawings (with nodes and directed edges/paths). I have two nodes and an arrow pointing from one node to another. I have made a macro called `\pathedge` so I can use these arrows repeatedly, but its giving me some trouble. Whenever I put an `xshift` or a `yshift` option before any of the nodes on the \draw command it gives me an error. I am pretty sure it has something to do with using brackets '[' ']' in a `\def` macro but I don't know how to fix it. Here's the minimal code example:               \documentclass{article}          \usepackage{etoolbox}     \usepackage{tikz}          \def\conn{\draw[arrows=->, black!50, thick]}     \newcommand{\pathedge}[4]{       \def\startn{#1}       \def\endn{#2}       \def\startnopts{}       \def\endnopts{}            \ifstrequal{#4}{NE_TO_SW} {         \def\startn{[yshift=-1ex]#1.west}          \def\endn{[xshift=1ex]#2.north}       } {}            \conn (\startn) to node[shape=circle, fill=white, inner sep=0.5pt, font=\sffamily\footnotesize]{#3} (\endn);     }          \begin{document}     \begin{tikzpicture}[scale=1,innode/.style={draw, shape=circle,ultra thick,black}]     \node[innode] (1) at (2,2) {1};     \node[innode] (2) at (4,4) {2};          \pathedge{2}{1}{A}{NE_TO_SW}     \end{tikzpicture}     \end{document}


title: Re-newing a column type

text: Package `array` has a `\newcolumntype` but seemingly no `\renewcolumntype`. But it makes a lot of sense to have a column type `X` whose meaning could be changed depending on context. When one does `\newcolumntype` again, it works, the only thing is that an innocent warning is written to the log. Is there some official way I missed from reading the doc which would allow of genuinely renewing an `array-declared` column type?


title: Textures or pictures as background for a table.

text: I wonder how I can set a texture or a picture in the background of a table. I have tried to google it but I haven't found any satisfactory answer :-( I try to explain better: I know that it is possible to put a background color in a table just by nesting a tabular environment into a `\colorbox` command, e.g. the command               \colorbox{COLOR}{\begin{tabular} ... \end{tabular}}      creates a tabular with a COLOR background. Now, I wish to do the same, but instead of using a background color, I want use a background image or a background texture (e.g a "zebra"-like texture, etc). Is it possible? Does it exist some command that I can use in the same way as `\colorbox`, e.g.               \some_command{IMAGE}{\begin{tabular} ... \end{tabular}}      that puts IMAGE as background to the tabular? If not, how I can accomplish my goal? I hope my request is clear... :-S


title: TikZ nested rectangle split with rounded corners

text: Using TikZ, I want to create a nested rectangle split, with rounded corners, that looks like this: ![desired result](http://www.liacs.nl/~schraage/tikzsplit2.png) The question that most closely resembles this problem is Nested rectangles , however the proposed solution with two separate nodes fitted together in a virtual node seems rather complex and does not have the advantages of a regular splitted node such as margin handling, rounded corners, or nodepart definitions. The closest thing I could come up with is this:               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{shapes}     \begin{document}     \begin{tikzpicture}     \node (A) [rectangle split,rectangle split parts=2,draw,text centered,rounded corners]{         \textit{marriage}, 1850         \nodepart{second}             \begin{tabular}{c|c}                 John & Mary \\                 Smith & Jones\\             \end{tabular}         };     \end{tikzpicture}     \end{document}      But the tabular environment does not stretch to the borders of the node: partial solution What I want is something like this:               \node (A) [rectangle split,rectangle split parts=2,draw,text centered,rounded corners]{         \textit{marriage}, 1850         \nodepart{second}[rectangle split,rectangle split parts=2,rectangle split horizontal]             John\\Smith             \nodepart{second}                 Mary\\Jones         };      or any other convenient nesting syntax. Other solutions (e.g., a `matrix`, or a straightforward `fit`) are also appreciated.


title: 'List of Algorithms' title is not all in caps

text: In my dissertation, I have added a page for list of algorithms, using `\listofalgorithms` command. However, the title of the page is not in all caps ('List Of Algorithms'), while it's supposed to be in all caps, like the title of 'LIST OF FIGURES'. Does anyone know how I can work around this? I tried to find a related option in `algorithm2e` package, but apparently there is no such an option. Here is the document class, and the packages that I've used:               \documentclass[dissertation,CC-BY-SA]{uathesis}     \usepackage[ruled,boxed,noend]{algorithm2e}     \usepackage{graphicx}     \usepackage{natbib}              \usepackage{caption}     \usepackage{subcaption}              \usepackage[bookmarks,colorlinks=true,urlcolor=black,linkcolor=black,citecolor=black]{hyperref}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{framed}     \usepackage[amsmath,framed]{ntheorem}     \usepackage{hhline}     \usepackage{multirow}     \usepackage{colortbl}     \usepackage{rotating}      ![enter image description here](http://i.stack.imgur.com/JOhqU.png)


title: Letter without "from address" and "to address" and no indention for letter text?

text: I want to write a private letter where I don't need the address fields. The letter should start with "Dear xx". I know it's a stupid question but I want to know if it is easily possible. I have made a lot of definitions in a lco file and want to reuse them without using another template.


title: Plot labels all move to the same position

text: I am attempting to create plot labels whose positions are determined by a function. The root problem is that the labels do not stay where they are placed, but _all_ of the them move to the position of the label last placed.               \documentclass[11pt]{article}     \usepackage{pgfplots}     \usetikzlibrary{calc}          \begin{document}     \def\MyFunction(#1, #2){(#1/1000)^2 * (#2/1000)^2 * 175}          \begin{figure}     \centering     \begin{tikzpicture}         \begin{axis}         [          width=12cm, grid=major,          ymin=0, ymax=30,          xmin=0, xmax=1000, domain=0:1000, samples=100         ]         \edef\L{450}         \addplot [solid] {\MyFunction(\L, x)};              \pgfmathparse{\MyFunction(\L, 500)}         \edef\tmp{\pgfmathresult}         \node[anchor=south west, fill=white, fill opacity=0.5] (pt450) at ($(axis cs:500,\tmp)+(0.5cm,-0.5cm)$) {\L 1st};         \draw[->](pt450.south east)--(pt450.south west)--(axis cs:500,\tmp);              \edef\L{620}         \addplot [solid] {\MyFunction(\L, x)};         \pgfmathparse{\MyFunction(\L, 500)}         \edef\tmp{\pgfmathresult}         \node[anchor=south west, fill=white, fill opacity=0.5] (pf620) at ($(axis cs:500,\tmp)+(0.5cm,-0.5cm)$) {\L 2nd};         \draw[->](pf620.south east)--(pf620.south west)--(axis cs:500,\tmp);         \end{axis}     \end{tikzpicture}     \end{figure}     \end{document}      My end goal is to use `\foreach` to have several plots (with labels) generated without the redundancy of code, which is why I am not using different variable names for the second instance. Yes, I will be generating dynamic node names, but removed that here for simplicity. I'm also open to alternate methods of placing the labels, because this method does seem more complex than it might have to be.


title: Double subscript with \bar

text: When I used this code:               $ {\bar{a}_x}_y $      MiKtex said:               Double subscript $ {\bar{a}_x}_      How to fix?


title: Double superscript error involving tilde

text: When I write `{{\tilde{C}}^{0}_{har}}^{\Gamma}` (or the same with fewer curly brackets) in Tex I obtain a double superscript error and I can't solve it. Does someone know how to fix this?


title: two abstract in article

text: I need to include two abstracts (english and spanish) with their respective keywords, I am using the package `apa6` but these only put the latest `\abstract{}` text. How can I fix this?               \documentclass[jou,apacite]{apa6}     \abstract{El tema de la evaluación educativa ...}     \keywords{evaluación, aprendizaje, decreto 1290 de 2009.}     \abstract{ The issue of educational evaluation is one }     \keywords{assessment, learning, decree 1290 of 2009.}     \begin{document}     ...     \end{document}


title: Adding letters in hyphenation of Swedish words

text: Swedish writing conventions states that in compound words, when three successive identical consonants occur, one of them should be omitted. An example of this is _glass_ (ice cream) and _strut_ (cone), which form the compound word _glasstrut_ (ice cream cone), not _glassstrut_. Another example is _ägg_ and _gula_ , which forms _äggula_ (egg yolk), not _ägggula_. It might seem like a strange rule, and sometimes it creates strange results. As an example, it is impossible to distinguish between the written words _glass-strut_ (ice cream cone) _glass-trut_ (a gull made of ice cream) and _glas-strut_ (a cone made of glass), but most words don't have this ambiguity ( _äggula_ can't mean anything else besides egg yolk regardless how it's pronounced). However, if a hyphenation occur between the two consonants, the third one should be added. This means that _äggula_ should be hyphenated as _ägg-gula_. Other examples would be _till-låta_ , _till-lämpa_ , _topp-position_. Is it possible to achive this kind of hyphenation with Latex? Ideally, I am searching for a solution both for the whole document (like \hyphenation works, for i.e. _äggula_ ) and in the text, for cases like _glasstrut_ which could be hyphenated differently depending on the meaning ( _glass-strut_ , _glass-trut_ ). Testing shows that none of the above words gets correct hyphenation (using Polyglossia and Xelatex). If I add an entry manually with \hyphenation, I get the hyphenation at the correct place, but I don't know how I could add the "missing" letter.               \documentclass{article}     \usepackage{polyglossia}     \setmainlanguage{swedish}     \begin{document}     \hyphenation{glass-trut}     Oh Norrmalmsregleringen, ho samt Västerbron och Tranebergsbron. glasstrut krigsåren var Larsson även en ledande nordisk      \end{document}      (Hyphenation should occur in the word "glasstrut", the other words are just there for filling)