title: \path command problem in a text document

text: I´m dealing with a problem with a TikZ graphic. I´ve done the graphic in a new document. Now, I want to include it in a text. When I compile the code in a new document there´s no problem but.. when I copy the code in a text document I can´t compile it. The problem is \path commands. If I delete them of the code, there is no problem but If I don´t. I can´t compile the document. If anyone knows how to fix this, I would be grateful. Thank you. Sorry for the annoyances. I´m new in this website. Here the code:               \documentclass[spanish,a4paper,12pt]{book}          \usepackage[english]{babel}     \usepackage[utf8]{inputenc}     \usepackage{graphicx}     \usepackage{xcolor}     \usepackage{tikz}     \usetikzlibrary{arrows,snakes,backgrounds}     \usetikzlibrary{shapes.geometric}          \begin{document}          \thispagestyle{empty}          \begin{center}               \begin{tikzpicture}          \large          \tikzstyle{block} = [rectangle, draw=blue, thick, fill=blue!20, text centered,minimum     height=3em];          \tikzstyle{line} = [draw, thick, -latex',shorten >=0pt];          \tikzstyle{hex}=[regular polygon, regular polygon sides=6, draw=blue, thick, fill=blue!20, text centered,minimum height=3em];          \matrix [column sep=10mm,row sep=15mm]     {     % row 1     & \node [block,text width=6cm] (update) {Update properties}; \\          % row 2     &     \node [block,text width=7cm,minimum height=3em] (momentum) {Solve momentum equations};     \\          % row 3     & \node [block,text width=11cm] (pressure) {Solve pressure correction (continuity)    equation.\\ Update pressure face mass flow rate}; \\          % row 4     & \node [block,text width=10cm] (energy) {Solve energy, species, turbulence\\ and other   scalar equations}; \\          % row 5     & \node [block, text width=5cm,rounded corners] (converge) {Converged?};     & \node [hex](hexx) {Stop}; \\     };           \tikzstyle{every path}=[line]     \path (update) -- (momentum);     \path (momentum) -- (pressure);     \path (pressure) -- (energy);     \path (energy)-- (converge);     \path (converge) -- node [above] {Yes}(hexx);     \path (converge.west)-- node [above] {No} ++(-4,0) |- (update.west);               \end{tikzpicture}


title: \includepdf combined pdf highlights missing

text: I used `\includepdf[pages=-]{...}` to combine several pdf files. It does combine, but some highlights made in some individual pdfs using Adobe Reader Comments are missing. The highlights can be seen in individual pdfs, but not the combined one. Any solution? Many thanks.


title: Adjust text manually

text: I'm writing my thesis. I made some appendices with tables. But, I want to adjust some lines of text manually. Some lines should be pass to next page. Is it possible ? Sould I use `vspace` ? Sorry for my long code. I want to put the text between tables.               \documentclass[12pt,twoside,a4paper,openright]{report}     \usepackage[portuguese]{babel}     \usepackage[utf8]{inputenc}     \usepackage[official]{eurosym}     \usepackage[inner=3cm,outer=2cm,tmargin=2.0cm,bmargin=2.0cm, includefoot, includehead]{geometry}     \usepackage{fancyhdr}     \usepackage{booktabs, multicol, multirow}     \usepackage{caption}     \usepackage{tabularx}     \usepackage{amsmath}     \usepackage{ghsystem}     \usepackage{chemgreek}     \usepackage{dcolumn}     \usepackage{layouts}     \usepackage{makecell}     \usepackage[titletoc]{appendix}     \renewcommand\chaptername{Anexo}     \addto\captionsportuguese{%       \renewcommand\appendixname{Anexo}       \renewcommand\appendixpagename{Anexos}     }     \newcolumntype{d}[1]{D{.}{.}{#1}}     \newcolumntype{,}{D{,}{,}{-2}}     \newcommand{\mc}{\multicolumn}     \newcolumntype{R}{>{\raggedleft\arraybackslash}X}     \newcolumntype{L}{>{\raggedright\arraybackslash}X}     \newcolumntype{C}{>{\centering\arraybackslash}X}          \begin{document}               \appendixpage     \begin{appendices}     \fancyhead[RO]{\slshape \leftmark}               \chapter{Caracterização de folhas de papel}     \label{anexos_folhas}          As propriedades estruturais, mecânicas e ópticas de cada série de folhas produzidas estão representadas nas Tabelas \ref{tabela_H60_folhas_anexos}, \ref{tabela_h90_folhas_anexos}, \ref{tabela_H90E_folhas_anexos} e \ref{tabela_30_folhas_anexos}.          A Tabela \ref{tabela_H60_folhas_anexos} representa as folhas produzidas com a carga mineral Hydrocarb\textsuperscript{\textregistered}, original e modificada.          \begin{table}[htbp]       \centering       \caption{Propriedades estruturais, mecânicas e ópticas das folhas produzidas com GCC H60 original e modificado.}         \begin{tabularx}{\textwidth}{ll*{4}{,}}       \cmidrule[0.8pt]{2-6}        & \multirow{2}{*}{\textbf{Amostra}} & \multicolumn{2}{c}{\textbf{H60 20}} & \multicolumn{2}{c}{\textbf{H60-M 20}} \\        & & \multicolumn{1}{X}{\centering \textbf{1}}  &  \multicolumn{1}{X}{\centering \textbf{2}}  &  \multicolumn{1}{X}{\centering \textbf{1}}   &  \multicolumn{1}{X}{\centering \textbf{2}} \\        \cmidrule{2-6}       \multirow{6}{*}{\rotatebox[origin=C]{90}{Estruturais}} & \textbf{\textit{Filler} Efectivo (\si{\%)}} & 18,39 & 18,25  & 17,56  & 17,07 \\       & \textbf{Gramagem (\si{g.m^{-2}})} & 83,78  & 85,02  & 82,82  & 83,02 \\       & \textbf{Índice de Mão (\si{cm^3.g^{-1}})} & 1,40  & 1,38   & 1,50   & 1,51 \\       & \textbf{Massa Volúmica (\si{g.cm^{-3}})} & 0,72  & 0,72   & 0,67   & 0,66 \\       & \textbf{Resistência ao ar Gurley 100ml (\si{s})} & 3,81   & 5,32   & 4,09   & 3,37 \\       & \textbf{Rugosidade  ar Bendtsen, FL (\si{ml.min^{-1}})} & 191,77   & 199,75 & 414,14 & 410,20 \\     \addlinespace       \multirow{6}{*}{\rotatebox[origin=C]{90}{Mecânicas}} & \textbf{Índice de Rebentamento (\si{kPa.m^2.g^{-1}})} & 1,76  & 2,09   & 2,34   & 2,32 \\       &  \textbf{Índice de Tracção (\si{N.m.g^{-1}})} & 34,60  & 37,18  & 42,51  & 43,42 \\       &  \textbf{Extensão (\si{\%})} & 2,86   & 2,72   & 2,77   & 2,62 \\       &  \textbf{Tensile Stiffness (\si{kN.m^{-1}})} & 534,60  & 521,73 & 593,68 & 609,64 \\       &  \textbf{Índice T.E.A. (\si{J.m.g^{-1}})} & 0,74   & 0,74   & 0,86   & 0,83 \\       &  \textbf{Índice de Rasgamento (\si{mN.m^2.g^{-1})}} & 5,62   & 5,74   & 5,72   & 5,50 \\     \addlinespace      \multirow{3}{*}{\rotatebox[origin=C]{90}{Ópticas}} &    \textbf{C.E.D.L. (\si{m^2.kg^{-1})}} & 48,52  & 47,59  & 43,41  & 43,74 \\      &  \textbf{Opacidade (\si{\%)}} & 88,10  & 88,09  & 86,25  & 85,94 \\      &   \textbf{Brancura R457 (\si{\%)}} & 84,59  & 84,95  & 84,62  & 85,77 \\         \cmidrule[0.8pt]{2-6}         \end{tabularx}%       \label{tabela_H60_folhas_anexos}%     \end{table}%          Na Tabela \ref{tabela_h90_folhas_anexos} estão apresentadas as propriedades relativas às folhas produzidas com carbonato de cálcio H90.          \begin{table}[ht]       \caption{Propriedades estruturais, mecânicas e ópticas das folhas produzidas com GCC H90 original e modificado.}         \begin{tabularx}{\textwidth}{ll*{4}{,}}       \cmidrule[0.8pt]{2-6}        & \multirow{2}{*}{\textbf{Amostra}} & \multicolumn{2}{c}{\textbf{H90 20}} & \multicolumn{2}{c}{\textbf{H90-M 20}} \\        & & \multicolumn{1}{X}{\centering \textbf{1}}  &  \multicolumn{1}{X}{\centering \textbf{2}} &  \multicolumn{1}{X}{\centering \textbf{1}} &  \multicolumn{1}{X}{\centering \textbf{2}}  \\        \cmidrule{2-6}       \multirow{6}{*}{\rotatebox[origin=C]{90}{Estruturais}} & \textbf{\textit{Filler} Efectivo (\si{\%)}}  & 17,47 & 17,49  & 17,63  & 17,43 \\       & \textbf{Gramagem (\si{g.m^{-2}})} & 82,82 & 83,37  & 84,81  & 81,31 \\       & \textbf{Índice de Mão (\si{cm^3.g^{-1}})} & 1,35  & 1,36   & 1,45   & 1,59 \\       & \textbf{Massa Volúmica (\si{g.cm^{-3}})}   & 0,74   & 0,73   & 0,69 & 0,63 \\       & \textbf{Resistência ao ar Gurley, 100 ml (\si{s)}}    & 5,57   & 5,56   & 4,93 & 3,54 \\       & \textbf{Rugosidade  ar Bendtsen, FL (\si{ml.min^{-1}})}    & 202,75 & 206,63 & 342,20 & 725,63 \\     \addlinespace     \addlinespace      \multirow{6}{*}{\rotatebox[origin=C]{90}{Mecânicas}} & \textbf{Índice de Rebentamento (\si{kPa.m^2.g^{-1}})}  & 1,87  & 1,83   & 2,16   & 2,27 \\       &  \textbf{Índice de Tracção (\si{N.m.g^{-1}})} & 33,71  & 31,80  & 41,70  & 42,34 \\       &  \textbf{Extensão (\si{\%})}    & 2,64   & 2,62   & 2,83 & 2,73 \\       &  \textbf{Tensile Stiffness (\si{kN.m^{-1}})}  & 515,61 & 516,72 & 604,35 & 561,57 \\       &  \textbf{Índice T.E.A. (\si{J.m.g^{-1}})}  & 0,67   & 0,62   & 0,88 & 0,83 \\       &  \textbf{Índice de Rasgamento (\si{mN.m^2.g^{-1})}} & 5,28   & 5,19   & 5,17   & 5,40 \\     \addlinespace     \addlinespace      \multirow{3}{*}{\rotatebox[origin=C]{90}{Ópticas}} &   \textbf{C.E.D.L. (\si{m^2.kg^{-1})}} & 49,89  & 49,27  & 46,97  & 44,46 \\       &  \textbf{Opacidade (\si{\%})}   & 88,41  & 89,58  & 87,52 & 85,92 \\       &   \textbf{Brancura R457 (\si{\%)}}  & 85,74  & 82,83  & 85,63  & 85,79 \\         \cmidrule[0.8pt]{2-6}         \end{tabularx}%       \label{tabela_h90_folhas_anexos}%     \end{table}%          A Tabela \ref{tabela_H90E_folhas_anexos} contêm novamente as propriedades da folha avaliadas neste tese em relação ao Hydrocarb\textsuperscript{\textregistered} H90 E.          \begin{table}[ht]       \centering       \caption{Propriedades estruturais, mecânicas e ópticas das folhas produzidas com GCC H90 E original e modificado.}     \begin{tabularx}{\textwidth}{ll*{4}{,}}       \cmidrule[0.8pt]{2-6}        & \multirow{2}{*}{\textbf{Amostra}} & \multicolumn{2}{c}{\textbf{H90E 20}} & \multicolumn{2}{c}{\textbf{H90E-M 20}} \\       &   & \multicolumn{1}{X}{\centering \textbf{1}}  &  \multicolumn{1}{X}{\centering \textbf{2}} &  \multicolumn{1}{X}{\centering \textbf{1}} &  \multicolumn{1}{X}{\centering \textbf{2}}  \\        \cmidrule{2-6}      \multirow{6}{*}{\rotatebox[origin=C]{90}{Estruturais}} & \textbf{\textit{Filler} Efectivo (\si{\%)}} & 17,44 & 17,84 & 16,58  & 16,34  \\       & \textbf{Gramagem (\si{g.m^{-2}})} & 83,23 & 85,25 & 82,11  & 84,58   \\       & \textbf{Índice de Mão (\si{cm^3.g^{-1}})}& 1,37 & 1,33  & 1,45   & 1,49  \\       & \textbf{Massa Volúmica (\si{g.cm^{-3}})} & 0,73  & 0,75   & 0,69 & 0,67 \\       & \textbf{Resistência ao ar Gurley, 100 ml (\si{s)}} & 4,63   & 9,09 & 3,86    & 4,53 \\       & \textbf{Rugosidade  ar Bendtsen, FL (\si{ml.min^{-1}})} & 173,46   & 126,74 & 396,38 & 422,86 \\     \addlinespace      \multirow{6}{*}{\rotatebox[origin=C]{90}{Mecânicas}} & \textbf{Índice de Rebentamento (\si{kPa.m^2.g^{-1}})} & 1,93 & 2,31  & 2,43   & 1,57  \\       &  \textbf{Índice de Tracção (\si{N.m.g^{-1}})}& 35,50 & 40,18  & 43,72 & 28,28  \\       &  \textbf{Extensão (\si{\%})} & 2,71   & 3,05   & 2,81   & 1,91 \\       &  \textbf{Tensile Stiffness (\si{kN.m^{-1}})} & 525,46  & 538,58 & 592,25 & 447,77 \\       &  \textbf{Índice T.E.A. (\si{J.m.g^{-1}})} & 0,73   & 0,88   & 0,91 & 0,38 \\       &  \textbf{Índice de Rasgamento (\si{mN.m^2.g^{-1})}}& 5,61 & 5,35   & 5,43   & 5,29  \\     \addlinespace     \multirow{3}{*}{\rotatebox[origin=C]{90}{Ópticas}} &    \textbf{C.E.D.L. (\si{m^2.kg^{-1})}}& 48,96 & 49,25  & 46,52  & 45,72   \\       &  \textbf{Opacidade (\si{\%})} & 87,76  & 87,86  & 86,22  & 86,59  \\       &  \textbf{Brancura R457 (\si{\%)}} & 85,92 & 86,68  & 87,54  & 86,84  \\         \cmidrule[0.8pt]{2-6}         \end{tabularx}%       \label{tabela_H90E_folhas_anexos}%     \end{table}%          A Tabela \ref{tabela_30_folhas_anexos} mostras as propriedades das folhas produzidas com 30 \%(w/w) de carga mineral.          \begin{table}[ht]       \centering       \caption{Propriedades estruturais, mecânicas e ópticas das folhas produzidas com 30 \%(w/w) de GCC H60 modificado e mistura PCC + GCC H60 modificado.}     \begin{tabularx}{\textwidth}{ll*{4}{,}}       \cmidrule[0.8pt]{2-6}        & \multirow{2}{*}{\textbf{Amostra}} & \multicolumn{2}{c}{\textbf{H60-M 30}} & \multicolumn{2}{c}{\textbf{H60-M+PCC}} \\        &  & \multicolumn{1}{X}{\centering \textbf{1}}  &  \multicolumn{1}{X}{\centering \textbf{2}} &  \multicolumn{1}{X}{\centering \textbf{1}} &  \multicolumn{1}{X}{\centering \textbf{2}}  \\        \cmidrule{2-6}      \multirow{6}{*}{\rotatebox[origin=C]{90}{Estruturais}} & \textbf{\textit{Filler} Efectivo (\si{\%)}} & 26,68 & 26,90 & 26,32  & 26,93  \\       & \textbf{Gramagem (\si{g.m^{-2}})} & 82,49 & 82,47 & 83,01  & 83,65   \\       & \textbf{Índice de Mão (\si{cm^3.g^{-1}})}& 1,48 & 1,47  & 1,52  & 1,53  \\       & \textbf{Massa Volúmica (\si{g.cm^{-3}})} & 0,68  & 0,68   & 0,66 & 0,65 \\       & \textbf{Resistência ao ar Gurley, 100 ml (\si{s)}} & 2,93   & 2,63 & 3,13    & 2,45 \\       & \textbf{Rugosidade  ar Bendtsen, FL (\si{ml.min^{-1}})} & 394,86   & 421,38 & 385,83 & 420,00 \\     \addlinespace      \multirow{6}{*}{\rotatebox[origin=C]{90}{Mecânicas}} & \textbf{Índice de Rebentamento (\si{kPa.m^2.g^{-1}})} & 1,49 & 1,45  & 1,55   & 1,24  \\       &  \textbf{Índice de Tracção (\si{N.m.g^{-1}})}& 27,31 & 27,17  & 23,91 & 25,43  \\       &  \textbf{Extensão (\si{\%})} & 2,47   & 2,48   & 2,23   & 2,40 \\       &  \textbf{Tensile Stiffness (\si{kN.m^{-1}})} & 457,61  & 456,87 & 433,30 & 437,26 \\       &  \textbf{Índice T.E.A. (\si{J.m.g^{-1}})} & 0,50   & 0,49   & 0,40 & 0,47 \\       &  \textbf{Índice de Rasgamento (\si{mN.m^2.g^{-1})}}& 4,11 & 4,13   & 3,99   & 3,90  \\     \addlinespace     \multirow{3}{*}{\rotatebox[origin=C]{90}{Ópticas}} &  \textbf{C.E.D.L. (\si{m^2.kg^{-1})}}& 49,69 & 49,81  & 55,39  & 55,60   \\       &  \textbf{Opacidade (\si{\%})} & 87,97  & 89,78  & 89,28  & 90,99  \\       &  \textbf{Brancura R457 (\si{\%)}} & 86,40 & 82,43  & 87,23  & 83,77  \\         \cmidrule[0.8pt]{2-6}         \end{tabularx}%       \label{tabela_30_folhas_anexos}%     \end{table}%     \end{appendices}                \end{document}


title: Add a boxed text with the same theme in beamer

text: I want to add a slide with only a subtitle which is inside a box of the same style as the current beamer style. Here is a picture of what I want. The second page is what I want (I Photoshop it, of course). Thank you. ![enter image description here](http://i.stack.imgur.com/QuXDj.png)               \documentclass[12pt]{beamer}          \mode<presentation>     \usetheme{Warsaw}     \usefonttheme{serif}     \setbeamertemplate{navigation symbols}{}     \beamertemplatenavigationsymbolsempty     \setbeamertemplate{footline}[page number]{}          \title{This is the main title}     \author{Patrick Li}     \institute{StackExchange.com}     \date{\today}          \begin{document}          \begin{frame}     \titlepage     \end{frame}          % Here should be the code to produce the second page in the above picture.          \end{document}


title: How do I align text after the table with column where the table is started?

text: After the caption of the a table, I have few lines of text which I like to be aligned from where the table is started. The table is centered aligned, how can I find the column from which the table is started so to say the text lines be placed there?               \documentclass[10pt]{article}     \usepackage{textcomp}     \usepackage[utf8]{inputenc}     \usepackage{fontspec}     \usepackage[british]{babel}     \setlength{\columnsep}{25 pt} % Distance between two columns     \usepackage{graphicx}     \usepackage[left=1.5cm,right=1.5cm,top=2.5cm,bottom=3cm]{geometry} % page layout     \usepackage{fancyhdr}     \pagestyle{fancy}     \usepackage{xcolor}     \usepackage{calc}     \usepackage{float}     \usepackage{gensymb}     \usepackage{tabularx,ragged2e,booktabs,caption}     \usepackage{subfigure}     \usepackage{multicol,tabularx,capt-of}     \usepackage{multirow}          \begin{document}               \begin{center}     \begin{tabular}{|l|l|l|l|}     \hline     \textbf{Pin no} & \textbf{Pin name} & \textbf{Pin type} & \textbf{Function} \\     \hline     A1 & TST1 & AO & Test pin \\     \hline     A2 & VDDF & P & Analog reference voltage, internally generated \\     \hline     A3 & \# INT & DO & Interrupt, active low\\     \hline     A4 & CLK & DI & FPGA clock \\     \hline     A5 & SDO & DO & Serial data out\\     \hline     B1 & VDDA & P & Analog supply voltage\\     \hline     B2 & TST2 & AO & Test pin \\     \hline     B3 & AGND & P & Analog ground \\     \hline     B4 & \# RESET & DI & FPGA reset, active low \\     \hline     B5 & VDD1 & P & Digital core voltage, internally generated \\     \hline     Y1 & VREF & P & Analog reference voltage, internally generated\\     \hline     Y2 & AGND & P & Analog ground \\     \hline     Y3 & DGND & P & Digital ground \\     \hline     Y4 & \# CS & DI & SPI chip select, active low \\     \hline     \end{tabular}     \captionof{table}{Pin name and description}     \end{center}          AI Analog input \\     AO Analog output \\     DI Digital input \\     DO Digital output \\     P Power \\     Note: Pin names beginning with a \# character denotes that the single is active low.          \end{document}


title: Extremely Slow pdfLaTeX compilation with specific packages?

text: I am compiling a document using the bioinformatics stylesheet. Compilation has been extremely slow on my local machine (64-bit quad-core i5 Lenovo x230 running Texmaker on Windows 7), and on ShareLaTeX. Below are my raw logs from ShareLaTeX:               This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013) (format=latex 2014.4.2)  21 MAY 2014 00:28     entering extended mode      \write18 enabled.      %&-line parsing enabled.     **document.tex     (/compile/document.tex     LaTeX2e <2011/06/27>     Babel <3.9k> and hyphenation patterns for 78 languages loaded.     (/compile/bioinfo.cls     Document Class: bioinfo 2003/02/08 0.1     (/usr/local/texlive/2013/texmf-dist/tex/latex/base/inputenc.sty     Package: inputenc 2008/03/30 v1.1d Input encoding file     \inpenc@prehook=\toks14     \inpenc@posthook=\toks15     ) (/compile/crop.sty     Package: crop 2001/11/16 v1.6 cropmarks (mf)     \CROP@width=\dimen102     \CROP@height=\dimen103     \CROP@index=\count79     (/usr/local/texlive/2013/texmf-dist/tex/latex/graphics/graphics.sty     Package: graphics 2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)     (/usr/local/texlive/2013/texmf-dist/tex/latex/graphics/trig.sty     Package: trig 1999/03/16 v1.09 sin cos tan (DPC)     ) (/usr/local/texlive/2013/texmf-dist/tex/latex/latexconfig/graphics.cfg     File: graphics.cfg 2010/04/23 v1.9 graphics configuration of TeX Live     )     Package graphics Info: Driver file: dvips.def on input line 91.     (/usr/local/texlive/2013/texmf-dist/tex/latex/graphics/dvips.def     File: dvips.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)     ))     \CROP@offset=\count80     Package crop Info: Local config file crop.cfg used on input line 344.     (/usr/local/texlive/2013/texmf-dist/tex/xelatex/xetexconfig/crop.cfg))     Package crop Info: using dvips graphics driver on input line 33.     (/usr/local/texlive/2013/texmf-dist/tex/latex/graphics/graphicx.sty     Package: graphicx 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)     (/usr/local/texlive/2013/texmf-dist/tex/latex/graphics/keyval.sty     Package: keyval 1999/03/16 v1.13 key=value parser (DPC)     \KV@toks@=\toks16     )     \Gin@req@height=\dimen104     \Gin@req@width=\dimen105     ) (/usr/local/texlive/2013/texmf-dist/tex/latex/amsmath/amsmath.sty     Package: amsmath 2013/01/14 v2.14 AMS math features     \@mathmargin=\skip41     For additional information on amsmath, use the `?' option.     (/usr/local/texlive/2013/texmf-dist/tex/latex/amsmath/amstext.sty     Package: amstext 2000/06/29 v2.01     (/usr/local/texlive/2013/texmf-dist/tex/latex/amsmath/amsgen.sty     File: amsgen.sty 1999/11/30 v2.0     \@emptytoks=\toks17     \ex@=\dimen106     )) (/usr/local/texlive/2013/texmf-dist/tex/latex/amsmath/amsbsy.sty     Package: amsbsy 1999/11/29 v1.2d     \pmbraise@=\dimen107     ) (/usr/local/texlive/2013/texmf-dist/tex/latex/amsmath/amsopn.sty     Package: amsopn 1999/12/14 v2.01 operator names     )     \inf@bad=\count81     LaTeX Info: Redefining \frac on input line 210.     \uproot@=\count82     \leftroot@=\count83     LaTeX Info: Redefining \overline on input line 306.     \classnum@=\count84     \DOTSCASE@=\count85     LaTeX Info: Redefining \ldots on input line 378.     LaTeX Info: Redefining \dots on input line 381.     LaTeX Info: Redefining \cdots on input line 466.     \Mathstrutbox@=\box26     \strutbox@=\box27     \big@size=\dimen108     LaTeX Font Info:    Redeclaring font encoding OML on input line 566.     LaTeX Font Info:    Redeclaring font encoding OMS on input line 567.     \macc@depth=\count86     \c@MaxMatrixCols=\count87     \dotsspace@=\muskip10     \c@parentequation=\count88     \dspbrk@lvl=\count89     \tag@help=\toks18     \row@=\count90     \column@=\count91     \maxfields@=\count92     \andhelp@=\toks19     \eqnshift@=\dimen109     \alignsep@=\dimen110     \tagshift@=\dimen111     \tagwidth@=\dimen112     \totwidth@=\dimen113     \lineht@=\dimen114     \@envbody=\toks20     \multlinegap=\skip42     \multlinetaggap=\skip43     \mathdisplay@stack=\toks21     LaTeX Info: Redefining \[ on input line 2665.     LaTeX Info: Redefining \] on input line 2666.     ) (/usr/local/texlive/2013/texmf-dist/tex/latex/tools/array.sty     Package: array 2008/09/09 v2.4c Tabular extension package (FMi)     \col@sep=\dimen115     \extrarowheight=\dimen116     \NC@list=\toks22     \extratabsurround=\skip44     \backup@length=\skip45     ) (/usr/local/texlive/2013/texmf-dist/tex/latex/graphics/color.sty     Package: color 2005/11/14 v1.0j Standard LaTeX Color (DPC)     (/usr/local/texlive/2013/texmf-dist/tex/latex/latexconfig/color.cfg     File: color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive     )     Package color Info: Driver file: dvips.def on input line 130.     (/usr/local/texlive/2013/texmf-dist/tex/latex/graphics/dvipsnam.def     File: dvipsnam.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)     )) (/usr/local/texlive/2013/texmf-dist/tex/latex/amsfonts/amssymb.sty     Package: amssymb 2013/01/14 v3.01 AMS font symbols     (/usr/local/texlive/2013/texmf-dist/tex/latex/amsfonts/amsfonts.sty     Package: amsfonts 2013/01/14 v3.01 Basic AMSFonts support     \symAMSa=\mathgroup4     \symAMSb=\mathgroup5     LaTeX Font Info:    Overwriting math alphabet `\mathfrak' in version `bold'     (Font)                  U/euf/m/n --> U/euf/b/n on input line 106.     )) (/usr/local/texlive/2013/texmf-dist/tex/latex/sttools/flushend.sty     Package: flushend 2014/03/18 v2.1 Balancing columns in twocolumn mode     \flushend@@lastskip@a=\skip46     \flushend@@lastskip@b=\skip47     \flushend@@lastskip@c=\skip48     \flushend@@penalty@a=\count93     \flushend@@lastkern@a=\dimen117     \var@@temp@spread=\dimen118     \var@@temp@a=\dimen119     \flushend@@page@rule=\dimen120     \flushend@@varbox@a=\box28     \flushend@@varbox@c=\box29     \flushend@@tempbox@a=\box30     \flushend@@tempbox@c=\box31     \@viper=\box32     \hold@viper=\box33     \atColsBreak=\toks23     \atColsEnd=\toks24     (/usr/local/texlive/2013/texmf-dist/tex/latex/etoolbox/etoolbox.sty     Package: etoolbox 2011/01/03 v2.1 e-TeX tools for LaTeX     (/usr/local/texlive/2013/texmf-dist/tex/latex/etex-pkg/etex.sty     Package: etex 1998/03/26 v2.0 eTeX basic definition package (PEB)     \et@xins=\count94     )     \etb@tempcnta=\count95     )) (/usr/local/texlive/2013/texmf-dist/tex/latex/sttools/stfloats.sty     Package: stfloats 2012/05/29 v1.1 Improve float mechanism and baselineskip sett     ings     \@dblbotnum=\count96     \c@dblbotnumber=\count97     ) (/usr/local/texlive/2013/texmf-dist/tex/latex/amscls/amsthm.sty     Package: amsthm 2004/08/06 v2.20     \thm@style=\toks25     \thm@bodyfont=\toks26     \thm@headfont=\toks27     \thm@notefont=\toks28     \thm@headpunct=\toks29     \thm@preskip=\skip49     \thm@postskip=\skip50     \thm@headsep=\skip51     \dth@everypar=\toks30     ) (/usr/local/texlive/2013/texmf-dist/tex/latex/changepage/chngpage.sty     Package: chngpage 2009/10/20 v1.2b change page layout     \c@cp@cnt=\count98     \c@cp@tempcnt=\count99     ) (/usr/local/texlive/2013/texmf-dist/tex/latex/psnfss/times.sty     Package: times 2005/04/12 PSNFSS-v9.2a (SPQR)      )     \c@section=\count100     \c@subsection=\count101     \c@subsubsection=\count102     \c@paragraph=\count103     \c@subparagraph=\count104     \c@figure=\count105     \c@table=\count106     \dropfromtop=\skip52     \extraspace=\skip53     \aboveskipchk=\skip54     \abovecaptionskip=\skip55     \belowcaptionskip=\skip56     \rotdimen=\dimen121     \tempdime=\dimen122     \temptbox=\box34     (/usr/local/texlive/2013/texmf-dist/tex/latex/natbib/natbib.sty     Package: natbib 2010/09/13 8.31b (PWD, AO)     \bibhang=\skip57     \bibsep=\skip58     LaTeX Info: Redefining \cite on input line 694.     \c@NAT@ctr=\count107     )) (/usr/local/texlive/2013/texmf-dist/tex/latex/hyperref/hyperref.sty     Package: hyperref 2012/11/06 v6.83m Hypertext links for LaTeX     (/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty     Package: hobsub-hyperref 2012/05/28 v1.13 Bundle oberdiek, subset hyperref (HO)          (/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty     Package: hobsub-generic 2012/05/28 v1.13 Bundle oberdiek, subset generic (HO)     Package: hobsub 2012/05/28 v1.13 Construct package bundles (HO)     Package: infwarerr 2010/04/08 v1.3 Providing info/warning/error messages (HO)     Package: ltxcmds 2011/11/09 v1.22 LaTeX kernel commands for general use (HO)     Package: ifluatex 2010/03/01 v1.3 Provides the ifluatex switch (HO)     Package ifluatex Info: LuaTeX not detected.     Package: ifvtex 2010/03/01 v1.5 Detect VTeX and its facilities (HO)     Package ifvtex Info: VTeX not detected.     Package: intcalc 2007/09/27 v1.1 Expandable calculations with integers (HO)     Package: ifpdf 2011/01/30 v2.3 Provides the ifpdf switch (HO)     Package ifpdf Info: pdfTeX in PDF mode is not detected.     Package: etexcmds 2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO)     Package etexcmds Info: Could not find \expanded.     (etexcmds)             That can mean that you are not using pdfTeX 1.50 or     (etexcmds)             that some package has redefined \expanded.     (etexcmds)             In the latter case, load this package earlier.     Package: kvsetkeys 2012/04/25 v1.16 Key value parser (HO)     Package: kvdefinekeys 2011/04/07 v1.3 Define keys (HO)     Package: pdftexcmds 2011/11/29 v0.20 Utility functions of pdfTeX for LuaTeX (HO     )     Package pdftexcmds Info: LuaTeX not detected.     Package pdftexcmds Info: \pdf@primitive is available.     Package pdftexcmds Info: \pdf@ifprimitive is available.     Package pdftexcmds Info: \pdfdraftmode is ignored in DVI mode.     Package: pdfescape 2011/11/25 v1.13 Implements pdfTeX's escape features (HO)     Package: bigintcalc 2012/04/08 v1.3 Expandable calculations on big integers (HO     )     Package: bitset 2011/01/30 v1.1 Handle bit-vector datatype (HO)     Package: uniquecounter 2011/01/30 v1.2 Provide unlimited unique counter (HO)     )     Package hobsub Info: Skipping package `hobsub' (already loaded).     Package: letltxmacro 2010/09/02 v1.4 Let assignment for LaTeX macros (HO)     Package: hopatch 2012/05/28 v1.2 Wrapper for package hooks (HO)     Package: xcolor-patch 2011/01/30 xcolor patch     Package: atveryend 2011/06/30 v1.8 Hooks at the very end of document (HO)     Package: atbegshi 2011/10/05 v1.16 At begin shipout hook (HO)     Package: refcount 2011/10/16 v3.4 Data extraction from label references (HO)     Package: hycolor 2011/01/30 v1.7 Color options for hyperref/bookmark (HO)     ) (/usr/local/texlive/2013/texmf-dist/tex/generic/ifxetex/ifxetex.sty     Package: ifxetex 2010/09/12 v0.6 Provides ifxetex conditional     ) (/usr/local/texlive/2013/texmf-dist/tex/latex/oberdiek/auxhook.sty     Package: auxhook 2011/03/04 v1.3 Hooks for auxiliary files (HO)     ) (/usr/local/texlive/2013/texmf-dist/tex/latex/oberdiek/kvoptions.sty     Package: kvoptions 2011/06/30 v3.11 Key value format for package options (HO)     )     \@linkdim=\dimen123     \Hy@linkcounter=\count108     \Hy@pagecounter=\count109     (/usr/local/texlive/2013/texmf-dist/tex/latex/hyperref/pd1enc.def     File: pd1enc.def 2012/11/06 v6.83m Hyperref: PDFDocEncoding definition (HO)     )     \Hy@SavedSpaceFactor=\count110     (/usr/local/texlive/2013/texmf-dist/tex/latex/latexconfig/hyperref.cfg     File: hyperref.cfg 2002/06/06 v1.2 hyperref configuration of TeXLive     )     Package hyperref Info: Hyper figures OFF on input line 4443.     Package hyperref Info: Link nesting OFF on input line 4448.     Package hyperref Info: Hyper index ON on input line 4451.     Package hyperref Info: Plain pages OFF on input line 4458.     Package hyperref Info: Backreferencing OFF on input line 4463.     Package hyperref Info: Implicit mode ON; LaTeX internals redefined.     Package hyperref Info: Bookmarks ON on input line 4688.     LaTeX Info: Redefining \href on input line 4952.     \c@Hy@tempcnt=\count111     (/usr/local/texlive/2013/texmf-dist/tex/latex/url/url.sty     \Urlmuskip=\muskip11     Package: url 2013/09/16  ver 3.4  Verb mode for urls, etc.     )     LaTeX Info: Redefining \url on input line 5041.     \XeTeXLinkMargin=\dimen124     \Fld@menulength=\count112     \Field@Width=\dimen125     \Fld@charsize=\dimen126     Package hyperref Info: Hyper figures OFF on input line 6295.     Package hyperref Info: Link nesting OFF on input line 6300.     Package hyperref Info: Hyper index ON on input line 6303.     Package hyperref Info: backreferencing OFF on input line 6310.     Package hyperref Info: Link coloring OFF on input line 6315.     Package hyperref Info: Link coloring with OCG OFF on input line 6320.     Package hyperref Info: PDF/A mode OFF on input line 6325.     LaTeX Info: Redefining \ref on input line 6365.     LaTeX Info: Redefining \pageref on input line 6369.     \Hy@abspage=\count113     \c@Item=\count114     \c@Hfootnote=\count115     )          Package hyperref Message: Driver (default): hdvips.          (/usr/local/texlive/2013/texmf-dist/tex/latex/hyperref/hdvips.def     File: hdvips.def 2012/11/06 v6.83m Hyperref driver for dvips     (/usr/local/texlive/2013/texmf-dist/tex/latex/hyperref/pdfmark.def     File: pdfmark.def 2012/11/06 v6.83m Hyperref definitions for pdfmark specials     \pdf@docset=\toks31     \pdf@box=\box35     \pdf@toks=\toks32     \pdf@defaulttoks=\toks33     \HyField@AnnotCount=\count116     \Fld@listcount=\count117     \c@bookmark@seq@number=\count118     (/usr/local/texlive/2013/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty     Package: rerunfilecheck 2011/04/15 v1.7 Rerun checks for auxiliary files (HO)     Package uniquecounter Info: New unique counter `rerunfilecheck' on input line 2     82.     )     \Hy@SectionHShift=\skip59     )) (/compile/output.aux)     \openout1 = `output.aux'.          LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 7.     LaTeX Font Info:    ... okay on input line 7.     LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 7.     LaTeX Font Info:    ... okay on input line 7.     LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 7.     LaTeX Font Info:    ... okay on input line 7.     LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 7.     LaTeX Font Info:    ... okay on input line 7.     LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 7.     LaTeX Font Info:    ... okay on input line 7.     LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 7.     LaTeX Font Info:    ... okay on input line 7.     LaTeX Font Info:    Checking defaults for PD1/pdf/m/n on input line 7.     LaTeX Font Info:    ... okay on input line 7.     LaTeX Font Info:    Try loading font information for OT1+ptm on input line 7.     (/usr/local/texlive/2013/texmf-dist/tex/latex/psnfss/ot1ptm.fd     File: ot1ptm.fd 2001/06/04 font definitions for OT1/ptm.     )     \AtBeginShipoutBox=\box36     Package hyperref Info: Link coloring OFF on input line 7.     (/usr/local/texlive/2013/texmf-dist/tex/latex/hyperref/nameref.sty     Package: nameref 2012/10/27 v2.43 Cross-referencing by name of section     (/usr/local/texlive/2013/texmf-dist/tex/generic/oberdiek/gettitlestring.sty     Package: gettitlestring 2010/12/03 v1.4 Cleanup title references (HO)     )     \c@section@level=\count119     )     LaTeX Info: Redefining \ref on input line 7.     LaTeX Info: Redefining \pageref on input line 7.     LaTeX Info: Redefining \nameref on input line 7.     (/compile/output.out) (/compile/output.out)     \@outlinefile=\write3     \openout3 = `output.out'.          LaTeX Font Info:    Try loading font information for OT1+phv on input line 17.     (/usr/local/texlive/2013/texmf-dist/tex/latex/psnfss/ot1phv.fd     File: ot1phv.fd 2001/06/04 scalable font definitions for OT1/phv.     )     LaTeX Font Info:    Font shape `OT1/phv/bx/n' in size <9> not available     (Font)              Font shape `OT1/phv/b/n' tried instead on input line 17.     LaTeX Font Info:    Font shape `OT1/phv/bx/n' in size <10> not available     (Font)              Font shape `OT1/phv/b/n' tried instead on input line 17.     LaTeX Font Info:    Font shape `OT1/phv/bx/n' in size <8> not available     (Font)              Font shape `OT1/phv/b/n' tried instead on input line 26.          Underfull \hbox (badness 2564) in paragraph at lines 38--39     \OT1/ptm/m/n/9 (also known as the factor II mutation, or the prothrombin      []               Underfull \hbox (badness 1688) in paragraph at lines 38--39     \OT1/ptm/m/n/9 mutation) is a genetic mutation of prothrombin (also known      []               Underfull \hbox (badness 1910) in paragraph at lines 38--39     \OT1/ptm/m/n/9 gene. [] [[]], [] [[]]      []          Missing character: There is no � in font ptmr7t!     Missing character: There is no � in font ptmr7t!     Missing character: There is no � in font ptmr7t!     Missing character: There is no � in font ptmr7t!     Missing character: There is no � in font ptmr7t!     Missing character: There is no � in font ptmr7t!          ! LaTeX Error: Cannot determine size of graphic in Thrombin_Shot.JPG (no Boundi     ngBox).          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...                                                        l.45 ...ludegraphics[scale=0.1]{Thrombin_Shot.JPG}                                                       %.jpg}     Try typing  <return>  to proceed.     If that doesn't work, type  X <return>  to quit.          File: Thrombin_Shot.JPG Graphic file (type eps)     <Thrombin_Shot.JPG>     LaTeX Font Info:    Font shape `OT1/ptm/bx/n' in size <8> not available     (Font)              Font shape `OT1/ptm/b/n' tried instead on input line 46.          LaTeX Font Warning: Font shape `OT1/cmr/m/n' in size <6.5> not available     (Font)              size <6> substituted on input line 60.               LaTeX Font Warning: Font shape `OML/cmm/m/it' in size <6.5> not available     (Font)              size <6> substituted on input line 60.               LaTeX Font Warning: Font shape `OMS/cmsy/m/n' in size <6.5> not available     (Font)              size <6> substituted on input line 60.          LaTeX Font Info:    Try loading font information for U+msa on input line 60.     (/usr/local/texlive/2013/texmf-dist/tex/latex/amsfonts/umsa.fd     File: umsa.fd 2013/01/14 v3.01 AMS symbols A     )     LaTeX Font Info:    Try loading font information for U+msb on input line 60.     (/usr/local/texlive/2013/texmf-dist/tex/latex/amsfonts/umsb.fd     File: umsb.fd 2013/01/14 v3.01 AMS symbols B     ) (/compile/output.bbl     LaTeX Font Info:    Try loading font information for OT1+pcr on input line 15.     (/usr/local/texlive/2013/texmf-dist/tex/latex/psnfss/ot1pcr.fd     File: ot1pcr.fd 2001/06/04 font definitions for OT1/pcr.     )     Underfull \hbox (badness 10000) in paragraph at lines 9--16     []\OT1/ptm/m/n/9 J. A. HUNTINGTON.  Molecular recognition      []               Underfull \hbox (badness 4441) in paragraph at lines 9--16     \OT1/ptm/m/n/9 mechanisms of thrombin.  \OT1/ptm/m/it/9 Journal of Thrombosis a     nd      []               Underfull \hbox (badness 10000) in paragraph at lines 9--16     \OT1/ptm/m/it/9 Haemostasis\OT1/ptm/m/n/9 , 3(8):1861--1872, 2005.  ISSN 1538-      []               Underfull \hbox (badness 4505) in paragraph at lines 9--16     \OT1/ptm/m/n/9 7836.  doi: $10 . 1111 / j . 1538-[]7836 . 2005 . 01363 . x$.  U     RL      []               Overfull \hbox (38.99963pt too wide) in paragraph at lines 9--16     [][][][]\OT1/ptm/m/n/9 .       []          Missing character: There is no � in font ptmr7t!     Missing character: There is no � in font ptmr7t!     Missing character: There is no � in font ptmr7t!          Underfull \hbox (badness 10000) in paragraph at lines 39--46     []\OT1/ptm/m/n/9 F. R. ROSENDAAL and P. H. REITSMA.  Genetics      []               Underfull \hbox (badness 10000) in paragraph at lines 39--46     \OT1/ptm/m/n/9 of venous thrombosis.  \OT1/ptm/m/it/9 Journal of Thrombosis      []               Underfull \hbox (badness 10000) in paragraph at lines 39--46     \OT1/ptm/m/it/9 and Haemostasis\OT1/ptm/m/n/9 , 7:301--304, 2009.  ISSN 1538-      []               Underfull \hbox (badness 4505) in paragraph at lines 39--46     \OT1/ptm/m/n/9 7836.  doi: $10 . 1111 / j . 1538-[]7836 . 2009 . 03394 . x$.  U     RL      []               Overfull \hbox (38.99963pt too wide) in paragraph at lines 39--46     [][][][]\OT1/ptm/m/n/9 .       []               Overfull \hbox (151.8995pt too wide) in paragraph at lines 48--55     [][][][]\OT1/ptm/m/n/9 .       []          )     - LAST -     Extra skip:74.19739pt     Left:471.85536pt/1.94843pt     Right:397.65797pt/1.41295pt     Output:471.85536pt     LaTeX Font Info:    Font shape `OT1/phv/bx/it' in size <8> not available     (Font)              Font shape `OT1/phv/b/it' tried instead on input line 106.     LaTeX Font Info:    Font shape `OT1/phv/b/it' in size <8> not available     (Font)              Font shape `OT1/phv/b/sl' tried instead on input line 106.          Overfull \hbox (261.0pt too wide) has occurred while \output is active     [][]       []               Overfull \vbox (1.0pt too high) has occurred while \output is active []          [1          ]     Package atveryend Info: Empty hook `BeforeClearDocument' on input line 106.     Package atveryend Info: Empty hook `AfterLastShipout' on input line 106.     (/compile/output.aux)     Package atveryend Info: Empty hook `AtVeryEndDocument' on input line 106.     Package atveryend Info: Executing hook `AtEndAfterFileList' on input line 106.     Package rerunfilecheck Info: File `output.out' has not changed.     (rerunfilecheck)             Checksum: BC8C61E6E6CBB5188DF79026742812F5;234.          LaTeX Font Warning: Size substitutions with differences     (Font)              up to 0.5pt have occurred.           )      Here is how much of TeX's memory you used:      6861 strings out of 493309      96910 string characters out of 6137849      206676 words of memory out of 5000000      10224 multiletter control sequences out of 15000+600000      13016 words of font info for 40 fonts, out of 8000000 for 9000      961 hyphenation exceptions out of 8191      37i,8n,28p,4540b,364s stack positions out of 5000i,500n,10000p,200000b,80000s          Output written on /compile/output.dvi (1 page, 12836 bytes).      ShareLaTeX tells me there is a server error (though it doesn't tell me what). 2 questions: (1) Is my code to blame for this lackadaisical speed? Everything compiled perfectly a few hours ago, with no changes. (2) If my code is not to blame, are there any packages that would be causing this sudden change in behavior? Code:               \documentclass{bioinfo}     \usepackage{hyperref}     \usepackage{natbib}     \copyrightyear{2005}     \usepackage{graphicx}     \pubyear{2005}     \begin{document}     \firstpage{1}          \title[Analysis of Prothrombin G20210A]{NICE SUBTITLE}     \author{Jeffrey Wubbenhorst}     %\address{$^{1}$Department of XXXXXXX, Address XXXX etc.\\     %$^{2}$Department of XXXXXXXX, Address XXXX etc.}          %\history{Received on XXXXX; revised on XXXXX; accepted on XXXXX}          \section{Contact:}\href{Jeffrey Wubbenhorst}{wubbenhorst14j@ncssm.edu}          %\maketitle          \begin{abstract}          %\section{Motivation:}     %Here is my abstract. As you may observe, it is rather sparse for the time being.           \section{Results:}     Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation           \section{Availability:}     Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis           %\section{Contact:} \href{name@bio.com}{name@bio.com}     \end{abstract}          \section{Introduction}          %Discuss blood clots     Prothrombin G20210A is a genetic variant that drastically increases the probability of blood clots in the veins. Prothrombin G20210A (also known as the factor II mutation, or the prothrombin mutation) is a genetic mutation of prothrombin (also known as coagulation factor II) resulting from a single polymorphism. The mutation occurs primarily in males, and almost exclusively in Caucasians, with rougly 3\% of the population carrying the gene.  \cite{JTH3394, Rosendaal01012005} Prothrombin G20210A has also been associated with obstetric complications. \cite{Obstetric} The polymorphism occurs on the noncoding region of the prothrombin gene, replacing guanine with adenine. \cite{pmid8916933}           Thrombin is formed from prothrombin by coming into contact with prothrombinase (also known as Factor X or thrombokinase), an enzyme in the coagulation cascade that cleaves prothrombin to form thrombin. Thrombin is a crucial part of the coagulation cascade through the conversion of various compounds, especially cleaving ﬁbrinogen to create a ﬁbrin clot. \cite{pmid10528826,JTH:JTH1363}           The active and inactive forms of thrombin (from left to right) are shown below:          \begin{figure}[h!]     \includegraphics[scale=0.1]{Thrombin_Shot}%.jpg}     \caption{Active and Inactive Forms of Thrombin}     %\label{This here is a label.}     %This is a visualization in Molegro of 1MKX.      \end{figure}          Prothrombin is encoded by the F2 gene (HGNC ID 3535), located at 11p11.2. This analysis will focus on the Prothrombin G20210A mutation in the context of a normal coagulation cascade.                \section{Computational Approach}     %I can:      % VIsualiz molecules using molegro or something else     %               \subsection*{Visualization}     %Equation~(\ref{eq:01}) Lorem ipsum  incididunt ut labore et dolore magna aliqua. Figure \ref{fig:02} shows that the above method  Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris.  \citealp{Boffelli03} might want to know about  nisi ut aliquip ex ea          \begin{methods}     \section{Methods}     %What can I do here? I should do some stuff with the Biology Workbench...     %I also need to use BLAST to look at the F2 gene               \end{methods}               \section{Conclusion}               \section*{Acknowledgement}     %Lorem ipsum dolor sit amet, consectetur.  \citealp{Boffelli03} might want to know about  adipisicing elit, sed do          \bibliographystyle{plainnat}     \bibliography{document}      \end{document} Thanks for any help that can be given. Project is less than 6 pages long. BibTeX has worked perfectly. EDIT: I commented out the only image I had just to see what would happen; ShareLaTeX now works.


title: Issue With Spacing/Tabbing

text: I would like to indent in the "of Embryonic Stem Cells" section, but so far everything I have tried has failed. I first tried to see if there was a tab character, which there does not appear to be, and then I moved on to basically everything I could think of including: making that one line into a stand alone paragraph (`\paragraph{}`), beginning a tabular format (`\begin{tabular}`), attempting to make the white space into an "equation" in a math environment (`\\( \\)`), and I even resorted to inserting in spaces by hand - which was unsuccessful in all attempts `( of...)`, `( \ \ \ \ of...)`, `(\; \; of...)`. I feel like this has become unnecessarily complicated and I just must be missing something. I've attached the relevant section of my code and the associated PDF output; the highlighted section is where I would like the space to be placed. I'm running the most current version of TeXworks and have no modules installs. ![Issue With Code](http://i.stack.imgur.com/l9WP6.png)


title: Use article reference style with book documentclass

text: I have to use a journal's Latex template, which specifies \documentclass{book}. The template assumes I will enter my references manually in the format that they want. However, I would like to use bibtex to enter my references. When I do that, it forces the Bibliography to start on an odd- numbered page. I would like the references to start directly after the end of the article. I have tried changing the documentclass to "article", but that causes errors because the template uses the chapter format. Is there a way to revert back to the article-style references within the book documentclass?               \documentclass[10pt]{book}          \begin{document}          Document contents here with use of \cite.          \renewcommand{\bibname}{References} % to change "Bibliography" to "References"     \bibliography{refs} % starts references on next odd-numbered page     \bibliographystyle{plainnat}          \end{document}


title: Suggestion on how to manage pagenotes in memoir

text: I posted a long question before, and it was suggested that I should split it into separate chunks, so here it is. I wrote a book using the memoir class. It has about three hundreds notes and references, plus a substantial bibliography. I have a very varied mix of notes and references, sometimes it's an article from a newspaper, sometimes a publication on a scientific journal, sometimes it's an old book, sometimes there is no external reference, and it's just me explaining something a little more in depth. I wanted to have a list of notes at the end of the book, divided by chapters. So, after reading the documentation I decided to use the `\pagenote` command, and then add `\let\pagenote=\endnote` before the beginning of the document. I got something satisfactory out of it, but I'm not convinced that I'm doing things properly. For example, there should be a proper order for the name of the author, the source, the link, etc... given by the system, not by hand. Given the circumstances, what do you think is the best way to manage all of those links, references, and footnotes? THis is what it looks like right now. ![The Notes as the look like now](http://i.stack.imgur.com/q7OzB.png)


title: Cartesian product

text: I want to know what is the code in order to write the following the size with product symbol, and other than that I would like to know how do I the size symbol that will be in proportion to what it is write into it, meaning: > |product of A x B x C ....| by the way, I am using Ubuntu 12 and I am using the given LaTeX program by the OS


title: Define a table one column at a time instead of one row at a time

text: Is there a way to define a table like so?               \begin{tabular}{|c|c|}         column 1, row 1 \\         column 1, row 2 \\         column 1, row 3 \\         column 1, row 4 \\         column 1, row 5 \\ &&         column 2, row 1 \\         column 2, row 2 \\         column 2, row 3 \\         column 2, row 4 \\         column 2, row 5 \\     \end{tabular}      I'm flexible as to how it's done, I would just like to be able to define a whole column at a time (as each column's entries are highly inter-related, and not as much from row to row).


title: Help regarding heading and page numbers

text: ![enter image description here](http://i.stack.imgur.com/oG4yI.jpg) I want to place the heading in the middle and the page number below in Latex. Please suggest how to do it. I am using the following coding.               \chapter{$\Lambda$-Modules}\ref{ch:prili}     \pagestyle{myheadings}     \markright{~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Chapter     \ref{ch:prili}:~Preliminaries}     \thispagestyle{empty}


title: How to create small PDF files for the Internet

text: I feel that PDF documents when intended to be uploaded to the Internet should be of a minimal final size in bytes. Many strategies exist to create a small document:   1. Pay attention to the size of the embedded raster images.   2. Create diagrams with `tikz` or `pstricks` and avoid external applications that can create unwanted big files. Using `tikz` or `pstricks` provides access to an almost unlimited control of the properties of a specific object. For instance, creating a point A of coordinates (1,1) should be preferred to a point A of coordinates (1.0000000,1.00000000), that you cannot control in many applications.   3. Pay attention to the fonts used in your documents. Some fonts contain a coding for a single size and are then scaled, when used in titles or equivalents. Some other fonts contain a coding for different size, making the document a bit larger. You may observe a non negligible difference. I am interested in this 3rd point: have some of you investigated the best fonts for smaller PDF files? **Edit** Compress.SmallPDF sounds like a good online solution to efficiently compress pdf files for free.


title: How do I make smaller pdf file sizes with pdflatex? (Or, how do I make pdflatex use CFF fonts?)

text: > **Possible Duplicate:**   >  how to create small final pdf files for the internet When I compile tex -> dvi -> ps -> pdf I have a 9 MB file... something emailable When I .tex -> pdf with pdflatex, its 44 MB I read that its likely largely due to how pdflatex embeds the Type 1 fonts.. Does anyone have any idea about how or what to adjust to get smaller filesizes with pdflatex? Thanks


title: How can I set the default 'table border style' in LyX layout?

text: I want to specify the style of table borders ( _formal_ vs. _default_ ) in a LyX `.layout` file. How can I do that?


title: Every Natbib's citing option (using plainnat) gives me a number between parenthesis instead of Author-year

text: I'm kind of new in LaTeX. Every `natbib`'s citing option (using `plainnat`) gives me a number between parenthesis instead of Author-year. I'm using `natbib` as package, `plainnat` as bibliographystyle, and `\citep{x}` as the citing command. I recompile and it gives me something like this `(7)`. It should give me something like this: `(McCain, 1990)`. When I use the `\citet{x}` command it gives me only the name `McCain`. I'm using ShareLaTeX, a main `.tex` file that calls other `.tex` files (chapters), I'm citing in those other files. What I'm I doing wrong?


title: How to evaluate tikz expression before printing as text?

text: **Edit:** In response to the comments, the question has been edited to include the MWE. The accepted answer (by Gonzalo) is still valid. Here's my code:               \documentclass{article}               % *** MISC UTILITY PACKAGES ***     \usepackage{graphicx}     \usepackage[caption=false]{subfig}%The caption option has been disabled     %to avoid conflict with the IEEEtran class file.     \usepackage{tikz}          % *** MATH PACKAGES ***     \usepackage[cmex10]{amsmath}     \usepackage{amssymb}          \begin{document}     \begin{figure}[!t]         \centering     \begin{tikzpicture}      \node[anchor=south west, inner sep = 0] (image) at (0,0)     {\includegraphics[width=8cm]{Tulips.jpg}};     \begin {scope}[x={(image.south east)},y={(image.north west)}]        \fill [white] (0,0) rectangle (1,1);        \foreach \y in {0,1,...,8} { \node [anchor=east] at (0.09,0.07+0.88*\y/8) {\small {-5+5*\y}}; }     \end {scope}     \end{tikzpicture}     \caption{Nothing}      \label{nothing}     \end{figure}     \end{document}      Here's the result:   ![enter image description here](http://i.stack.imgur.com/DvltI.png)         I wanted the series to appear as {-5,0,5,...35}. What's being shown is {-5+5*0,-5+5*1,-5+5*2,...-5+5*8}. How to evaluate the series before it gets printed as text?


title: encoding problem

text: I'm trying to write a program in Python that exports data into PDF. Unfortunately, the well known reportlab module is not available on Python 3. (What a shame.) So I have decided to generate TEX files from the program and compile them with TeX. I know that my operating system have True Type fonts that can handle all of the characters that I need. So all I need is to use such a font for any UTF8 character in the document. I also need to create some tables and figures. It is that simple. I was trying to do it with pdfLaTex and also with XeLaTex. I'm not sure what is the difference between them. Here is an example generated file for pdfLaTex:               \documentclass[a4paper,11pt]{article}     \usepackage[utf8]{inputenc}     \usepackage[hungarian]{babel}     \author{Nagy László}     \title{Elemzés}     \begin{document}     \maketitle     \tableofcontents          \section{Esetleírás}          \subsection{A vizsgálat tárgya}          \begin{itemize}         \item árvíztűrő tükörfórógép         \item ÁRVÍZTŰRŐ TÜKÖRFÚRÓGÉP         \item  80g/m²     \end{itemize}     \end{document}      This throws the error:               ! Package inputenc Error: Unicode char \u8:² not set up for use with LaTeX.      Another guy told me to use XeLaTex instead, because it has better unicode support. I don't understand the details, but I have tried that too. With XeLaTex, I got this error:               Runaway argument?     ! Paragraph ended before \UTFviii@three@octets was complete.     <to be read again>                     \par      l.7 \maketitle      All right, I have no idea what it means, but somebody told me that I should try putting               %%!TEX encoding = UTF-8 Unicode      at the beginning of the file. I'm not sure what this means, because I could not find anything about a special `%% macro (???)` in the "not too short introduction into latex2e" documentation. It did not help anyway. So I removed `\maketitle` and now I got this:                ! Package inputenc Error: Unicode char \u8:írá not set up for use with LaTeX.      Can somebody help me where to start? I don't understand the error message, and I don't know how to fix it.


title: How to prevent page breaks from appearing at the point where a sub-itemized list begin in ConTeXt?

text: I have a lengthy document containing lots of itemized lists, in two levels. It is like this, but often much longer:               \startitemize[r]         \item This is a statement.         \startitemize[n]                \item This is an example.                \item This is another example.                \item This is another example.         \stopitemize         \item This is another statement.         \startitemize[n]                \item This is an example.                \item This is another example.                \item This is another example.         \stopitemize     \stopitemize      After compiling, I found that it often places page breaks at the beginning of the sub-list, so that it looks like this:                _________________ _________________     |                 |                 |     | This is some    |    1. This is   |     | text. This is   |       an examp- |     | some more text. |       le.       |     | This is some    |    2. This is   |     | more text.      |       another   |     | i. This is      |       example.  |     |    a statement. |    3. This is   |     |_________________|_________________|      In some cases, this confused readers, who do not know that the examples belong to the statement. The preferred behavior would make sure that the statements never appear without at least one of the examples below it, even if the page break must force this whole statement to the next page, e.g.:                _________________ _________________     |                 |                 |     | This is some    | i. This is a s- |     | text. This is   |    tatement.    |     | some more text. |                 |     | This is some    |    1. This is   |     | more text.      |       an examp- |     |                 |       example.  |     |                 |    2. This is   |     |_________________|_________________|      How can I fix the breaking to prevent these itemized items from appearing along without at least one of their sub-itemized items?


title: How to place an "Ex." item at the beginning of an itemized list in ConTeXt?

text: I created a macro which displays an list of numbers, where readers can write in their answers to a question.               \def\answers{         \startitemize[n]             \docursive{3}{\item}         \stopitemize      }      In the document, it might appear like this:               What do you think of pizza? Write three sentences.         1.         2.         3.      I need to add an example answer, just before this list, to help readers to better know what kind of answers will be okay.               What do you think of pizza? Write three sentences.         Ex. I think pizza is so-so.         1.         2.         3.      The macro could be typed as `\answers{I think pizza is so-so.}` and "Ex." and the following text would take identical formatting found in other lists in the document. Is there any way to define a place for "Ex." at the beginning of an itemized list in ConTeXt?


title: How to remove comma and "and" before institutional last author after compiling BibTeX

text: I have the following BibTeX entry:               @article{pubmed18800157,         author = {Heng, T.S. and Painter, M.W. and Immunological Genome Project Consortium},         title = {The {I}mmunological {G}enome {P}roject: networks of gene expression in immune cells.},         journal = {Nat. Immunol.},         pages = {1091-1094},         volume = {9},         number ={10},         year = {2008},     },     %\bibliographystyle{unsrt}      When the bibliography is generated, it puts comma a the end of the author: ![enter image description here](http://i.stack.imgur.com/eYqRt.png) Notice the comma after `M.W. Painter`. Is there a way to remove it?


I am trying to cite all the articles in the citations.bib such like that:               \documentclass[margin,line,11pt]{res}     \begin{document}     \begin{resume}     ...     \section{\sc Selected Publications}     \nocite{*}     \bibliography{citations}     \bibliographystyle{plain}          \end{resume}          \end{document}      But I got three errors by running BibTex uisng TexShop:               This is BibTeX, Version 0.99d (TeX Live 2013)     The top-level auxiliary file: Resume_PlantGenetics.aux     I found no \citation commands---while reading file Resume_PlantGenetics.aux     I found no \bibdata command---while reading file Resume_PlantGenetics.aux     I found no \bibstyle command---while reading file Resume_PlantGenetics.aux     (There were 3 error messages)      What's wrong of my tex file? Thanks in advance. Here is the citations.bib (just directly exported from google scholar):               @article{cai2008quantitative,       title={Quantitative trait loci for aluminum resistance in Chinese wheat landrace FSW},       author={Cai, Shibin and Bai, Gui-Hua and Zhang, Dadong},       journal={Theoretical and Applied Genetics},       volume={117},       number={1},       pages={49--56},       year={2008},       publisher={Springer}     }     ...     @article{song2006potato,       title={Potato Virus Determined by the Improved DAS-ELISA Technique},       author={SONG, Ji-xuan and FAN, Shi-jie and DONG, Ying-ping and YAN, Qian and ZHANG, Min and ZHANG, De-yu},       journal={Guizhou Agricultural Sciences},       volume={5},       pages={028},       year={2006}     }


title: Nested commands and their arguments

text: Please consider this code snips:               \def\chaptermark##1{\markboth{\@chapapp\ \thechapter\ ##1}{##1}}    % left mark & right marks      and               \def\sectionmark##1{\markright{##1}}      How can I redefine `\sectionmark{}` so that it contains the value (the `##1` argument) from `\chaptermark##1` in `\markright{}`? i.e something like this : `\def\sectionmark{\markright{\chaptermark##1{##1}}}`


title: How can I reference a table/figure/section in another document?

text: I am writing documentation that includes three documents for different audiences:   1. Public   2. Staff   3. Developers In the Developers document, I would like to reference a table or section in the Staff document using \ref{} or an analogous command. Depending on the best way to do this, an alternative way to phrase this question might be "how can I write three interlinked but distinct documents? Thanks!


title: Footnote inside tabular inside longtable

text: I have a foontone inside a tabular environment inside longtable and of course it does not work. Has anyone faced something similar? What should i do ? Thanks in advance Vasilis                \begin{center}      \begin{longtable}{|m{0.15\textwidth}|m{0.45\textwidth}|m{0.40\textwidth}|}      \hline      Μεταβλητή & Περιγραφή & Παράδειγμα \\ \hline      \endfirsthead            \hline Μεταβλητή & Περιγραφή & Παράδειγμα \endhead \hline           \hline \multicolumn{3}{|r|}{{Συνέχεια στην επόμενη σελίδα}} \\ \hline      \endfoot           \hline \hline      \endlastfoot           Συναρτήσεις &                {\begin{tabular}{@{}m{0.45\textwidth}@{}}      Οι συναρτήσεις θα πρέπει να είναι \en{camelCased}\footnote{CamelCase είναι η πρακτική της γραφής σύνθετων λέξεων ή φράσεων, έτσι ώστε κάθε λέξη ή σύντμηση να αρχίζει με ένα κεφαλαίο γράμμα \cite{wiki:camelCase}.} και οι μεταβλητές να είναι όλες πεζές, με κάτω παύλες (\_) μεταξύ των λέξεων.      \\ \hline           Ο τύπος επιστροφής της κάθε συνάρτησης θα πρέπει να τοποθετείται σε διαφορετική γραμμή \\ \hline           Πρέπει να διαλέγετε ως όνομα ένα ρήμα το οποίο αντανακλά την δράση της συνάρτησης. Καλό είναι να επιλέγονται ονόματα τα οποία αντανακλούν στοιχεία του προβλήματος από όχι την επίλυση του προβλήματος.           \end{tabular}} &           {\begin{lstlisting}      int      applyExample (int example_arg);           void      checkForErrors();      \end{lstlisting}}      \\ \hline           \caption{Ονοματολογια}      \label{table:naming_conventions}      \end{longtable}      \end{center}      ![screenshot](http://i41.tinypic.com/2hej21k.jpg)


title: KBibTeX for other languages

text: I'm compiling bibliography using KBibTeX. However, when there are multiple authors, it uses the word `and`. Is there a way to tell KBibTeX to use another word for it, for example `y` (Spanish) without having to change manually the `.bib`. If there is not, is there any way to tell LaTeX/BibTeX this?


title: How to achieve different formats for label and text in a subsection heading using titlesec

text: How to get a different formatting for the label and text of a subsection using titlesec? Reason: Italic numbers in the subsection heading hurts my eyes and should be avoided at all cost, Label of the subsection should be a normal roman while the text should be in italic First I define the fonts for the section and subsection headings of my document using fontspec:               \usepackage{fontspec}     \usepackage{titlesec}     \newfontfamily\sectionfont[LetterSpace=16.0,Path=C:/fonts/]{LTe50383.pfb} %sectionfont in Sabon Roman     \newfontfamily\subsectionfont[Path=C:/fonts/]{LTe50384.pfb} %subsection font is Sabon Italic      After this I define the titleformats:               \titleformat{\section}{\sectionfont}{\thesection.}{1em}{\MakeUppercase}{}     \titleformat{\subsection}{\subsectionfont}{\thesubsection.}{1em}{}{}      Is it even possible to differ the formatting? As written in the titlesec manual: > format is the format to be applied to the whole title—label and text. This > part can contain vertical material (and horizontal with some shapes) which > is typeset just after the space above the title.


title: Customizing Beamer's Table of Contents

text: I used the following standard beamer code to create a table of contents at the beginning of each subsection:               \AtBeginSubsection[]     {         \begin{frame}{Outline}             \tableofcontents[currentsection,currentsubsection]         \end{frame}     }      However, I want to customize the ToC of some subsections; something like: > IF \subsectionname != "..." Then it's OK to show the standard ToC. How can I do this?


title: How to draw "stacked blocks" with tikz?

text: I want to draw using tikz a figure which looks like the following: ![enter image description here](http://i.stack.imgur.com/PySq3.jpg) I started writing it using nodes and positioning them using `right of =`, `above of =` but I don't know how to avoid using hard coded shifts, minimum width and positioning. I am looking for the cleanest way to draw these kind of diagrams using tikz in order to be able to:   * scale the graph   * easily resize for example the hardware box and have the kernel and msr module boxes resized automatically (they can be specified as a percentage of the hardware box) I am not necessarily looking for the exact tikz code for this diagram, but for tricks that may help me in order to better understand how one can cleverly locates nodes in a tikz graph.


title: Centering enquoted text

text: I am using `csquotes` package in my document which has a title with quoted phrase. The title should be centralized, so it is nested into `center` environment. LaTeX (XeLaTeX to be more precise) handles quotation marks as a regular characters and centers title according to it. But good typography principles claim that punctuation signs should be outside the titles and not influence titles centering. Is there any solution for it? ![Wrong centering](https://dl.dropboxusercontent.com/spa/dvgcwyfatsch0lf/nw2gr285.png) MWE for the picture above:               \documentclass[a4paper,12pt]{article}     \usepackage{csquotes}          \begin{document}       \begin{titlepage}         \begin{center}           { \Large \enquote{Some long title line \\ Some long title line} }         \end{center}         \end{titlepage}     \end{document}


title: Alignment issue?

text: I am trying to align the 2 equals signs and the minus sign at the beginning of each line of the following code, but no matter what I do, it won't work.               $C_{n}$  = $ \dfrac{1}{4\pi{i}} $ $ \displaystyle\int^\pi_{-\pi} x^2e^{ix({1-n})}\ dx $ $ - \dfrac{1}{4\pi{i}} $ $ \displaystyle\int^\pi_{-\pi} x^2e^{{-ix}({1+n})}\ dx $           \bigskip $  = \dfrac{1}{4\pi i}\Bigg[ \bigg[\dfrac {x^2ie^{-i(n-1)x}}{n-1} \bigg]_{-\pi}^\pi -  \displaystyle\int^\pi_{-\pi} \dfrac{2xie^{-i(n-1)x}}{n-1} \ dx \Bigg] $            \bigskip $  - \dfrac{1}{4\pi i}\Bigg[ \bigg[\dfrac {x^2ie^{-i(n+1)x}}{n+1} \bigg]_{-\pi}^\pi -  \displaystyle\int^\pi_{-\pi} \dfrac {2xie^{-i(n+1)x}} {n+1} \ dx \Bigg] $


title: Fourier Spectrum conversion from 3D to 2D

text: I am delighted to have the link ORIGINAL LINK However, I have modified the graph to suit my purpose but it's still in xyz-plane. Actually, I want to have the same graph in xy-plane. My MWE is as follows:               \documentclass{article}     % -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --     \usepackage{tikz}      \usepackage{graphicx}     % very useful for disposing off the white spaces from a page     \usepackage[active,tightpage]{preview}     % to be used with \usepackage{preview}     \PreviewEnvironment{tikzpicture}     % -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --     \begin{document}     % -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --     \begin{tikzpicture}[x={(1cm,1cm)},y={(1cm,0.0cm)},z={(0cm,0.6cm)}]     \tiny     % body of the graph     \draw [blue, domain=0.25*pi:0.5*pi,samples=100,smooth]      plot (0,\x, {sin(4*0.5*\x r)/0.5 + sin(4*1.5*\x r)/1.5 + sin(4*2.5*\x r)/2.5} );     \draw [blue, domain=1*pi:1.5*pi,samples=100,smooth]      plot (0,\x-1.573, {sin(4*0.5*\x r)/0.5 + sin(4*1.5*\x r)/1.5 + sin(4*2.5*\x r)/2.5} );     \draw [blue, domain=1*pi:1.5*pi,samples=100,smooth]      plot (0,\x-0.0, {sin(4*0.5*\x r)/0.5 + sin(4*1.5*\x r)/1.5 + sin(4*2.5*\x r)/2.5} );     % draw axis     \draw[->,black!70] (0,0.25*pi,0) -- (0,6,0) node[below] {$\omega'$};     \draw[->,black!70] (0,0.25*pi,0) -- (0,0.25*pi,3) node[above] {$\left|w\left(e^{j\omega'}\right)\right|$};     % draw axis label     \draw[black!70] (0,0.25*pi,0) node[below] {$0$};     \draw[black!70] (0,0.5*pi,0) node[below] {$\pi/L$};     \draw[black!70] (0,1.0*pi,0) node[below] {$3\pi/L$};     \draw[black!70] (0,1.5*pi,0) node[below] {$\pi$};     \end{tikzpicture}     % -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --     \end{document}


title: tikz tree fork down edge labels

text: \documentclass{article}      \usepackage{tikz}     \usetikzlibrary{trees}          \begin{document}          \begin{tikzpicture}[level distance=1.5cm,     level 1/.style={sibling distance=3.5cm},     level 2/.style={sibling distance=1cm},     edge from parent fork down]     \tikzstyle{every node}=[circle,draw]          \node (Root) [red] {3}         child {         node {1}         child { node {4} edge from parent node[above,draw=none] {help!} }         child { node {1} }         child { node {3} }     }     child {         node {2}         child { node {3} }         child { node {2} }         child { node {5} }     };          \end{tikzpicture}     \end{document}      yields ![enter image description here](http://i.stack.imgur.com/gCH47.png) but I'd like to add textual labels the positions marked with the red and blue text below. ![enter image description here](http://i.stack.imgur.com/UMXwb.png) This post somewhat addresses the red issue but not the blue issue. Getting the (horizontally running) text along that first, short line before it splits is what is giving me the most trouble. It seems that first stem needs to be taller to allow room for a label there, especially when the right branch will have its own label.


title: Latex - Problems with #

text: I've got a problem with this error:               You can't use `macro parameter character #' in horizontal mode.      This error appeared suddenly in strange place after I add next bibtex to my bibliography. Error is in line 13 and there is no mater what is in this line (I removed current and error still remains. Here is part of code:               \documentclass[12pt,openany,draft]{mgr_eng}     %---packages---     \usepackage{times}     \usepackage{draftwatermark}     \usepackage{cleveref}     \usepackage[english]{babel}          %---global definition---     \author{Marcin Kulisiewicz}     \title{Oznaczanie nastawienia słów z użyciem metod uczenia maszynowego}     \engtitle{Word's sentiment evaluation using machine learning methods}     \supervisor{prof. Aleksander Zgrzywa, D.Sc., Ph.D., Associate Professor, Department of Information Systems, Faculty of Computer Science and Management}      \guardian{Tomasz Kajdanowicz, Ph.D., Department of Information Systems, Faculty of Computer Science and Management}     \field{Computer Science}     \specialisation{Information Systems}      And bibliography:               @inproceedings{Esuli2006sentiwordnet,       added-at = {2009-01-29T21:09:18.000+0100},       author = "Esuli, Andrea and Sebastiani, Fabrizio",       biburl = {http://www.bibsonomy.org/bibtex/23e410e9b5d848e4e315b292253b6ed9d/hkorte},       booktitle = {In Proceedings of the 5th Conference on Language Resources and Evaluation (LREC’06},       interhash = {12da884807d2866aa148cde8b036d2c4},       intrahash = {3e410e9b5d848e4e315b292253b6ed9d},       keywords = {WordNet opinion_mining semantics},       pages = {417--422},       timestamp = {2009-01-29T21:09:18.000+0100},       title = "SENTIWORDNET: A publicly available lexical resource for opinion mining",       url = {SENTIWORDNET: A publicly available lexical resource for opinion mining},       year = 2006     }          @inproceedings{pak2010twitter,       added-at = {2013-10-24T16:04:56.000+0200},       author = {Pak, Alexander and Paroubek, Patrick},       biburl = {http://www.bibsonomy.org/bibtex/2b34319052fd2b3dae7647b5e87c64b21/folke},       booktitle = {LREC},       interhash = {ac930b0459a3c8a2fc2d74c52a475026},       intrahash = {b34319052fd2b3dae7647b5e87c64b21},       keywords = {NIP analysis mining opinion sentiment twitter},       timestamp = {2013-10-24T16:04:56.000+0200},       title = {Twitter as a Corpus for Sentiment Analysis and Opinion Mining.},       url = {http://scholar.google.de/scholar.bib?=info:bSEeALDtz4oJ:scholar.google.com/&output=citation&hl=de&ct=citation&cd=1},       year = 2010     }          @inproceedings{jurafsky2014slajdy,       author = {Jurafsky D., Manning C.},       booktitle = {Coursera.com},       keywords = {sentiment analysis natural language processing opinion mining},       title = {Sentiment Analysis, [w:] Natural Language Processing.},       year = 2014     }          @article{Feldman13cacm,       added-at = {2013-04-03T16:02:50.000+0200},       author = {Feldman, Ronen},       biburl = {http://www.bibsonomy.org/bibtex/2e60a4ce1b7f5d1ac7ed734664fcb5844/flint63},       doi = {10.1145/2436256.2436274},       file = {ACM Digital Library:2013/Feldman13cacm.pdf:PDF},       groups = {public},       interhash = {5d9d370ba329bf9a2723c31e3a322060},       intrahash = {e60a4ce1b7f5d1ac7ed734664fcb5844},       issn = {0001-0782},       journal = {Communications of the ACM},       keywords = {v1205 acm paper ai language processing information retrieval emotion analysis},       month = {apr},       number = 4,       pages = {82-89},       timestamp = {2013-04-03T16:02:50.000+0200},       title = {Techniques and Applications for Sentiment Analysis},       username = {flint63},       volume = 56,       year = 2013     }      Anyone have an idea?


title: interference listings styles in tcolorbox

text: I'm trying to create a package to encapsulate `pstricks` examples using `tcolorbox` and `showexpl`. Defined a new environment `PSTexample` and style for `listings` (mystyle) that does not interfere with `showexpl`, but if it does tcolorbox. How achievement `mystyle` just work within the `PSTexample` environment without affect `tcblisting`? (using Texlive pretest 2014 whit tcolorbox 3.02). `style=mystyle` should only affect the `PSTexample` environment and not the rest environment in document, `listing style=mystyle` not working in this case. This is MWE:               \RequirePackage{filecontents}     \begin{filecontents}{mypack.sty}     \NeedsTeXFormat{LaTeX2e}     \def\filedate{2014/05/13}     \def\fileversion{v0.4}     \ProvidesPackage{mypack}[\filedate\space\fileversion\space]     \RequirePackage{changepage}%     \RequirePackage{showexpl}%     \renewcommand*\SX@Info{}%     \RequirePackage{tcolorbox}%     \tcbuselibrary{listings,breakable,skins,xparse}%     % Colors option     \definecolor{hellgelb}{rgb}{1,1,0.8}     \definecolor{colKeys}{rgb}{0,0,1}     \definecolor{colIdentifier}{rgb}{0,0,0}     \definecolor{colComments}{rgb}{1,0,0}     \definecolor{colString}{rgb}{0,0.5,0}     \definecolor{psroyalblue}{cmyk}{0.719,0.719,0.0,0.455}     \definecolor{psnavyblue}{cmyk}{1,1,0.0,0.498}     % Bolean      \newif\ifpstexa@swpl % swpl: true, tcb: false     \newif\ifpstexa@pdf  % option pdf     % Options     \DeclareOption{swpl}{\pstexa@swpltrue}     \DeclareOption{tcb}{\pstexa@swplfalse}     \DeclareOption{pdf}{\pstexa@pdftrue}     % Process options in the order they are given     \ProcessOptions*      %%%%%%%%%%%%%%%% Star code for swpl option %%%%%%%%%%%%%%%%%%     \ifpstexa@swpl     % PSTexample definition, take from showexpl.sty      \lstnewenvironment{PSTexample}[1][]      {%      % put lstset inside the environment      % http://tex.stackexchange.com/questions/45711/defining-lstset-parameters-for-multiple-languages      \lstset{%          language=PSTricks,%          basicstyle=\ttfamily\small, %          columns=flexible, %           tabsize=4, %           showspaces=false, %          showstringspaces=false, %          numberstyle=\tiny, %          breaklines=true, %          breakautoindent=true,          extendedchars=true, %          identifierstyle=\color{colIdentifier}, %          keywordstyle=\color{colKeys}, %          stringstyle=\color{colString}, %          commentstyle=\color{colComments}, %          frame=single, %          numbers=left,%           numbersep=0.8em,%          captionpos=b,%          xleftmargin=1em,          explpreset={          codefile=\jobname.swpl,%          pos=t,%          wide=false,%          rframe={},%          preset=\centering,%          backgroundcolor=\color{hellgelb}%,             } % close       }       \@temptokena{#1}%        \begingroup          \advance\c@ltxexample\@ne \advance\c@lstlisting\@ne           \expandafter\lstset\expandafter{\SX@explpreset,#1}%          \edef\x{\endgroup            \def\noexpand\SX@codefile{\SX@codefile}%            \def\noexpand\SX@graphicname{\SX@graphicname}%            \def\noexpand\SX@graphicparam{\SX@graphicparam}}%        \x        \xdef\SX@@explpreset{\the\@temptokena,codefile=\SX@codefile,          graphic={[\SX@graphicparam]{\SX@graphicname}}}%        \setbox\@tempboxa=\hbox\bgroup% Warum noetig?        \lst@BeginWriteFile{\SX@codefile}%      }      {%        \lst@EndWriteFile\egroup        \SX@put@code@result      }%     %%%%%%%%%%%%%%%% Star code for tcb option %%%%%%%%%%%%%%%%%%     \else     % patch listings     \patchcmd{\lsthk@SelectCharTable}{`)}{``}{}{}      %\patchcmd{\lsthk@SelectCharTable}{``}{`)}{}{} % undo patch if needed ´´ ``     % Define listing style       \lstdefinestyle{mystyle}{%         language=PSTricks,%         basicstyle=\ttfamily\small, %         columns=flexible, %          tabsize=4, %          showspaces=false, %         showstringspaces=false, %         numberstyle=\tiny, %         breaklines=true, %         breakautoindent=true,         extendedchars=true, %         texcsstyle=*[2]\color{black},         keepspaces=true,         basicstyle=\ttfamily\small, %         keywordstyle=\color{blue}, %         morekeywords={psCircleTangents},         commentstyle=\itshape\color{gray}, %         keywordstyle=[2]\color{orange}, %         morekeywords=[2]{showgrid,nodesep,linecolor,dotscale,linewidth,unit,showpoints,psset},         deletekeywords=[1]{begin,end,pspicture,endpspicture},%         keywordstyle=[3]\color{psnavyblue}, %         morekeywords=[3]{begin,end},%,         keywordstyle=[4]\color{red}, %         morekeywords=[4]{pspicture,endpspicture},%           keywordstyle=[5]\color{green}, %         morekeywords=[5]{cm,pt,in,bp,mm},%           morestring=[b]",         literate=*{\{}{{\textcolor{psnavyblue}{\{}}}{1}             {\}}{{\textcolor{psnavyblue}{\}}}}{1}             {[}{{\textcolor{psnavyblue}{[}}}{1}             {]}{{\textcolor{psnavyblue}{]}}}{1}             {(}{{\textcolor{psnavyblue}{(}}}{1}             {)}{{\textcolor{psnavyblue}{)}}}{1},%             }[tex] % need for \ color     \lstset{style=mystyle}       % Set options for tcb using pgfkeys             \tcbset{         hwidth/.store in=\hwidth,% width left/right         hwidth=0.5\linewidth,% set default         graphic/.style 2 args={comment={\includegraphics[#1]{#2}}},% image coment         pos/.is choice,% Define pos=t,b,l,r         number/.is choice,% Define number=true,false,etc         fcolor/.style={colframe=#1},% Frame color         bcolor/.style={colback=#1},% Background color         scolor/.style={drop fuzzy shadow=#1},% Shadow color         hsep/.style={sidebyside gap=#1},% Horizontal sep         vsep/.style={middle=#1}%,% Vertical sep         }     %%%%%%%%%%%%%%%% Star code for [pdf,tcb] option %%%%%%%%%%%%%%%%%%     \ifpstexa@pdf     % Config pos=t,b,l,r for [pdf] option for pdftex/luatex     \tcbset{         pos/r/.style={listing outside comment,righthand width=\hwidth},%         pos/l/.style={comment outside listing,lefthand width=\hwidth},%         pos/t/.style={listing above comment},%         pos/b/.style={comment above listing},%         pos/e/.code={\ifoddpage\tcbset{pos=l}\else\tcbset{pos=r}\fi}%,         }     \else     % Config pos=t,b,l,r default option for xetex/latex     \tcbset{         pos/r/.style={listing outside text,righthand width=\hwidth},%         pos/l/.style={text outside listing,lefthand width=\hwidth},%         pos/t/.style={listing above text},%         pos/b/.style={text above listing},%         pos/e/.code={\ifoddpage\tcbset{pos=l}\else\tcbset{pos=r}\fi}%,         }        \fi     %%%%%%%%%%%%%%%% Star comon code for tcb %%%%%%%%%%%%%%%%%%     \tcbset{         number/true/.style={listing options={numbers=left,numbersep=0.85em,%             xleftmargin=0em,numberstyle=\tiny\color{psnavyblue}}},%         number/false/.style={listing options={numbers=none,xleftmargin=-8pt}},%         number/out/.style={listing options={xleftmargin=-1.15em,numbers=left,%             numbersep=0.85em,numberstyle=\tiny\color{psnavyblue}}},%         number/fancy/.style={             overlay={\begin{tcbclipinterior}\fill[red!20!blue!20!white] (frame.south west)%             rectangle ([xshift=12pt]frame.north west);\end{tcbclipinterior}},%             listing options={numbers=left,numbersep=0.85em,xleftmargin=0em,numberstyle=\tiny\color{psnavyblue}}},%     % Default PSTexample environment style       psexample/.style={         enhanced,%         center lower,%         drop fuzzy shadow=gray,%         title style={draw=none,fill=none},%         pos=l,%         number=true,%         top=-2.5mm,bottom=-2.5mm,boxsep=3pt,%         fonttitle=\bfseries\small,boxrule=0.8pt}%         }     % Define newtcblistin environment     \NewTCBListing{PSTexample}{O{}}{psexample,#1}     %% end PSTexample environment     \fi     \endinput     \end{filecontents}     \documentclass[10pt]{article}     \usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}     \usepackage{pstricks-add}     \usepackage[tcb]{mypack}     \begin{document}     Using PSTexample     \begin{PSTexample}[pos=l]     \psset{unit=0.5cm,runit=0.5cm}     \begin{pspicture}[showgrid=true](0,3)(10,10)     \psdot(2,4)     \pscircle(7,7){2}     \psCircleTangents(2,4)(7,7){2}     \pcline[nodesep=-1cm,linecolor=blue](2,4)(CircleT1)     \pcline[nodesep=-1cm,linecolor=blue](2,4)(CircleT2)     \psdots(CircleT1)(CircleT2) %      \uput[-80](CircleT1){T1}\uput[115](CircleT2){T2}     \end{pspicture}     \end{PSTexample}          Using LTXexample          \begin{LTXexample}[pos=l]     no change default settings     \end{LTXexample}          Using tcblisting          \begin{tcblisting}{colback=red!5!white,colframe=red!25,left=6mm,     listing options={style=tcblatex,numbers=left,numberstyle=\tiny\color{red!75!black}}}     If use style=tcblatex never colored "\" in word, for example \LaTeX (no change default settings)     \end{tcblisting}     \end{document}      ![MWE whit \\ in blue in tcblisting](http://i.stack.imgur.com/HyB8q.png)


title: Using newgeometry -- how to prevent moving the top outer page numbers?

text: I used \newgeometry to enlarge the printing space to include more graphs on a couple pages of my document (article class), but it moved the page number on those pages too. If I want to keep the page numbers where they were originally (in the top outer corner), what should I do?               \documentclass[a4paper,11pt,twoside]{article}     \usepackage[marginratio=1:1,height=599pt,width=372pt,tmargin=125pt]{geometry}          \begin{document}     \pagenumbering{roman}     \thispagestyle{empty}     \section*{Abstact}\newpage          \tableofcontents\newpage          \pagenumbering{arabic}     \setcounter{page}{1}     \section{Overview}     \section{Historical context}\newpage          \pagestyle{myheadings}     \section{another section}          \newgeometry{left=1in, right=1in}     \restoregeometry          \appendix     \end{document}      Also, I want to know how to make the page numbers a little smaller.


title: \lstinputlisting for a normal text file?

text: sometimes im using `\lstinputlisting` to show some code examples in my pdf. Now I just would like to insert a normal textfile. Everything is fine, I like this box around my text and the numbers every line. I just dont like that some string are **bold**. It's something like this: > 12345 123 3123 **3213H ABC12 AB** 88789 So strings are bold. Somehow. I'm using `\lstinputlisting{file.txt}`. How can I change that? I mean highlighting is fine for my code, that's great but in this file I dont want this. Any ideas?


title: Change ModernCV section style to make them look like Friggeri CV

text: I am using for my Resume the ModernCV template, but I would like to bring in some of the amazing FriggeriCV style of the title of the sections: I love the text half coloured and half black with each section styled by a different colour. There is any way I can edit my template for that? The image below is how the FriggeriCV looks like, and I would bring the heading styles. ![The image below ](http://i.stack.imgur.com/CBLw2.png)


title: Example Numbers with Labels

text: I have, in my `article`, some examples that look like this:               \begin{center}       Lorem ipsum dolor sit amet, consetetur       \\ \emph{sadipscing elitr, sed diam nonumy eirmod tempor invidunt}       \\ \emph{ut labore et dolore magna aliquyam erat, sed diam voluptua.}     \end{center}      It looks like I want/need it to, and it works. But now I want to numerate those examples (if possible automatically), with a little number to the left, like when using an `\begin{equation}`. Plus, I want a label. I'm fairly new and superficial in LaTeX, so I'm open for your knowledgable input on this.


title: Flush to the left align environment in beamer

text: I would like to use the align environment within my beamer presentation, and have this flushed to the left. However, this should only be done on one frame, on the other frames I would like to keep the default settings. How do I do this?


title: \alert beamer messes up tabular layout

text: In `beamer`, I just want to highlight some cells with `\alert`, but when I use `\alert` it messes up my table layout. For some reason, I defined a special column type to have a more beautiful table. When I use `\alert` then it apparently messes up this layout and the cell falls out of place. I created a MWE that follows:               \documentclass{beamer}     \usepackage{xcolor,colortbl}      \newcolumntype{L}[1]{>{\raggedleft\arraybackslash}p{#1}}     \begin{document}          \begin{frame}          \begin{tabular}{ll}     \alert{a} & b \\     c & d \\     \end{tabular}     \end{frame}          \begin{frame}     \begin{tabular}{L{1.3cm}L{1.3cm}}     \alert{a} & b \\     c & d \\     \end{tabular}     \end{frame}     \end{document}      Does anybody see a quick fix, so that I don't have to change my whole table and can still use `\alert` without killing the layout? That would make my life much easier.


title: dashes for same author name in bib file

text: There are many questions (with answers) on how to fix the appearance of `\-----` for the same author names in bibtex. However still I have problem!! My bib file contains               @IEEEtranBSTCTL{bstctl:nodash,      CTLdash_repeated_names = "no",     }     @inproceedings{Ebrahimi09,       author = {E. Ebrahimi and others},       title = {Coordinated control of multiple prefetchers in multi-core systems},       booktitle = {MICRO-42},       year = {2009},       pages = {316-326},     }     @inproceedings{Ebrahimi09_2,       author = {E. Ebrahimi and others},       title = {Techniques for bandwidth-efficient prefetching of linked data structures in hybrid prefetching systems},       booktitle = {HPCA-15},       year = {2009},       pages = {7-17},     }      However the output file looks like ![enter image description here](http://i.stack.imgur.com/kp5qP.jpg) In fact changing `CTLdash_repeated_names = "no",` to `CTLdash_repeated_names = "yes",` has no effect! How can I fix that? In the .tex file, the bibliography is called in this way               \documentclass[conference]{IEEEtran}     \section{Introduction}      ... works~\cite{Ebrahimi09,Ebrahimi09_2}     \bstctlcite{bstctl:etal, bstctl:nodash, bstctl:simpurl}     \bibliographystyle{IEEEtran}     \bibliography{ref}     \end{document}      **UPDATE** I have a script (in windows) that runs the following commands               :: Run pdflatex -> bibtex -> pdflatex -> pdflatex     pdflatex %2  --file-line-error-style     bibtex  %2     :: If you are using multibib the following will run bibtex on all aux files     :: FOR /R . %%G IN (*.aux) DO bibtex %%G     pdflatex %2  --file-line-error-style     pdflatex %2


title: Language selection for \maketitle

text: I am writing a document in English but when I use `\maketitle`, it inserts the date in Czech (my mother language I normally use when writing other text documents). I have set my IDE (TexWorks) to English but it does not work. I use `\usepackage[czech]{babel}` improt because my Name is spelled with Czech diacritics. When I remove this import, I get the following exception:               ! Package babel Error: You haven't loaded the option czech yet.          See the babel package documentation for explanation.     Type  H <return>  for immediate help.      ...                                                        l.4 \select@language{czech}      I do not use any other command that would require the Czech import in my document so I dont know where this exception come from... These are all imports I use:               \usepackage{mathtools}     \usepackage[czech]{babel}     \usepackage[utf8]{inputenc}     \usepackage{graphicx}     \usepackage{setspace}      Could you suggest whats wrong? Thank you for any tips!


title: PGF pretty number printing equivalent in LaTeX

text: For TikZ and `pgfplots` I use :               \tikzset{/pgf/number format/.cd,use comma,1000 sep={\,}}      And all numbers are typeset accordingly, with no other command. Is there a way to have the same convenience for a LaTeX document? Not using any command such as `\nombre{}` nor `\num{}` but in something like for the math mode comma : Comma in math mode


title: Did I install a package successfully?

text: On my Ubuntu system, I have already installed texlive-full under /usr/share from long time ago. I just tried a simple example with `\usepackage{tikz}` and it did work fine. Later, I added `\usetikzlibrary{intersections,positioning}` to my LaTeX code in order to use the TikZ library intersections, but LaTeX complained about not finding it (if I remember correctly). I didn't know much to do then, and just went to download PGF 2008-08-28. I unziped the archive and put it under ~/texmf/tex. Then latex did not report the previous complaint, but instead it complained about something like: > ! Undefined control sequence. \pgfsetpath l.77 ...`e[name > intersections={of=line1 and line2}] (a) at (intersection-1) {};` The control > sequence at the end of the top line of your error message was never > `\def`'ed. If you have misspelled it (e.g., `\hobx'), type`I' and the > correct spelling (e.g., '`I\hbox`'). Otherwise just continue, and I'll > forget about whatever was undefined. on the 77th line in the latex code:               \node[name intersections={of=line1 and line2}] (a) at (intersection-1) {};      The full code can be seen in a reply to my other post So I was wondering if I have installed all the packages and libraries that I need? If not, how to do that correctly? I guess my texlive-full installed long time ago under /usr/share might already have the PGF (although I am not sure). Is the one (PGF 2008-08-28) I just installed under ~/texmf/tex redundant?


title: References (in bibtex) did not appear in beamer?

text: I have this problem: it seems that beamer did not read the bibtex file. Below is the syntax that I am using:               \documentclass{beamer}          \usepackage{natbib} %citep and citet     \renewcommand{\bibsection}{\subsubsection*{\bibname}} % to avoid References creates new section/subsection in header     \bibpunct[:]{(}{)}{;}{a}{}{,}          \begin{document}          \begin{frame}[allowframebreaks]{References}     \def\newblock{\hskip .11em plus .33em minus .07em}     \bibliographystyle{alpha}     \bibliography{reff.bib} % file name of the bibtex     \end{frame}          \end{document}


title: Why does \color{blue} differ from \color{Blue}?

text: \documentclass[dvipsnames]{article}         \usepackage{xcolor}         \begin{document}         {\color{Blue}\bf Blue} versus {\color{blue}\bf blue}.         \end{document}      ![alt text](http://i.stack.imgur.com/Pdyv4.jpg) Why does one of them differ from the other one? * * * **EDIT 1**   1. I still wonder why the color is distinguished by capitalization :-)   2. Why did the package author choose `dvipsnames` as the option name? I think this name potentially makes us obtain a wrong impression from it that is usually used to describe the driver? In fact both `pdflatex` and `latex` can use it, right?


title: Using Harvard Style

text: Hi I'm using the Havard Style and want to cite a journal, not the author. I'm using `natbib` and `har2nat` (because hyperlink didn't work with `harvard.sty`, and there are some problems with german citation, too). I tried the `\DeclareCiteCommand`, but it didn't work because biblatex is missing. My goal is to get something like "Guardian (2009)" in contrast to the author and the year. Hope anyone can help me :) **EDIT 2: Thanks to the advice in the comments, I would like to have a cite like "Guardian, Author (2008)" or "Author, Guardian (2008)".** EDIT with minimal working example (the dcugerman.bst I got from this source)               \documentclass{article}            \usepackage{hyperref}                  \usepackage{natbib}             \setcitestyle{aysep={,}} % needed to fully emulate harvard's "dcu" citation style             \usepackage{har2nat}             \providecommand\harvardand{}             \renewcommand{\harvardand}{und}                   \usepackage{filecontents}                  \begin{filecontents}{\jobname.bib}                 @article{Gua2009,                   author = {Author, A.},                   year = {2008},                   title = {Some relevant article},                   journal = {Guardian}                 }             \end{filecontents}          \begin{document}              This is a source from the Guardian\cite{Gua2009}              \bibliographystyle{dcugerman}         \bibliography{\jobname}          \end{document}      The Result is: > This is a source from the Guardian(Author, 2008) > > References Author, A. (2008). Some relevant article, Guardian . But I want someting like this: > This is a source from the Guardian(Guardian, 2008) > > References Author, A. (2008). Some relevant article, Guardian . EDIT 3 // MY SOLUTION I just changed the author and journal entry in my bib file. (Thanks to Mico for the advice!) If I have two newspaper articles from the same year, there will be a letter after the year so you can find the source in the bibliography.


title: tikz includegraphics within style

text: I searching for a solution to define a node style whish includes a png- picture.               \documentclass[10pt]{article}     \usepackage{tikz}          \begin{tikzpicture}        [          PIC/.style n args = {1}                              {align=center,                               label={center:                                      \includegraphics[scale=0.01,rotate=#1]{picture.png}                                     }                              }        ]             \node[PIC={60}] (f) at (0,0) {};          \end{tikzpicture}     \end{document}      I tried some other versions with \node but I have no real idea... Hope you can help - thanks. * * * Additionally an example with two parameters:               [...     PT/.style n args = {2}{circle,draw,align=center,                            inner sep=1pt,label={#1:#2}}]     ...     \node[PT={below}{1}] (PT) at (0,0) {};      This will fully pass the arguments. If I set these:               [...     PT/.style n args = {1}{circle,draw,align=center,                            inner sep=1pt,label={#1:2}}]     ...     \node[PT={below}] (PT) at (0,0) {};      it only pass `b` instead of `below` * * * Thanks to Jesse! I don't know what is better. To define a `token` or do some crasy things like this: Var 1               [...     PT/.style n args = {1}{circle,draw,align=center,                            inner sep=1pt,label={#1:2}}]     ...     \node[PT={below}\ ] (PT) at (0,0) {};      Var 2               [...     PT/.style n args = {1}{circle,draw,align=center,                            inner sep=1pt,label={#1:2}}]     ...     \node[PT={below}{} ] (PT) at (0,0) {};


title: How to draw protocol interaction using tikzpicture

text: I have a question on using the tikzpicture package. I have a protocol interaction on which two participants want to exchange some numbers, say _α_ and _β_. I need bilateral arrows, and on top of it would be _α_ and below it the _β_. That means these two participants are exchanging the numbers simultaneously. BTW, I don't need dots in the side of arrows, but some calculations which results in _α_ or _β_ must be placed there. ![alt text](http://i.stack.imgur.com/AYPSF.png) How can I have this output? I don't know if I have chosen the right package but it seems to me that this is the right choice. Every sample that I have seen so far uses some dots and creates a matrix, but I don't know how to replace dots with these terms. BTW, I have no idea how can I have that arrow and even making it larger.   Any good tutorial with examples close to my need will be appreciated.


title: Creating Horizontal Lines With A Specific Distance

text: I'm relatively new at LaTeX. I've read material online and have been practicing. However, I have not been able to find a solution to two of my questions. I'm hoping someone may be of assistance. This is what I have...               \begin{align}     -4(-5+6x) & = \hspace{1mm} 188  \\      (-4 \times -5) + (-4\times6x) & = \hspace{1mm} 188 \\     20-24x & = \hspace{1mm} 188 \\     -20\hspace{11.8mm}  & \hspace{3.5mm} -20 \\[-11pt]     \cline{1-2}     -24x & = \hspace{1mm} 168 \\     \dfrac{\cancel{-24} x}{\cancel{-24}} & =\dfrac{168}{-24}\\     x & = -7     \end{align}      My question is regarding the horizontal line. How can I minimize the distance? I would like for the horizontal line to line up, so to speak, directly under the -20 from line (4), that being the -20 on the left hand side of the equality. Also, I would like for it to end directly under the 0 from the -20 on line (4), that being the -20 on the right hand side. Furthermore, in line (6), how can I align the 4 from the right hand side of the denominator so that it is directly under the 8 of the numerator, that being the right hand side as well. Thanks, Miguel