title: Not breakable box in mdframed package

text: In my previous post, title of a colored box, I've tried the first answer I was given typing the following code:               \documentclass[12pt,a4paper,titlepage,twoside,openright]{book}     \usepackage[english,greek]{babel}     \usepackage{ucs}      \usepackage[utf8x]{inputenc}     \usepackage[usenames,dvipsnames]{xcolor}     \usepackage{tikz}     \usepackage{tkz-tab}     \usepackage{cancel}     \usepackage{forest}     \usepackage{caption}     \usepackage{latexsym}     \usepackage{amssymb}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amsthm}     \usepackage{pdflscape}     \usepackage{paralist}     \usepackage{pst-tree,array}     \usepackage{enumerate}     \usepackage{graphicx}     \usepackage{rotating}     \usepackage[usenames,dvipsnames]{xcolor}     \usepackage{tikz}     \usepackage{tkz-tab}     \usepackage{chngcntr}     \usepackage[framemethod=tikz]{mdframed}     \usepackage{wrapfig}     \usepackage{color}     \usepackage{caption}     \usepackage{type1cm}     \usepackage{lettrine}     \usepackage{lipsum}     \usepackage{chngcntr}     \usepackage{url}     \usepackage{marvosym}     \usepackage{tcolorbox}     \usepackage[colorlinks=true,linkcolor=blue]{hyperref}     \usepackage{hyperref}     \tcbuselibrary{theorems}     \usepackage{tkz-euclide}         \usepackage{tkz-fct} \usetkzobj{all}     \usetikzlibrary{calc,decorations.pathreplacing}     \usepackage{pgfplots}     \usepackage{verbatim}     \author{}     \title{Μάθημα Επιλογής}     \date{\today}          \begin{document}     \maketitle          \noindent \textit{Πρώτη Έκδοση, Ιούλιος 2013} % Printing/edition date     \frontmatter     \tableofcontents     \addcontentsline{toc}{section}{\listfigurename}     \listoffigures          \section{Δομή Τελικής Εξέτασης}     Το τελικό διαγώνισμα των Πανελλαδικών (ενίοτε και των ενδοσχολικών) εξετάσεων στο μάθημα αυτό απαρτίζεται από 4 ομάδες ασκήσεων. Αναλυτικότερα:               \begin{description}     \item[Ομάδα Α] Περιλαμβάνει:     \begin{itemize}     \item Πέντε προτάσεις του τύπου Σωστό - Λάθος, όπου η καθεμιά βαθμολογείται με τρεις (3) μονάδες.     \item Δύο ερωτήσεις πολλαπλής επιλογής, όπου η καθεμιά βαθμολογείται με πέντε (5) μονάδες.     \end{itemize}     \textbf{Συνολικές μονάδες: 25}     \item[Ομάδα Β] Υπάρχει μια ερώτηση θεωρίας στην οποία καθένας μαθητής καλείται να αναπαράγει ένα απόσπασμα από το βιβλίο, το οποίο μπορεί να συνδέεται με διαγράμματα ή/και παραδείγματα. Πολλές φορές η ερώτηση εκτείνεται σε δύο σκέλη.\\     \textbf{Συνολικές μονάδες: 25}     \item[Ομάδα Γ] Υπάρχει μια άσκηση η οποία προέρχεται από 1 ή 2 κεφάλαια (συνδυαστική ή μη). Εμπειρικά η άσκηση είναι \textbf{συνήθως} από το πρώτο κεφάλαιο ή από το τρίτο και το τέταρτο.\\     \textbf{Συνολικές μονάδες: 25}     \item[Ομάδα Δ] Υπάρχει μια άσκηση με μεγάλο βαθμό συνδυαστικότητας όπου τα ζητούμενα συνήθως προέρχονται από τα κεφάλαια 5, 2, 4, 3.\\     \textbf{Συνολικές μονάδες: 25}     \end{description}          \section{Εξεταστέα Ύλη}     Για τις εξετάσεις του σχολικού έτους 2012-2013: \\     \textit{Από το βιβλίο «Αρχές Οικονομικής Θεωρίας» της Γ΄ τάξης Γενικού Λυκείου των Λιανού Θ., Παπαβασιλείου Α. και Χατζηανδρέου Α. έκδοση 2012.}\\     \\     \textbf{\underline{Κεφάλαιο 1:}} Βασικές Οικονομικές Έννοιες, \textcolor{Blue}{εκτός των παραγράφων 6 και 13}.\\     \textbf{\underline{Κεφάλαιο 2:}} Η ζήτηση των αγαθών. \\     \textbf{\underline{Κεφάλαιο 3:}} Η παραγωγή της επιχείρησης και το κόστος, \textcolor{Blue}{εκτός των παραγράφων 5, 6, 7, 8 και 9 που αναφέρονται στο κόστος παραγωγής}.\\     \textbf{\underline{Κεφάλαιο 4:}} Η προσφορά των αγαθών.\\     \textbf{\underline{Κεφάλαιο 5:}} Ο Προσδιορισμός των τιμών, \textcolor{Blue}{εκτός της παραγράφου 6}.\\     \\     \textbf{Οι ερωτήσεις και οι ασκήσεις που αντιστοιχούν στα προαναφερόμενα κεφάλαια.}               \part{Σημειώσεις Μαθήματος \\ Θεωρία}     \chapter{Βασικές Οικονομικές Έννοιες}     \section{Αντικείμενο της Οικονομικής Επιστήμης}     Αντικείμενο της Οικονομικής Επιστήμης είναι τα τέσσερα επιμέρους οικονομικά προβλήματα\footnote{Βλ. παράλληλα κύριο οικονομικό πρόβλημα}:     \begin{enumerate}     \item \underline{Τι} θα παραχθεί: αφορά το είδος και τις ποσότητες των προϊόντων που θα παραχθούν.     \item  \underline{Πώς θα παραχθεί}: αφορά τη μέθοδο και την τεχνολογία που θα χρησιμοποιηθεί στην παραγωγική διαδικασία.     \item  \underline{Πώς θα διανεμηθεί}: αφορά τα κριτήρια με τα οποία διανέμονται τα προϊόντα μεταξύ των ατόμων.     \item  \underline{Πώς αναπτύσσεται η οικονομία μιας κοινωνίας ώστε να αυξηθεί ο όγκος}\\ \underline{της παραγωγής}.     \end{enumerate}          \section{Οικονομία του Ροβινσώνα Κρούσου}     \textit{Να αναγνώσετε από το βιβλίο το αντίστοιχο κεφάλαιο (σελ. 9-10) και να κρατήσετε μόνο το νόημα. Συνήθως, ζητείται σε Σ-Λ.}          \section{Προϊόντα ή οικονομικά αγαθά}          \newcounter{mytheorem}[chapter]     \def\themytheorem{\arabic{mytheorem}}     \tcbset{     defstyle/.style={fonttitle=\bfseries\upshape, fontupper=\slshape,     arc=0mm, colback=Blue!5!white,colframe=Blue!75!black},     }     \tcbmaketheorem{Definition}{Ορισμός}{defstyle}{mytheorem}{def}     \begin{Definition}{Αγαθό}{}     Είναι τα μέσα ικανοποίησης των αναγκών του ανθρώπου.\\ Διακρίνονται σε: \underline{ελεύθερα} (βρίσκονται ελεύθερα στη φύση και είναι απεριόριστα, π.χ. οξυγόνο) και \underline{οικονομικά} (αποτελέσματα παραγωγικής διαδικασίας, προϊόντα ή εμπορεύματα)      \end{Definition}          \forestset{       L1/.style={fill=SpringGreen,},       L2/.style={fill=Apricot,edge={Apricot,line width=2pt}},       L3/.style={fill=Goldenrod,edge={Goldenrod,line width=2pt}},       L4/.style={fill=SkyBlue,edge={SkyBlue,line width=2pt}},     }          \begin{forest}         for tree={             grow=0,reversed, % tree direction             parent anchor=east,child anchor=west, % edge anchors             edge={line cap=round},outer sep=+1pt, % edge/node connection             rounded corners,minimum width=15mm,minimum height=8mm, % node shape             l sep=10mm % level distance         }       [Αγαθά,L1         [Οικονομικά,L2             [Σύσταση,L3                 [Υλικά,L4][Άυλα*,L4]             ]             [Διάρκεια,L3                 [Διαρκή,L4][Καταναλωτά,L4]             ]             [Προορισμός,L3                 [Κεφαλαιουχικά,L4][Καταναλωτικά,L4]             ]          ]         [Ελεύθερα,L2]       ]     \end{forest}     \captionof{figure}{Διάκριση των αγαθών}          \begin{itemize}     \item[\Pointinghand] Τα \textbf{άυλα} αγαθά είναι πάντα \textbf{καταναλωτά} και \textbf{καταναλωτικά}.     \item[\Pointinghand] Η οικονομική επιστήμη ασχολείται, σαφώς, μόνο με τα οικονομικά αγαθά.     \end{itemize}          \section{Η Αγορά}     \begin{Definition}{Αγορά (Στενή έννοια)}{}     Ο χώρος (γεωγραφικά) πραγματοποίησης αγοραπωλησιών, π.χ. εμπορικό κέντρο, λαϊκή αγορά κλπ.     \end{Definition}          \begin{Definition}{Αγορά (Ευρεία έννοια)}{}     Ο μηχανισμός επικοινωνίας αγοραστών και πωλητών για την πραγματοποίηση συναλλαγών που περιλαμβάνει μέσα όπως τηλέφωνο, φαξ, τύπος, \textlatin{internet} κλπ.     \end{Definition}          \section{Ανάγκες}     \begin{Definition}{Οικονομικές Ανάγκες}{}     Οικονομικές καλούνται οι ανάγκες που ικανοποιούνται με την κατανάλωση οικονομικών αγαθών.     \end{Definition}          \underline{Ιδιότητες Αναγκών}:      \begin{enumerate}     \item \textbf{Εξέλιξη***}: εξελίσσονται τα μέσα ικανοποίησης των αναγκών.     \item \textbf{Πολλαπλασιασμός***}: η συνεχής δημιουργία – αύξηση των ανα-γκών.     \item \textbf{Κορεσμός}: η βαθμιαία και προσωρινή ικανοποίηση των αναγκών     \end{enumerate}          \textbf{***Αίτια}:     \begin{inparaenum}[(a)]     \item τεχνολογία,     \item μίμηση,     \item συνήθεια,     \item διαφήμιση     \end{inparaenum}          \newcounter{THEtheorem}[chapter]     \def\THEtheorem{\arabic{THEtheorem}}     \tcbset{     theostyle/.style={fonttitle=\bfseries\upshape, fontupper=\slshape,     colback=Blue!25!yellow!5!white, colframe=Blue!25!yellow!90!white, coltitle=Blue!25!yellow!40!black},     }     \tcbmaketheorem{Theorem}{\Pointinghand}{theostyle}{THEtheorem}{theo}     \begin{Theorem}{Προσοχή!}{}     Οι ανάγκες στο σύνολό τους είναι ακόρεστες. \textbf{Ο κορεσμός αφορά τις ατομικές ανάγκες.} Οι συλλογικές ανάγκες είναι ακόρεστες!     \end{Theorem}          \section{Οι παραγωγικές δυνατότητες της οικονομίας}     \begin{Definition}{Παραγωγική Διαδικασία}{}     Είναι η διαδικασία μετασχηματισμού της ύλης μέσα από διαδοχικά στάδια έως ότου πάρει την τελική της μορφή.     \end{Definition}          \begin{Definition}{Συντελεστές παραγωγής}{}     Τα στοιχεία που συντελούν στην παραγωγική διαδικασία είναι:      \begin{enumerate}[i.]     \item \underline{\textbf{Εργασία}}: η διανοητική και σωματική συμβολή του ανθρώπου. [+ ανθρώπινο κεφάλαιο: γνώσεις, εμπειρία, δεξιότητες]     \item \underline{\textbf{Φύση ή έδαφος}}: περιλαμβάνει όλους τους φυσικούς πόρους που συμβάλ-λουν στην παραγωγή (δάση, ποτάμια, κλπ)     \item \underline{\textbf{Κεφάλαιο}}: το σύνολο των κεφαλαιουχικών αγαθών (παραχθέντα μέσα παραγωγής) που παίρνουν μέρος στην παραγωγική διαδικασία.     \item \underline{\textbf{Επιχειρηματικότητα}}: η δραστηριότητα που αναλαμβάνει να συ-ντονίσει και να συνδυάσει τους άλλους τρεις συντελεστές στην παραγωγική διαδικασία ώστε να επιτευχθεί το μέγιστο κέρδος.     \end{enumerate}     \end{Definition}          \underline{\textit{ΣΗΜΕΙΩΣΗ:}} \textbf{«εν δυνάμει συντελεστές»} χαρακτηρίζονται οι συ-ντελεστές οι οποίοι θα μπορούσαν να συμβάλλουν στην παραγωγή αν χρησιμοποιούνταν.\\     \\     \underline{\textit{\textbf{Παρατηρήσεις:}}}     \begin{enumerate}[(a)]     \item οι παραγωγικοί συντελεστές βρίσκονται σε περιορισμένες ποσότητες δηλ. το χαρακτηριστικό τους είναι η ανεπάρκεια.      \item οι συντελεστές μπορούν να χρησιμοποιηθούν εναλλακτικά μεταξύ τους, για την παραγωγή πολλών διαφορετικών αγαθών.     \end{enumerate}          \begin{Definition}{Η έννοια του κόστους}{}     Η παραγωγή ενός αγαθού δεσμεύει παραγωγικούς συντελεστές, οι οποίοι θα μπορούσαν, εναλλακτικά, να χρησιμοποιηθούν για την παραγωγή κάποιου άλλου ή άλλων αγαθών. Επομένως, οι ποσότητες των αγαθών που θα θυσιάζονται έτσι ώστε με τους συντελεστές που αποδεσμεύονται να παραχθεί κάποιο άλλο αγαθό αποτελούν το \textbf{πραγματικό} (ή εναλλακτικό) \textbf{κόστος} του αγαθού που παράγεται.     \end{Definition}          \section{Καμπύλη Παραγωγικών Δυνατοτήτων (ΚΠΔ)}          Οι παραγωγικές δυνατότητες της οικονομίας \underline{εξαρτώνται} από:      \begin{enumerate}[i.]     \item Τις ποσότητες των διαθέσιμων συντελεστών (\textbf{ποσοτικό} κριτήριο)     \item Τη δεδομένη διαθέσιμη τεχνολογία (\textbf{ποιοτικό} κριτήριο)     \end{enumerate}               \textbf{ΟΡΙΑ ΠΑΡΑΓΩΓΙΚΩΝ ΔΥΝΑΤΟΤΗΤΩΝ:} εννοούμε όλους τους μέγιστους (άριστους) συνδυασμούς προϊόντων που μπορεί να επιτύχει η οικονομία με την προϋπόθεση ότι:      \begin{enumerate}[i.]     \item Αξιοποιεί πλήρως όλους τους διαθέσιμους παραγωγικούς συντελεστές     \item Αξιοποιεί τη διαθέσιμη τεχνολογία (δεδομένη)     \item Υποθέτοντας, ότι παράγει δύο μόνο αγαθά.     \end{enumerate}          \textit{Για να αντιληφθούμε καλύτερα την έννοια της καμπύλης παραγωγικών δυνατοτήτων ας αξιοποιήσουμε το παράδειγμα\footnote{Βλέπε αναλυτικά λυμένες ασκήσεις σε επόμενες σελίδες.} 1.1.}          \begin{Definition}{Κόστος Ευκαιρίας}{}     \textbf{Κόστος Ευκαιρίας ή εναλλακτικό κόστος} ενός αγαθού Χ καλείται η ποσότητα που θυσιάζεται από κάποιο άλλο αγαθό Υ, έτσι ώστε να παραχθεί μια επιπλέον μονάδα του αγαθού Χ. Δηλαδή ισχύει ο τύπος:      \begin{eqnarray} \label{eq:1}     \text{ΚΕ}_x=\frac{\Delta Y}{\Delta X}      \end{eqnarray}     \end{Definition}                 \newcounter{exa}[chapter]     \counterwithin{exa}{chapter}          \makeatletter     \mdfdefinestyle{mystyle}{%     linecolor=green!40!black,     outerlinewidth=1pt,%     frametitlerule=true,     frametitlefont=\bfseries\color{white},%     frametitlerulewidth=1pt,frametitlerulecolor=green!40!black,%     frametitlebackgroundcolor=green!40!black,     backgroundcolor=green!5,     innertopmargin=\topskip,     roundcorner=5pt     }     \makeatother     \newmdenv[style=mystyle]{exa}          \newenvironment{example}[1]       {\stepcounter{exa}%         \addcontentsline{ldf}{figure}{#1}%         \begin{exa}[frametitle=Παράδειγμα~\theexa: #1]}       {\end{exa}}               \begin{example}{Η ΚΠΔ} \label{1.1}     Αξιοποιούμε τα δεδομένα του παρακάτω πίνακα:     \begin{center}     \begin{tabular}{|c|c|c|cc|}     \hline     Συνδυασμός & Γάλα (τόνοι) & Φρούτα (τόνοι) & $\text{KE}_\text{φρούτων}$ & $\text{KE}_\text{γάλακτος}$ \\      \hline     A & 40 & 0 &  &  \\      \cline{1-3}     \multicolumn{1}{|l}{} & \multicolumn{1}{l}{} & \multicolumn{1}{l}{} & 0.5 & 2 \\      \cline{1-3}     B & 30 & 20 &  &  \\      \cline{1-3}     \multicolumn{1}{|l}{} & \multicolumn{1}{l}{} & \multicolumn{1}{l}{} & 1 & 1 \\      \cline{1-3}     Γ & 20 & 30 &  &  \\      \cline{1-3}     \multicolumn{1}{|l}{} & \multicolumn{1}{l}{} & \multicolumn{1}{l}{} & 2 & 0.5 \\      \cline{1-3}     Δ & 10 & 35 &  &  \\      \cline{1-3}     \multicolumn{1}{|l}{} & \multicolumn{1}{l}{} & \multicolumn{1}{l}{} & 2.5 & 0.4 \\      \cline{1-3}     Ε & 0 & 39 &  &  \\      \hline     \end{tabular}     \end{center}     Η Καμπύλη Παραγωγικών Δυνατοτήτων που παίρνουμε βάσει του παραπάνω πίνακα είναι η ακόλουθη:          \begin{center}     \begin{tikzpicture}     \begin{axis}[       xmin = 0,       xmax = 40,       ymin = 0,       ymax = 42,        axis lines = left,       xlabel = Φρούτα,       ylabel = Γάλα       ]       \addplot+[mark = none] coordinates {%         (0,40)          (20,30)         (30,20)         (35,10)     (39,0)};     \coordinate (A) at (axis cs:0,40);     \coordinate (B) at (axis cs:20,30);     \coordinate (C) at (axis cs:30,20);     \coordinate (D) at (axis cs:35,10);     \coordinate (E) at (axis cs:39,0);     \end{axis}     \node[above right] at (A) {$A$};     \node[above right] at (B) {$\text{Β}$};     \node[above right] at (C) {$\text{Γ}$};     \node[above right] at (D) {$\text{Δ}$};     \node[above right] at (E) {$\text{Ε}$};     \end{tikzpicture}     \captionof{figure}{Η ΚΠΔ του παραδείγματος 1.1.}     \end{center}          Δεδομένου του ορισμού που δόθηκε προηγουμένως σχετικά με το κόστος Ευκαιρίας, υπολογίζουμε ακολούθως:\\          \textbf{Κόστος Ευκαιρίας Φρούτων}     \begin{align}     ~\ref{eq:1} \Rightarrow \text{ΚΕ}_{\text{φρ}_{\text{Α} \rightarrow \text{Β}}}& =\frac{\Delta \text{γαλακτ}}{\Delta \text{φρουτ}}=\frac{40-30}{20-0}=0.5 \text{ τόνοι γάλακτος} \nonumber \\     \text{ΚΕ}_{\text{φρ}_{\text{Β} \rightarrow \text{Γ}}}& =\frac{30-20}{30-20}=1 \text{ τόνος γάλακτος} \nonumber \\     \text{ΚΕ}_{\text{φρ}_{\text{Γ} \rightarrow \text{Δ}}}& =\frac{20-10}{35-30}=2 \text{ τόνοι γάλακτος} \nonumber \\     \text{ΚΕ}_{\text{φρ}_{\text{Δ} \rightarrow \text{Ε}}}& =\frac{10-0}{39-35}=2,5 \text{ τόνοι γάλακτος} \nonumber     \end{align}     \end{example}     \end{document}      The problem which I'm dealing concerns the box, which **doesn't** break at the end of the page.


title: How do I get open points into my graphs in pgfplots?

text: I wanted to have a discontinuity at $x=0$ where I spliced together the two graphs. But things aren't visually working out the way I wanted them to.               \documentclass[border=6pt]{standalone}     \usepackage{pgfplots}          \pgfmathdeclarefunction{myfncA}{1}{\pgfmathparse{ (#1-1)^2+1}}     \pgfmathdeclarefunction{myfncB}{1}{\pgfmathparse{ -(#1+1)^2+3}}          \pgfplotsset{every axis/.append style={         font=\scriptsize,         x=.75cm,         y=.75cm,             axis x line=center,         axis y line=center,         x axis line style={<->},         y axis line style={<->},         xtick={-5,-4,...,5},         ytick={-5,-4,...,5},         xlabel={$x$},         ylabel={$y$},         xlabel style={below},         ylabel style={left},         xmin=-5.5, xmax=5.5,         ymin=-5.5, ymax=5.5,         }     }          \usetikzlibrary{arrows.meta}          \begin{document}          \begin{tikzpicture}[>=latex]     \begin{axis}       \addplot[domain=0:3, blue, samples=50,ultra thick,arrows={Circle[open]->}] {myfncA(x)};       \addplot[domain=-3.9:0, blue, samples=50,ultra thick,arrows=<-{Circle[open]}] {myfncB(x)};     \end{axis}     \end{tikzpicture}          \end{document}      ![enter image description here](http://i.stack.imgur.com/CdgyS.png)


title: How to get flushleft to the page margin within enumerate environment?

text: How do I get the headings to come to the page margin inside of the enumerate envirnoment.               \documentclass{article}     \usepackage{lipsum}     \begin{document}     \begin{flushleft}     Heading     \end{flushleft}     \begin{enumerate}     \item \lipsum[10]     \begin{flushleft}     Heading     \end{flushleft}     \item \lipsum[10]     \noindent\begin{flushleft}     Heading     \end{flushleft}     \item \lipsum[10]     \end{enumerate}     \end{document}


title: Permission problem when installing package from tlmgr

text: I migrated from `MiKTeX` on windows to `TeXLive` in ubuntu. At first I installed `texlive-full` from ubuntu repositories but I realized that I wanted to install more packages which isn't very convenient when there is no `tlmgr`. So I decided to remove`TeXLive` and reinstall it from TUG. The installation had no problems. Then I added the following lines to `bashrc`               export PATH=$PATH:/usr/local/texlive/2014/bin/i386-linux     export PATH=$PATH:/usr/local/texlive/2014/tlpkg/      and then I run a simple document and it seemed to be working. I tried to install a package(i.e. `units`) through `tlmgr` but I don't have permission to write to a specific directory. What I did was to use `sudo` privilleges but again no luck. My effort is the following               thanos@thanos-laptop:~$ tlmgr install units     You don't have permission to change the installation in any way,     specifically, the directory /usr/local/texlive/2014/tlpkg/ is not writable.     Please run this program as administrator, or contact your local admin.     thanos@thanos-laptop:~$ sudo tlmgr install units     [sudo] password for thanos:      sudo: tlmgr: command not found      I also tried through the relevant tlmgr's gui but I get the same message as above. What can I do to install packages through `tlmgr`?


title: Arrow heads as plot marks

text: I would like to draw a plot and put arrow heads pointing in the direction of the plot instead of marks. My first idea was to use the `quiver` option from `pgfplots` by duplicating and stagering the columns of my data table. I was not succesful with thisowever. In addition, this require some additional manipulation and is not very felxible if it becomes, for instance, necessary to draw only a fex arrows. My second idea was to get the nodes and draw a tikz path. i thought about `nodes near coord` but did not find any means to retreive the nodes names outside the `axis` command. I ended up with the following code using decoration (as in this question) :               \documentclass{article}     \usepackage{pgfplots}           \usetikzlibrary{decorations.markings}          \begin{document}     \pgfplotstableread {%     1 0     0.9424764947 0.07142857143     0.8807513856 0.1428571429     0.814278019 0.2142857143     0.7433146111 0.2857142857     0.6680059078 0.3571428571     0.5883915727 0.4285714286     0.5054583078 0.5     0.4203175805 0.5714285714      0.3328127843 0.6428571429      0.2485549667 0.7142857143      0.1694124286 0.7857142857      0.09704848952 0.8571428571      0.03951561078 0.9285714286      0 1     }\table     \begin{tikzpicture}[baseline, trim axis left, trim axis right]       \pgfplotsset{ref/.style={mark=o}}       \begin{axis}         \addplot[ref] table[x index=0, y index=1] {\table}         [postaction={decorate, decoration={markings,             mark=between positions 1/15 and 1 step 1/15 with {\arrow[red,line width=.5pt]{>};}           }}]         ;            \end{axis}     \end{tikzpicture}          \end{document}      Here is the result: ![red arros should take place of circles](http://i.stack.imgur.com/C8SB1.png) The problem is to get the red arrows where the circles are. How could this be done? * * * The two following question are related but my main problem her is more to get the nodes from the table input. Decorate path with arrows at nodes How to decorate a path with arrows at certain coordinates? * * * The following question that I asked to solve a different problem happens to be applicable here: naming-the-nodes-of-nodes-near-coords Indeed, once the node are names, some `pgf` path can be traced to link them.


title: Appendices and their page numbers missing from TOC

text: I have been struggling with this for several hours. I am working on a Latex template for my PhD dissertation and the appendices don't show in the TOC with page numbers. Here is my code and I can give you the specification files if you need them: Thanks!               %dissertation.tex     \documentclass[12pt]{article}     \usepackage{packages/thesis}     \usepackage{caption}      \captionsetup{singlelinecheck=false}     \usepackage{multirow}      \usepackage{epigraph}     \setlength\epigraphwidth{8cm}      \setlength\epigraphrule{0pt}     \usepackage{etoolbox}      \makeatletter      \patchcmd{\epigraph}{\@epitext{#1}}{\itshape\@epitext{#1}}{}{}      \makeatother      \usepackage{pdfpages}      \begin{document}     \startprelim     \author{FirstName LastName}     \title{This is my title}     \doctype{dissertation}     \degree{Doctor of Philosophy}     \major{Computing and Information Systems}     \publicationyear{2013}     \advisor{Dr. SupervisorFirstName SupervisorLastName}     \committeeMember{Dr. ABC1 XYZ1}     \committeeMember{Dr. ABC2 XYZ2}     \committeeMember{Dr. ABC3 XYZ3}     \committeeMember{Dr. ABC4 XYZ4}     \maketitlepage          \makecopyright          \abstract{     This is my abstract     }     \clearpage     \acknowledgments{     I would like to thank .................     }     \listofcontentsfigurestables     \startbody     \input{chapters/Introduction.tex}     \startbib     \bibliography{dissertation}     \finishbib     \input{chapters/appendix.tex}     \end{document}                    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     %appendix.tex     \appendix     \addtocontents{toc}{\parindent0pt\vskip12pt APPENDICES} %toc entry, no page #          \chapter{APPENDIX A: Appendix A}     This is the first appendix               \chapter{APPENDIX B: APPENDIX B}     This is the second appendix          \clearpage               %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     %introduction.tex     \bodychapter{INTRODUCTION}     \label{Intro}          This is my introduction           \clearpage


title: Does anything like a "pdfXeLaTeX" exist?

text: I have generally been using `pdfLaTeX` to typeset my documents. I recently heard about `XeTeX` which supposedly is the same thing, except has better support for things like unicode and fonts. Is there a tool which operates as XeTeX does but which allows a direct PDF translation, rather than going through intermediate stages?


title: How do I make "gather" object, place its self in the text, the same way as an equation object?

text: Assuming the amsmath package is installed. I found a difference between the way that an equation object and a gather object is embedded within the text. If an equation is beneath a line of text that does not extend as far to the right as the equation. Then the equation is placed higher up for asphetic reasons like so: * * *               Hello there this is some text, blah, blah,       blah, blah                     a+b=c            Some more text, hello        * * * Or if the text goes beyond the equation, like so: * * *               Hello there this is some text, blah, blah,     blah, blah, blah, blah                        a+b=c          Some more text, hello        * * * If gather is used, then the gather object is placed a certain distance beneath the last line of text, regardless of it's extent across the page. I would like gather to align equations in the same way as equation objects but this isn't as simple as using a permanent vspace{} command to push text up as it's need will be depend on the final layout of the text. Can any one help? maybe this is even a bug to be resolved. by the ams group. Thanks I have prepared an example latex document here: http://pastebin.com/EUKyNi2A


title: Fontspec and Ligatures

text: I understand that if I typeset using `Lualatex` or `Xelatex`, and include the following in the preamble:               \usepackage{fontspec}     \setmainfont{XYZ}      Then system-wide non-latex fonts can be used (substituted for XYZ in the above). My question is, by using `fontspec`, does this mean that ligatures and kerning, that make LaTeX document otherwise of a higher 'typeset' quality would be essentially discarded for the convenience of getting access to a larger number of fonts? Does this mean that in the above, one is essentially settling for 2nd best?


title: Table with figure (include caption for figure) side by side.

text: I want to create a table with image on side by side. The problem I encountered is the alignment of the table. Can anyone fix the code to make the Lambda_1 and Lambda_2 become the caption for each figure accordingly? And if i don't include the & beside `1.~Real unequal eigenvalues of same sign &`   Then the left border of the table will not be connecting to the title border. I know the problem is with `\begin{tabularx}{\textwidth}{|XX|}`. Can somehelp give me guide to change the code to make a better alignment? I want to change the column of the figure to 1, and include the figure side by side instead of 2 columns.   I insisted to use tabularx is because i did not want the table to move over the margin of my document.               \begin{table} [H]     \begin{tabularx}{\textwidth}{|XX|}     \hline         \multicolumn{2}{|c|}{Collection of Figures of 2D Phase Portraits} \\ \hline          1.~Real unequal eigenvalues of same sign & \\              \includegraphics[height=1.8in]{2D/rup.png}        $\lambda_1 > \lambda_2 > 0$ & \includegraphics[height=1.8in]{2D/run.png}$\lambda_1 > \lambda_2 < 0$  \\      \hline     \end{tabularx}     \end{table}       ![enter image description here](http://i.stack.imgur.com/JTlaG.png)


title: Making \[ and \] behave as \begin{gather*} and \end{gather*}

text: I'm trying to redefine `\\[` and `\\]` so that they behave as `\begin{gather*}` and `end{gather*}`. I've been doing this using `\DeclareRobustCommmand`; however, when I try to compile the following minimal program:               \documentclass[10pt,oneside,a4paper]{article}     \usepackage[english]{babel}     \usepackage{amsmath}     \let\equation\gather     \let\endequation\endgather     \DeclareRobustCommand{\[}{\begin{gather*}}     \DeclareRobustCommand{\]}{\end{gather*}}     \begin{document}     \[ 2+2=4 \]     \end{document}      I get this error:               ! LaTeX Error: \begin{gather*} on input line 9 ended by \end{document`.      This does not happen if I replace `gather` with `equation`. What is going on here?


title: Peerage titles in the author field in BibTeX

text: I am citing "The Theory of Sound" by John William Strutt (more commonly known as Baron Rayleigh). How should his name appear in the author field in BibTeX? Currently I have:               @book{Ray94,             title = "The Theory of Sound",             author = "John William Strutt, Baron Rayleigh",             year = 1894,             publisher = "Dover"      }      It is necessary to include his title as most people know him simply as Rayleigh. Although not critical, if I were to use the alpha style, how would I make this entry appear as [Ray94]?


title: Options for ``footmisc'' package

text: Is there a command for `footmisc` similar to `siunitx`'s `\sisetup` for setting options in another way than via `\usepackage[<options>]{footmisc}`? I can't find anything in the manual.


title: What is going on with all these Times clones?

text: So, I've been loading Times in my documents via the following method               \usepackage[T1]{fontenc}     \usepackage{mathptmx}     \usepackage{tgtermes}      So as to get the math support of `mathptmx` but the better kerning and such of `tgterms`. However today I noticed there are a TON of Times packages on CTAN: Times: Package: `mathptmx`. "The font that is actually provided is URW Nimbus Roman (A Times clone). An enhanced version is available with the TeX Gyre Termes font." Nimbus Roman: Package: `nimbus`. "Nimbus Roman is a clone of Times. An enhanced version is available with the TeX Gyre Termes font." TeX Gyre Termes: Package: `tgtermes`. "The TeX Gyre Termes family of fonts is based on the Nimbus Roman No9 L family, but heavily extended." So I thought that `mathptmx` was a version of `nimbus` with better math support, and `tgtermes` was an upgraded version without math support. Oddly when I tried to load `nimbus` in TeXLive 2012 it couldn't find the sty file. Then today I find: New TX: packages `newtxtext`,`newtxmath`. "The text font provided is URW Nimbus Roman (A Times clone). The package is mostly for math support. The fonts are enhanced versions of the TX Fonts. Other implementations of the Times font is mathptmx and TeX Gyre Termes." Loading these I can't see a visible difference from the way I had been loading my fonts. There is obviously a difference though as I wound up with one line getting shoved to a new page with New TX and not my old font packages. Then to cap it all off, I find there is a `times` package that isn't listed in the LaTeX Font Catalogue. I seem to recall hearing it was outdated? Can someone explain the relationships of all these packages?


title: Using ligatures from libertine for roman numerals in pdftex

text: I am using the Linux Libertine font through the libertine-legacy package with pdftex. This font contains nice ligatures for roman numerals, e.g., `\LibertineGlyph{tworoman}` gives ii. Now I want to use those glyphs whereever they occur with counters, e.g., page numbers in frontmatter, and `part` numbering. In the end I would like to have an analogue to `\roman`, say `\ligroman`, that I can feed to `\pagenumberstyle` etc.


title: When will LaTeX3 be released?

text: I'm surprised how difficult it was to google the answer to this question, so now I'm asking in here: When is LaTeX3 likely to be released? How far is development at this moment? And what is currently being worked on?


title: Arbitrary Ragged Curves for Phase Diagram in TikZ

text: How can one draw a good looking curved random line extending along a diagonal connecting two arbitrary nodes in TikZ? (Also, how do I add arrowheads like I would usually do, or do I have to create an arrowhead at a point and superpose it over the endpoint, separately?) (There are some idea on how to do a good looking vertical line or horizontal line in this topic Drawing randomly ragged lines in technical drawings . Please use the MWE from there.               \documentclass[12pt]{article} % SIZE OF FONT AND ITS LAYOUT ON EACH PAGE.     \usepackage[top = 1in, bottom = 1in, left = 1in, right = 1in]{geometry}     \usepackage{amsmath, booktabs, graphicx, setspace}     \usepackage[usenames,dvipsnames]{xcolor}     \usepackage{tikz,tkz-graph,tikz-cd} % DIAGRAMS.     \usetikzlibrary{arrows, calc, decorations.markings}     \usetikzlibrary{calc}          \newcommand\irregularline[2]{%         let \n1 = {(rand*(#1)} in         +(0,\n1)         \foreach \a in {0.1,0.2,...,#2}{         let \n1 = {rand*(#1)} in         -- +(\a,\n1)         }}  % #1=seed, #2=length of horizontal line          % This is code for a horizontal random line that I like.     % How to make this sort of line connect two arbitrary points,      % and perhaps, how to make it curve in a natural way?          \begin{document}          \begin{figure}[h]     \begin{center}     \begin{tikzpicture}[scale=1.8,auto]          % replace with randomly ragged line that curves           \draw [-,line width=1pt] (0,0) edge (3,3);          \end{tikzpicture}     \end{center}     \caption{CAPTION GOES HERE}         \label{fig:FIGURE NAME GOES HERE}          \end{figure}     \end{document}      (Using How to draw a irregular circle(shape)?, and this, I am trying to make phase diagrams instead of drawing them by hand.)


title: First chapter after List of Tables starts on page 2, should be 1

text: My LOT spans two pages - one is numbered ix the other 1. The first chapter starts with page number 2. I would like my first chapter to start with page number 1. So my contents page looks like this **Contents** _List of Figures .......... viii_ _List of Tables ............. ix_ _Introduction ................ 2_ _Aims & Objectives ............7_ and so on..........               \documentclass{report}          \usepackage{blindtext}          \begin{document}     \pagenumbering{roman}          \blindtext          \tableofcontents     \listoffigures     \listoftables     \pagenumbering{arabic}          \blinddocument          \begin{figure}     Foo bar     \caption{My figure}     \end{figure}          \begin{table}     \caption{My table}     Foo bar     \end{table}          \end{document}


title: Tikz: How do you label a circled node to the left without collisions?

text: I'm trying to label a circled node in Tikz with some text to the left. The problem is it is colliding with the circle. For example I have something like:               \begin{tikzpicture}     \node[draw,circle] at (0,0) {A};     \node[left] at (0,0) {010101};     \end{tikzpicture}      This causes the binary to overlap the node A. What is the best way to fix this?


title: A monospace or typewriter font with matching math support

text: This might sound odd but I really like the old typewriter books from the pre- TeX era (the type of books that inspired Knuth to make TeX!). I don't know the exact reason, maybe its because I am very fond of typewriter and monospace fonts or just a nostalgia for old math books from 1960s ... Anyway I am looking for typewriter font with matching math support. It is easy to change the text of a document into a typewriter font however the math font never matches and that results in an ugly combination. An example which I really like is  **Moments, monodromy, and perversity: a diophantine perspective** by Nick Katz. I contacted the author and unfortunately he has not done this in TeX. The fonts are **bit fonts** created by William Fulton back in the 1980s. So what are your suggestions?


title: ConTeXt MarkIV: Pagenumber in layer not working

text: I want to put pagenumber and navigation into a layer, but the counter for pagenumber is not working. Here's a minimal example:               \usemodule[graph]     \usesymbols[nav]     \setupsymbolset[navigation 1]     \setupinteraction[page=yes]          \setuppapersize[letter][letter]     \setuplayout[backspace=0.38\makeupwidth,leftmargin=0.3\makeupwidth,rightmargin=0pt,header=4em,footer=4em,top=0em,topspace=1em,topdistance=0em,bottom=0em,bottomspace=1em,bottomdistance=0em,width=34em,height=64em]          \startreusableMPgraphic{navegacionfondo}     path p,q ;     p := (0,0) -- (60mm,0) .. (65mm,5mm) .. (60mm,10mm) -- (0,10mm) ;     q := (0,1mm) -- (59mm,1mm) .. (64mm,5mm) .. (59mm,9mm) -- (0,9mm) ;     fill p--cycle withcolor red ;     draw q withcolor white withpen pencircle scaled .5pt dashed evenly ;     \stopreusableMPgraphic          \setupbuttons[state=start,frame=off]          \defineoverlay[fondonav][{\reuseMPgraphic{navegacionfondo}}]          \definelayer[navegacion][x=0mm,y=8mm,width=65mm,height=10mm,state=repeat]     \setlayer[navegacion][hoffset=30mm]{\framed[background=fondonav,frame=off]{\button{\color[white]{\symbol[previouspage]}}[PreviousPage]\hskip.5em\pagenumber\button{\color[white]{\hskip0.5em\symbol[nextpage]}}[NextPage]}}     \setupbackgrounds[page][background=navegacion]          \starttext     \dorecurse{10}{\input knuth \page}     \stoptext      But pagenumber counter is not working: all pages are numbered as 1. Am I doing something wrong? Thank you so much!


title: Clearing the footer inside tabular data after some of the content

text: The `europecv` package, which I'm using to typeset my CV, seems to use the `longtable` package for the whole content and this presents a problem for me. I have no direct access to the tabular commands, I only type my content between the `\begin{europecv}` and `\end{europecv}` environment. After some content I have a `\newpage` and what I want is for all pages after this to have no footer at all. If I try to place a `\fancyfooter{}`, it doesn't work. I have realized that this does not work because it's being placed inside the tabular data. I must place it outside it, that means, outside the `\begin{europecv}` and `\end{europecv}` environment. But that will only clear the footer on the last page, which is not necessarily the only page after the `\newpage` mentioned above. I want to clear all of them after that command. I tried to do the same thing, a document spawning multiple pages but without tabular data (without using the `europecv` environment... This time it worked as expected because the `\fancyfooter{}` command was not inside a tabular environment. I have no clue how to do what I want or if it's even possible. Any ideas? **Not working example:**               \documentclass[helvetica,narrow,totpages]{europecv}     \usepackage{graphicx}     \usepackage{lipsum}     \begin{document}         \begin{europecv}             \ecvsection{Section}             \ecvitem{Item}{\lipsum[1]}             \ecvitem{Item}{\lipsum[2-3]}             \newpage % I want to clear the footer on all pages AFTER this command             %\fancyfoot{} % If used here, clears the footer on ALL pages             \ecvsection{Section}             \ecvitem{Item}{\lipsum[4-5]}             \ecvitem{Item}{\lipsum[6]}             \ecvitem{Item}{\lipsum[7]}         \end{europecv}         \fancyfoot{} % If used here, clears the footer on the LAST page only     \end{document}      **Working example:**               \documentclass[helvetica,narrow,totpages]{europecv}     \usepackage{graphicx}     \usepackage{lipsum}     \begin{document}         \lipsum[1-10]         \newpage         \fancyfoot{} % Clears the footer on all pages AFTER \newpage (last 2 in this example)         \lipsum[1-10]     \end{document}      This works because the content is not inside the `europecv` environment and thus is not inside any table (looking at the `europecv` package, the `\newenvironment{europecv}` uses `longtable`. Full document example: http://pastebin.com/ExF7W5LC


title: Tikz and enlarging part of the draw.

text: I plotted a number of curves on the same figure using tikzpicture. but i am having a problem with enlarging part of the curves on the same figure. I searched for that and i found something similar on this website http://www.texample.net/tikz/examples/difference-quotient/ but, i tried everything and it is not working, does anyone know anything i can do to fix the problem?


title: How to rotate a LaTeX ylabel in gnuplot?

text: I would like the `ylabel` on a gnuplot to be the same as `$\omega_2(R_{3,n})$` appears in LaTeX. But if I use the following, it overlaps with the plot itself.               set ylabel "\\omega_2(R_{3,n})"      One way to get around this problem is to rotate the ylabel by `90` degrees. How can that be done?


title: Customizing itemize in beamer?

text: I have the following in the preamble :               \setbeamercolor{enumerate item}{fg=red}       \setbeamercolor{itemize item}{fg=red}       \setbeamertemplate{itemize item}[triangle]       \newenvironment{myenumerate}{\begin{enumerate}[(1)]}{\end{enumerate}} .       Itemize works as intended when it is not called inside any other environment, however if I have an itemize inside `myenumerate`, I see blue circles instead of red triangles as the symbols marking the item elements: how can I get red triangles instead?


title: Will LaTeX3 have proper support for hooks? Does LuaTeX?

text: Tex has powerful support for extensions triggered by events happen in generating output, by running one of six token lists appropriately:                \everycr \everydisplay \everyhbox \everymath \everypar \everyvbox      They're used with effect in such places as Latex classes, but they are much less useful than they could be, because the `\everyfoo={\t\o ks}` assignment simply wipes the current value, making it rather tricky to use them by authors of packages and documents. Emacs' Elisp has a widely understood technology for registering and deregistering code to run at events, namely hooks. The LaTeX3 Project's `expl3` library offers supports for managing token lists, and LuaTeX augments TeX's event handling mechanism with a set of Lua callbacks. Are these the beginning of proper support for event-driven TeX code, as usable as hooks? Is this a priority for developers on these projects?


title: Defining new split environment with reduced spacing

text: this is my first stackexchange question so apologies for any bad etiquette. I'm writing a document in double spacing. I don't wants the gaps between the lines of a multi-line equation to be that large, though. I know that I can make this change globally by using               \setlength{\jot}{<size>}      ...but this also affects other spacings that I don't want to change, e.g. in an xymatrix or when using \gather I also know that I can keep the changes local by using               \begingroup\setlength{\jot}{<size>}\begin{split}     ...     \end{split}\endgroup      ...but there is a very large number of split equations in my document and I'd prefer not to make it even messier by doing this. I tried to define a new environment to effect this local change, like so               \newenvironment{Split}%     {\begingroup\setlength{\jot}{-3pt}\begin{split}}%     {\end{split}\endgroup}      But when I try to implement this in the document I get the following error message: > LaTeX Error: \begin{split} on input line xxx ended by \end{Split}. I've had success in defining new environments before so I don't know what I'm doing wrong this time. MWE:               \documentclass{article}          \usepackage{setspace}     \doublespacing          \usepackage{amsmath}          \newenvironment{Split}%     {\begingroup\setlength{\jot}{-3pt}\begin{split}}%     {\end{split}\endgroup}          \begin{document}          \begin{equation}     \begin{split}     y&=x+x\\     &=2x     \end{split}     \end{equation}          \begin{equation}     \begin{Split}     y&=x+x\\     &=2x     \end{Split}     \end{equation}          \end{document}


title: Use data from other multiple data files with calculations

text: This answer shows nicely how to use data from another file while plotting data using `\addplot table`. However, when trying to access the `create on use` column using `\thisrow{}`, an error occurs. For example, simply plotting the column `newZ` below works, but dividing `Y` by `newZ` fails with the following error:               ! Package PGF Math Error: Unknown function `newZ__column_not_found'      I'd guess that this is somewhat expected because the pgfplots manual states `\thisrow` can only be used with _"an existing column or one for which a column alias exists"_ , but it says nothing about automatically created columns. So, is there another way to do calculations with columns from another file that I'm not aware of?               \documentclass{article}      \usepackage{filecontents}     \begin{filecontents}{data1.dat}     X  Y     1  3     2  2     3  1     \end{filecontents}     \begin{filecontents}{data2.dat}     Z     4     7     2     \end{filecontents}          \usepackage{pgfplots,pgfplotstable}     \pgfplotstableset{         create on use/newZ/.style={             create col/copy column from table={data2.dat}{Z}         }        }             \begin{document}     \begin{tikzpicture}     \begin{axis}     \addplot table [y=newZ] {data1.dat};     % This fails:     %\addplot table [y expr=\thisrow{Y} / \thisrow{newZ}] {data1.dat};     \end{axis}     \end{tikzpicture}     \end{document}


title: Error in start node of path

text: Getting a strange error where any path from a certain node starts in the incorrect place. The red paths are identical in code. The image on the left is what I expect, but the image on the right is what I'm getting. Any ideas what's causing this? ![enter image description here](http://i.stack.imgur.com/BKhjw.png) Right picture code (cropped the picture heavily, so there is a lot not shown):               \documentclass{article}          \usepackage{tikz}     \pagestyle{empty}          \begin{document}          %\input{../tikz-setup.tex}     \usetikzlibrary{shapes, arrows, calc, positioning}          % Define block styles     \tikzstyle{state}   = [ rounded rectangle,                              draw,                              text centered,                              minimum height=3em                            ]     \tikzstyle{test}    = [ diamond,                              draw,                              shape aspect=2,                              inner sep = 0pt,                             text width = 7em,                             text centered                           ]     \tikzstyle{action}  = [ rectangle, draw,                             text width=8em,                             inner sep = 5pt,                              minimum height=5em                           ]     \tikzstyle{data}    = [ trapezium,                              draw,                              trapezium left angle=60,                              trapezium right angle=120pt,                             minimum height = 6em,                              text width = 5em                            ]     \tikzstyle{line}    = [ draw, -triangle 45 ]               \begin{tikzpicture}[align = flush center, font = \small]         % Place nodes         \matrix [row sep = 1.2em] (mtrx)         {         \node [state] (a) {Lorem ipsum}; \\              \node [test] (b) { dolor sit amet, con}; \\              \node [test] (c) {sectetur adipiscing elit. In bibendu}; \\              \node [test] (d) {m ante laoreet ante semper convallis. Pellentesque habi}; \\              \node [action] (e) {tant morbi tristique senectus et netus et malesuada fames ac turpis eg}; \\              \node [test] (f) {estas. Pellentesque vitae dia}; &             \node [test] (g) {m magna. Pellent}; \\              \node [test] (h) {esque placerat sa}; \\              \node [action] (i) {pien sed nisl faucibus tempor. Nullam nec quam nulla, se}; &         \node [action] (j) {d pulvinar lacus. Aenean sit amet tellus erat, non temp}; &         \node [action] (k) {or justo. Phasellus ege}; \\              \node [test] (l) {stas iaculis nisi vel ve}; &         \node [test] (m) {stibulum.Mauris id fa}; \\              \node [state] (n) {cilisis massa. C}; &         \node [state] (o) {urabitur feugiat v}; \\              &          &         \node [state, yshift=-2em] (p) {estibulum convallis \\ . Nulla dictum tinc}; \\         };              % Draw edges         \path [line] (a) -- (b);              \path [line] (b.east) -- node [above,very near start] {Yes} +(8.5,0) |- ( $(k)!0.85!(p)$ );         \path [line] (b.south) -- node [right] {No} (c);              \path [line] (c.south) -- node [right] {Yes} (d);             \path [line] (c.east) -| node [above,very near start] {No} (g);              \path [line] (d.south) -- node [right] {Yes} (e);         \path [line] (d.west) -- node [above] {No}  +(-1,0) |- coordinate[midway] (e) (f);              \path [line, red] (e) -- (f);             \path [line] (g) -- node [right] {Yes} (j);              \path [line] (k) -- (p);     \end{tikzpicture}          \end{document}      Left picture code:               \documentclass{article}          \usepackage{tikz}     \begin{document}     \pagestyle{empty}          \usetikzlibrary{shapes, arrows, calc, positioning}          % Define block styles     \tikzstyle{state}   = [ rounded rectangle, draw,                              text centered,                              minimum height=3em                            ]     \tikzstyle{test}    = [ diamond,                              draw,                              shape aspect=2,                              inner sep = 0pt,                             text width = 7em,                             text centered                           ]     \tikzstyle{action}  = [ rectangle, draw,                             text width=8em,                             inner sep = 5pt,                              minimum height=5em                           ]          \tikzstyle{line}    = [ draw, -triangle 45 ]          \begin{tikzpicture}[align = flush center, font = \small]         % Place nodes         \matrix[ row sep=1.2em] (mtrx)          {         \node [test] (f) {fLorem ipsum dolor sit amet}; \\              \node [test] (h) {hLorem ipsum dolo}; \\              \node [action] (i) {iLorem ipsum dolor sit amet, consectetur adipiscing elit.}; \\              \node [test] (l) {lLorem ipsum dolor};\\         };              \path [line,red] (i) -- (l);         \path [line] (h.west) -- node [above] {No}  +(-1,0) |- coordinate[midway] (i) (l);     \end{tikzpicture}               \end{document}      Don't really understand how I'm getting this error.


title: When is it appropriate to use \outer?

text: `\outer` is a strange beast. Any control sequence declared `\outer` cannot be used as either the parameter text or replacement text of a macro, at least if the control sequence is declared `\outer` at the time the parameters are tokenized or the definition is scanned, respectively. That is, both the definition of `\bar` and the use of `\baz` are errors:               \outer\def\foo{asdf}     \def\bar{\foo}     \def\baz#1{#1}     \baz\foo      However, changing this slightly to               \def\bar{\foo}     \def\baz#1{\outer\def\foo{asdf}#1}     \baz\foo     \bar      so that `\foo` is only declared `\outer` after the definition of `\bar` and after the parameters to `\baz` have been parsed, compiles correctly. I could see requiring a macro to appear only in vertical mode, but `\outer` doesn't do that. In fact, `\outer` control sequences can appear in any of vertical, internal vertical, horizontal, restricted horizontal, math, and display math modes.               \outer\def\foo{asdf}     \foo% vertical mode          foo \foo% horizontal mode          \hbox{\foo}% restricted horizontal mode          \vbox{\foo}% internal vertical mode          $\foo$% math mode          $$\foo$$% display math mode     \bye      So given all of that, what is the utility of `\outer`?


title: matching comment environments, no longer able to comment out text

text: I have a long LaTeX document and I am trying to comment out lines of text using `\begin{comment} text \end{comment}` and while compiling the document I have the interpreter giving out:               <recently read> \@savsf      l.429 \end{comment}     ? q      Prompting me to put some input, I know only press `q`. Now when I add new matching comment environments, the text does not get commented out but remains there. Is it possible that I have unpaired tags, or that there are interleaved environments conflicting? And how can I find the problem and untangle it? (UPDATE: the text I try to comment out had inside it commented sections. When these sections are removed by cutting them out the comment environment works. Using the package **verbatim** )


title: Biblatex @ONLINE reference not printing all information

text: I'm using Biblatex and having trouble getting an @ONLINE to cite correctly in the bibliography. Here's the preamble:               \documentclass[a4paper,12pt]{scrartcl}     \usepackage[style=authoryear]{biblatex}     \usepackage{hyperref}     \addbibresource{soarBib}      I have an entry in my bibliography that looks like this:               @ONLINE{Google5gram,         author = {Alex Franz and Thosten Brants},         organization = {Google Machine Translation Team},         url = {http://googleresearch.blogspot.com/2006/08/all-our-n-gram-are-belong-to-you.html},         title = {All Our N-Gram are Belong to You},         month = aug,         year = {2006},     }      After `\printbibliography`, the citation gets printed without any url in the bibliography, like this: "Alex Franz and Thosten Brants. Google Machine Translation Team." How do I get it to print the date and URL?


title: Remove TOC before just one section (Beamer)

text: I have a Beamer presentation, in which I use the `\AtBeginSection` command to specify that I want to show the overview of the presentation with the current item highlighted. However, in one single case, I _don't_ want to. I know I could just insert the overview frame before every single slide except this one, but I'd prefer if there was a nicer way to do this, like with a `\NotAtThisBeginSection` command...


title: File size difference between XeLaTeX and pdfLaTeX

text: When working with MacTeX 2010, I noticed that XeLaTeX generates files considerably smaller than pdfLaTeX on the same input. Even with the small example               \documentclass[11pt]{article}     \begin{document}     Test     \end{document}        pdfLaTeX generates a pdf-file around 10KB, while XeLaTeX produces one around 2KB. With larger projects, I was still able to reduce the size by a factor of 2 with no noticable changes in the output. Does anyone know what causes the difference in the file size?


title: Does there exist any command / symbol to display i++

text: `$i++$` doesn't look nice. Any better way?


title: How to "glue" the caption to the table (stay on the same page as the table)

text: Normally, my captions stay with the table   (cannot remember my exact example - couldn't replicate it - but I am now using the `booktabs` package anyway so let us take this one just in case this one is easy to solve...) Can you see any reason here why the caption may not be "glued" to the table?   I want the caption to definitely stay on the same page (and in this case above the table)               \documentclass[a4paper,10pt]{scrartcl}     \usepackage{booktabs}     \usepackage{array}     \usepackage{dcolumn}     \begin{document}     \begin{table}     \caption{Investment overview}\label{tab:Invest}     \centering     \begin{tabular}{@{\raggedright}p{4.5cm}@{\kern-30pt}*{6}{>{\small}r}@{}}\toprule     \textit{Alternative 1}  &  Time of     & Year\\[-2pt]                             &  investment  & 2006 & 2007 & 2008 & 2008 & 2010 \\ \bottomrule     \end{tabular}     \end{table}     \end{document}


title: Telling LaTeX where to compile to from inside your document?

text: Here is a hypothetical scenario. I want to make a beamer presentation and a handout for that presentation. I start my file as follows:               \newif\ifhandout     \handouttrue     \ifhandout     \PassOptionsToClass{handout}{beamer}     \fi     \documentclass{beamer}          \ifhandout     \usepackage{pgfpages}     \pgfpagesuselayout{4 on 1}[a4paper,landscape,border shrink=5mm]     \fi      Now, what I'd like to add to this conditional-fu is a command that tells LaTeX to compile to `handout-\jobname.pdf` if the relevant statement is true. Is this sort of thing possible, or can I only do this from the command line? I've not added the beamer tag because this is not a question about beamer. I couldn't think of any other tags that this might fall under.


title: Environment for greyed-out (or otherwise color) text

text: Sorry for being as clueless as the last times I asked but also having done no research because I have to finish this overhead presentation for tomorrow... Is there a good way to create an environment which makes all text inside it colored in a certain color? I have tried:               \newenvironment{rrpptt}{\textcolor{gray}}{\textcolor{black}}      But this doesn't yield what I want... It gives a compile error and just puts the word "rrpptt" inside the text. What am I doing wrong? Of course I do have the color package loaded. I also have the beamer documentclass - is that a problem? Oh, and I don't care about \textcolor being lowlevel and stuff - I don't have footnotes and sudden page changes, so I would be content with the way \textcolor normally works, if it would do so.


title: expl3 outputting sequence of plists

text: Suppose, I have a sequence of 2 plists:               (     {           1 => 2,           3 => 4     },     {           5 => 6,           hello => 8     }     )      I am traversing through the sequence and want to output only plists, containing the key "hello". I created this code:               \documentclass{article}     \usepackage{expl3}     \begin{document}     \ExplSyntaxOn     %sequence definition     \clist_new:N\l_my_clist          %plist1 definition     \prop_new:N \prop_list_a     \prop_put:Nnn \prop_list_a {1}{2}     \prop_put:Nnn \prop_list_a {3}{4}          %plist2 definition     \prop_new:N \prop_list_b     \prop_put:Nnn \prop_list_b {5}{6}     \prop_put:Nnn \prop_list_b {hello}{8}          %putting plists to sequence     \clist_set:Nn \l_my_clist {\prop_list_a, \prop_list_b}          %output loop     \clist_map_inline:Nn \l_my_clist     {       \prop_get:NnNTF #1 {hello} \var       {         \prop_map_inline:Nn #1         {           [##1] ~[##2]\\         }       }     }     \ExplSyntaxOff     \end{document}      It outputs this: ![enter image description here](http://i.stack.imgur.com/RZNbJ.png)   1. Why did the comma appear?    2. How to get rid of it?   3. How to use `\var` in `\prop_get:NnNTF`? What was it designed for?


title: Error with \edef and inner \def,

text: I seem to lack understanding the combination of an `\edef` and the definition of a macro inside another definition. This is probably best shown with an example. The following MWE (I know it is not really useful so minimal) does not work:               \documentclass{article}     \def\mymacro#1{%         \def\do##1{##1}%         #1%     }          \begin{document}         \edef\savedValue{\mymacro{argument}}%         savedValue: \savedValue     \end{document}      The error is in the `\edef` line and states `Illegal parameter number in definition of \savedValue`. I thought that the `\edef` would expand `\mymacro{argument}`, which first expands `\def\do##1{##1}` to nothing leading to the output `argument`, which is then saved into `\savedValue`. Without the line `\def\do##1{##1}` this seems to work as explained, but with that line I get the mentioned error. What is the problem here? Using `xparse`'s command does work               \documentclass{article}     \usepackage{xparse}     \NewDocumentCommand{\mymacro}{m}{%         \def\do##1{##1}%         #1%     }          \begin{document}         \edef\savedValue{\mymacro{argument}}%         savedValue: \savedValue     \end{document}      and gives the expected output: ![result](http://i.stack.imgur.com/PLhAR.png) What is the actual difference to using `\def`?


title: noindent fail in resume mode

text: I'm writing a resume and want to add a line under each section name:               \documentclass[line]{res}          \begin{document}     \renewcommand{\namefont}{\LARGE \bf}          \name{Tianlun Zhang}     \address{owenzhang1990@gmail.com}     \address{86-15921814184}     \address{ifthiskills.me}               \begin{resume}          \section{OBJECTIVE}      {\rule[3pt]{\textwidth}{1pt}}} \\     ...     \end{resume}     \end{document}      But the line has a indentation which I can't suppress with `\noindent`, any ideas?


title: Fill a path but drawing just a part of it at the same time

text: I want to fill the angular sector and just draw the curve part of it in one command. I tried with move to command but it doesn't work. ![enter image description here](http://i.stack.imgur.com/54C79.png)               \documentclass[tikz,10pt]{standalone}     \usetikzlibrary{calc}          \pgfkeys{/tikz/.cd,       MarkAngleDim/.store in=\MarkAngleDim,       MarkAngleDim=0.5,       MarkDim/.store in=\MarkDim,       MarkDim=2,        }          \newcommand{\MarkAngle}[3][]{%         \foreach \Bn/\An/\Cn in {#2} {%             \pgfmathanglebetweenpoints%             {\pgfpointanchor{\An}{center}}%             {\pgfpointanchor{\Bn}{center}}%             \global\let\AnglA\pgfmathresult ;             \pgfmathanglebetweenpoints%             {\pgfpointanchor{\An}{center}}%             {\pgfpointanchor{\Cn}{center}}%             \global\let\AnglB\pgfmathresult ;                \pgfmathparse{ifthenelse(\AnglA>\AnglB,\AnglA-360,\AnglA)}          \global\let\AnglA\pgfmathresult ;             %################# the faulty path #####################         \path[very thin,#1] (\An) to[move to]             ($(\An) !\MarkAngleDim cm!(\Bn)$)             arc (\AnglA:\AnglB:\MarkAngleDim)                         node[pos=.5] (Angle\Bn\An\Cn) {}             to[move to] (\An) --cycle;     %#######################################################                  \ifnum#3>0             \pgfmathanglebetweenpoints%             {\pgfpointanchor{\An}{center}}%             {\pgfpointanchor{Angle\Bn\An\Cn}{center}}%             \global\let\AnglC\pgfmathresult ;                  \begin{scope}[shift={(\An)}]             \foreach \i [evaluate=\i as \ang                         using \AnglC+2*(\i-#3/2-.5)/\MarkAngleDim]             in {1,...,#3} {%             \draw[very thin] (\ang:\MarkAngleDim cm +\MarkDim pt)                             --(\ang:\MarkAngleDim cm -\MarkDim pt) ;             }             \end{scope}             \fi         }         }               \begin{document}     \begin{tikzpicture}          \coordinate (A) at (0,0) ;     \coordinate (B) at (1,1) ;     \coordinate (C) at (0,-1) ;          \MarkAngle[draw,blue,fill=red!25]{C/A/B}{2} ;          \draw[dashed] (B)--(A)--(C) ;          \node[label=135:A] at (A) {} ;     \node[label=B] at (B) {} ;     \node[label=270:C] at (C) {} ;          \end{tikzpicture}          \end{document}


title: Beamer Frame is fine in Standalone class, but header missing when main is compiled

text: I am able to compile the subfile perfectly well, but the main file deletes the header of the frame. Here is the `standalone` code:                   \documentclass[beamer]{standalone}              \begin{document}              \begin{standaloneframe}\frametitle{Last week we looked at:}         \uncover<+-|alert@+>{         }         \end{standaloneframe}              \end{document}      I have also tried without the `\frametitle` command, and that didn't change anything. In the following, the file "Overview" is the above subfile.                   \documentclass{beamer}         \usepackage{standalone}         \begin{document}         \input{Overview}         \end{document}      In fact the situation is worse than I thought. With the above code, it is now not compiling any pages at all. When I put the following code:                   \documentclass{beamer}         \usepackage{standalone}         \begin{document}         \begin{frame}         \input{Overview}         \end{frame}         \end{document}      it works, but then this would mean I needed a different `standalone` file for each slide.


title: XeLaTeX inside chroot jail

text: I'm using xetex `3.1415926-2.2-0.9995.2 (TeX Live 2009/Debian)`. I'm trying to run xelatex inside chroot jail. I've copied following binaries and directories:               pdftex     bibtex     xdvipdfmx     xelatex          /usr/share/tex-common/       /usr/share/texlive-base      /usr/share/texlive-bin       /usr/share/texmf             /usr/share/texmf-texlive     /usr/share/fonts             /var/lib/tex-common          /var/lib/texmf               /etc/texmf                   /etc/fonts Also I tried to copy another tex binaries (`tex latex pdflatex xetex`) but it's not helped. When I try to compile minimal xelatex sample               \documentclass[a4paper]{article}     \begin{document}     hello world     \end{document} everything is fine in standard environment, but when I try to compile it inside chroot jail I have (pdf file not produced)               Error 32512 (driver return code) generating output;     file simple.pdf may not be valid. If I compile it with `-no-pdf` option everything is fine, `xdv` file produced. When I run `xdvipdfmx -vvv simple.xdv` I have no warnings or errors and even get pdf, but process finished with 139 exit code. What am I doing wrong?


title: Change the name of a bookmark

text: I have long titles for sections in a TeX-Beamer presentation. By default, `hyperref` uses the name of the section for the `pdfbookmark`. This means the bookmark is too long. I would like to use a shorter name in the bookmark. Does somebody know to to do that? Let's say I have               \section{Algorithm to determine firms' entry and exit into the market}      By default the bookmark is the same name of the section, so it will also be long. I would like to have a shorter bookmark, like "Entry and Exit". I don't how to do that.


title: Proper way to align labels with nodes tikz

text: Consider the following code:               \documentclass{standalone}          \usepackage{tikz}     \usetikzlibrary{calc}          \begin{document}     \begin{tikzpicture}          \coordinate (A) at (1,1);     \coordinate (B) at (2,2);          \draw[->] (A) -- (B);          \draw[dashed] (0,0) rectangle (3,3) node (C) {};          \draw [solid] ($(A.south west)-(0,1.5)$) -- ++(0.5, 0) node [label =right:Signalling] {};          \end{tikzpicture}     \end{document}      How can I properly align the end of label, with the edge of rectangle in a automated way? ![enter image description here](http://i.stack.imgur.com/Wo1cP.png)


title: Vertical centering of a title within a box which ignores possible accents

text: I am currently adapting the `\part` command to customize the table of contents as follows [code directly extracted from the `book.cls` class]:               \def\@part[#1]#2{%         \ifnum \c@secnumdepth >-2\relax%           \refstepcounter{part}%           \addcontentsline{toc}{part}{\texorpdfstring{%           \setlength\fboxsep{2pt}%           \noindent\protect\colorbox{ocre!20}{\strut\protect\parbox[c][][c]{\ecart}%           {\color{ocre!70}\bfseries\protect\centering\thepart}}\hskip6pt\colorbox{ocre!40}%           {\strut\protect\parbox[c][][c]{\linewidth-4\fboxsep-\ecart-6pt}{\color{white}%           \protect\centering\MakeUppercase{#1}}}}{#1}}%         \else%     ...      I am not providing the rest of the code which is quite long but the result is shown below: ![enter image description here](http://i.stack.imgur.com/dGSQs.png) It is quite clear that the accented letter `è` affects the vertical alignment of the title within its box. Is there a way to avoid that? I would be happy with a vertical alignment that ignores accented letters. Otherwise, the `\vphantom` command is a possibility.


title: Differences between longtable and xtab

text: I have a pretty simple table that needs to span multiple pages. This seems like a job for either the `supertabular`/`xtab` package or the `longtable` package. The voting on the answers to this question suggest that `longtable` is the preferred package, yet `xtab` is much newer and has been revised since that question was asked. What are the differences between `xtab` and `longtable` and when is one preferable to the other?


title: French internationalisation, override babel default spacing

text: I'm writing my thesis paper in French. In the document I use the name of the `ISO27001:2005` norm name, and by babel conventions this is rewritten as `ISO27001 :2005` with a extra space before the semicolon. The behaviour is expected in all the document but not when I write this name. What is the best way to tell the engine to ignore default formatting rules and write the : without extra space?


title: TikZ calendar: stretching day list to exactly the linewidth

text: I'd like to create a wall calendar where the bottom of each page is a `tikzpicture`, stretching the list of days always to the `\linewidth`, as if it was justified text. How can I set a calendar style that will `xshift` the days just so? I got as far as you can see below, but since `day xshift={0.0322\linewidth}` is fixed, it only works for 31 day months. ![calendar months](http://i.stack.imgur.com/qVKXG.png)               \documentclass[11pt]{article}          \usepackage[showframe]{geometry}          \usepackage{tikz}     \usetikzlibrary{calendar}          \setlength{\parindent}{0pt}     \pagestyle{empty}          \definecolor{gold}{RGB}{199,147,22}          \begin{document}          \raggedright          \makeatletter          \tikzset{       every calendar/.style={         day list right,         day xshift={0.0322\linewidth},         month text={\color{gold}\%mt \%y0},         month label above left,         execute at begin day scope={           \ifdate{Sunday}{\color{red}}         }       }     }          \makeatother          \raggedright          \tikz\calendar[dates=2013-01-01 to 2013-01-last];     \tikz\calendar[dates=2013-02-01 to 2013-02-last];     \tikz\calendar[dates=2013-03-01 to 2013-03-last];     \tikz\calendar[dates=2013-04-01 to 2013-04-last];     \tikz\calendar[dates=2013-05-01 to 2013-05-last];          \end{document}


title: Chemistry molecular structure drawing programs

text: I am looking for chemical molecular drawing packages. There is **mhchem** which basically sets up a structure for including externally generated molecular structures. Also **Chemfig** , which is the closest to a user friendly solution and uses **pgf**. The vast majority of chemists would use **ISISDraw** or other program which has the advantage of being able to name the structure based on IUPAC rules. There is also the brookhaven Protein database which has a file format for large proteins. My question is: Are there any packages that can convert ISISDraw (or similar molecular drawing packages) file formats to pgf or any packages that are closer to ISISDraw than Chemfig


title: latexmk -pvc option breaks when compiling beamer class

text: `latexmk` is the tool I'm using to compile my documents, and the `-pvc` option is the one which is normally on. In this setting, when I save a file which produces a compilation error, then `latexmk` informs that there was an error and the document is not being updated in the viewer (`skim` in my case). Once I correct the problem in the `.tex` file, `latexmk` kicks in again, and resumes its activity. In particular, the open document is refreshed correctly. Problem occurred to me, when I use the setting mentioned above, when trying to compile a `beamer`'s class document (and if it makes any difference, using the `beamerposter` package). In this case, when compiling a file with a mistake in it, then `latexmk` will report the problem and the document won't update as before. However, once I correct the problem in the source, `latexmk` recompiles, and produces the correct `.pdf` file, but the link to the open document breaks, and I have to reopen it manually... In other words, the document which was open, is dead and doesn't "see" the updated version which was created after the correction of the mistake. Do you have any idea how to handle this? Where to look for a solution? # Edit: I have just realized that the same problem happens also when compiling sources not using `beamer`. The cause this time might be the `tikz` graphics. Any ideas? # Edit 2 - Possible way out: `Skim` offers the `revert` option, which seems to fix the broken linkage between `skim` and the damaged/badly-processed pdf. Can you think of a way to turn this clue into a full solution?


title: Reduce tab spacing

text: How can I reduce the spacing after I have used `&` in tabular?               \documentclass{article}     \usepackage{tabularx}          \begin{document}          \begin{tabularx}{\textwidth}{X X}     \textbf{Greetings} & Refer to counter parts as Mr., Ms. or Mrs \\     \textbf{Gift Giving} & Gift giving is practised but not necessary. Taking someone out is also considered a gift. Gifts are generally given to close a deal or to indicate some celebration. \\     \textbf{Dressing} & Business dressing is a must in the business place. It is recommended that one dresses more conservatively than their counterpart. In the east this a must but in the west, the dressing is relatively casual. \\     \textbf{Tipping} & Tipping not necessary but if the service is good then it should be used. \\     \textbf{Time Management} & Time is extremely important in America. Therefore, it is important that one arrives on time. Do not be surprised if the client is discontent due one's tardiness.      \end{tabularx}          \end{document}      The main issue is that there is too much spacing after `&`, how can I fix that? ![enter image description here](http://i.stack.imgur.com/ujfqS.png)


title: How to provide a definition for symbols in a LaTeX math equation?

text: Say I have an equation:               x = R + E      What's the best way to provide a definition for R and E? Is there a way to include a line under the equation saying what the variables mean (i.e. a "where" clause)? Example:               x = R + E     where R is Racoon, E is Elephant


title: Mixing uppercase, lowercase, and small caps?

text: **The problem** I want to follow The Economist's example for annoyingly mixed-case words: letterspace them, capitalize the first letter according to normal rules, and set all other capitals as small capitals. And I'd like it to be as transparent as possible – one command, `\ac`, in the normal case and another, `\Ac`, when capitalized. **My attempt** In XeLaTeX, `\ac` can be implemented with a simple font change. But `\Ac` needs to apply that font change to all but the first letter. I found something similar (the `\Upeach` command) in a 2007 TUGboat article by Peter Wilson and modified it a little.               \documentclass[12pt]{standalone}     \usepackage{fontspec}          % Define \ac     \newfontface\acface[Letters=UppercaseSmallCaps,LetterSpace=6]{Minion Pro}     \newcommand{\ac}[1]{{\acface #1}}          % Define \Ac     %%% Non-working code removed; see the TUGboat article for the original     %%% Or egreg's answer for a much better solution      **The actual questions**   1. Is there a simpler way to do this than butchering `\Upeach`?   2. Can the butchered `\Upeach` be modified to stop it from eating spaces?


title: Dedicated symbol for [...] in quotations?

text: I would like to use [...] in quotations to indicate a part which was not included. Just entering `[...]` does not render it perfectly in my opinion. Is there a special way of inputing said symbol? Thanks.


title: Best practice: define BibLateX/BibTeX entry with title in native language and in English

text: I am preparing a paper. Some of the documents are written in Portuguese. My supervised suggested me to include in the bibliography the title translated to English and the title in Portuguese as well, and mention at the end the native language of the document. Is there a good way to do this, using `biblatex` or `bibtex`? A general entry for biblatex is below.               @misc{author1:year,     author={Author 1 and Author 2},     title={Title in english, Title in Portuguese},     howpublished={Institution},     month=dec,     year=2010,     url={some_place_internet.pdf},     urldate={2013-05},     note={Document in Portuguese},     }


title: Too many errors while trying to create a table

text: \begin{table}[h]     \begin{tabular}{ c c}     \hline      Hypothesis & Belief & Plausibility \\ \hline      Null & 0 & 0 \\      Red & 0.2 & 0.6 \\       Green & 0.15 & 0.6 \\       Blue & 0.15 & 0.55 \\      Red or Green & 0.45 & 0.85 \\      Blue or Red & 0.4 & 0.85 \\      Green or Blue & 0.4 & 0.8 \\      Red or Green or Blue & 1 & 1 \\       \caption{Belief and Plausibility using mass function}      \end{tabular}      \end{table}      I want to create a three columned table but i keep getting following errors               ! Misplaced \noalign.\hline ->\noalign{\ifnum 0=`}\fi \penalty \@M     \futurelet \@let@token \LT@@h... \hline          ! Misplaced \omit.\multispan ->\omit\@multispan H          ! Extra alignment tab has been changed to \cr.<template> \endtemplate     H          ! Extra alignment tab has been changed to \cr.<recently read>     \endtemplate Hypothesis & Belief &          ! Extra alignment tab has been changed to \cr.<recently read>     \endtemplate Null & 0 &          ! Extra alignment tab has been changed to \cr.<recently read>     \endtemplate Red & 0.2 &          ! Extra alignment tab has been changed to \cr.<recently read>     \endtemplate Green & 0.15 &          ! Extra alignment tab has been changed to \cr.<recently read>     \endtemplate Blue & 0.15 &          ! Extra alignment tab has been changed to \cr.<recently read>     \endtemplate Red or Green & 0.45 &          ! Extra alignment tab has been changed to \cr.<recently read>     \endtemplate Blue or Red & 0.4 &


title: Bitcoin symbol in LaTeX

text: How do I write the Bitcoin symbol in LaTeX?   * Abusing Unicode, "B⃦" can be used in normal text files. I'm not a fan of writing non-ASCII in LaTeX, as you can run into all sorts of encoding issues.   * There does not seem to be a package defining it.   * I could use TikZ to roll my own version, but then that would probably not scale well (telling from past attempts at similar things). So: what do you think would be the best way of writing the Bitcoin currency symbol in LaTeX? For comparison, here's the Bitcoin wiki entry for the symbol.


title: How to get whole tex in the output document file with actual output?

text: Consider the following LaTeX document               \documentclass{article}     \usepackage{enumerate}     \begin{document}          \begin{enumerate}[(a)]          \item Here is the 1st line.     \item Here is the 2nd line.          \end{enumerate}          \end{document}      It gives the following output > (a) Here is the 1st line.   >  (b) Here is the 2nd line. However, I'd like to get the following output               \documentclass{article}     \usepackage{enumerate}     \begin{document}          \begin{enumerate}[(a)]          \item Here is the 1st line.                   (a)  Here is the 1st line.     \item Here is the 2nd line.                   (b) Here is the 2nd line                      \end{enumerate}          \end{document}      That is the left side of the columns will contain the whole text and the right side of the columns will contain the original output of the TeX code. Is there any way to do this?


title: Left bar in the margin of an environment with figures/tables

text: I am writing a document with theorems and proofs. Since, some reader may not be interested by the proofs I want to highlight them so they can be skipped easily. The best idea I came up with is to put a bar in the left margin of the proof (if you have any better ideas I am interested). The problem is that some proofs may take more than one page and contain figures and/or tables. Currently I found a solution in a previous post which uses the package framed and the command \leftbar. It works for several pages but not for figures and tables.               \documentclass{article}          \usepackage{xcolor}     \usepackage{framed}          \renewenvironment{leftbar}[1][\hsize]     {%         \def\FrameCommand         {%             {\color{black}\vrule width 0.5pt}%             \hspace{0pt}%must no space.             \fboxsep=\FrameSep\colorbox{white}%         }%         \MakeFramed{\hsize#1\advance\hsize-\width\FrameRestore}%     }     {\endMakeFramed}           \newenvironment{proof}[1][Proof]{\leftbar\begin{trivlist}\item[\hskip\labelsep {\bfseries#1}]}{\end{trivlist}\endleftbar}          \def\fact{It is  practically a big lie  that LaTeX makes  you focus on       the content without bothering about the layout.}          \begin{document}          \begin{proof}       \fact     \end{proof} % Works          %\begin{proof}     %  \fact     %  \begin{figure}     %    \centering My figure     %    \caption{Test figure}     %  \end{figure}     %\end{proof} % Does not works          \end{document}      I don't really understand how environments work. Do you know if it's possible to make this work for proofs which include tables or figures? (if you know why the bar starts one line before the proof and finish one line after I am also interested but it is not my main concern) Thanks in advance.


title: text in different arrows

text: maybe someone can help me to get text in arrows and textboxes below I have just get the arrows like this...               \begin{tikzpicture}     \draw[thick,black](0cm,0) -- ++(0:3cm) -- ++(45:1cm)  -- ++(135:1cm)-- ++(180:3cm)-- ++(270:1.4cm);     \draw[thick,black] (4cm,0) -- ++(0:3cm) -- ++(45:1cm)  -- ++(135:1cm)-- ++(180:3cm)-- ++(315:1cm)-- ++(225:1cm);     \draw[thick,black] (8cm,0) -- ++(0:3cm) -- ++(45:1cm)  -- ++(135:1cm)-- ++(180:3cm)-- ++(315:1cm)-- ++(225:1cm);     \end{tikzpicture}      i want to get text in that arrows (maybe there is a shape for node?) and text as a bulleted list below the arrows. ![enter image description here](http://i.stack.imgur.com/vhf8u.jpg)


title: Hyperlinks in bibtex bibliography

text: I am using `BibTex` to write the bibliography of my document. I also want that when I cite some of my references an hyperlink appears in the pdf so as when one click it it will redirect to the bibliography item that corresponds. The problem is that with my actual setting next to the bibliography entries a series of numbers appers which redirect to every page where I have a reference of that particular entry. For example: `[9] John C. Strikwerda. Finite Difference Schemes and Partial Differential Equations. Society for Industrial and Applied Mathematics, Philadelphia, 2004. 16, 19, 20` Notice the numbers 16,19, 20 at the end. Those are in fact references to the pages where I referenced that particular book. I would like them to disappear. The references in the pages appear as `[9]` where the number 9 is a reference to the bibliography entry. This is my desired setup. A sample to reproduce my issue:               \documentclass[a4paper,11pt,twoside]{book}          \usepackage[pagebackref=true]{hyperref}     \hypersetup{         colorlinks=true,                linkcolor=blue,                   citecolor=green,                filecolor=magenta,               urlcolor=blue               }          \begin{document}      %citation      An interesting book \cite{vnewmann}           % biblio      \bibliographystyle{plain}      \bibliography{trashbib}          \end{document}      With the `trashbib.bib` file as follows               @article{vnewmann,        author={{V}on{N}ewmann, {J}. and {R}ichtmyer, {R}. {D}.},        title={{A} {M}ethod for the {N}umerical {C}alculation of {H}ydrodynamic {S}hocks},        journal={{J}ournal of {A}pplied {P}hysics},        volume={21},        year = 1950,        pages = {232-237}      }      Anyone knows how to get rid of the numbers (with references to the text) next to the bibliography items while keeping the references to the bibbliography in the text?


title: PDF in documentclass{book}

text: How can I make the PDF of my book written under `\documentclass{book}` open in PDF with on the left sidebar a table of contents and clickable markers for chapters? I see it with books generated using Tufte's method and Springer textbooks.


title: adjust $\cdot$ in math expression

text: I would like to obtain a better expression of this               $$     Au(\cdot)=\nabla_{(\cdot)}\left{\frac{\cdot}{|\cdot|^{3}}\,1_{B(0,r)}(\cdot)\right}.     $$      where `$\cdot$` refer to a variable `$x$`. More precisely, I want to place the `$\cdot$` just in the middle in the `\frac` command and adjust properly the size of the parenthesis in all `$(\cdot)$`.


title: Dashes (any kind) not showing up in table

text: I'm making a table that contains bond lengths and angles, and I can't get any dashes to show up to indicate a bond. I have typed (ETA entire table code):               \begin{table}[hbp]     \caption[Selected bond lengths and angles of \ce{(Ph4P)2[Mn(Cl4Cat)3]}]{Selected bond lengths and angles of \ce{(Ph4P)2[Mn(Cl4Cat)3]}~\cite{Ruiz200076}. symmetry code: I = $x, y, -z+1/2$}     \centering     \begin{tabular}{ccccc}     \hline \hline     \multicolumn{2}{c}{\emph{Bond Lengths (\AA)}} && \multicolumn{2}{c}{\emph{Bond Angles (deg)}} \\     \hline     Mn(1)––O(11) & 1.892(6) && O(11) –– Mn(1) –– O(12) & 85.6(2) \\     Mn(1) –– O(12) & 1.885(5) && O(11) –– Mn(1) –– O(21) & 90.8(2) \\     Mn(1) –– O(21) & 1.877(6) && O(11) –– Mn(1) –– O(11\textsuperscript{I}) & 92.9(4) \\      &  && O(11) –– Mn(1) –– O(12\textsuperscript{I}) & 90.8(2) \\      &  && O(11) –– Mn(1) –– O(21\textsuperscript{I}) & 175.1(3) \\      &  && O(12) –– Mn(1) –– O(21) & 92.7(2) \\      &  && O(12) –– Mn(1) –– O(12\textsuperscript{I}) & 174.8(3) \\      &  && O(12) –– Mn(1) –– O(21\textsuperscript{I}) & 91.2(2) \\      &  && O(21) –– Mn(1) –– O(21\textsuperscript{I}) & 85.7(3) \\     \hline          \end{tabular}     \label{tbl:x-raybondsMn}     \end{table}      And what I get is: ![enter image description here](http://i.stack.imgur.com/LaCk1.png) Why are the dashes gone? Using - or --- also doesn't show up. Taking the spaces out from between results in no space at all showing up (i.e. Mn(1)--O(11) comes out as Mn(1)O(11) ) This is super annoying since I literally copy/pasted the table formatting from another table where dashes ARE showing up, replaced it with the manganese info, and poof all dashes are gone.


title: Alignment base on two reference nodes

text: I am new to `tikz`. If I have two nodes `[A]` and `[B]` as:               [A]                 [B]      How do I align `[C]` so that it is vertically below `[A]` and horizontally left of `[B]` such that:               [A]          [C]    [B]      without resorting to absolute positioning?


title: Missing \cr inserted

text: I have a problem with the tabu environment. When I compile my code starting my longtable with                    \documentclass{srrreprt}          \usepackage{tabu}          \usepackage{longtable}          \begin{document}          \begin{center}          \begin{longtabu}to \linewidth{l c l l l c c r}          \caption{some caption \label{tab:some label}}\\          \hline          Some long text & Some long text & Some long text & Some long text & Some long text & Some long text & Some long text & Some long text\\          Some long text & Some long text & Some long text & Some long text & Some long text & Some long text & Some long text & Some long text\\          \hline          \end{longtabu}          \end{center}          \end{document}      all is fine, except the table runs off the right side of the page To try and stop this I changed my code to                     \documentclass{srrreprt}           \usepackage{tabu}           \usepackage{longtable}           \begin{document}           \begin{center}           \begin{longtabu}to \linewidth{X[-1,l] X[-1,c] X[-1,l] X[-1,l] X[-1,l] X[-1,c] X[-1,c] X[-1,r] }           \caption{some caption \label{tab:some label}}\\           \hline           Some long text & Some long text & Some long text & Some long text & Some long text & Some long text & Some long text & Some long text\\           Some long text & Some long text & Some long text & Some long text & Some long text & Some long text & Some long text & Some long text\\           \hline           \end{longtabu}           \end{center}           \end{document}      Doing this, however, I get the following latex error > >     "! Missing \cr inserted, >     <inserted text>\cr \end{longtabu} >     !Misplaced \cr inserted, <inserted text>\cr \end{longtabu}" >   Has anyone had a similar problem or knows a solution I would like to know. This is driving me mad :( Cheers


title: Using TiKz to draw cobordisms

text: As @Heidar says in the comments I see there is now a package for doing the cobordism diagrams (Topological Quantum Field Theory diagrams with pstricks or tikz) and I encourage others to use it as well. But my specific question is about a particular failed syntax in TikZ that I would still like to know the answer to. * * * I am writing my own package for drawing cobordisms. One of the features I want to implement is to have the option of coloring the cobordisms. One way of achieving that is to draw a continuous path tracing the outline of the cobordism, e.g. a pair of pants. Let me give you an example of something I want to draw: ![Cobordism](http://i.stack.imgur.com/trGlo.png) One way of drawing this is as follows (save the genus):                   \begin{tikzpicture}[thick]         \filldraw[fill=green!25, fill opacity=0.8]           (1,2.6) .. controls (0.75,2.6) and (0.75,3.4) .. (1,3.4) ..            controls (3,3.4) and (3,4.3) .. (6,4.3) ..            controls (3.25,4.3) and (3.25,3.5) .. (6,3.5) ..            controls (4.8,3.5) and (4.8,2.5) .. (6,2.5) ..            controls (6.25,2.5) and (6.25,1.7) .. (6,1.7) ..           controls (3,1.7) and (3,2.6) .. (1,2.6);          \draw[dashed]            (1,2.6) .. controls (1.25,2.6) and (1.25,3.4) .. (1,3.4);          \draw              (6,4.3) .. controls (5.75,4.3) and (5.75,3.5) .. (6,3.5);          \draw            (6,2.5) .. controls (5.75,2.5) and (5.75,1.7) .. (6,1.7);          \end{tikzpicture}      But this is not as general as I would like it. For one thing I would like to able to have one command that helps me draw any cobordism from _n_ circles to _m_ circles. My question is then: How to get tikz to draw a continuous path tracing the outline of the cobordism? My initial attempt was to use the `\foreach` command:                  \newcommand{\outline}[2]{          \pgfmathsetmacro{\in}{#1}          \pgfmathsetmacro{\out}{#2}          \pgfmathsetmacro{\intop}{2*\in - 4}          \pgfmathsetmacro{\intopp}{2*\in - 2}               % Connected piece          \draw            (0,0) .. \foreach \a in {0,2,...,\intop}{              controls (-0.25,\a) and (-0.25,\a+1) .. (0,\a+1) ..               controls (0.5,\a+1) and (0.5,\a+2) .. (0,\a+2) ..            } controls (-0.25,\intopp) and (-0.25,\intopp+1) ..             (0,\intopp+1);        }      When I try to compile it I get `! Undefined control sequence. \pgfutil@reserved@c ->\tikz@curveto@auto`. I would be very grateful for any helpful suggestions.


title: Understanding xcolor color mixing model

text: I fail to understand the color mixing of `xcolor`. I want to have a lighter and a darker version of a color defined as               \definecolor{BlueLUH}{cmyk}{1.0,0.7,0,0}      My approach of lighter and darker is this one               \colorlet{LightBlue}{BlueLUH!20!white}     \colorlet{DarkBlue}{BlueLUH!80!black!20}      which according to the docs is replaced internally to               \colorlet{LightBlue}{BlueLUH!20!white!white}     \colorlet{DarkBlue}{BlueLUH!80!black!20!white}      Now I wonder what is actually calulated, bcause I get the same for Light and Dark, as can be seen in the following screenshot: ![enter image description here](http://i.stack.imgur.com/O80yr.png)


title: Indenting listings in Auctex

text: I'm using the `listings` package to typeset some Python code. I don't seem to be able use the tab key in Auctex mode to indent my code within listings. I'm new to both Emacs and Auctex, but the only solution extensive googling turned up was to use M-i. Unfortunately this is less than ideal since e.g. unindent with backspace does not work. Could anybody help me get the tab key to work as expected within `listings` within Auctex?


title: In array env how to add extra space between two columns and how to have enumeration across rows?

text: In array env,   1. how to add extra space between two columns?   2. how to enumerate acrossrows? e.g. ![enter image description here](http://i.stack.imgur.com/0c5DQ.png)


title: listings package - including textfile - tabstops wrong

text: In MikTex with `\usepackage{listings}`, when including a textfile into a pdf- document using               \lstinputlisting[]{textfile.xt}      then ocassionally, the display of the tabstops in the created pdf-file doesn't match the display of the tabstops in the original textfile (when opened with an editor such as notepad). This looks rather ugly. What can be done about it? PS: I don't know how to upload pictures here, otherwhise I would append an example to make it clearer.


title: What does \right. do?

text: I have tried searching for `\right.` in many places but have not been able to decipher its magical properties. Many texts use the arcane symbol but none that I have found explain it. The composition of the symbol with its elusive period, has also made the search problematic. Please help!


title: Implementing Moving Graphics from Computational Software Packages

text: I know that you can implement movies into your LaTeX document, but I wanted to know is there a way to implement moving graphics after source code is compiled in Matlab? This questions can really become a wiki and can be broadened to other systems such as: Maple, Mathematica, and so on.


title: What is the implication of the warning in the fontspec manual with respect to babel and LuaTeX?

text: In the `fontspec` manual, there is a section on LuaTeX that states: > `babel` _The`babel` package is not really supported!_ Especially Vietnamese, > Greek, and Hebrew at least might not work correctly, as far as I can tell. > There’s a better chance with Cyrillic and Latin-based languages, > however—`fontspec` ensures at least that fonts should load correctly, but > hyphenation and other matters aren’t guaranteed. Under XeTeX, the > `polyglossia` package is recommended instead as a modern replacement for > `babel`. What are the technical implications of this? Should I be afraid of anything?


title: Display FASTA File in LaTeX

text: Is there a proper way to show a FASTA file in LaTeX? So far I tried `$`'s or `listings` and TeXshade but this does not seems to work.


title: When should math be upright?

text: Is there any standards for when math is supposed to be upright? E.g. The `f` in `f(x)` is in italics but `cos` in `\cos x` is upright. As I see it, both are functions? `\int f(x) \, dx` OR `\int f(x) \, mathrm{d}x`? `P(Y=y)` OR `\text{P}(Y=y)` OR `p(Y=y)` OR `\text{p}(Y=y)` for probabilities?


title: how to apply style to complete row or table in tabulars

text: How can I define a style (font, size, color etc) for a whole row, without repiting the command before each cell? Note that I do not want to use tabu package. I want to know to what extent this can be done without tabu. (nothing against tabu, I want to demonstrate the usage of standard tabular env. and in contrast tabu). Also I do not want to add new columntypes. The principle shall be applicable to any table in a complex document, without inventing columntypes for each column in each table. This example shows that only the first cell after the setting of styles is changed.               \documentclass[]{scrbook}           \usepackage[       dvipsnames, % Load a set of predefined colors        table,      % Load the colortbl package     ]{xcolor}          \usepackage{float}          \begin{document}          \begin{table}[H]     %  --- table -->       \renewcommand{\arraystretch}{1.4}       \centering       \sffamily       \rowcolors{1}{gray!15}{white!100}%       % <------------     \begin{tabular}{lll}     \hline     %  --- thead -->     \rowcolor{gray!25}     \small     \rmfamily     % <------------        header &        header &        header \tabularnewline     \hline     %  --- tbody -->     \tiny\slshape     % <------------     content & content  & content \tabularnewline     content & content  & content \tabularnewline     content & content  & content \tabularnewline     \hline     \end{tabular}     \end{table}     \end{document}


title: Too wide subfigures

text: I try to place to figures side by side, as can be seen below the resulting figures are to wide, they expand over the right document border. Do I have to take the gap into account when sizing the images, and if so how do I do it, so that I don"t have to adjust if I globally change the gap size? ![overset image](http://i.stack.imgur.com/Epu9c.png) MWE: (Fancyhdr is used to show tha actual width of the main text area)               \documentclass{report}     \usepackage{caption}                            %we base the subfigures on this     \usepackage[list=on]{subcaption}                %we base the subfigures on this     \usepackage{floatrow}                           %subfigures     \usepackage[demo]{graphicx}     \usepackage{adjustbox}                          %limit graphics sizes          %floatrow setup     \floatsetup{style=ruled,footposition=caption,capposition=bottom, heightadjust=object}   %make graphics look like booktables     \floatsetup[table]{style=plain,footposition=bottom}     \floatsetup[subfigure]{style= plain, heightadjust=object, valign=t}     \DeclareCaptionSubType[alph]{figure}     \captionsetup[subfigure]{labelformat=brace,justification=centerlast}          \usepackage{fancyhdr}     \pagestyle{fancy}     \renewcommand{\headrulewidth}{0.4pt}     \renewcommand{\footrulewidth}{1.0pt}          \makeatletter     %\renewcommand\fps@figure{!htb}     \setlength\@fptop{0pt}      \makeatother     \begin{document}     \begin{figure}[t]         \centering         \ffigbox[\FBwidth]{         \begin{subfloatrow}             \ffigbox[.5\Xhsize]{\caption{cap1}}{\includegraphics[width=.5\Xhsize]{}}             \ffigbox[\Xhsize]{\caption{cap2}}{\includegraphics[width=\Xhsize, height=5cm]{}}         \end{subfloatrow}}         {\caption{Tile network}}     \end{figure}     \end{document}