title: sort biblatex bibliography by appearance of cites in the document

text: I'm writing my thesis in physics using LateX (MikTeX). For my bibliography i use biblatex with this setup:               \usepackage[     backend=bibtex8,                     maxnames=6,                              bibstyle=numeric,                    hyperref=true,                       citestyle=authortitle,      sortcites=true                       ]{biblatex}     \usepackage[babel, german=quotes]{csquotes}     \usepackage[normalem]{ulem}     \bibliography{bibliography.bib}      What I'm trying to do now is to sort the items in the biblography _automatically_ by their appearance in the document, i.e. the first cite in the document will be the first item in the bibliography. I know that biblatex provides several sorting options via               sorting=      but there isn't an option that fits my sorting order. (I already checked the documentation) I also know that i could arrange them in my .bib file and choose the option               sorting=none      but since I got quite a lot of references this is only my last hope. Is there a way to do that? If so, please tell me. If not, tell me so i can quit searching an start sorting my .bib file. greetz from germany.


title: Breakable boxes with Tikz and right and leftmargin

text: I've found a method to obtain breakable boxes, using polyglossia for arabic, and the Tikz package and I have two problems... 1) the commands leftmargin and rightmargin of Tikz have no effect on the boxes... there's a package deciding for the width of the box... which one and how could I remain it ? 2) I want to add a title for some frames (different for every frame) in the box of the frametitle (here Example). How can I declare such environment ? Thank you for help Here's a simple example with my packages (don't worry for the text written right to left !!)               \documentclass[14pt,a4paper]{extbook}%{article}%     \usepackage{amsmath,amssymb}     \usepackage[framemethod=TikZ]{mdframed}          %\usepackage[dvips]{graphicx}     \usepackage{boxedminipage}     \usepackage{slashbox}           \usepackage{titlesec}     \usepackage{xcolor}     \usepackage[framemethod=TikZ]{mdframed}          \usepackage{enumitem}          \usepackage{minitoc}           \usepackage{rotating}          \usepackage{fmultico}     \setlength{\columnseprule}{0.1pt}          \usepackage{fancyhdr}     \pagestyle{fancy}               \usepackage{polyglossia}     \setmainlanguage[numerals=maghrib]{arabic}     \setotherlanguage{english}          \newfontfamily\arabicfont[Script=Arabic, AutoFakeSlant=-0.02]{Amiri}     \setsansfont[Script=Arabic,Scale=1.5]{Amiri}                    \tikzstyle{titleframe} =         [draw=black, thick, scale=.7, fill=white,%              line width=0.1pt, text=black, rectangle,               left, minimum height=.5cm]               \newcounter{example}     \renewcommand*\theexample{Example~\arabic{section}.\arabic{example}}               \makeatletter     \mdfdefinestyle{examplestyle}{%         outerlinewidth=1em,%         outerlinecolor=white,%         leftmargin=-1em,%         rightmargin=-1em,%         middlelinewidth=1.2pt,%     %    roundcorner=5pt,%         linecolor=gray!20,%         backgroundcolor=white,%         innertopmargin=1.2\baselineskip,     %    skipabove={\dimexpr0.5\baselineskip+\topskip\relax},         skipabove={\dimexpr1\baselineskip\relax},         skipbelow={0em},         needspace=3\baselineskip,         frametitlefont=\sffamily\bfseries,         settings={\global\stepcounter{example}},         firstextra={%                 \node[titleframe,xshift=-1cm] at (P-|P) %                         {\RL{~{\mdf@frametitlefont{\theexample}}~}};},%         singleextra={%     %        \node[titleframe,xshift=1cm] at (P-|O) %              \node[titleframe,xshift=-1cm] at (P-|P) %                 {~{\mdf@frametitlefont{\theexample}}~};}     }     \makeatother                    \newenvironment{example}%     {\begin{mdframed}[style=examplestyle]}{\end{mdframed}}               \begin{document}              \begin{example}         To calculate the horizontal position the kinematic differential         equations are needed:             \begin{align}                 \dot{n} &= u\cos\psi -v\sin\psi \\                 \dot{e} &= u\sin\psi + v\cos\psi             \end{align}         For small angles the following approximation can be used:             \begin{align}                 \dot{n} &= u -v\delta_\psi \\                 \dot{e} &= u\delta_\psi + v             \end{align}             \end{example}             \end{document}


title: Using IEEEeqnarray environment in multiline equation

text: I am trying to get my equation               $\begin{equation}\label{form explicitely}     F_{\mathfrak{B}}(x,y)=\frac{((t^3-2t^2p+t(q+p^2)+r-pq)}{f^2}x^3+     \frac{((-3t^2+4tp-   (p^2+q))}{f}x^2y+(3t-2p)xy^2-fy^3     \end{equation}$      which looks like this ![enter image description here](http://i.stack.imgur.com/1bCRr.jpg) to look more or less like this one ![enter image description here](http://i.stack.imgur.com/PBquu.jpg) which has the following code               $\begin{IEEEeqnarray*}{l} a+b+c+d+e+f \\ \qquad +\> g + h + i + j + k + l \qquad \\     \IEEEeqnarraymulticol{1}{r}{     +\>m+n+o+p+q } \IEEEyesnumber     \end{IEEEeqnarray*}$      ![enter image description here](http://i.stack.imgur.com/oWl2t.jpg) but it just does not look as nice: I am unable to shift every line in the way it is done in the eq (32) Any help appreciated


title: How can I add a component to circuitikz?

text: Similar to CircuiTikZ — create new component * * * I am using circuitikz to create an electric circuit diagram. I have found the preset symbol for the zener diode to be different to the symbol I wish to use to represent the zener diode. * * * I have constructed the following code in `tikz` to display the symbol i wish to use. My question is, How can I store this as a component, to recalled with `[nzD]` like the preset symbols, so that it works in a circuit. * * *               \documentclass{article}     \usepackage[pdftex,active,tightpage]{preview}     \setlength\PreviewBorder{5mm}     \usepackage{tikz}     \usepackage{circuitikz}          \title{New Zener Diode}     \author{Felix Harvey-Rosser}           \begin{document}              \begin{preview}         \centering             \begin{circuitikz}                      \draw [teal]        (0,0)   --(0.22,0)  to  [open]  (0.78,0)--      (1,0)   ;       % connecting wires                           \draw [thick, teal] (0.22,0)--(0.22,0.35)--(0.78,0)--(0.22,-0.35)--(0.22,0)         % triangle                                           (0.84,0.35)--(0.78,0.35)--(0.78,-0.35)--(0.72,-0.35)    ;       % vertical                      %\draw              (0,0)               to [zD]                     (1,0)   ;       % preset zener diode                  \end{circuitikz}                 \end{preview}     \end{document}


title: Multiple references to the same footnote with hyperref support - is there a better solution?

text: According to the Latex wikibook the workaround for having multiple references to the same footnote with `hyperref` support is this:               \footnote{This is the footnote}\addtocounter{footnote}{-1}\addtocounter{Hfootnote}{-1}      I could of course simply wrap this in a new command, but I wonder if there is any package that handles this elegantly, preferably with an option to refer to footnotes using labels. The way proposed above also screws up if there are other footnotes in between. The `\footref` command from the `footmisc` package does something like that, but it does not have full hyperref support. Does anyone know of a package that can do this?


title: Lyx generated PDF with JavaScript encounters NotAllowedError

text: I am trying to generate a pdf file that opens another pdf file with this code               \usepackage[pdftex]{insdljs}          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     % Main Script     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \begin{insDLJS}{dljs}{Document Javascript}          doesitopen = app.trustedFunction (function() {         var reffile1,openf;         try {             app.alert("trying c:/temp/existing.pdf",3);             console.println('here');             app.beginPriv();                 app.openDoc("/c/temp/existing.pdf");             app.endPriv();             openf = 1;         }         finally {             e = null;         }         app.alert("diditopen",3);          });          doesitopen();     \end{insDLJS}      Here is my Lyx file - it's pretty vanilla --               #LyX 2.0 created this file. For more info see http://www.lyx.org/     \lyxformat 413     \begin_document     \begin_header     \textclass scrartcl     \begin_preamble     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     % Document product, type, number and title     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%               %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     % Conditional text     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     % DO NOT ALTER AFTER THIS POINT     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \usepackage[pdftex]{hyperref}     \usepackage[pdftex]{eforms}     \input{jsfunctions_bare.tex}     \end_preamble     \use_default_options false     \maintain_unincluded_children false     \language english     \language_package default     \inputencoding auto     \fontencoding global     \font_roman times     \font_sans helvet     \font_typewriter courier     \font_default_family sfdefault     \use_non_tex_fonts false     \font_sc false     \font_osf false     \font_sf_scale 83     \font_tt_scale 100          \graphics default     \default_output_format default     \output_sync 0     \bibtex_command default     \index_command default     \paperfontsize default     \spacing single     \use_hyperref false     \papersize default     \use_geometry true     \use_amsmath 1     \use_esint 1     \use_mhchem 1     \use_mathdots 1     \cite_engine basic     \use_bibtopic false     \use_indices false     \paperorientation portrait     \suppress_date false     \use_refstyle 0     \index Index     \shortcut idx     \color #008000     \end_index     \leftmargin 1in     \topmargin 0.75in     \rightmargin 1in     \bottommargin 1.25in     \headheight 0in     \headsep 0.5in     \secnumdepth 3     \tocdepth 3     \paragraph_separation skip     \defskip medskip     \quotes_language english     \papercolumns 1     \papersides 1     \paperpagestyle fancy     \bullet 0 2 14 -1     \bullet 1 2 5 -1     \bullet 2 2 9 -1     \bullet 3 2 21 -1     \tracking_changes false     \output_changes false     \html_math_output 0     \html_css_as_file 0     \html_be_strict false     \end_header          \begin_body          \begin_layout Standard     \noindent     \align block          \series bold     Click below to test app.openDoc     \end_layout          \begin_layout Standard     \noindent     \align block     \begin_inset ERT     status open          \begin_layout Plain Layout               \backslash     raisebox{-1.3pt}{     \backslash     pushButton[     \backslash     CA{Export}     \backslash     A{     \backslash     JS{doesitopen();}}]{export14}{12mm}{11pt}}     \end_layout          \end_inset               \end_layout          \end_body     \end_document      My problem is that Adobe Refuses to execute my code despite having used `app.trustedFunction` and marked my code with `app.beginPriv()` and `app.endPriv()` When I run Adobe Reader XI, I get this error in the JavaScript console : > Acrobat EScript Built-in Functions Version 11.0 Acrobat SOAP 11.0 > > NotAllowedError: Security settings prevent access to this property or > method. App.trustedFunction:3:Document-Level:01 Document Javascript > > NotAllowedError: Security settings prevent access to this property or > method. App.trustedFunction:1:Document-Level:01 Document Javascript > > NotAllowedError: Security settings prevent access to this property or > method. App.trustedFunction:1:Document-Level:01 Document Javascript


title: What is new in pgf 2.10

text: http://sourceforge.net/projects/pgf/ shows that 2 days ago (25 Oct 2010) version 2.10 of PGF (Tikz) is released. What are new functionalities in this version? (not bugfixes, but features)


title: How can I upgrade to pgf 2.10

text: http://sourceforge.net/projects/pgf/ shows that 2 days ago (25 Oct 2010) version 2.10 of PGF (Tikz) is released. I am currently using texlive 2010. Will pgf 2.10 come in texlive 2010, or do I have to wait a year? If it will be not included, how can I still use pgf 2.10 with texlive 2010?


title: A symbol for the quotient of two objects

text: One needs often a symbol to denote the quotient of two (algebraic) objects. (e.g. quotient by a subgroup, subring, submodule etc.). In simple cases people use A/B. But when both A,B are complicated to write, this doesn't look good. e.g. `\mathcal{O}_{(V',0)}}/\mathcal{O}_{(V,0)}}` For some reasons people do not use just `\frac{A}{B}`. Is there some way to achieve the following: `$A$` raised a bit, then `\Big/` then `$B$` a bit lowered.


title: What is the black part in the Lyx window?

text: Just some very basic questions as a new user... What is that black part under the pink part of the Lyx window? Can we change the pink color? Can we remove the black part? Why can't we use "Enter" to skip lines? The screenshot is as follows. It's the newest version. OS is windows vista. You can see the pink and black parts. ![](http://i.stack.imgur.com/3QgAb.jpg)


title: Tikz/Pgf if statements

text: I'm having trouble writing if statements, I can find next to no documentation on them and what I want to do seems quite simple. I'm using the orbitals pgf/tikz example from here, and I'd like to write a new atom type, whereby instead of the third argument, it takes phrase describing squashedness Normally, the code to create an atom looks like this:               \Atom{}{90/west/0,270/east/1}      So I wrote a separate method which I'm trying to modify that               \AtomSquash{}{90/west/sq,270/east/sq}      The code for creating the atoms is as follows               \newcommand{\Atom}[3][AtomNode]{       \node[atomcore] (#1){#2};% {\ce{#2}};       \foreach \ang/\anchor/\n in {#3} {           \orbital{\ang}{#1.\anchor}{\n}       }     }     \newcommand{\AtomSquash}[3][AtomNode]{             \node[atomcore] (#1){#2};             \foreach \ang/\anchor/\squashness in {#3}{                     \squashorbital{\ang}{#1.\anchor}{\squashness}             }          }      And the orbital code:               \newcommand{\orbital}[3]{         \begin{scope}[rotate=#1,shift=(#2)]             % These points define the curve for the orbital.             \coordinate (c1) at (-\orbwidth, .6 * \orbheight);             \coordinate (c2) at (-\orbwidth, \orbheight);             \coordinate (c3) at (\orbwidth, \orbheight);             \coordinate (c4) at (\orbwidth, .6 * \orbheight);             \coordinate (top) at (0,\orbheight);                  %Coordinates of the electrons                  \coordinate (e1) at (0, 0.45*\orbheight);             \coordinate (e2) at (0, 0.75*\orbheight);         \end{scope}  \begin{pgfonlayer}{background}                \draw[orbital #3] (#2) .. controls (c1) and (c2) .. (top) ..                 controls (c3) and (c4) .. (#2);       \end{pgfonlayer}            % Draw the electrons       \ifnum#3>0           \foreach \n in {1,...,#3} {               %Don't need electrons to be shaded.               %\shade[ball color=electron] (e\n) circle (1mm);           }       \fi     }      What I would especially like to do here, is have the `\atom` and `\atomsquash` in a single method, which would decide based on the number of arguments or say the text value of the third argument (is it equal to "sq" or is it a number?). I've tried writing an if statement that looks like the following `\iftype=sq` but the compiler seriously dislikes this. It doesn't help if I put quotes around the sq, the code will compile then but the if statement never is true. Help?


title: How to make these two graphs similar?

text: I want the left hand side of the following code's output to be exactly similar to the picture below. How can I do that?               \documentclass{article}     \usepackage{tikz}      \usetikzlibrary{arrows}     \begin{document}     \begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=1.0cm,y=1.0cm]     \draw[->,color=black] (-1.5,0) -- (3.5,0);     \foreach \x in {-1,-1,1,2,3}     \draw[shift={(\x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) node[below] {\footnotesize $\x$};     \draw[->,color=black] (0,-2.5) -- (0,3);     \foreach \y in {-2,-1,1,2,2.5}     \draw[shift={(0,\y)},color=black] (2pt,0pt) -- (-2pt,0pt);     \draw[color=black] (0pt,-1pt) node[below left] {\footnotesize $0$};     \clip(-1.5,-2.5) rectangle (3.5,3);     \draw [very thick,domain=-1.5:2.5] plot(\x,{-1*(\x)});     \draw [smooth, very thick,domain=-2:3] plot(\x,{-1*(\x)^2+2});     \node at (2,-2) [right] {\small $(2,-2)$};     \node at (.7,-1.2) [below ] {\small $y=-x$};     \node at (1,1) [right ] {\small $y=2-x^2$};     \node at (-1,1) [left ] {\small $(-1,1)$}; % this line, doesn't appear completely in the output.     \draw [fill=gray,fill opacity=0.3] plot [domain=-1:2](\x,{-1*(\x)^2+2}) -- plot [domain=-2:3] (\x,{-1*(\x)});     \end{tikzpicture}      ![enter image description here](http://i.stack.imgur.com/2uS9f.png)


title: Change textwidth for 1 line only

text: I am writing a resume. I have a line with my email, ph etc below my name. I want this line to start at same margin as the Objective below and similarly stop where the text below stops. I figured i will need some command that changes textwidth for my address line, but i am not able to find the same. Pls let me know the solution for this.               \documentclass[margin]{res}     \usepackage{amsmath}     \setlength{\textwidth}{6in} % set width of text portion     \addtolength{\textheight}{1.8in}     \addtolength{\voffset}{-0.75in}     \addtolength{\hoffset}{-0.5in}     \setlength{\parskip}{0.1in }     \usepackage[hidelinks]{hyperref}     \begin{document}          % Center the name over the entire width of resume:     \moveleft.6\hoffset\centerline{\Large\bf Ajjhjghf Dkjggi}     \smallskip     %address line     \moveleft.6\hoffset\centerline{\underline{\href{mailto:blahblah.edu}{blahblha.edu} $\bullet$ Ph.:+kjhghjkjhg $\bullet$ \href{www.blahblah.com}{blahblha.com} $\bullet $bhak bhak bahkrd rd, \#poi, bibibi xxxxx}}          \begin{resume}          \section{OBJECTIVE}  Seeking an jkhasjkdh jhasd ah jlkahds lalkhkljahd kjahd akjh dalkjh lakjh kjhda ajklhsd ajkshd alkjdsh aljkhd ajkshd ajkshd lajkdh alkjshd alskjdh alkjshd lakjsdh.          \section{EDUCATION}          {\bf University of XXXXXX} \hfill   (2012 - 2014) \\         {\sl blbl, blblbl Engineering  {\bf GPA: } }               \end{resume}     \end{document}


title: How can you use LaTeX to write a document with other people?

text: I imagine that many users are or were [PhD] students, so I would like to know: how do you use LaTeX to write a document (like the final dissertation) that requires many revisions from other people. When I work with my professor, I usually send him a PDF generated by LaTeX and the source files. He then uses a process like such:   * Define some color for his commentaries or additions to the text              \usepackage{xcolor}     ...     \define{\profSmith}[1]{{\color{red} #1}}     ...     Lorem ipsum \profSmith{not very clever}        * He sends me his changes and I check his observations, marking my changes with another `\define`   * Repeat until everyone is satisfied   * For final versions comment defines and replace for `\define{\profSmith}[1]{#1}` So yes, it is a bit cumbersome. I have tried margin notes, but space is limited and sometimes the professor's correction are inside some phrases or paragraphs. I also thought about Version control differences (like svn, mercurial, etc), but my chances are low: everyone but me uses a one-liner for each paragraph. In consequence, I have a hard time checking these differences. What do you guys [would] use in this case? Any other ideas or comments?


title: Counter inside a tikz tree

text: I would like to increment and print counter at some node of tikz tree. I am able to do it when the tree grows to bottom, but not when it grows to left. My problem is that couter must be increment following the y axis. That is a MWE               \documentclass{article}     \usepackage{tikz}          \newcounter{toto}          \newcommand{\toto}{%       \stepcounter{toto}%       \ - \thetoto%     }               \begin{document}     \section{Ok}       \begin{tikzpicture}[sibling distance=4cm,                           edge from parent/.style={draw,thick}]        \node{A\toto}             child {node {B\toto}}             child {node[] {C\toto}                 child {node  {D}}                 child {node {E\toto}                   }             };               \end{tikzpicture}          \section{Not ok}          \setcounter{toto}{0}     \begin{tikzpicture}[grow=right,sibling distance=4cm,                           edge from parent/.style={draw,thick}]        \node{A}             child {node {B\toto} }             child {node[align=right] {C\toto}                 child {node  {D\toto}}                 child {node {E\toto}                   }             };          \end{tikzpicture}     \end{document}      ![MWE](http://i.stack.imgur.com/YjllR.png) In the "Not Ok" example, the expected value should be :   * E : 1   * C : 2   * D : 3   * B : 4


title: Continuously compile/watch source files in ConTEXt?

text: Is there an equivalent to latexmk in Context? I want the script to watch my source files for changes and continuously recompile them. Here is how I would do it with latexmk:               latexmk -bibtex -pdf -pvc document.tex      _EDIT_ : I am on windows. Preferably this should be cross-platform (just like Context :-)


title: Table width and height woes for multipage landscape table

text: I'm writing up my thesis and trying to convert a table to LaTeX (http://www.ncbi.nlm.nih.gov/pmc/articles/PMC3523805/table/T1/). It's rather large so I'm using the lscape and the longtable library. In addition, some rows have multiple lines so I'm using the pbox library (http://stackoverflow.com/questions/2895780/latex-how-to-code-tables-with- multi-line-cells). I'm facing two problems. First deals with columns - despite trying to set `p` widths, I'm not seeing column widths change.                   \begin{longtable}{@{}p{50pt}|ll|p{40pt}@{}@{}p{100pt}|p{40pt}|c|c|c|c|c|c|p{30pt}|p{50pt}|}      The current rendering has lots of extra space between the 40pt and 100pt columns and the last 50pt column is running off the page. The second problem I have deals with lines that use the pbox hack - boxes that use them are not properly aligned with other cells. Am I doing this right? Any ideas? Full code is below:                   \documentclass[12pt]{article}         \usepackage{longtable}         \usepackage{multirow}         \usepackage{lscape}         \usepackage{pbox}              \begin{document}         \begin{landscape}         \begin{center}         \setlength{\tabcolsep}{2pt}         \small         \begin{longtable}{@{}p{50pt}|ll|p{40pt}@{}@{}p{100pt}|p{40pt}|c|c|c|c|c|c|p{30pt}|p{50pt}|}         \caption{A simple longtable example}\\         \hline          & \textbf{ID} & \textbf{Sex} & \textbf{Age of onset (death)} & \textbf{Clinical Presentation} & \textbf{Family Hx} & \multicolumn{6}{c}{\textbf{Biochemical Features}} & \textbf{Gene Candidate(s)} \\          & & & & & & Tissue(s) & I & II & III & IV & \pbox{30pt}{mtDNA \\ quantity} & \\          \hline         \endfirsthead         \multicolumn{4}{c}%         {\tablename\ \thetable\ -- \textit{Continued from previous page}} \\         \hline          & \textbf{ID} & \textbf{Sex} & \textbf{Age of onset (death)} & \textbf{Clinical Presentation} & \textbf{Family Hx} & \textbf{Tissue(s)} & \textbf{I} & \textbf{II} & \textbf{III} & \textbf{IV} & \pbox{30pt}{mtDNA \\ quantity} & \textbf{Gene Candidate(s)} \\         \hline         \endhead         \hline \multicolumn{4}{r}{\textit{Continued on next page}} \\         \endfoot         \hline         \endlastfoot         Complex I & P1 & M & $<$1mo & lethal infantile mitochondrial disease &  & fib & $\downarrow\downarrow$ &  &  &  & nd & *ACAD9 \\         & P2 & F & $<$1wk (3wk) & hypotonia, lethargy, respiratory distress, metabolic acidosis, FTT &  & fib & $\downarrow\downarrow$ &  & $\downarrow$ & $\downarrow$ & nd & *POLG \\         & P3 & F & $<$1wk (4mo) & severe IUGR, FTT, recurrent episodes of metabolic acidosis &  & skm, fib & $\downarrow\downarrow$ &  &  &  & nd & NDUFB3 \\         & P4 & F & in utero (in utero) & multiple pterygium syndrome, severe fetal hydrops, IUGR, terminated at 21w & cons. (1st) & \pbox{20cm}{liv \\ fib} & \pbox{20cm}{$\downarrow\downarrow$ \\ $\sim$}  &  &  &  & nd & AKR1B15 \\         & P5 & F & $<$1wk (1yr) & lethargy, tachypnea, organomegaly, renal \& liver failure &  & skm,liv,hea & $\downarrow\downarrow$ &  &  &  & 49\% liv & - \\         & P6 & M & $<$1wk & bilateral optic nerve hypoplasia, lethargy, FTT &  & skm,liv,fib & $\downarrow$ &  &  &  & nd & - \\         & P7 & M & $<$6mo (28mo) & cystic leukodystrophy, FTT, severe metabolic acidosis &  & skm,liv,fib & $\downarrow\downarrow$ &  &  &  & nd & - \\         & P8 & F & $<$3m (8yr) & leukodystrophy, DD, abnormal LFTs, vasculitic rash &  & \pbox{20cm}{skm \\ fib \\liv} & \pbox{20cm}{$\downarrow\downarrow$ \\ $\downarrow\downarrow$ \\ $\sim$ } &  &  &  & nd & - \\         & P9 & F & in utero (4d) & leukodystrophy, IUGR, metabolic acidosis, seizures &  & \pbox{20cm}{liv,fib \\ skm} & \pbox{20cm}{$\downarrow\downarrow$ \\ $\downarrow\downarrow$} &  &  &  & 460\% liv & - \\         & P10 & F & $<$1yr (na) & FFT, DD, seizures, hypotonia, prominent extra-axial CSF space &  & skm & $\downarrow$ &  &  &  & nd & - \\  \hline         Complex III & P11 & F &$<$1wk & severe global DD, tachypnea, metabolic acidosis, renal tubular acidosis, FTT &  & \pbox{20cm}{skm,liv \\ fib} &  &  & \pbox{20cm}{$\downarrow\downarrow$ \\ nl} &  & 47\% skm & *BCS1L \\         & P12 & M &$<$1wk (na) & severe IUGR, lethargy, metabolic acidosis, renal tubular acidosis, dysmorphic facies & cons. (1st). & \pbox{20cm}{skm \\ fib} & \pbox{20cm}{$\downarrow$ \\ $\sim$} &  & \pbox{20cm}{$\downarrow\downarrow$ \\ $\downarrow\downarrow$} &  & nd & *TYMP, MTCH1, C6orf125 \\         & P13 & M &$<$6mo & hypotonia, FTT, DD, short stature, rickets, pruritis, dysmorphic facies & cons. (1st) & \pbox{20cm}{skm \\ liv} &  &  & \pbox{20cm}{$\downarrow\downarrow$ \\ $\sim$} &  & nd & ACADSB \\         & P14 & M &$<$1wk (na) & fetal hypokinesia, Pierre Robin sequence, intra-abdominal calcification &  & skm,fib &  &  & $\downarrow\downarrow$ &  & nd & UCP1, MTHFD1L \\         & P15 & F & in utero (5yr) & ventriculomegaly, apnea, dev.regression, hypotonia, seizures &  & \pbox{20cm}{skm \\ fib} & \pbox{20cm}{$\sim$ \\ $\downarrow$} &  & \pbox{20cm}{$\downarrow\downarrow$ \\ $\downarrow\downarrow$} &  & nd & UQCR10 \\         & P16 & M &$<$1wk & cardiorespiratory arrest, metabolic acidosis, renal tubular acidosis &  & fib &  &  & $\downarrow\downarrow$ &  & nd & - \\ \hline         Complex IV & P17 & M &$<$1wk & neonatal lactic acidosis, cystic leukodystrophy &  & \pbox{20cm}{skm \\ fib} &  &  &  & \pbox{20cm}{$\downarrow\downarrow$ \\ nl} & nd & *COX6B1 \\         & P18 & M &$<$1wk & hypsarrhythmia, FTT, dystonia, squint &  & \pbox{20cm}{skm \\ fib} & $\sim$ &  & $\sim$ & \pbox{20cm}{$\downarrow\downarrow$ \\ $\downarrow$} & nd & *GFM1, ACOX3 \\         & P19 & F &$<$1mo (12mo) & DD, seizure, hypotonia, doesn’t fix \& follow, cortical atrophy & cons. (1st+1) & fib &  &  &  & $\downarrow\downarrow$ & nd & ACAD8 \\         & P20 & F &$<$1yr & mild global DD, hypotonia, mild cerebral atrophy & sib. & \pbox{20cm}{skm \\ fib} &  &  &  & \pbox{20cm}{$\downarrow\downarrow$ \\ nl} & nd & C7orf10, MTERF \\         & P21 & M & 1mo (7mo) & Leigh syndrome, global DD, FTT, hypotonia, seizures & cons. (2nd) & fib &  &  &  & $\downarrow\downarrow$ & nd & - \\         & P22 & F & in utero & IUGR, oligohydramnios, severe global DD, seizures, microcephaly, hyperthermia & cons. (1st), sib. & \pbox{20cm}{skm,liv \\ fib} &  &  &  & \pbox{20cm}{$\downarrow\downarrow$ \\ nl} & nd & - \\         & P23 & F &$<$1mo & profound hypotonia, paucity of movement &  & skm &  &  &  & $\downarrow\downarrow$ & 37\% skm & - \\         & P24 & M &$<$1yr & DD, hypotonia, apnea, spastic diplegia, dysmorphic &  & \pbox{20cm}{skm \\ fib} &  &  &  & \pbox{20cm}{$\downarrow\downarrow$ \\ $\downarrow$} & 84\% skm & - \\         & P25 & M &$<$6mo & Leigh-like syndrome, respiratory failure, lactic acidosis, RRF &  & skm &  &  &  & $\downarrow\downarrow$ & nd & - \\ \hline         Combined OXPHOS deficiencies & P26 & M & 3wk & FTT, metabolic acidosis, hepatomegaly, apnea & cons. (1st) & \pbox{20cm}{skm \\ liv \\ fib} & \pbox{20cm}{$\downarrow\downarrow$ \\ $\sim$ \\ nl} & \pbox{20cm}{$\downarrow\downarrow$ \\ $\sim$ \\ nl} & \pbox{20cm}{$\downarrow\downarrow$ \\ $\sim$ \\ nl} &  & nd & LYRM4 \\         & P27 & M &$<$1wk (2mo) & FTT, hypotonia, hypothermia, hypertrophic cardiomyopathy, hepatomegaly & cons. (1st), sib. & \pbox{20cm}{liv \\ fib} & \pbox{20cm}{$\downarrow\downarrow$ \\ $\downarrow$} &  & \pbox{20cm}{$\downarrow\downarrow$ \\ $\downarrow$} & \pbox{20cm}{$\downarrow\downarrow$ \\ $\downarrow$} & 800\% liv & *TSFM \\         & P28 & F &$<$1mo (1mo) & FTT, hypertonia, hypertrophic cardiomyopathy, respiratory arrest & cons. (1st), sib. & fib & $\downarrow$ &  & $\downarrow$ & $\downarrow$ & nd & *TSFM \\         & P29 & F &$<$1yr & DD, seizures, hypotonia, episodic metabolic acidosis &  & liv & $\downarrow\downarrow$ &  &  & $\downarrow\downarrow$ & 167\% liv & *GFM1 \\         & P30 & M &$<$1mo & FTT, DD, sensorineural deafness, renal failure, dysmorphic & cons. (1st), sib. & \pbox{20cm}{skm \\ fib} & \pbox{20cm}{$\downarrow\downarrow$ \\ $\downarrow$} &  & \pbox{20cm}{$\downarrow\downarrow$ \\ $\downarrow$} & \pbox{20cm}{$\downarrow\downarrow$ \\ $\downarrow$} & 42\% skm & - \\         & P31 & M &$<$1yr & hypertrophic cardiomyopathy &  & \pbox{20cm}{hea \\ fib} & \pbox{20cm}{$\downarrow\downarrow$ \\ nl} &  &  & \pbox{20cm}{$\downarrow\downarrow$ \\ nl} & nd & C1orf31 \\         & P32 & M &$<$6mo & gastroesophageal reflux, FFT, hypotonia, respiratory distress, lactic acidosis &  & skm & $\downarrow\downarrow$ &  & $\downarrow\downarrow$ & $\downarrow\downarrow$ & nd & EARS2 \\         & P33 & M &$<$1yr (20mo) & FTT, dev.regression, microcephaly &  & \pbox{20cm}{skm \\ liv} & \pbox{20cm}{$\downarrow\downarrow$ \\ $\sim$} &  & \pbox{20cm}{$\downarrow\downarrow$ \\ $\downarrow\downarrow$} & \pbox{20cm}{$\downarrow\downarrow$ \\ $\downarrow\downarrow$} & 290\% skm & ALDH1B1, mtDNA del. \\         & P34 & F &$<$1wk (4mo) & FTT, cardiac arrest, hypertrophic cardiomyopathy &  & \pbox{20cm}{skm \\ fib liv} & \pbox{20cm}{$\downarrow\downarrow$ \\ $\downarrow$ \\ $\sim$} &  & \pbox{20cm}{$\downarrow\downarrow$ \\ $\downarrow$ \\ nl} & \pbox{20cm}{$\downarrow\downarrow$ \\ $\sim$ \\ nl}  & 88\% skm & - \\         & P35 & F &$<$1wk (10d) & metabolic acidosis, cardiac failure, hemorrhagic brain infarct &  & \pbox{20cm}{liv \\ fib} & \pbox{20cm}{$\downarrow\downarrow$ \\ nl} &  &  & \pbox{20cm}{$\downarrow\downarrow$ \\ nl} & 190\% liv & - \\         & P36 & M &$<$1yr & sudden-onset encephalopathy with seizures after URTI &  & \pbox{20cm}{skm \\ liv} & \pbox{20cm}{$\downarrow\downarrow$ \\ $\sim$} &  & \pbox{20cm}{$\sim$ \\ $\sim$} & \pbox{20cm}{$\downarrow\downarrow$ \\ $\downarrow$} & 92\% skm & - \\         & P37 & F &$<$1yr & DD, ptosis, microcephaly, GI dysmotility &  & \pbox{20cm}{skm \\ liv} & \pbox{20cm}{$\downarrow\downarrow$ \\ nl} &  &  & \pbox{20cm}{$\downarrow\downarrow$ \\ nl} & 53\% skm & - \\         & P38 & F &$<$1yr & leukodystrophy, speech delay, dysaesthesia in hands, dev.regression &  & \pbox{20cm}{skm \\ fib} & \pbox{20cm}{$\downarrow\downarrow$ \\ nl} &  & \pbox{20cm}{$\sim$ \\ nl} &  \pbox{20cm}{$\downarrow\downarrow$ \\ nl} & 112\% skm & - \\         & P39 & M &$<$2yr & Leigh syndrome, global DD, deterioration after URTI &  & \pbox{20cm}{skm \\ fib} & \pbox{20cm}{$\downarrow$ \\ $\downarrow$} &  & \pbox{20cm}{$\downarrow$ \\ $\downarrow$} & \pbox{20cm}{$\downarrow$ \\ $\sim$} & nd & - \\ \hline         mtDNA dep. & P40 & F & in utero (stillborn) & stillborn with hypotonia and multiple fractures &  & \pbox{20cm}{skm \\ fib} & \pbox{20cm}{$\downarrow\downarrow$ \\ nl} & & \pbox{20cm}{$\downarrow\downarrow$ \\ nl}& \pbox{20cm}{$\downarrow\downarrow$ \\ nl} & 8\% skm & *AARS2 \\         & P41 & F &$<$1yr (18y) & cardioskeletal myopathy, cataracts, FTT, fatigue &  & skm & $\downarrow\downarrow$ &  & $\downarrow\downarrow$ & $\downarrow\downarrow$ & 4\% skm & AGK \\         & P42 & F &$<$1wk (4d) & marked respiratory distress, pulmonary hypertension, cataracts & cons. (1st) & \pbox{20cm}{skm \\ liv} & \pbox{20cm}{$\downarrow\downarrow$ \\ nl} & & \pbox{20cm}{$\downarrow\downarrow$ \\ nl}& \pbox{20cm}{$\downarrow\downarrow$ \\ nl} & \pbox{20cm}{13\% skm \\ 88\% liv} & AGK \\ \hline\hline         \end{longtable}         \end{center}         \end{landscape}         \end{document}


title: My PDF is not shown in Skim unless the application is already running

text: I have my Emacs/AucTeX/Skim development environment all set up and working perfectly ... almost. My only problem is that when I select to view my PDF, then   * if Skim is running, the PDF will be shown in Skim, and   * if Skim is not running, the PDF will be shown in my default PDF viewer. I would prefer it if Skim would launch if it's not already running. How can I do that? This is the relevant portion of my `.emacs` file:               ;; Enable synctex     (setq LaTeX-command "latex -synctex=1")          ;; The following only works with AUCTeX loaded     (require 'tex-site)     (add-hook 'TeX-mode-hook         (lambda ()             (add-to-list 'TeX-output-view-style                 '("^pdf$" "."                   "/Applications/Skim.app/Contents/SharedSupport/displayline %n %o %b")))     )          ;; Use PDF mode by default     (setq-default TeX-PDF-mode t)     ;; Make emacs aware of multi-file projects     (setq-default TeX-master nil)


title: Manually add entries to the bibliography without writing them to the .bib file

text: I use a joint `.bib` file with some co-authors. In addition I want to add some entries to the bibliography without writing them into the `.bib` file. How is that possible?


title: Lyx bibstyle problems

text: I'm trying to get citations rendered like this: (Bunks et al. 2001; Alex 1999). Please mind there is no comma after author's name. I already tried natbib, authordate1-4 packes but with no success. In many cases there is a comma between the author and the date.


title: Frame Numbers in Beamer's Article Mode

text: I'm using the beamer package to create a presentation. Additionally I'd like to have a handout containing more information (as presentation slides should not contain much text). For this I use the article mode. In order to allow my audience to take notes on their handouts, it would be helpful to have frame numbers on the handout. I accomplished this using the following code:               \mode<article>{         \renewcommand{\frametitle}[1]{\subsubsection*{#1 [Slide \insertframenumber]}}     }      This works perfectly well unless you insert section start frames using               \AtBeginSection[] % nothing for \section*{}     {         \begin{frame}             \begin{center}                 \structure{\Huge \insertsection}             \end{center}         \end{frame}     }      The problem is that `\AtBeginSection` doesn't work in article mode. The additional frames are not inserted and thus the frame numbering gets wrong. So I did the following to fix this:               \mode<article>{ % repair frame numbers in article mode as there are no section start frames         \newcommand*\oldsectionmacro{}%         \let\oldsectionmacro\section%         \renewcommand*\section{%         \addtocounter{framenumber}{1}\oldsectionmacro}%     }      This works unless there is a `\section*`. In this case the frame number is incremented but shouldn't as there is no section start frame. I could avoid using `\section*` but there are also some implicit ones (table of contents, bibliography, ...). Currently I correct this manually (see below) and it works for now but I don't like it. Is there a better way of doing so? Can I rewrite `\section*` or have an `\AtBeginSection` for article mode or insert the frame numbers in a different way? Here is a small example to play around with:               \documentclass[a4paper]{scrartcl} % problem doesn't change if I use article instead     \usepackage{beamerarticle}     %\documentclass{beamer}          \usepackage[utf8]{inputenc}          \setbeamertemplate{footline}[frame number]          \mode<article>{         % frame number in frametitle         \renewcommand{\frametitle}[1]{\subsubsection*{#1 [Slide \insertframenumber]}}     }          % section start frame     % this has no effect in article mode     \AtBeginSection[] % nothing for \section*{}     {         \begin{frame}             \begin{center}                 \structure{\Huge \insertsection}             \end{center}         \end{frame}     }     \mode<article>{ % repair frame numbers in article mode as there are no section start frames         \newcommand*\oldsectionmacro{}%         \let\oldsectionmacro\section%         \renewcommand*\section{%         \addtocounter{framenumber}{1}\oldsectionmacro}%     %     %   \newcommand*\oldtocmacro{}%     %   \let\oldtocmacro\tableofcontents%     %   \renewcommand*\tableofcontents{%     %   \addtocounter{framenumber}{-1}\oldtocmacro}     }          \begin{document}              \begin{frame}             \tableofcontents         \end{frame}              \section{Section 1}                  \begin{frame}                 \frametitle{Frame A}                      Frame A             \end{frame}              \section{Section 2}         %\section*{Section Star}                  \begin{frame}                 \frametitle{Frame B}                      Frame B             \end{frame}          \end{document}


title: Subdepth subscripts not aligned

text: I was under the impression that the `subdepth` package would even out the depth of subscripts, but I just tried the following code in which the subscripts are not "aligned":               \documentclass{article}     \usepackage{amsfonts}                                                                \usepackage[low-sup]{subdepth}          \begin{document}       \[         Z^{\frac12}_{\mathcal{A}} u_{\mathcal{A}}       \]     \end{document}      Is `subdepth` not supposed to work with the `mathcal` font? The subscripts _are_ aligned if I type, e.g., `$M_n = M_n^T$`.


title: Scalar field in pgfplots

text: I want to make a PGF plot which, besides normal 2D graph, includes scalar field, that is values of the 2D function in various positions of the 2D graph. Of course, I tried to do that using `\foreach` command. First I learned from stackexchange that running loops requires some additional tweak using `\edef`. But still I do not know how to actually calculate function of two parameters. `\pgfmathparse` simply does not work. The example below does not sum `\i` and `\j` but simply write them down one next to other. Maybe my ideas are completely wrong and there is much easier method to draw scalar fields. Can someone help me on this? Regards, Marko.               \documentclass{minimal}     \usepackage{tikz,pgfplots}          \begin{document}     \begin{tikzpicture}     \begin{axis}[domain=-2.5:2.5,view={0}{90},axis background/.style={fill=white},]     \addplot {x^2};          \foreach \i in {-2.4,-1.2,...,2.4}       {\foreach \j in {-2.4,-1.2,...,2.4}         {\edef\temp{\noexpand \node at (axis cs:\i,\j) {\pgfmathparse{\i+\j}\pgfmathresult};}         \temp}}          \end{axis}     \end{tikzpicture}     \end{document}


I've been working on my dissertation in LaTex Texshop for sometime and this morning I revived these error messages. I think it is somehow related to hyperref because when I disable this package the document parses fine but then I don't have the hyper ref ability... Help.               ! Missing \endcsname inserted.     <to be read again>                         \relax      l.131 \begin{document}          ?      ! Missing \endcsname inserted.     <to be read again>                         \relax      l.131 \begin{document}          ?      ! Extra \endcsname.     \check@bm@number ...0\else \csname B_#1\endcsname                                                        \fi      l.131 \begin{document}          ?      ! Missing \endcsname inserted.     <to be read again>                         \relax      l.131 \begin{document}          ?      (./TEO-2013_Fall-Dissertation-jdm.out)     ! Argument of \@@BOOKMARK has an extra }.     <inserted text>                      \par      l.131 \begin{document}          ?      Runaway argument?     ! Paragraph ended before \@@BOOKMARK was complete.     <to be read again>                         \par      l.131 \begin{document}          ?      ! Extra \fi.     \@begindocumenthook ...apper {\ReadBookmarks }\fi                                                        \Hy@pdfstringtrue \PDF@Set...     l.131 \begin{document}      I am working with a template for the dissertation with several chapters. Here is my the basics of my file.               \documentclass[11pt]{report}             \usepackage{covington}     \usepackage[margin=1.25in]{geometry}      \geometry{letterpaper}                       \usepackage{lscape}     \usepackage{graphicx}     \usepackage{mdwlist}     \usepackage[table]{xcolor}     \usepackage{phonrule}     \usepackage{qtree}     \usepackage{tipa}     \usepackage{metre}     \usepackage{tone}     \usepackage{hyperref}     \usepackage{movie15}     \usepackage{natbib}     \usepackage{longtable}     \usepackage{multicol}     \usepackage{utdiss2-05}              \usepackage{graphicx}     \usepackage{vowel}     \usepackage{amssymb}     \usepackage{epstopdf}     \DeclareGraphicsRule{.tif}{png}{.png}{`convert #1 `dirname #1`/`basename #1 .tif`.png}     \usepackage{amsmath}     \usepackage{mathtools}     \usepackage{titlesec}     \setcounter{secnumdepth}{3}     \usepackage{qtree}     \usepackage{amsmath,amsthm,amsfonts,amscd}      \usepackage{verbatim}       % Allows quoting source with commands.     \usepackage{makeidx}        % Package to make an index.     \usepackage{enumerate}     \usepackage{url}        % Allows good typesetting of web URLs.     \usepackage{draftcopy}      % Uncomment this line to have      \newcommand{\latexe}{{\LaTeX\kern.125em2%                           \lower.5ex\hbox{$\varepsilon$}}}     \newcommand{\amslatex}{\AmS-\LaTeX{}}     \chardef\bslash=`\\ % \bslash makes a backslash (in tt fonts)     \newcommand{\cn}[1]{\texttt{\bslash #1}}     \makeatletter            \def\square{\RIfM@\bgroup\else$\bgroup\aftergroup$\fi       \vcenter{\hrule\hbox{\vrule\@height.6em\kern.6em\vrule}%                                                   \hrule}\egroup}     \makeatother     \makeindex    % Make the index     \begin{document}          \copyrightpage       % Produces the copyright page.          \commcertpage       % Produces the Committee Certification                 %   of Approved Version page (doctoral)                 %   or Signature page (masters).                 %       20 Mar 2002 cwm          \titlepage              % Produces the title page.          \begin{dedication}     \index{Dedication@\emph{Dedication}}%          \end{dedication}               \tableofcontents       \listoftables        \listoffigures          \include{chapter-1-}          \include{chapter-2-}          \include{chapter-3-}           \include{chapter-4-}          \include{chapter-5-}          \include{chapter-6-}          \include{chapter-7-}          \include{chapter-8-}          \include{chapter-9-}          \include{chapter-10-}               %\appendices     %index{Appendices@\emph{Appendices}}%          %\include{chapter-appendix1}          %\include{chapter-appendix2}          %\include{chapter-appendix3}               \begin{singlespacing}          %\renewcommand     %\bibname{References}     %\addcontentsline{toc}{section}{References}     %\bibliographystyle{language}  % Here the bibliography           %     %\bibliography{diss}        % is inserted.               %     %\index{References@\emph{References}}%       \bibliographystyle{language}     \bibliography{jdm1-diss}     \end{singlespacing}               \printindex%              \begin{vita}     \end{vita}          \end{document}


title: Typesetting the Kvanta journal (Задачник «Кванта» по математике)

text: I've visited a colleague of mine, Karel Horák, a Czech TeXist, in Prague and he presented/gave me a nice TeX problem. He wishes to get PDF file from TeX file. It sounds easy! Issues of the Kvanta journal have been released publicly some time ago (TeX, PDF, http://www.kvant.info/zkm_main.htm). His first problem was which encoding the file is written in. He tried all the encodings in TeXworks with no luck. I've tried several automatic detection systems (first site, second site). They identified SJIS and UTF-8, that's wrong. I haven't tested chardet package in Python (that's a sort of my ToDo). I've tried different strategy. I wished to test all the encodings from the `iconv` program. I've created a standalone Lua script to do that for me. We run `texlua mal-split.lua`:               -- I'm mal-split.lua...     -- I test all encodings from iconv -l...          os.execute("iconv -l >list.txt")     content=io.lines("list.txt")     for line in content do       for term in string.gmatch(line,"[^ ]+") do       print("Processing "..term)       command="iconv -f "..term.." -t UTF-8 zkm_main.tex >zkm_main-"..term..".tex"       os.execute(command)       end -- for term     end -- for line      Then I've tried to find some word from the PDF file (Copy+Paste) among those many TeX files. And that's it! The used encoding is probably one of these: `CP866`, `CP1125` or `CP1131`. There are some other problems to get PDF file from that TeX file:   * We are missing all the figures, see the `\epsfbox` command. We need to download them somehow from the server (if they are present there) or extract them from the PDF file or accompanying HTML+PNG files. We guess some of them are created in Metapost. We can remove this problem by defining `\def\epsfbox#1{}` at the beginning of the file. I have neither found the necessary files with pictures nor font files. I used `wget -r -N http://www.kvant.info/` (2 GB). I wrote an email to the site administrator if they could provide them.  This is the reply to my humble request to get source codes of the figures:                 Hello, Pavel! I'm afraid the most of the data you requested is lost...       It has been a long time since *.tex files were produced. It's a chance       that you can find some pictures here       http://www.kvant.info/zkm_main.htm       Unfortunately it's not possible to contact the author of the files...       С уважением,       sergereal       The pictures loaded by the HTML webpage (GIF, JPG, SWF) are located in the `/zkm_in/` folder, here they are: http://striz7.fame.utb.cz/docasne/zkm_im.rar   * The file is missing the preamble, there should be some as there are undefined commands like `\LARGE`. I haven't found another TeX file(s) at that server.   * We probably should load some support package(s) as they are using Cyrillic letters in the command names. Or we need to change engine from `latex` to something else...   * The list of fonts from the PDF file is: jour10, scbbx10, scbex10, scbit10, scbmi10, scbr10, scbsy10 and T1 to T9. **So the task is to reconstruct the preamble, that's my best guess.** I'm trying to reproduce the PDF file by compiling TeX file by any means necessary. These are some TeX files converted from CP866, from CP1125 and from CP1131 to UTF-8 just in case you cannot run the iconv tool. I enclose a preview of the first page of the PDF file. ![enter image description here](http://i.stack.imgur.com/2z7gQ.png)


title: Maths expression in the coordinates of rput

text: I use `\rput[B](1.5,4.1){\\( 1 \\)}` to write a number at a specific place, now I would like to express an expression at the place of coordinates, for instance `\rput[B](2+#1,4.1){\\( 1 \\)}` where `#1` is an input of my macro, it returns an error `ERROR: Illegal unit of measure (pt inserted).` Could anyone help? ![enter image description here](http://i.stack.imgur.com/K3m61.png)


title: How to break lines in conditions using algorithm2e?

text: I am trying to (partially) reproduce the algorithm displayed in Figure 4 from NetFlow: Information Loss or Win? My problem is with the multi-line conditions present in the "IFs". I want them to be indented, but `\Indp` does not seem to take effect if a new line `\\\` is not present in the same line. This is what I tried:               \begin{algorithm}[htb]         \SetAlgoNoLine%         \SetNoFillComment         \SetKwIF{If}{ElseIf}{Else}{if}{:}{elif}{else:}{}%              \If{(SYNs from both hosts and \\                 \Indp SYNs in earliest NFs of both hosts and \\                 \Indp hosts' earliest packets differ)}{             Host with earliest NF is originator          }         \If{(SYN only from one host and \\             \Indp SYN is in connection's earliest NF)}{         Host is originator         }         \If{one host uses port 20 (ftp-data)}{         Host is originator         }         \If{only one host uses a well-known port}{         Host is responder         }         \If{start of hosts' first packets differ}{         Host with earliest NF is originator         }         Arbitrarily choose originator         \caption{Pseudo code for determining connection server side}         \label{algo:serverside2}     \end{algorithm}      For instance, the line "SYNs in earliest NFs of both hosts and" is indented correctly, but "hosts' earliest packets differ" is not.


title: Why does loading pgfplots after tikz break the default layers in a tikzpicture?

text: Taking the MWE from Jake's answer to the question Background rectangles with equal width but 'fitting' height, I get an error when loading `pgfplots` after the `tikz` packages but not before. I'm assuming this is caused by `pgfplots` redefining the standard `tikz` layers (cf. `tikz manual` Section 4.26) but I don't quite understand if this is intentional and whether loading `pgfplots` before `tikz` has any consequences for how `pgfplots` expects its layers to work. The error in question is:               ! Package pgf Error: Sorry, the requested layer 'background' is not part of the      layer list. Please verify that you provided \pgfsetlayers and that 'background'      is part of this list.          See the pgf package documentation for explanation.     Type  H <return>  for immediate help.      ...                                                        l.49     \begin{pgfonlayer}{background}      MWE:               \documentclass{article}          \usepackage{pgfplots} % Works fine     \usepackage{tikz}     \usetikzlibrary{backgrounds,fit,calc}     %\usepackage{pgfplots} % Throws an error          \begin{document}          \tikzset{         schritt/.style={             draw,             rounded corners,             fill=blue!20,             inner xsep=2em,         },         background/.style={             draw,             fill=yellow!30,             align=right         }     }          % Returns three nodes: The argument, and the projections of the argument on the left and right borders of the bounding box     \newcommand{\extendnode}[1]{         (#1)         ($(current bounding box.north east)!(#1)!(current bounding box.south east)$)         ($(current bounding box.north west)!(#1)!(current bounding box.south west)$)     }          \begin{tikzpicture}     \matrix (matrix) [row sep=0.5cm,column sep=0.5cm] {       \node (elicit) [schritt] {Wissenserhebung}; & \\       \node (interpret) [schritt] {Interpretation}; & \\       & \node (model) [schritt] {Modellierung}; \\       \node (representation) [schritt] {Repräsentation}; & \\       \node (integration) [schritt] {Integration}; & \\       \node (maintenance) [schritt] {Wartung}; & \\     };          \path[->]       (elicit) edge (interpret)       (interpret) edge node[right] {\hspace{.35cm}\tiny Modellbasierter Ansatz} (model)       (interpret) edge node[right] {\tiny Rapid Prototyping} (representation)       (model) edge (representation)       (representation) edge (integration)       (integration) edge (maintenance);          \begin{pgfonlayer}{background}            \path [use as bounding box] (current bounding box.north west) (current bounding box.south east); % Freeze current bounding box       \node [fit={\extendnode{elicit}}, background] {First};       \node [fit={\extendnode{interpret} (model)}, background] {Second};       \node [fit=\extendnode{representation}, background] {Third};       \node [fit=\extendnode{integration}, background] {Fourth};       \node [fit=\extendnode{maintenance}, background] {Fifth};          \end{pgfonlayer}     \end{tikzpicture}               \end{document}


title: Multiple Labels on X coordinate when using symbolic coordinate

text: I am using pgfplots to plot bar charts; when I try to use symbolic labelling for the x coordinates, I get the labels repeating. Any ideas why, the snippet is below.               \begin{figure}[!h]     \centering     \begin{tikzpicture}     \begin{axis}[     x tick label style={     /pgf/number format/1000 sep=},     xlabel={Trace-sets},     ylabel={Number of Reference Points},     enlargelimits=0.15,     symbolic x coords={1, 2, 3},     legend style={at={(0.5,-0.2)},     anchor=north,     legend columns=-1},     ybar=5pt,     bar width=9pt,     nodes near coords,     grid=major     ]     \addplot coordinates {(1,166) (2,612) (3,130)};     \addplot coordinates {(1,60) (2,612) (3,46)};     \legend{Offline, Online}     \end{axis}     \end{tikzpicture}     \caption{Number of reference points at which Signal Strengths were sampled}     \end{figure}


title: tikz externalize optimizes pictures away although jobname complies

text: I used tikz externalize successfully for a time now. But since my pc crashed once the externalized pictures are instantly deleted. Reading the manual I found out, that they are "optimized away" because of the jobname differing of the documents (?) jobname. I did not change anything here. How can I fix that? Here's the log of the main tex-file: http://pastebin.com/zW60UZgH


title: Commutative Diagram with Elements

text: I want to make a diagram that looks like the following: ![enter image description here](http://i.stack.imgur.com/WIahy.jpg)


title: Hide all but one instances of a custom environment

text: I have a file containing a number of custom environments numbered by a counter "exercisesheetnumber". I would like to use a second counter "printonly" to hide all instances of the environment but the one given in "printonly". This may be related to the question Hide custom environment content based on boolean, but I could not figure out how to single out one of the environments which should not be hidden.


title: How to avoid in the Bibliography the list of pages where I cited that reference?

text: As I explained in the title, I'd like to avoid when compiling the bibliography with BibTeX to display, after each reference of the bibliography, the list of all the pages where I cited that item. Which style can I use?


title: Error with veelo chapter style

text: When using XeLaTeX on OS X 10.8, I have problems using `memoir` and the `veelo` chapter style. The following code gives me the error               ! Undefined control sequence.     <argument> \hspace {.8em}\resizebox                                          {!}{\beforechapskip }{\chapnumfont \thec...      l.5 \chapter{This is chapter 1}      I have narrowed it down to the use of the `veelo` chapter style, but I don't really know where to go from there.               \documentclass[9pt, twoside, onecolumn]{memoir}     \usepackage{hyperref}     \chapterstyle{veelo}     \begin{document}     \chapter{This is chapter 1}     \section{A new section}     The hyperref should be \href{mailto:dummy@email.org}{dummy@email.org}     \end{document}


title: Problem with tabto package

text: I'm having a problem with the otherwise excellent "tabto" package: the baseline of large text positioned after the first tab stop isn't calculated correctly, leading to ugly overlaps with the previous line. Here's an example:               \documentclass{article}     \usepackage{amsmath}     \usepackage{tabto}          \begin{document}          Here is a list of some items:          \NumTabs{3}     \noindent     (a) An item.\tab     (b) Another item. \tab     (c) Again, an item. \tab     (d) {\huge A rather large item.} \tab     (e) The final item.          \vspace{12pt}          Here is a list of some items:          \NumTabs{2}     \noindent     (a) An item.\tab     (b) Another item. \tab     (c) Again, an item. \tab     (d) {\huge A rather large item.} \tab     (e) The final item.          \end{document}      The first set of tabbed items looks great. In the second "A rather large item" overlaps the text on the line above. If anyone has a suggestion for a workaround, either in my document or as a patch to the package, I'd appreciate it.


title: Changing the bibliography style in the SIGGRAPH template

text: I'm writing a paper using the SIGGRAPH LaTeX template (http://www.siggraph.org/instructions-authors), but I would like to have a different bibliography style. Here's a minimal example:               \documentclass[annual]{acmsiggraph}          \title{The Title of Your Paper Goes Here}          \author{}     \pdfauthor{}          \begin{document}     \maketitle          \cite{Park:2006:DSI}          \bibliographystyle{abbrv}     \bibliography{template}     \end{document}      The citation appears like this: [Park et al. 2006], but I prefer a numbered citation style, like [1]. How can I change that in the template? I tried `\bibliographystyle{plain}` and `\bibliographystyle{abbrv}`, but that doesn't have any effect.


title: multi-part nodes/anchors in a resistor-like symbol which has been split horizontally

text: I would like to take the symbol described in this post and create a two part node. Currently, the anchor for text is located at the center of the symbol. I would like to create two text anchors, at the centers of the two compartments which arise from splitting the resistor-like symbol vertically. I note that sections 75.1.4 and 75.2.2 in tikz manual for version 2.10 are relevant. I found this post to be quite useful. First of all, I must use the tikz library:               \usetikzlibrary{shapes.multipart}      I the example alluded to immediately above we see that the following commands:               \let\pgfnodeparttrbox\pgfnodeparttwobox     \let\pgfnodepartblbox\pgfnodepartthreebox     \let\pgfnodepartbrbox\pgfnodepartfourbox      Are placed immediately following the `\makeatletter` command as indicated in Section 75.2.2 of manual. Immediately following the `\pgfdeclareshape{}{` command opening I see               \nodeparts{text,two,three,four}%      In which the node part names are declared. For each of the nodepart names excluding the node part `text` whose anchor location, i'm assuming, is inherited, there is an anchor definition that may look something like this:               \savedanchor\twoanchor{%         \pgfmathsetlength\pgf@xa{\pgfkeysvalueof{/pgf/inner xsep}}%         \pgfmathsetlength\pgf@ya{\pgfkeysvalueof{/pgf/inner ysep}}%         \advance\pgf@x.5\pgflinewidth         \advance\pgf@x\pgf@xa         \advance\pgf@y.5\pgflinewidth         \advance\pgf@y\pgf@ya         \pgf@yb\dp\pgfnodeparttextbox         \pgf@yc\dp\pgfnodeparttwobox         \ifdim\pgf@yb>\pgf@yc           \pgf@yc\pgf@yb         \fi         \advance\pgf@y\pgf@yc     }%      I don't fully follow what is happening here. It looks like the values of `inner xsep` and `inner ysep` are used (added to other dimensions) in order to offset the box from the anchor position. Half of some dimension is used to populate x and y-dimension variables... Then it looks as though the greater of two y-variables is added to another y-variable. At the moment, I don't quite understand what is happening here in general terms. I can say that the operations performed within the `\savedanchor` command are slightly different for each node. After all the low level anchor declarations we have this               \anchor{two}{\twoanchor}%     \anchor{three}{\threeanchor}%     \anchor{four}{\fouranchor}%      We don't concern ourselves with `\beforebackgroundpath{...}` and `\behindbackgroundpath{...}` at this time. Finally, here is the high level call:               \node [options] (s) {text \nodepart{two} two \nodepart{three} three \nodepart{four} four};      Using the guidance above, I have modified the code contributed by @Qrrbrbirlbel, indicating the additions with comments. Note also that I have removed the _stems_ associated with the symbol as they are unnecessary; the tikz draw operation takes care of this. **modifiedsymbol.tex**               \makeatletter     %\let\pgfnodeparttrbox\pgfnodeparttextbbox   % needed? for the `textb' box     % I don't know if \pgfnodeparttrbox, \pgfnodepartblbox and \pgfnodepartbrbox are user-defined or are defined in one of the libraries?     \pgfkeys{/pgf/symbol shape ratio/.initial=.5}     \pgfdeclareshape{symbol shape}{%     %\nodeparts{text,textb}% needed     %\savedanchor\textbanchor{% this defines the position of the anchor     %        ...     %    }%         \savedmacro\barratio{%           \pgfmathsetmacro\barratio{\pgfkeysvalueof{/pgf/symbol shape ratio}}%           \ifdim\barratio pt<0pt\relax             % the ratio is < 0           \else\ifdim\barratio pt>1pt\relax               % the ratio is > 1             \fi           \fi         }         \inheritsavedanchors[from=rectangle ee]         \inheritanchor[from=rectangle ee]{center}         \inheritanchor[from=rectangle ee]{north}         \inheritanchor[from=rectangle ee]{south}         \inheritanchor[from=rectangle ee]{east}         \inheritanchor[from=rectangle ee]{west}         \inheritanchor[from=rectangle ee]{north east}         \inheritanchor[from=rectangle ee]{north west}         \inheritanchor[from=rectangle ee]{south east}         \inheritanchor[from=rectangle ee]{south west}         \inheritanchor[from=rectangle ee]{input}         \inheritanchor[from=rectangle ee]{output}         \anchor{bar north}{%           \pgf@process{\pgfpointadd{\southwest}{\pgfpoint{\pgfkeysvalueof{/pgf/outer xsep}}{0pt}}}%           \pgf@xa\pgf@x           \pgf@process{\pgfpointadd{\northeast}{\pgfpointscale{-1}{\pgfpoint{\pgfkeysvalueof{/pgf/outer xsep}}{0pt}}}}%           \advance\pgf@x-\pgf@xa           \advance\pgf@xa\barratio\pgf@x           \pgf@x\pgf@xa         }         \anchor{bar south}{%           \pgfmathsetmacro\pgf@tempa{\pgfkeysvalueof{/pgf/symbol shape ratio}}%           \pgf@process{\pgfpointadd{\southwest}{\pgfpoint{\pgfkeysvalueof{/pgf/outer xsep}}{0pt}}}%           \pgf@xa\pgf@x\pgf@ya\pgf@y           \pgf@process{\pgfpointadd{\northeast}{\pgfpointscale{-1}{\pgfpoint{\pgfkeysvalueof{/pgf/outer xsep}}{0pt}}}}%           \advance\pgf@x-\pgf@xa           \advance\pgf@xa\barratio\pgf@x           \pgf@x\pgf@xa           \pgf@y\pgf@ya         }         \anchor{bar center}{%           \pgfmathsetmacro\pgf@tempa{\pgfkeysvalueof{/pgf/symbol shape ratio}}%           \pgf@process{\pgfpointadd{\southwest}{\pgfpoint{\pgfkeysvalueof{/pgf/outer xsep}}{0pt}}}%           \pgf@xa\pgf@x\pgf@ya.5\pgf@y           \pgf@process{\pgfpointadd{\northeast}{\pgfpointscale{-1}{\pgfpoint{\pgfkeysvalueof{/pgf/outer xsep}}{0pt}}}}%           \advance\pgf@x-\pgf@xa\pgf@y.5\pgf@y           \advance\pgf@xa\barratio\pgf@x           \pgf@x\pgf@xa           \advance\pgf@y\pgf@ya         }         %\anchor{textb}{\textbanchor}   % anchor for textb         \inheritanchorborder[from=rectangle ee]         \inheritbackgroundpath[from=rectangle ee]         \behindbackgroundpath{%           \pgf@process{\pgfpointadd{\southwest}{\pgfpoint{\pgfkeysvalueof{/pgf/outer xsep}}{\pgfkeysvalueof{/pgf/outer ysep}}}}%           \pgf@xa\pgf@x\pgf@ya\pgf@y           \pgf@process{\pgfpointadd{\northeast}{\pgfpointscale{-1}{\pgfpoint{\pgfkeysvalueof{/pgf/outer xsep}}{\pgfkeysvalueof{/pgf/outer ysep}}}}}%           \pgf@xb\pgf@x\pgf@yb\pgf@y           % The center point: c = .5 * (a + b)           \pgf@xc.5\pgf@xb           \advance\pgf@xc+.5\pgf@xa           \pgf@yc.5\pgf@yb           \advance\pgf@yc+.5\pgf@ya           % we don't want to overdraw lines and subtract/add half the line width (not affected by outer seps)     %      \pgfutil@tempdima\pgf@xa     %      \advance\pgfutil@tempdima-.5\pgflinewidth     %      \pgfutil@tempdimb-.5\pgf@xc     %      \advance\pgfutil@tempdimb1.5\pgf@xa     %      \pgfpathmoveto{\pgfqpoint{\pgfutil@tempdima}{\pgf@yc}}%     %      \pgfpathlineto{\pgfqpoint{\pgfutil@tempdimb}{\pgf@yc}}%     %      \pgfutil@tempdima\pgf@xb     %      \advance\pgfutil@tempdima+.5\pgflinewidth     %      \pgfutil@tempdimb-.5\pgf@xc     %      \advance\pgfutil@tempdimb1.5\pgf@xb     %      \pgfpathmoveto{\pgfqpoint{\pgfutil@tempdima}{\pgf@yc}}%     %      \pgfpathlineto{\pgfqpoint{\pgfutil@tempdimb}{\pgf@yc}}%     %           \advance\pgf@xb-\pgf@xa%                                              \pgf@xb contains the width           \advance\pgf@xa\barratio\pgf@xb%                                     left x value + ratio*width           \advance\pgf@ya.5\pgflinewidth           \advance\pgf@yb-.5\pgflinewidth           \pgfpathmoveto{\pgfqpoint{\pgf@xa}{\pgf@ya}}%           \pgfpathlineto{\pgfqpoint{\pgf@xa}{\pgf@yb}}%           \pgfsetbuttcap           \pgfusepathqstroke         }%     }     \makeatother      **call.tex**               \documentclass[tikz,convert=false]{standalone}     \usetikzlibrary{circuits,circuits.ee.IEC,shapes.multipart}     \input{symbols/modifiedsymbol.tex}% retrieve symbol definition     \tikzset{       circuit declare symbol=symbol,       set symbol graphic={         shape=symbol shape,         draw,         transform shape,         circuit symbol size=width 14 height 2,       }     }     \begin{document}     \def\Ratio{0.38}     \begin{tikzpicture}[circuit ee IEC]     \node[symbol, symbol shape ratio=\Ratio] at (0,0) (thesymbol) {A};     %\node[symbol, symbol shape ratio=\Ratio] at (0,0) (thesymbol) {A \nodepart{textb} B};  % two-part node version     \end{tikzpicture}     \end{document}      So, my question is how to write the `\savedanchor{...}` or `\anchor{...}` commands in order to position the multipart nodes/text box anchors in a resistor-like symbol which has been split horizontally? Any comments are greatly appreciated.


title: Changing biblatex footcite style to use square brackets around the citation

text: I am supposed to use a certain citation style which has the citations in footnotes and square brackets around the references, just like "regular" citations in text (see screenshot). I can't however, make biblatex use brackets in the footnotes when using `\footcite`, i.e.:               \documentclass{article}     \usepackage[style=alphabetic]{biblatex}          \begin{filecontents*}{bibliography.bib}     @BOOK{Cornelisse1979,       author = {Cornelisse, J. W. and Schöyer, H. Ferry R. and Wakker, Karel F.},       title = {Rocket Propulsion and Spaceflight Dynamics},       year = {1979},       publisher = {Pitman},     }     \end{filecontents*}          \bibliography{bibliography.bib}          \begin{document}     \null     \vfill          Regular citation: \cite{Cornelisse1979} and a footnote citation     here\footcite{Cornelisse1979}.     But it shall look like this\footnote{\cite{Cornelisse1979}}.     \end{document}      ![enter image description here](http://i.stack.imgur.com/qCM3A.png) In the screenshot, one can see that the "CSW79" is not bracketed. Using `\footnote` manually seems like a hack to me. How to make it print brackets around the reference in the footnote when using `footcite`? Ideally: How to make it cite in the footnotes by default, so that I can `\cite` away without having to use `\footcite`? I had a look at other tex.sx questions like this or this, but they solve different problems as I don't want the superscript or number to be bracketed but the reference.


title: dcolumn and text in table header

text: I am using the `dcolumn` package to align cell contents at the decimal seperator. Now in the table header I have a textual description of the column, for example like this:               \begin{tabular}{c|d{4.3}}       field & \multicolumn{1}{c}{description} \\       \hline       a     &    0.55 \\       b     & 1223.4     \end{tabular}      As you can see I had to wrap this text in `multicolumn` to make LaTeX happy which somehow is a hack. Is there a more elegant way? Especially for many columns this gets a little cumbersome.


title: changing the default color using the changes package

text: I've been giving the changes package a try, but have been unable to figure out how to change the default color for changes. There does not seem any obvious way to do so. I'm using version 5.2 in TeX Live 2009. The current version is 5.4 but not much has changed. For example, the default for added text is blue, but I don't see any way to change this to something other than blue. I see there is some option to add author-specific colorcoding (using `\definechangesauthor`), but I don't want that. I just want to change the default. At first glance, it looks like passing a color option to xcolor might work (something like `\usepackage[xcolor=orange]{changes}`), but it doesn't do anything.


title: Automated overlay specification with \only and \enumerate

text: Sometimes, when a list of items is too long to fit on a slide, I do the following to achieve a somewhat better result (ignore commented lines for now):               \documentclass[t,10pt]{beamer}     \setbeamertemplate{navigation symbols}{}     \setbeamercovered{transparent}          \begin{document}     \begin{frame}     %\begin{itemize}[<+->] \item a \item b \end{itemize}         \begin{enumerate}      \only<1-2>{          %\item We agree that          \item<1>[1.] all men          \item<2>[2.] are      }\only<3->{          \item<3>[3.] equal      }     \end{enumerate}     \end{frame}     \end{document}      This produces: ![http://i52.tinypic.com/1zvfnt0.png](http://i.stack.imgur.com/tzUHS.png) Unfortunately this construction is not very robust, in a sense that upon uncommenting either or both of the commented lines, I will have to manually alter the numbering of the items and the overlay specifications. **Question:** Is it possible to achieve the same result without any manual numbering or overlay specifying? (Further comment: I attempted to resolve this, and this is about as far as I got:               \begin{enumerate}[<+->]      \only<.(1)-.(2)>{        \item All men        \item are      }\only<.(3)>{        \item[3.] equal      }      \end{enumerate}      Unfortunately, there are still a lot of magic numbers involved and I still have to count manually how many `\items`s each `\only` contains. Apart from that, LaTeX will complain about a missing `\item` on slides where none of the `\only`s is active It would, for instance be extremely convenient to have a command `\clearenumerate` that produces the above with (probably with some heavy altering of the enumerate environment):               \begin{enumerate}[<+->]       \item all men       \item are       \clearenumerate       \item equal     \end{enumerate}      But I'm assuming such a thing, if possible, requires a lot of TeX/LaTeX mastery.)


title: BibTeX can't open style file

text: I have a problem making my bibliography run. I had the same code some time ago and it did run then, I can't figure out what the problem is.               \documentclass[12pt]{scrartcl}     \usepackage[comma,authoryear]{natbib}     \begin{document}     Blablabla \cite{xy}     \bibliographystyle{natbib}     \bibliography{rp_bib.bib}     \end{document}      When I run LaTeX and afterwards BibTeX, it says `I couldn't open style file natbib.bst I'm skipping whatever remains of this command I couldn't open database file...` Does anyone know what the problem might be?


title: tikz cloning graphs in background

text: I want to have output something like this - ![enter image description here](http://i.stack.imgur.com/ry8md.png) On the right side, we can see the 2 rectangles and circles. What I want to do is like that I have 3 clones in total one behind another and then connect the circle in middle to the circles in all 3 boxes on the right side. I have written the code and tried to work with layers, but not able to do it.               \documentclass{article}          \usepackage{subfig}     \usepackage{pgf}     \usepackage{pgfplots}     \usepackage{tikz}     \usetikzlibrary{arrows,backgrounds}     \usepackage{amsmath,amssymb,latexsym,amsfonts,times,color,graphicx}     \usepackage{epstopdf}          \begin{document}               \begin{tikzpicture}              % Left Side         \draw (1.25,-0.25) circle (0.75cm);         \draw[double,double distance=5pt] (4,-2) -- ++(5cm,0cm) -- ++(0cm,3.5cm) -- ++(-5cm,0cm) -- cycle;          \draw[double,double distance=1.5pt,->] (2.05,-0.25) -- (5.25,-0.25);         \draw (6,-0.25) circle (0.75cm);         \draw (5.25,-1.25) -- (5.25,0.75);         \draw (3.1,0.25) -- (2.9,-0.25);         \draw (2.85, -0.50) node {N};              % Arrow              % Right Side         \draw (12,0) circle (0.75cm);                   \def\recAOriginX{15}         \def\recAOriginY{-2}         \draw[] (\recAOriginX,\recAOriginY) -- ++(5cm,0cm) -- ++(0cm,3.5cm) -- ++(-5cm,0cm) -- cycle;          \draw (\recAOriginX+2,\recAOriginY+1.75) circle (0.75cm);              \begin{pfgonlayer}{background}         \def\recAOriginX{15.5}         \def\recAOriginY{1}         \draw[] (\recAOriginX,\recAOriginY) -- ++(5cm,0cm) -- ++(0cm,3.5cm) -- ++(-5cm,0cm) -- cycle;          \draw (\recAOriginX+2,\recAOriginY+1.75) circle (0.75cm);         \end{pfgonlayer}          \end{tikzpicture}     \end{document}      Thanks !


title: Multiple multicolums table making the first row of data disappear. Also need tips on making it better looking

text: Following this question: Multiple Multi columns with pgfplotstable The first row of my data gets messed up somehow, here's the code:               \documentclass{article}     \usepackage{booktabs}     \usepackage{pgfplotstable}     \usepackage[paperwidth=35cm]{geometry}          \begin{document}          \noindent\pgfplotstabletypeset[      every head row/.style={      before row={\toprule        &            &\multicolumn{2}{c}{32-2}        &\multicolumn{2}{c}{128-4}        &\multicolumn{2}{c}{256-8}        &\multicolumn{2}{c}{32-4 w/o LS}        &\multicolumn{2}{c}{128-4 w/o LS}        &\multicolumn{2}{c}{256-8 w/o LS}         },     },     display columns/1/.style={column name={Instance}},     display columns/2/.style={column name={n}},     display columns/3/.style={column name={Avg. Time}},     display columns/4/.style={column name={Avg. Qual.}},     display columns/5/.style={column name={Avg. Time}},     display columns/6/.style={column name={Avg. Qual.}},     display columns/7/.style={column name={Avg. Time}},     display columns/8/.style={column name={Avg. Qual.}},     display columns/9/.style={column name={Avg. Time}},     display columns/10/.style={column name={Avg. Qual.}},     display columns/11/.style={column name={Avg. Time}},     display columns/12/.style={column name={Avg. Qual.}},     display columns/13/.style={column name={Avg. Time}},     display columns/14/.style={column name={Avg. Qual.}},     every last row/.style={after row=\bottomrule},     string type     ]     {     bur26a 26 94.6513 0.9995 145.6622 0.9999 202.7375 1.0000 1.4381 0.9707 2.0208 0.9770 2.9439 0.9786     chr25a 25 84.5684 0.8296 131.5305 0.8881 183.0491 0.9012 1.4192 0.3110 1.9670 0.3369 2.8968 0.3530     }          \end{document}      The bunch of &'s near the multicolumns is a hack i found to properly align them to their respective pair of columns. Those columns style lines are there to make columns have the same name. Output is this: ![Table Output](http://i.stack.imgur.com/PrVRn.png) Note how the first row isn't there, and there is a bur26a where it shouldn't. Help? Thanks.


title: No title option in moderncv leaving horizontal line beside name?

text: Basically using the no title option and the `banking` theme in `moderncv` leaves me with a horizontal line beside the name. It used to remove the line but a recent update changed something which I am not too sure about. Using the standard `template.tex` from http://www.ctan.org/tex- archive/macros/latex/contrib/moderncv/examples and commenting the following line:               \title{Resum√© title}                 % optional, remove / comment the line if not wanted      leaves me with something that looks like this: ![](http://i.stack.imgur.com/RQ80G.png) Note that I am using TeXLive and TeXshop. I would appreciate any help.


title: Justification issue with underscored words

text: I have a problem with justification in one line:               Similarly to CUDA, OpenACC benchmarks define TILE\_DIM as 32 and BLOCK\_ROWS as 8.      This line on my document has justification issues, as can be seen below (the image is from the right margin of the text, you can see that the line above is not aligned with the rest of the text): ![Justification issue](http://i.stack.imgur.com/ziVQ2.png) If I remove the underscores, justification works fine. Does anyone know why this is happening, and how should I fix it? Is this a known problem?


title: Adding "Further Reading" section at the end of automatically generated bibliography

text: First off - the facts. I'm using the `report` documentclass and `unsrt` bibliographystyle, with Jabref to manage all the references. The question - I'm working on my thesis and need to add a section like 'Further Reading' to my bibliography. I want to add this at the END of the already generated bibliography. I found this code (the 2nd answer which creates a bibnote) but it adds the text before the first bibitem whereas I want it at the end (unfortunately I'm on a deadline so I dont have time to play with it and figure it out myself). As an extra bonus, the articles that need to go in further reading have not all been cited in the text. I can use `\nocite` to make sure they get a reference number, but if anyone has any suggestions so that I could either have them listed with something like bulletpoints, or renew the numbering so that the 'Further reading' starts with 1 would also be great. [edit for more info]: I'm using bibtex. If it matters, I'm using Texnic Center as the editor and compiling straight to PDF


title: ' symbol in BibTeX style file

text: I'm trying to read about `.bst` files from Tame the Beast. On page 38, there is this example for an `and` function:               FUNCTION {and}     {   'skip$         { pop$ #0 }       if$     }      What does the `'` in front of `skip` do? Comment 34 on page 32 says: > A variable name is a name that has been declared with STRINGS or INTEGERS, > or with ENTRY. Moreover, it must be preceded with a single quote, so that > BibTeX understands that you mean the name of the variable and not its value. > For instance, ’label. It still doesn't make sense that `skip` is a variable name.


title: How to define a variable which is a function of another variables already defined?

text: Suppose I defined some variables via               \def\n1{some_value_1}     \def\n2{some_value_2}     \def\n3{some_value_3}      and I'd like to have another one, say, `\f` which is a function of `\n1`, `\n2` and `\n3`. This simple code doesn't work:               \def\f{\n1*log(\n2)-\n3}      P.S. This is going to be used in plotting functions via PsTricks (if it helps). **UPDATE:** For example (`\f` is used in `\psplot` for x_max):               \def\f{\n1*log(\n2)-\n3}     \psplot{0}{\f}{sin(x)}


title: I want to use bibentry but it doesn't work with my .bst file

text: I want to use `\bibentry` but it doesn't work with the `econ.bst` file that I'm using. Available from here. I would happily modify that file to get `\bibentry` working but I have no idea how. I don't really want to switch (unless anyone can recommend another `.bst` file that produces similar output.               \begin{filecontents}{thesis.bib}     @ARTICLE{paper1,     author={A and B},     title={My paper},     journal={Journal X},     year=2012,     Volume=1,     Issue=1,     Pages=1,     doi={10.1002}          @ARTICLE{paper2,     author={A and B and C},     title={Even better paper},     journal={Journal B},     year=2012,     Volume=1,     Pages={1--2},     doi={10.1111},     note={here's my note}}     \end{filecontents}               \documentclass[12pt, a4paper, oneside, fleqn]{report}          \usepackage{filecontents}          \usepackage[noabbrev]{cleveref}      % reference object types automatically                    %Bibliography settings     %---------------------     \usepackage[round]{natbib}     \usepackage{bibentry}     \bibliographystyle{econ}     \nobibliography*               \begin{document}               I want a full entry:           \bibentry{paper1}          And another full entry:          \bibentry{paper2}          Now a normal citation: \citet{paper2}          \bibliography{thesis}               \end{document}


title: TikZ: two figures corresponding to each other

text: Now I have not yet started making this picture, and I would like some pointers. Any method to produce the image is sufficient, alas I would prefer TikZ and perhaps `tkz-euclide` over `asympote` or similar > A rope is 10 meters long. We cut the rope in half, where the first part is > made into a equilateral triangle and the second part is made into a square. > > The part that is used for the triangle is x meters long. ![My preferred output](http://i.stack.imgur.com/FYQBZ.png) What my problem is, is that I do not know how to change the size of the square accordingly to the triangle. For example if I say that 2 meters goes to the triangle. How would I make TikZ know that 8 would go to the square?


title: Using macros for including tikz graphics

text: I am not facing any problem, but I need the opinion of the community. I am writing a thesis and have a lot of tikz figures in it. So what I do is pre-compile these tikz files to PDF and then include them in the thesis. This makes the re-compiling of the thesis faster as no longer I have to compile the tikz files again and again, when I do minor modification in the text. I have written a macro to include graphics like this -               \newcommand\myIncludeGraphics[2]{     \ifdefined\embedTikzGraphics         \scalebox{#1}{\input{#2.tikz}}     \else         \includegraphics[scale=#1]{#2}     \fi     }      and I include the graphics like this -               \begin{figure}         \myIncludeGraphics{0.9}{chapters/chap1/Figures/fig1}     \end{figure}      Here 0.9 specifies how much to scale the figure. However, sometimes I would like to place two figures side-by-side and then I need to manually calculate the scaling factor.               \subfloat[CAP1]{\label{fig:lab1a}{\resizebox{0.5\columnwidth}{!}{\includegraphics{chapters/chap1/Figures/fig1a}}}}     \subfloat[CAP2]{\label{fig:lab1b}{\resizebox{0.5\columnwidth}{!}{\includegraphics{chapters/chap1/Figures/fig1b}}}}      This will help me to fit the two figure exactly to column-width of the document. However, I lost the capability of embedded tikz files. I want some suggestions if I can cover all three scenarios in one macro keeping the code clean. I should be able to use `scaling factor` or `width=\columnwidth`. If this is not possible, it is fine. Please excuse, if I didn't define the problem correctly. Thank You **UPDATE** Just to summarize what I am trying to achieve is the following.   * I should be able to use the tikz picture integrated in the main pdf or tikz picture which is compile separately and then included in pdf using includegraphics.   * When using includegraphics, I should be able to specify either `width` of the figure or `scale factor` of the figure.   * When using the tikz picture integrated in main pdf, I will not change the macro in my tex. For example the macro usage will look like `myIncludeGraphics{scalefactor=0.9}{chapters/chap1/Figures/fig1}` or `myIncludeGraphics{figWidth=0.5\columnwidth}{chapters/chap1/Figures/fig1}`. Depending on the first argument, the macro should use `scalebox` or `resizebox`. This is because `scalebox` does not understand `0.5\columnwidth` and the other way round for the `resizebox`.


title: Formatting back references in bibliography

text: I would like to change the way the back references are shown in the bibliography, such that they are all shown within parentheses. So I would like to see > (page x, y, z) after my bibitems. This is what I think could be a starting point...               \usepackage[backref=page]{hyperref}     \renewcommand{\backrefxxx}[3]{(page \hyperlink{page.#1}{#1})}      But obviously this yields > (page x), (page y), (page z)