title: Setting up multiple-page table with table notes in apa6 document with longtable, threeparttable and threeparttablex

text: I am working on an `apa6` document and need to place a multiple-page table with table notes (not footnotes). I thought the best way to achive that is using `longtable` `threeparttable`and `threeparttablex` packages. However in the `apa6` documentation it is said that threeparttable is loaded automatically, and about `longtable`: > longtable: If you must use long tables (exceeding one page in length) try > this option [of apa6 doc cls, see MWE - entne] (but it may not work in all > contexts). Do not load longtable yourself because of precedence requirements > with the endfloat package. Copy the file APAendfloat.cfg from the “config” > folder of your apa installation to the working folder of your document (not > in your texmf tree), and rename it to endfloat.cfg so that endfloat will > recognize it. The supplied APAendfloat.cfg file will also be necessary in > conjunction with rotating package (and its \sideways command) to produce > rotated tables. I followed these instructions. Nothing is said about `threeparttablex` there, though. Now, the code I built results in the table itself (with notes) being set up correctly, but not where it should be placed in the document. It is placed at the very end of it. I figured out that this depends on the `endfloat.cfg` I copied in the directory following the instructions above (see block quote above). If I delete it from the directory, the table is in correct position. Also, if I, against instructions, load `longtable` not as a class option, but as a regular package, the table is in correct position, too, wether `endfloat.cfg` being in the directory or not. Here is my working example:               \documentclass[man,12pt,a4paper,noextraspace,donotrepeattitle,longtable]{apa6} % 12 pt., doppelter Zeilenabstand usw.          \usepackage[latin1]{inputenc} % für ä,ö,ü,Ä,Ö,Ü,ß usw.          \usepackage[english,ngerman]{babel}          \usepackage[T1]{fontenc}      % für exakte Darstellung von Umlauten wie Ä          \usepackage{lipsum}           % Dummy-Text     \setlipsumdefault{8}          % Standard-Einstellung: Verwendung nur eines Lipsum-Paragraphs (in diesem Fall des achten)          \setlength{\LTleft}{0pt}      % linksbündige Tabellen (longtable)          \usepackage{environ}          \usepackage{threeparttablex}               %+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ von apa6.cls automatisch geladene Packages     % booktabs, etoolbox, lmodern, threeparttable                    %+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Scriptsize (ca. 8pt) Für Anmerkungen in Tabellen     \makeatletter      \g@addto@macro\TPT@defaults{\scriptsize}      \makeatother     %+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++          \title{Anxiety}     \shorttitle{ABM}     \renewcommand{\rheadname}{Kolumnentitel}     % Running head übersetzt          \author{\null Peter Pan}            \affiliation{     \null     Universität          Fachbereich      }             \abstract{Theoretischer Hintergrund}                         \begin{document}          \maketitle          \newpage{\section{Methode}}          \appendix     \section{Wortpaare}          \begin{ThreePartTable}          \begin{TableNotes} % <— here: TableNotes instead of tablenotes          \textit{Anmerkungen.} Schriftgröße 8pt \lipsum          \end{TableNotes} % <— also here: TableNotes instead of table notes          \begin{longtable}{l r r @{\hskip 0.5in} l r r}           % @{\hskip 0.5in} stellt den Abstand zwischen den entsprechenden Spalten ein (in 1 inch=2.54cm)          \toprule          \multicolumn{3}{c}{Liste 1} & \multicolumn{3}{c}{Liste 2} \\   \midrule          krankheitsassoziiert & \% & WL & neutral & \% & WL \\[0.5ex]   \midrule          \endfirsthead          \caption*{Wortpaare (Fortsetzung)} \\          \toprule          \multicolumn{3}{c}{Liste 1} & \multicolumn{3}{c}{Liste 2} \\   \midrule          krankheitsassoziiert & \% & WL & neutral & \% & WL \\[0.5ex]   \midrule          \endhead          \midrule          \endfoot          \bottomrule          \insertTableNotes          \endlastfoot          Schlaganfall          &  5.53           &     12        &   Schreibtisch                &       7.30        &   12    \\     Hirntumor             &  0.25       &        9      &   Klappstuhl                  &       0.21        &   10      \\     Leberversagen         &  0.07       &     13        &   Beistelltisch               &       0.07        &   13      \\     Magentumor          &  0.01     &       10      &   Schlafsofa                  &       0.03    &   10      \\     Knochentumor          &  0.02       &       12      &   Schlafsessel                &       0.02    &   12      \\     Lungenentzündung      &  2.19           &       16      &   Kleiderschrank          &       1.25        &   14      \\       Prostatakrebs         &  0.86       &       13      &   Kronleuchter                &       0.54        &   12      \\     Kammerflimmern      &  0.17         &       13      &   Bettvorleger                &       0.14        &   12      \\     Herzversagen          &  1.69           &       12      &   Bilderrahmen                &       0.77        &   12      \\     Tuberkulose         &  1.59         &       11      &   Küchentisch                 &       0.89        &   11      \\     Brustkrebs          &  3.45         &       10      &   Garderobe                       &       3.63        &    9      \\     Infektion             &  3.83           &        9      &   Schublade                       &       5.08        &    9      \\     Kehlkopfkrebs         &  0.14       &       13      &   Kleiderhaken                &       0.13        &   12      \\     Keuchhusten         &  0.32         &       11      &   Fensterbrett                &       0.44        &   12      \\       Blasenkrebs         &  0.10         &       11      &   Wandschrank                 &       0.16        &   11      \\     Arterienverkalkung  &  0.17         &       18      &   Handtuchhalter          &       0.07    &   14      \\     Nierenversagen      &  0.50         &       14      &   Kerzenständer               &       0.52        &   13      \\     Blutvergiftung      &  0.34         &       14      &   Küchenschrank               &       0.36        &   13      \\     Diabetes              &  5.99           &        8      &   Teppich                         &       7.74        &    7      \\     Epilepsie             &  0.91           &        9      &   Sitzkissen                  &       0.47        &   10      \\       Darmkrebs             &  1.19       &        9      &   Bettdecke                       &       0.57        &    9      \\      Hautkrebs             &  1.17           &        9      &   Barhocker                       &       0.53        &    9      \\     Herzinsuffizienz      &  0.21       &       16      &   Fernsehsessel               &       0.26        &   13      \\     Vorhofflimmern      &  0.18         &       14      &   Schaukelstuhl               &       0.23        &   13      \\     Blutkrebs             &  0.39       &        9      &   Tischdecke                  &       0.32        &   10      \\     Herzinfarkt         &  6.58         &       11      &   Fernseher                       &    12.78      &    9      \\     Typhus              &  0.66         &        6      &   Vitrine                         &       2.14        &    7      \\     Parkinson             &  1.52           &        9      &   Papierkorb                  &       1.21        &   10      \\     Bronchitis          &  1.09         &       10      &   Kopfkissen                  &       0.55        &   10      \\     Tollwut             &  1.18         &        7      &   Matratze                        &       1.56        &    8      \\     Osteoporose         &  1.98         &       11      &   Teppichboden                &       1.08        &   12      \\     Vergiftung          &  1.30         &       10      &   Hängematte                  &       0.74        &   10      \\     Asthma              &  2.49         &        6      &   Laptop                          &       3.97        &    6      \\     Hepatitis             &  2.35           &        9      &   Badewanne                       &       2.85        &    9      \\     Bluthochdruck         &  2.36           &       13      &   Waschmaschine               &       2.63        &   13      \\     Leukämie                        &    2.66           &        8      &   Backofen                        &       2.21        &    8      \\     Lungenkrebs                 &  1.45         &       11      &   Spülmaschine                &       0.56        &   12      \\     Hirnhautentzündung  &  0.62         &       18      &   Kaffeemaschine          &       0.99        &   14      \\     Herzstillstand          &    0.97       &       14      &   Tiefkühltruhe               &       0.57        &   13      \\     Vogelgrippe                 &  3.79         &       11      &   Kühlschrank                 &       5.05        &   11      \\       Tumor                               &    2.33           &        5      &   Lampe                               &       3.60        &    5      \\       Hirnblutung                 &    0.34       &       11      &   Bücherregal                 &       0.45        &   11      \\       Demenz                          &    4.05           &        6      &   Sessel                          &       5.15        &    6      \\       Hirnschlag                  &    0.33       &       10      &   Schrankwand                 &       0.21        &   11      \\     Geschwür                        &    0.20       &        8      &   Stehlampe                       &       0.16        &    9      \\       Grippe                          &    8.92         &      6      &   Vorhang                         &       9.02        &    7      \\     Aids                                &    9.60           &        4      &   Stuhl                               &       9.70        &    5      \\     Hodenkrebs                  &    0.16       &       10      &   Wäschekorb                  &       0.18        &   10      \\  [10pt] \midrule     M  & {1.84} & 10.60 & \multicolumn{2}{r}{2.06} & 10.38 \\     SD & {2.24} &  3.15 & \multicolumn{2}{r}{2.93} &  2.39 \\          \end{longtable}          \end{ThreePartTable}          \section{Leitfaden}          \section{Instruktionen}          \end{document}      Edit 1: Well, in the meantime I found this Link about doing multiple-page tables with `ctable`package. But I think there is no possibility to include subcaptions for page continuation with this. Also I am not sure if `ctable`is the best choice for doing all tables (you can't use it with `threeparttable` at the same time due to `\tnote` command). Edit 2: The first problem about table notes is solved thanks to the first answer. But I still encounter a significant problem with the positioning of the table in the document. I edited my explanations above. Second, I edited a modified MWE putting the table in appendix A and add appendix pages B and C after it, so that it doesn't come last in the document. Try the `endfloat.cfg`and package loading options I mentioned above to see what I mean.


title: Use LaTeX to produce Epub

text: I'm asking here a question which was asked on the italian TeX group forum. Is there a way to produce Epub output automatically from a LaTeX source? I should remark that Epub is just HTML+a subset of CSS+some XML for metadata, packed in a ZIP file. So one can settle with the existing tools for HTML conversion. Still something better could be done for Epub output. In the first place, Epub accepts only a subset of CSS. Then it would be nice to produce the file with the metadata from the LaTeX source too. Finally, I'm not sure how it works, but Epub files allow for automatic hyphenation of words. By this I mean that hyphenation can be specified in the Epub file itself, so that a reader will not need to know hyphenation rules. Note that since Epub files are resizable, all possible points of hyphenation must be specified.


title: IEEE style papers to epub

text: Is there a way to compile a paper, written in TeX with the IEEEtran document class, to ePub format so that can be read on a iPad (using the iBooks app, say)?


title: How does one generate epub/mobi eBooks from LaTeX?

text: I can think of a couple of ways:   1. PlasTeX + manual .epub manipulations. See:    Is there a PlasTeX custom-renderer which can produce ePub (or nearly ePub)?   @salimfadhley Did you end up going this way?   2. tex4ht / latex2html / etc. See: LaTeX document to epub or mobi ebook formats (with mathematical formulas)   3. MathJax rendering on `.epub` devices which run js. But what about the fonts? I am not sure which way to go though and I would appreciate any pointers.


title: Something like ebooktex?

text: > **Possible Duplicate:**   >  Use LaTeX to produce Epub Can we generate an ebook in the free open standard EPUB or EPUB-3 directly from LaTeX? I'm using Kile on a Linux system. -- Please refer to: Use LaTeX to produce Epub


title: nested enumeration, skipping items

text: How can I do a nested enumeration with item being skipped, like this:               1) Level 1      A) sublevel A       i) sublevel i        a) sublevel a          2) Level 1 [here are the skipped \item]        a) sublevel a        b) sublevel a          3) Level 1      A) sublevel A        a) sublevel a        b) sublevel a      B) sublevel A       i) sublevel i        a) sublevel a      ii) sublevel i      I tried something like this, unsuccessfully:               \begin{enumerate}       \item       \begin{enumerate}         \begin{enumerate}          ...         \end{enumerate}        \end{enumerate}       \item     \end{enumerate}


title: resizebox fails for tikzpicture when used in conjunction with listing package

text: Here is the example that fails               \documentclass{standalone}     \usepackage{tikz}     \usepackage{float}     \usepackage{listings}     \usepackage{color}     \usepackage{textcomp}     \usetikzlibrary{shapes,positioning}     \begin{document}     \centering     \resizebox{5.00in}{!}{     \begin{tikzpicture}       \node[draw] (PersonLocation Graph) {         \begin{minipage}{.85\linewidth}     \begin{lstlisting}[language=XML,escapechar=!]       <collection name=PersonLocation BiMap>       <edge>        <ref>//collection[name=Locations]/loc[name=XXYY]       </ref>       <ref>//collection[name=Persons]/person[id=4564]         </ref>            </edge>       ...       ...       ...            </collection>     \end{lstlisting}     \end{minipage}          };     \end{tikzpicture}     }     \end{document}


title: How change "Figure #" position in lyx

text: I'm using Lyx, and adding a floating image always add a "Figure X" at the left of the image, I'd like to show this 'caption' (I don't know if is caption or not) under the image, how should I do? What should I add in preamble?


title: Tilde in verbatim

text: I am writing a manual for an R file in which expressions like this are common:               lm.1 <- lm(y ~ x1 + x2)      I will be enclosing code samples in a `verbatim` environment but this doesn't work properly for tildes. To create the above in single line through LaTeX is quite simple               \[\mathtt{lm.1}\; \verb"<-" \;\mathtt{lm(y \sim x1+x2)}.\]      but creating such a line for each instance of the code where a tilde occurs in that line seems inefficient. There are ways to propsectively define tildes, but my code is already written. What is the best way to make tildes appear as they do in the R file (or in Notepad etc)?


title: Use \csname ... \endcsname to compute the starred-version of some command

text: I want to define some commands declaring paired delimiters using the `mathtools` package in LaTeX. For example, `\paren{...}` should result in `\left(...\right)`, whereas `\paren[Big]{...}` should give `\Bigl(...\Bigr)`. The command `\DeclarePairedDelimiter` almost does the job, but I would have to write `\paren*{...}` instead of `\paren{...}` in order to get `\left(...\right)`. So I added the following macro to my preamble:               \usepackage{mathtools}     \usepackage{ifthen}     ...     \makeatletter     \newcommand{\DeclarePairedDelimiterY}[3]{%         \expandafter\DeclarePairedDelimiter\csname#1Temp\endcsname{#2}{#3}         \expandafter\newcommand\csname#1\endcsname[2][leftright]{%             \ifthenelse{\equal{##1}{leftright}}%             {\csname#1Temp*\endcsname{##2}}%             {%                 \ifthenelse{\equal{##1}{normal}}{\csname#1Temp\endcsname{##2}}{}%                 \ifthenelse{\equal{##1}{big}}{\csname#1Temp\endcsname[\big]{##2}}{}%                 \ifthenelse{\equal{##1}{Big}}{\csname#1Temp\endcsname[\Big]{##2}}{}%                 \ifthenelse{\equal{##1}{bigg}}{\csname#1Temp\endcsname[\bigg]{##2}}{}%                 \ifthenelse{\equal{##1}{Bigg}}{\csname#1Temp\endcsname[\Bigg]{##2}}{}%             }%         }%     }     \makeatother      This means, there is an additional command, e.g. `\parenTemp`, which is defined by the macro `\DeclarePairedDelimiter`. The desired commands, e.g. `\paren`, are then given by               \DeclarePairedDelimiterY{paren}{(}{)}     \DeclarePairedDelimiterY{brac}{[}{]}     \DeclarePairedDelimiterY{set}{\{}{\}}     \DeclarePairedDelimiterY{abs}{\lvert}{\rvert}     \DeclarePairedDelimiterY{norm}{\lVert}{\rVert}      While the forms `\paren[big]{...}`, `\abs[Bigg]{...}` etc. are working, `\paren{...}` just gives `...` instead of `\left(...\right)`. So the error in the code is probably in the line                       {\csname#1Temp*\endcsname{##2}}%      which is supposed to expand as `\\#1Temp*{##2}`, e.g. `\parenTemp*{##2}`. Do you have an idea what is going wrong? **EDIT:** Thanks to @Tsuyoshi Ito's answer and this piece of information, I was able to optimize the above code:               \usepackage{mathtools}     \usepackage{etextools}     \usepackage{ifthen}     ...     \makeatletter         \newcommand{\DeclarePairedDelimiterCase}[2]{%             \newcommand#1[1][]{%                 \ifthenelse{\equal{##1}{normal}}%                 {#2}%                 {%                     \ifthenelse{\equal{##1}{big}\OR\equal{##1}{Big}\OR\equal{##1}{bigg}\OR\equal{##1}{Bigg}}%                     {\expandnext{#2[}{\csname##1\endcsname}]}%                     {#2*}%        % standard case using \left and \right                 }%             }%         }         \newcommand{\DeclarePairedDelimiterY}[4][Temp]{%             \expandafter\DeclarePairedDelimiter\csname#2#1\endcsname{#3}{#4}%             \expandnext{\expandnext{\DeclarePairedDelimiterCase}{\csname#2\endcsname}}{\csname#2#1\endcsname}%         }         \newcommand{\DeclarePairedDelimiterXY}[6][Temp]{%             \expandafter\DeclarePairedDelimiterX\csname#2#1\endcsname[#3]{#4}{#5}{#6}%             \expandnext{\expandnext{\DeclarePairedDelimiterCase}{\csname#2\endcsname}}{\csname#2#1\endcsname}%         }     \makeatother      This new version has the following advantages:   * Users may choose the suffix of the "temporary" command on their own; default: Temp.   * Supports both `\DeclarePairedDelimiter` AND `\DeclarePairedDelimiterX`. Usage:   * `\DeclarePairedDelimiterY{name}{leftDelim}{rightDelim}` instead of `\DeclarePairedDelimiter{\name}{leftDelim}{rightDelim}`   * `\DeclarePairedDelimiterXY{name}{N_args}{leftDelim}{rightDelim}{code}` instead of `\DeclarePairedDelimiterX{\name}[N_args]{leftDelim}{rightDelim}{code}` Note that the old version returned `{}` if `\name` was called with a misspelled optional argument. Instead, the new version then gives the "`\left...\right`-case".


title: hyperref warning: Token not allowed in a PDF string (PDFDocEncoding): removing `\OT1\o'

text: I'm starting to learn LaTeX using MiKTeX, but I'm stuck with a problem, that I hope you guys can help me with. Using the document class `memoir` and a bunch of different package for graphics and page setup, I get a warning saying:               Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):     (hyperref)                removing `\OT1\o' on input line 3925.      It seems to be coming from using `\usepackage[pdfauthor={...}]{hyperref}`, but I can't find a solution for the problem. Any ideas?


title: Change Float and equation numbering format?

text: I'm using LyX and book document class, can I change float and equation numbering format to become [Chapter number].[Float number] instead of the default [Chapter number].[Section Number].[Float number]? For better explanation please see this : What I want :               Chapter 1     Chapter title        Float 1.1     1.1 Section 1        Float 1.2        Float 1.3      1.1.1 Subsection 1.1.1        Float 1.4      1.1.2 Subsection 1.1.2     1.2 Section 2        Float 1.5      1.2.1 Subsection 1.2.1        Float 1.6      Default :               Chapter 1     Chapter title        Float 1.0.1     1.1 Section 1        Float 1.1.1        Float 1.1.2      1.1.1 Subsection 1.1.1        Float 1.1.3      1.1.2 Subsection 1.1.2     1.2 Section 2        Float 1.2.1      1.2.1 Subsection 1.2.1        Float 1.2.2      Can I apply this to equation too?


title: Placing the rows in tables

text: I have code for creating a table but I came up with a problem:               \documentclass[11pt, a4paper, twoside]{Thesis} % Paper size, default font size and one-sided paper     \graphicspath{{./Pictures/}} % Specifies the directory where pictures are stored     \usepackage[square, numbers,rotating, comma, fancyhdr,here,longtable ,sort&compress,caption, booktabs,pifont,epsfig,subfig ,enumitem,array,subcaption, cleveref,subfigure ,tabularx, textcomp, placeins,graphicx, url, blindtext,verbose{placeins}]     \begin{document}              \begin{table}[htp]         \caption{The correlation between wireless sensor nodes [25--28--29--31--32] }             \label{tab: cor}                     \centering                         \footnotesize\setlength{\tabcolsep}{2.5pt}                             \begin{tabular}{l@{\hspace{6pt}} *{5}{c}}                                 \toprule                                 \bfseries Node Name & \multicolumn{5}{c}{\bfseries Node name} \\                                 \cmidrule(l){3-5}                                 & 25 & 28 & 29 & 31 & 32                 \\                                 \midrule                                 \bfseries Node 25                                 & 1.00 &    0.96    & 0.92  & 0.97 &    0.97    \\                                 \bfseries Node 28                                 & 0.96& 1.00 &  0.93 &  0.97 &  0.96             \\                                 \bfseries Node 29                                 & 0.92 &    0.93 &  1.00 &  0.92 &  0.94                           \\                                 \bfseries Node 31                                 & 0.97 &    0.97 &  0.92 &  1.00 &  0.96    \\                                 \bfseries Node 32                                      \\                                 & 0.97 &    0.96 &  0.94 &  0.96 &  1.00                  \\                             \bottomrule                         \addlinespace             \end{tabular}         \end{table}          \end{document}      The problem is highlited where the row doesn't placed in a proper place. ![enter image description here](http://i.stack.imgur.com/lqej7.png)


title: concave curve in tikz

text: How can we draw a concave curve like the following one without having any numeric data? ![enter image description here](http://i.stack.imgur.com/GR0sX.jpg)


title: fleqn.clo vs fleqn.sty

text: Please have a look at this MWE:               \documentclass{JHEP}          \usepackage{fleqn}           \author{me}       \abstract{a}      \title{t}          \begin{document}     \begin{equation}     a = b+1     \end{equation}     \end{document}      however it works, i got warning > inputting `fleqn.clo` instead of obsolete `fleqn.sty` What is the difference between .clo and .sty? If i use `fleqn` as a document class option instead of the package, it gets ignored. Why? My last question, i also got warning > You have requested document class JHEP, but the document class provides > JHEP3. using this class. Why is that? `JHEP` here


title: Convert certain newtx fonts to truetype or opentype

text: I've found I like the newtx package because it uses a Helvetica clone for sans-serif characters and a Times clone for the greek letters. How can I generate opentype or truetype versions of these clone fonts? I want to install them as system fonts so other applications can use them. When I look for font files installed with the newtx package, I see that there are font definition files (.fd), font metric files (.tfm, and .afm), but there are only a few font outline files (.pfb). I can't seem to locate the font outline files for 'ntxmi' (italic math font), 'ntxmia' (upright math font), or 'ntxss' (sans-serif font). Where is pdfLaTeX grabbing these font outline files? Once I have them, what do I do with them? In case it matters, I have font forge installed, but I am no expert on it's usage.


title: strange behaviour with glossaries see key

text: I have been baffled by exactly how to use the `see` key of the `glossaries` package. Section 8 of the manual writes: > Note that in this case, the entry with the see key will automatically be > added to the glossary, but the cross-referenced entry won’t. Contrary to what the manual says, specifying a `see` key does not add the automatically add the entry to the glossaries as my MWE shows. I got one of the entry to show up by using `\glssee` within the `description` key, but it fails to generate the text `see also`. I can manually write the cross- reference within the `description` key, but I am curious as to why the `see` key doesn't seem to do what the manual says. What gives?               \usepackage[notree,shortcuts]{glossaries}          \newglossaryentry{Blackbox}     {       name=Blackbox models,       sort=blackbox,       description={--- In system identification, the term \emph{blackbox} modelling refers to the process of modelling a system through non-parametric techniques, without knowledge of physical inner workings of the system, resulting in an \emph{empirical} model}     }     \newglossaryentry{Whitebox}     {       name=Whitebox models,       sort=whitebox,       description={--- In system identification, the term \emph{whitebox} modelling refers to the process of modelling a system through first principles, laws of physics and explicit assumed relationships between the input and output through prior knowledge of the system, resulting in a \emph{mechanistic} model}     }     \newglossaryentry{Mechanistic}     {       name=Mechanistic models,       sort=mechanistic,       description={},       see=[see also]{Whitebox},       nonumberlist     }     \newglossaryentry{Empirical}     {       name=Empirical models,       sort=empirical,       description={\glssee[see also]{Empirical}{Blackbox}},       see=[see also]{Blackbox},       nonumberlist     }     \makeglossaries          \begin{document}     Something about \gls{Blackbox} and \gls{Whitebox}     \newpage     \printglossary[title={Glossaries}]     \end{document}      ![enter image description here](http://i.stack.imgur.com/7OOwN.png)


title: Define style of xtable

text: I want to set the style of tables built with `xtable` by looping on multiple dataframe. I then look for some macro so to set the style in the preamble and not directly within the tabular environment. The table have all the same row names and size. Please consider the following MWE               \documentclass{article}          \newcommand{\multilineC}[1]{\begin{tabular}[b]{@{}c@{}}#1\end{tabular}}          \begin{document}          \begin{table}[ht]     \centering     \begin{tabular}{rlll}       \hline      & column & column & column \\        \hline     All & \multilineC{\tiny{(1216)}\\100\%} & \multilineC{\tiny{(1216)}\\100\%} & \multilineC{\tiny{(1216)}\\100\%} \\        Men & \multilineC{\tiny{(554)}\\91.7\%} & \multilineC{\tiny{(554)}\\91.7\%} & \multilineC{\tiny{(554)}\\91.7\%} \\        Women & \multilineC{\tiny{(662)}\\91.39\%} & \multilineC{\tiny{(662)}\\91.39\%} & \multilineC{\tiny{(662)}\\91.39\%} \\        Age & 0 & 0 & 0 \\        16-19 & \multilineC{\tiny{(318)}\\92.45\%} & \multilineC{\tiny{(318)}\\92.45\%} & \multilineC{\tiny{(318)}\\92.45\%} \\        20-24 & \multilineC{\tiny{(443)}\\91.2\%} & \multilineC{\tiny{(443)}\\91.2\%} & \multilineC{\tiny{(443)}\\91.2\%} \\        25-29 & \multilineC{\tiny{(455)}\\91.21\%} & \multilineC{\tiny{(455)}\\91.21\%} & \multilineC{\tiny{(455)}\\91.21\%} \\        Urbanity & 0 & 0 & 0 \\        City & \multilineC{\tiny{(699)}\\92.42\%} & \multilineC{\tiny{(699)}\\92.42\%} & \multilineC{\tiny{(699)}\\92.42\%} \\        Regional area & \multilineC{\tiny{(326)}\\88.65\%} & \multilineC{\tiny{(326)}\\88.65\%} & \multilineC{\tiny{(326)}\\88.65\%} \\        Small town/Rural & \multilineC{\tiny{(191)}\\93.19\%} & \multilineC{\tiny{(191)}\\93.19\%} & \multilineC{\tiny{(191)}\\93.19\%} \\       \hline     \end{tabular}     \end{table}          \end{document}      which produces ![enter image description here](http://i.stack.imgur.com/9YG2S.png) In the dataframe I inserted some dummy rows of zeros. This rows represents "subheaders" for different table sections. What I would like to obtain is: 1) Increase slightly the height of the subheader rows, 2) Centre vertically the row name, 3) Remove all the zeros from the table. The results should look like: ![enter image description here](http://i.stack.imgur.com/B1v66.png) **Acknowledgement** The macro for setting multiple lines within cells is by Marc Schwartz from getting line breaks with `xtable`.


title: Emacs 24 with AUCTeX in Ubuntu 13.10

text: I installed AUCTeX from the Emacs package manager. Then I configured it by typing `./configure OPTIONS`. It doesn't complain and I typed `make` and `make install`. I tried to open a simple LaTeX document. I can compile it using `C-c C-c` and default view, then using view command `xdvi filename.dvi` and then it successfully generate a document. But WYSIWYG feature of AUCTeX is not working. When I click `Generate Preview` from the Emacs menu bar, nothing happens. I tried the command `M-x preview-latex` as well, but it has `[no match]` Did I miss anything during installation?


title: auto-enumerated multiple footnotes marginnotes tufts-style-book

text: I want to have auto-enumerated multiple footnotes (tufte-style margin notes) in a forbidden mode. At the moment I can specify the footnote number and place the notes below the itemise list but I want it inline. Can anyone help or make suggestions how to do this? MWC below:               \documentclass{tufte-book}     \usepackage{microtype} % Improves character and word spacing     \title{Sample: \\ Book \thanks{Thanks}} % Title of the book     \author[author]{author} % Author     \publisher{publisher} % Publisher          \begin{document}          \begin{multicols}{2}     \begin{itemize}     \item sample \footnotemark[1]     \subitem sample     \item sample\footnotemark[2]     \subitem sample     \item sample     \item sample\footnotemark[3]     \subitem sample     \item sample\footnotemark[4]      \subitem sample     \item sample     \subitem sample     \subitem sample     \subitem sample     \subitem sample     \item sample\footnotemark[5]      \item sample\footnotemark[6]     \end{itemize}     \end{multicols}          \footnotetext[1]{sample}     \footnotetext[2]{sample}     \footnotetext[3]{sample}     \footnotetext[4]{sample}     \footnotetext[5]{sample}     \footnotetext[6]{sample}          \end{document}


title: Show inline math as if it were display math

text: I'm very familiar with how symbols display differently in inline mode (with `$`) vs. how display math shows them (with `\\[` or `$$`). Two examples would be with limits               $\lim_{n\righarrow \infty}f(x)$      vs.               \[\lim_{n\righarrow \infty}f(x)\]      and with sums               $\sum_{n=1}^{x} n^2$      vs.               \[\sum_{n=1}^{x} n^2\]      My Question is: > How do you display these things in inline mode (with all the nice inline > formatting) _as though they were in display mode_ ?


title: Subscript of bigcap in Beamer

text: > **Possible Duplicate:**   >  Show inline math as if it were display math I write `\bigcap_{0 \leq k \leq n}` in `Beamer`, the subscript `0 \leq k \leq n` is shown on the right side of the `\bigcap`. Does anyone know how to put it **under** `\bigcap` as in a non-beamer mode?


title: How can I make the larger integration sign without using this $$...$$

text: How can I make the larger integration sign without using this `$$...$$` Since I have written that               $(Uu)(x,y)=\dfrac{1}{\Gamma(r_1)\Gamma(r_2)} \int\limits_0^x \int\limits_0^y \dfrac{F(x,y,s,t,u(s,t))}{(x-s)^{1-r_1}(y-t)^{1-r_2}}dt\;ds,$      but the output integration is looking small so I want to make large integration without using `$$....$$` so please help me.


title: How do you place text under the union, \bigcup?

text: > **Possible Duplicate:**   >  Show inline math as if it were display math In a similar manner to how you would write summation notation, I wish to have a union operator iterate over a set. I have tried the following: `$\bigcup_{a \in A}$`, but just subscripts `$a \in A$` to the right of the union. How do you place text actually under the union operator?


title: Math display help

text: I need help for what command I should do. I have a sentence, and in the middle of the sentence I use a math stuff then, more words. The part with math is smaller and smushed up. I do not want to begin an equation because it starts a new line. What command can I do to fix it.


title: \sum not properly displayed?

text: When I do `$ \sum_{k=1}^{K} $` I get this: ![enter image description here](http://i.stack.imgur.com/u5SST.png) But I want to get this: ![enter image description here](http://i.stack.imgur.com/2VS1Z.png) where `i` is above! I am working in `beamer`.


title: Formula in displaystyle but operator limit in normal subscript position

text: > **Possible Duplicate:**   >  Show inline math as if it were display math I have a formula in an equation environmente i.e., in a display style modality. Moreover, since I have to enumerate an operator, I want to put a subscript on it: `\\[ \sum_1 \\]`. This subscript does not represent the lower bound of the summation symbol, but its number and then even in display style mode it has to be put in normal subscript position. How can I achieve it?


title: How do I change 'displaystyle' manually?

text: I have used the following command               $\displaystyle\bigoplus_{i=1}^n M_i$         to get superscript and subscript form of the lower limit and upper limit. But it   it looks like very bigger. I want to control this size of this displaystyle manually. Is there any way to do this ?


title: Subscript of sum

text: How can I make a subscript for sum in latex like the following picture: ![enter image description here](http://i.stack.imgur.com/ebxcM.png) I tried `\sum_{q_i}` but that doesn't make the result I want. It makes the following result: ![enter image description here](http://i.stack.imgur.com/XM3A8.png)


title: How to get n=1 under Product character (\prod or \Pi)

text: > **Possible Duplicate:**   >  Show inline math as if it were display math Whenever I try to get something below the product character, it actually puts it next to it. The recommended code to do this is \Prod_{n=1}, but contrary to the example, for me it looks more like Nn=1 than actually below the prod character. It does not mention a specific package though. How to do this?


title: Putting the integration bounds below/above the integration operator

text: > **Possible Duplicate:**   >  Show inline math as if it were display math Yesterday I've stumbled upon an article which covered just that, but I can't find it anymore. How can I put the integration bounds above/below the integration operator instead of the default, where they're next to the symbol and push the integration term to the right?


title: subnumcases and inline math

text: ### Code               \usepackage{cases}          \begin{subnumcases}{}\label{eq:regola_scelta_reject}         \min \quad \sum_{j=1}^{H}x_jw_j                     & $\sum_{j=1}^{H}x_jw_j \geq W_L$         \label{eq:regola_scelta_reject_1}\\         \min \quad \sum_{j=1}^{H}x_jw_j \vee H_{e} \geq 2   & $\sum_{j=1}^{H}x_jw_j < W_L$         \label{eq:regola_scelta_reject_2}     \end{subnumcases}      ### Outcome ![Outcome](http://i.stack.imgur.com/X0I2c.png) ### Problem How can I uniform the two `\sum` symbols? Those on the right have subscript and upperscript shifted on the right side of the symbols...


title: Longtable overflowing with ESKDX

text: When I try to create a `longtable` with `\linewidth` width in portrait orientation it handles very strange. ![Longtable overflowing](http://i.stack.imgur.com/76wFk.png) Here is the MWE               \documentclass[russian,utf8,floatsection,equationsection,reduceheight=1mm,nocolumnsxix]{eskdtext}     \usepackage{longtable, tabularx, lscape}     \usepackage[T2A]{fontenc}     \begin{document}     \newpage     Example is on the second page     \newpage     \begin{landscape}     \begin{table}[h!]     \begin{tabularx}{\linewidth}{|X|}     \hline     TabularX\\     \hline     \end{tabularx}     \end{table}     \begin{longtable}{|p{0.5\linewidth}|p{0.25\linewidth}|p{0.25\linewidth}|}     \caption{Table}\\     \hline     Head & Head & Head\\\hline     \endfirsthead     \caption*{End of table \thetable}\\     \hline     Head & Head & Head\\\hline     \endhead     \endfoot     \endlastfoot     Longtable & with & 3 cells \\     \hline     \end{longtable}     \begin{longtable}{|p{\linewidth}|}     \caption{Tabletable}\\     \hline     Head\\\hline     \endfirsthead     \caption*{End of tabletable \thetable}\\     \hline     Head\\\hline     \endhead     \endfoot     \endlastfoot     Longtable with 1 cell \\     \hline     \end{longtable}     \end{landscape}     \end{document}      You can just visit project page on Sagecloud


title: Table captions continued

text: I am writing an article which has a long table with many rows. I would like to divide this table for multiple pages but I can not change the captions of these tables like "Table 1: Blablabla" and for the second page "Table 1 Continued: Blablabla" and so on. My MWE and its output. I want to remove "Continued" from pages after the first.               \documentclass{article}          \usepackage[left=2.5cm,top=2.5cm,right=2.5cm,bottom=2.5cm,bindingoffset=0.1cm]{geometry}     \usepackage[english]{babel}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{booktabs}     \usepackage[font=small,labelfont=bf]{caption}          \begin{document}          \begin{table}[!htb]     \centering     \caption {Some Members of the Suggested Estimator}     \label{Tab:1}     \smallskip     \begin{tabular}{c  c  c }     \toprule     A subset of $\overline{y}_{NH}$ & $\textbf{a}$ & $\textbf{b}$\\     \midrule     test1 & 1 & 0 \\     \midrule     test2 & 1 & 1 \\     \midrule     test3 & \newline 1 & \newline $\beta_{2} \left(x\right)$ \\     \bottomrule     \end{tabular}     \end{table}          \begin{table}[!htbp]     \centering     \caption* {\textbf{Table 1 Continued:} Blablabla}     \smallskip     \begin{tabular}{c  c  c }     \toprule     A subset of $\overline{y}_{NH}$ & $\textbf{a}$ & $\textbf{b}$\\     \midrule     test4 & $C_{x} $ & $\rho_{yx} $ \\     \midrule     test5 & $\rho _{yx} $ & $C_{x} $ \\     \midrule     test6 & $\rho _{yx} $ \\     \bottomrule     \end{tabular}     \end{table}          \end{document}      ![enter image description here](http://i.stack.imgur.com/XJhT5.jpg) Can anyone help me about it?


title: punctuation between authors/editors and title in bibliography

text: With the hook `\labelnamepunct` I managed to change a period to a colon after the first set of authors and the following title. But, as in the example below, if this is an inbook, for instance, there is a period used as delimiter between the second author-title combination. **Whats the hook for that punctuation point?**               \documentclass[12pt,a4paper]{article}     \usepackage[T1,T2A]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage[english,russian,german]{babel}  % last language in order will be active          \usepackage[backend=biber,             bibstyle=authortitle,             citestyle=authoryear-icomp,             sorting=nyvt,   % n-umber, y-ear, v-olume, t-itle             block=space,        % spacing between blocks: values: none (default), space, par, nbpar, ragged             isbn=false,     % whether the fields isbn/issn/isrn             url=false,      % affects entry types whose url information is optional             doi=false,      % digital object identifier             hyperref=false, % links between cites and bibliography             ]{biblatex}          \renewcommand*{\labelnamepunct}{\addcolon\space}          \usepackage{filecontents}     \begin{filecontents}{onebook.bib}     @inbook{woodward82,     author={Woodward, James B.},     title={The Nose},     subtitle={},     bookauthor={Woodward, Andrea},     booktitle={The Symbolic Art of Gogol},     booksubtitle={Essays on His Short Fiction},     publisher={Slavica},     address={Columbus, Ohio},     year={1982},     pages={63--87},     }     \end{filecontents}     \addbibresource{onebook.bib}          \nocite{*}          \begin{document}          \printbibliography          \end{document}      The result looks like this (with a period between "... Andrea" AND "The Symbolic ...", where I want a colon to be): ![result of code above](http://i.stack.imgur.com/jYSbH.png)


title: Axis break in pgfplots

text: Is there an easy way to 'break' the axis in a pgfplots environment? What I'm talking about is something like this ![enter image description here](http://i.stack.imgur.com/Wr0HE.png) Any minimal plot will do as an example...for example               \documentclass{minimal}       \usepackage{tikz}     \usepackage{pgfplots}          \begin{document}     \begin{tikzpicture}     \begin{axis}[ymin=0, ymax=80]     \addplot {x*0};      \addplot {x^2+50};     \end{axis}     \end{tikzpicture}          \end{document}      For example, in the below plot, ![plot](http://i.stack.imgur.com/JI1FH.png) I want to break the axis from around y = 10 to y = 40. Any ideas? Does PGF have this functionality? A search for `break' in the manual doesn't yield anything.


title: Bar Graph with Scale Break

text: I am new to PFGPlots and have been trying my best to create bar-graphs with error bars AND scale/axis break, but this is proving difficult please help me. Currently the Bar-graph C has too high of a value and diminishes all other bar-graphs. I would like and axis break to show the relevant error bars.               \documentclass[tikz]{standalone}      \usepackage{pgfplots}          \begin{document}     \centering     \begin{tikzpicture}     \begin{axis}[         xbar,         xlabel = Sample Types,         width=12cm,         bar width=30pt,         xtick={1,...,4},         xticklabels={A,B,C,D},         axis lines*=left,         clip=false,         grid=major,         ]          \addplot[         fill=blue!25,         draw=black,         ybar,         point meta=y,         error bars/.cd,             y dir=both,             y explicit     ]      table [y error=error] {     x            y           error        1   0.0401    0.0177      2   0.0252    0.0048      3   70.318    19.111       4   0.00416   0.0140       };     \end{axis}     \end{tikzpicture}\end{document}      ![enter image description here](http://i.stack.imgur.com/vZFfB.png)


title: axis discontinuity in bar chart

text: pgfplot provides the possibility to insert a discontinuity on the axes (see **MWE 1** & first srceenshot). However, it seems as this discontinuity is only applicable from the value 0 to `ymin`/`xmin`. I plotted a histogram in which the occurrence of the values between -50 and -1.8 as well as between 3 and 50 are not really relevant to the reader (red boxes). However, I must provide these results. The most important part lies between the values -1.8 and 3 (green boxes). Therefore I thought in this case it would be useful just to plot the relevant part and to depict the irrelevant part with an interrupted interval (e.g. `xleft1`=-40, `xright1`=-5 and `xleft1`=5, `xright1`=40) **Question:** How can I insert a discontinuity as in **MWE 1** between a value `xleft` and `xrigth` in my histogram? ![MWE1](http://i.stack.imgur.com/qNxTX.png) ![histograms](http://i.stack.imgur.com/cw0ct.png) **MWE 1 (example from pgfplot manual)**               \begin{tikzpicture}     \begin{axis}[         axis x line=bottom,         axis y line=center,         tick align=outside,         axis x discontinuity=crunch,         xmin=-2, enlargelimits=false         ]              \addplot[blue,mark=none,              domain=-4:4,samples=20]              {x*x+x+104};          \end{axis}     \end{tikzpicture}      **MWE 2**                   \documentclass{article}         \usepackage{filecontents}         \usepackage{tikz}         \usepackage{pgfplots,pgfplotstable}                   \begin{filecontents}{HistoData1.dat}         x   y         %-50    5         -1.8    29.         -1.6    20.         -1.4    41.         -1.2    43.         -1. 44.         -0.8    52.         -0.6    92.         -0.4    79.         -0.2    80.         0.  74.         0.2 81.         0.4 52.         0.6 68.         0.8 52.         1.  43.         1.2 37.         1.4 34.         1.6 17.         1.8 7.         2.  10.         2.2 6.         2.4 5.         2.6 1.         2.8 2.         3.  2.         %50 10         \end{filecontents}              \begin{filecontents}{HistoData2.dat}         x   y         -50 5         -1.8    29.         -1.6    20.         -1.4    41.         -1.2    43.         -1. 44.         -0.8    52.         -0.6    92.         -0.4    79.         -0.2    80.         0.  74.         0.2 81.         0.4 52.         0.6 68.         0.8 52.         1.  43.         1.2 37.         1.4 34.         1.6 17.         1.8 7.         2.  10.         2.2 6.         2.4 5.         2.6 1.         2.8 2.         3.  2.         50  10         \end{filecontents}              \begin{document}          \begin{tikzpicture}          \begin{axis}[title={\large 1st plot}         ]                  \addplot[title={second plot},                 ybar interval,                 fill=blue             ] table [                       x=x,                     y=y             ] {HistoData2.dat} ;                  \draw[green,dashed,thick] (axis cs:-5,0) rectangle (axis cs:5,95);             \draw[red,dashed,thick] (axis cs:-2,0) rectangle (axis cs:-52,10);             \draw[red,dashed,thick] (axis cs:1.5,0) rectangle (axis cs:52,7.5);                  \node             [pin=90:\scriptsize xleft1,fill=black,circle,scale=0.3]              (xright1) at (axis cs:-40,5) {};             \node             [pin=145:\scriptsize  xright1,fill=black,circle,scale=0.3]              (xright1) at (axis cs:-5,5) {};                  \node             [pin=45:\scriptsize xleft2,fill=black,circle,scale=0.3]              (aninnernode) at (axis cs:5,2) {};             \node             [pin=90:\scriptsize  xright2,fill=black,circle,scale=0.3]              (aninnernode) at (axis cs:40,2) {};              \end{axis}      \end{tikzpicture}          \vspace{1.5cm}          \begin{tikzpicture}          \begin{axis}[title={\large 2nd plot (relevant part of 1st plot)}         ]                  \addplot[title={first plot},                 ybar interval,                 fill=blue             ] table [                       x=x,                     y=y             ] {HistoData1.dat} ;                  \draw[green,dashed,thick] (axis cs:-2,0) rectangle (axis cs:3.3,95);              \end{axis}      \end{tikzpicture}               \end{document}


title: How to split y axis in pgfplots to display differing datasets in one graph?

text: > **Possible Duplicate:**   >  Axis break in pgfplots I'm trying to convince pgfplots to display my measurement results. It works quite well except the fact that the datasets vary in numbers. Most of them are in the same range, but one or two sets are much larger. Is it possible to 'split' the y axis with pgfplots so that differing datasets may be displayed in the same graph? I have created a minimal example to display what I mean:               \documentclass[a4paper]{article}     \usepackage{tikz}     \usepackage{pgfplots}          \begin{document}               \begin{figure}[H]     \begin{tikzpicture}     \begin{axis}[     legend cell align=right,     legend pos=outer north east]     \addplot coordinates {(0,0) (1,1)};     \addplot coordinates {(0,1) (1,2)};     \addplot coordinates {(0,200) (1,300)};     \legend{(0,0) (1,1),(0,1) (1,2),(0,200) (1,300)}     \end{axis}     \end{tikzpicture}     \end{figure}      Is it possible to 'cut' the y axis after the second and resume before the third plot? I would be glad for any hints!


title: Omitting a range when plotting with pgfplots

text: I have to plot data of the following format:               year,value1     -10000000,10     0,10     1890,10     1900,50     1930,500     1970,1500     2000,4000      Using standard `pgfplots` I do this:               \documentclass{article}     \usepackage[utf8]{inputenc}          \usepackage{pgfplots}     \pgfplotsset{compat=1.5}          \begin{document}          \begin{tikzpicture}     \begin{axis}     \addplot table [col sep=comma,x=year,y=value1] {data.csv};     \end{axis}     \end{tikzpicture}          \end{document}      From which I get this: ![default pgfplots plot](http://i.stack.imgur.com/Uvb39.png) The problem here is that one very small value of `-10000000`; it has to be in the plot... Is it possible to somehow omit the values from say `-9999999` to `1850`? Somehow breaking up the plot line? I have something like this in mind? [ And I am terribly sorry for the figure! ;-) ] ![enter image description here](http://i.stack.imgur.com/ErqlQ.png)


title: Multiple axis discontinuities with pgfplots

text: I want to show narrow segments out of a large spectrum. Since it is one spectrum, I want to use one single plot, but hide the irrelevant parts. To make clear that I show disconnected parts, I want to use discontinued axis lines between the parts. The code example shows how far I came (based on an example from the manual):               \documentclass[tikz]{standalone}          \usepackage{pgfplots}     \pgfplotsset{width=7cm,compat=1.7}          \begin{document}          \begin{tikzpicture}       \begin{axis}[         axis x line=bottom,         axis x discontinuity=parallel,         axis y line=left,         xmin=360, xmax=600,         ymin=0, ymax=7,         enlargelimits=false         ]         \addplot coordinates {           (420,2)           (500,6)           (590,4)         };       \end{axis}     \end{tikzpicture}          \newpage          \begin{tikzpicture}       \begin{axis}[         axis x line=bottom,         axis y line=left,         ymin=0, ymax=7,         enlargelimits=false         ]         \addplot coordinates {           (420,2)           (500,6)           (590,4)         };              \addplot coordinates {           (25420,2)           (25500,6)           (25590,4)         };              \addplot coordinates {           (50420,2)           (50500,6)           (50590,4)         };       \end{axis}     \end{tikzpicture}          \newpage          \begin{tikzpicture}       \begin{axis}[         axis x line=bottom,         axis y line=left,         xmin=400, xmax=1200,         ymin=0, ymax=7,         enlargelimits=false         ]         \addplot+ coordinates {           (420,2)           (500,6)           (590,4)         };       \end{axis}            \begin{axis}[         axis x line=none,         axis y line=none,         xmin=25100, xmax=25900,         ymin=0, ymax=7,         enlargelimits=false         ]         \addplot+ coordinates {           (25420,2)           (25500,6)           (25590,4)         };       \end{axis}            \begin{axis}[         axis x line=none,         axis y line=none,         xmin=49800, xmax=50600,         ymin=0, ymax=7,         enlargelimits=false         ]         \addplot coordinates {           (50420,2)           (50500,6)           (50590,4)         };       \end{axis}     \end{tikzpicture}          \end{document}      The code leads to these results: ![Discontinuity left.](http://i.stack.imgur.com/zOFAP.png) ![Entire plot, no discontinuities.](http://i.stack.imgur.com/OQuMX.png) ![Partial plots, discontinuities not marked, ](http://i.stack.imgur.com/1CHkA.png) How can I discontinue the x axis and mark the discontinuities similar to the first plot, but between the parts? **Edit:** Fortunately, I was able to solve parts of the problem, but it's a very “hackish” solution:               \documentclass[tikz,convert]{standalone}          \usepackage{pgfplots}     \pgfplotsset{width=7cm,compat=1.7}     \usepgfplotslibrary{units}          \begin{document}          \begin{tikzpicture}       \begin{axis}[         name=a,         width=.25\linewidth,         height=5cm,         axis x line=box,         axis y line*=left,         xmin=350, xmax=750,         ymin=0, ymax=7,         xticklabels={,,0.4,,,0.7},         ]         \addplot+ coordinates {           (420,2)           (500,6)           (590,4)         };       \end{axis}            \begin{axis}[         name=b,         width=.25\linewidth,         height=5cm,         xshift=2cm,         axis x line=box,         axis y line=none,         xmin=25350, xmax=25750,         ymin=0, ymax=7,         xticklabels={,,25.4,,,25.7},         change x base,         x SI prefix=kilo,         ]         \addplot+ coordinates {           (25420,2)           (25500,6)           (25590,4)         };       \end{axis}            \begin{axis}[         name=c,         width=.25\linewidth,         height=5cm,         xshift=4cm,         axis x line=box,         axis y line*=right,         xmin=50350, xmax=50750,         ymin=0, ymax=7,         xticklabels={,,50.4,,,50.7},         yticklabel=\empty,         scaled x ticks=base 10:-3         ]         \addplot+ coordinates {           (50420,2)           (50500,6)           (50590,4)         };       \end{axis}            \draw [dotted] (a.south east) -- (b.south west);       \draw [dotted] (a.north east) -- (b.north west);       \draw [dotted] (b.south east) -- (c.south west);       \draw [dotted] (b.north east) -- (c.north west);     \end{tikzpicture}          \end{document}      Result: ![Partial solution](http://i.stack.imgur.com/vaqd9.png) With that solution, automatic scaling to `\linewidth` does not work and everything has to be done by hand, especially the line style. Is there some way to optimize and automate it?


title: Texstudio and color scheme

text: I try to use texstudio for mac. How can i change the color scheme? I found this discussion Anyone willing to share his/her custom dark theme for TeXstudio?, but i do not know how use this color scheme


title: How do I manually adjust parenlevel in biblatex?

text: Some stylesheets have a policy of alternating between parentheses and brackets when nesting parenthetical material in footnote citations. To this end, `biblatex` has a module `parentracker` to keep track of the `parenlevel`. e.g.               \footnote{See, e.g., \emph{Sonnet 18} \parencite[48]{ham12sha}.}      >   1. See, e.g., _Sonnet 18_ (Paul Hammond, ed., _Shakespeare’s Sonnets: An > Original-Spelling Text_ [Oxford: Oxford University Press, 2012], 48). > When I create a \footnote that includes manual parentheses, `biblatex` isn't aware of this and cheerfully reproduces the current `parenlevel`.               \footnote{Here I make an insightful comment (Dio Cassius, \emph{Roman History}, ch. 60.19 \parencite[414–16]{fos24dio}).}      >   1. Here I make an insightful comment (Dio Cassius, _Roman History_ , ch. > 60.19 (Herbert Baldwin Foster, ed., _Dio’s_ Roman History, trans. Earnest > Cary [London: Heinemann, 1924], 414–16)). > How can I manually toggle the `parenlevel` after typing an opening parenthesis so the second set of parentheses shows up as square brackets (and the third as parentheses)?


title: fontspec changes the size of the letter boxes

text: `fontspec` changes the size of the letter boxes. Compare               \documentclass{article}     %\usepackage{fontspec}          \begin{document}     \Huge\fbox{S}\fbox{F}     \end{document}      with the same code but `\usepackage{fontspec}` not commented out. In the figure, the left is without `fontspec` and the right is with it. ![enter image description here](http://i.stack.imgur.com/4vG8M.png) Is there a way to have them same size as without the `fontspec` package?


title: How do you make a proof not italic?

text: I am new to LaTex. The following is my proof. How do I code it so that it's not italic?               \\Proof:            \indent \forall A \in \mathcal{A}, let B_{A} \: be \: the \: collection \: of \: all \: subsets \: of \: B \: containing \: exactly \: 2^{n}     \\ \indent elements. \: Using \: the \: Axiom \: of \: Choice,     \\\indent let \: g: \mathcal{A} \rightarrow \bigcup_A\inT be \: a \: choice function \: and \: let \: g(a): B_A      \\ \indent \forall A \in T,      \\ \indent \indent A_{A}: = B_{A} \ \bigcup_{m<A} B_{m}     \\ \indent \forall A \in \mathcal{A}, A_{A} \: are \: obviously \: disjoint \: and \: nonempty.      \\ \indent Using \: \: the \: Axiom \: of \: Choice \: again,      \\ \indent let \: f: \: B \: \rightarrow \bigcup_{A<T} \: A_{A} \: be \: a \: choice \: function.      \\ \indent Then \: f \: is \: a \: bijection,\: with \: its \: image \: and \: this \: image \: is \: a \: countable \: subset \:of \:B.     \\ \indent This \: f \: is \: a \: bijection \: with \: an \: infinitely \: countable \: subset \: of \: B. \:


title: Vertical alignment of subfigures with different subcaptions length

text: I would like to vertically align 3 subfigures (same size), but I don't manage to do so if the subcaptions have different lengths, like here: ![enter image description here](http://i.stack.imgur.com/IE38R.png) This is the code that generated the image:               \documentclass[12pt, a4paper]{report}     \usepackage{graphicx}     \usepackage{mathtools}     \usepackage[hidelinks]{hyperref}      \usepackage{subcaption}     \begin{document}     \begin{figure}[h!]     \centering     \caption{3D printed wax mould post processing}     \label{fig:Mould}     \begin{subfigure}[t!]{0.3\linewidth}         \centering         \includegraphics[width=1\linewidth]{./Experimental/MouldWithSupport}         \caption{Just after removal from the 3D printer plate}         \label{fig:MouldWithSupport}     \end{subfigure}     \begin{subfigure}[t!]{0.3\linewidth}         \centering         \includegraphics[width=1\linewidth]{./Experimental/MouldAfterWashing}         \caption{After removal of support wax and ultrasonic cleaning}         \label{fig:MouldAfterWashing}            \end{subfigure}     \begin{subfigure}[t!]{0.3\linewidth}         \centering         \includegraphics[width=1\linewidth]{./Experimental/MouldAfterSilanization}         \caption{After silanization}         \label{fig:MouldAfterSilanization}           \end{subfigure}     \end{figure}     \end{document}


title: Uneven columns' height!

text: I'm new to LaTeX and, although I find the program quite interesting, it is difficult to get things right immediately. This time I need to do something simple, but I haven't managed to find a solution. ![page001](http://i.stack.imgur.com/vjQKc.png) As you can see, my columns are perfectly aligned on the first page. The problem appears on the second page of thee document. Do you see it? There is a gap at the bottom, near the pagination! Same issue on third one. I want them to be even. ![page002](http://i.stack.imgur.com/th5sV.png) Any ideas how to solve this conundrum? This is what I have:               \AtBeginDocument{\flushbottom}     % sets twocolumn environment     \documentclass[10pt,a4paper,twocolumn]{scrartcl}     \bibliographystyle{nature}           \setlength{\columnsep}{30pt}     \usepackage{geometry}     \geometry{a4paper,left=25mm,right=25mm, top=25mm, bottom=25mm}      \usepackage[T1]{fontenc}     \usepackage[latin1,utf8]{inputenc}     \usepackage{lmodern}     \usepackage[pdftex]{graphicx}         \usepackage[ngerman,english]{babel}      \usepackage[english,ngerman]{babel}          \usepackage[tracking=true]{microtype}                           \usepackage{amsmath,amssymb,amsthm}     \usepackage{mathrsfs}     \usepackage{mathtools}     \usepackage{grffile}     \usepackage{bbm}             \usepackage{dsfont}     \usepackage[]{subfigure}     \usepackage{verbatim}      \usepackage{color}     \usepackage{hyperref}     \usepackage{accents}     \usepackage{textcomp}     \usepackage{multirow}     \usepackage{booktabs}          \usepackage{url}     % Define a new 'leo' style for the package that will use a smaller font.     \makeatletter     \def\url@leostyle{       \@ifundefined{selectfont}{\def\UrlFont{\sffamily}}{\def\UrlFont{\small\ttfamily}}}     \makeatother     \urlstyle{leo}               \begin{document}     % starts supressing the twoculomn environment, from here on it will we one column     \twocolumn[\begin{@twocolumnfalse}          % make a section     \section*{\huge{Contemporary Phantasms}}     \vspace{5mm}         \normalsize          Author: Antonio Palacios\newline           \vspace{5mm}     % the * in \section*{Abstract:} makes that this section will not be listed if you do a \tableofcontents.     \section*{Abstract}           Aliquam in eleifend sem. Sed nulla massa, pretium non est et, egestas euismod enim. Nulla sed consequat leo. Nullam ultrices metus vitae dolor convallis eleifend. Ut vitae leo laoreet, sodales nisi sit amet, fermentum lacus. Etiam ullamcorper justo et bibendum fringilla. Nunc adipiscing sem non volutpat sagittis. Curabitur at est egestas, tincidunt nunc ac, pretium dolor. Cras et justo eu purus eleifend mollis vel dapibus diam. Nam vitae mi sit amet massa bibendum viverra vel eu justo. Mauris gravida gravida rutrum. Phasellus nec justo interdum, egestas est non, lacinia mauris.           \vspace{8mm}          %begins tabular     \begin{tabular}{p{1,5cm}p{12,55cm}p{1,5cm}}             % to center the Keywords i did a table with 3 columns and used the first and the last one as free space          &\textbf{Keywords}: Barad $\cdot$ Baudrillard $\cdot$ Bridle $\cdot$ existence $\cdot$ hyperreality $\cdot$ New Aesthetic $\cdot$quantum field theory $\cdot$ render ghosts $\cdot$ simulacrum $\cdot$ virtual $\cdot$ void & \\          \end{tabular}      % ends tabular               \vspace{11mm}          \end{@twocolumnfalse}]  % ends suppressing the twocolumn environment, from here on it will be twocolumn          \section*{Introduction}% make section      At the end of the last millennia, "The Truman Show" film \cite{truman} starred by Canadian born comedian Jim Carrey was received with great acclaim. The movie depicted a nonchalant man who lived all his life unaware that he was only a character inside a televised program. It was only by an accumulation of signs that he ended up uncovering the truth.     \newline  \newline       In "The Truman Show," the scope of reality television was cleverly questioned: What if we were only props in a simulated world? I cannot but wonder that Truman Burbank is the perfect analogy for a virtual entity. Isolated in a parallel space, living in an idyllic world, raised as real but fake as a forgery bill. \newline  \newline       In the present era, reality TV shows are not shocking anymore. In the same manner, the fact that our environment has been systematically been duplicated does not surprises us. On a daily basis, we experience a series of simulated phenomena and we do not even bother to question what is substantial, and what is not. In fact, it would be almost impossible to distinguish, because that is by definition a property of simulacrum. In spite of that difficulty, on the following sections I will be revising theories and views of bright spirits that have decided to question aspects such as simulation, ontology, and virtuality.               \section*{Hyperreal beings} % make section      Aliquam in eleifend sem. Sed nulla massa, pretium non est et, egestas euismod enim. Nulla sed consequat leo. Nullam ultrices metus vitae dolor convallis eleifend. Ut vitae leo laoreet, sodales nisi sit amet, fermentum lacus. Etiam ullamcorper justo et bibendum fringilla. Nunc adipiscing sem non volutpat sagittis. Curabitur at est egestas, tincidunt nunc ac, pretium dolor. Cras et justo eu purus eleifend mollis vel dapibus diam. Nam vitae mi sit amet massa bibendum viverra vel eu justo. Mauris gravida gravida rutrum. Phasellus nec justo interdum, egestas est non, lacinia mauris.      \newline  \newline       Aliquam in eleifend sem. Sed nulla massa, pretium non est et, egestas euismod enim. Nulla sed consequat leo. Nullam ultrices metus vitae dolor convallis eleifend. Ut vitae leo laoreet, sodales nisi sit amet, fermentum lacus. Etiam ullamcorper justo et bibendum fringilla. Nunc adipiscing sem non volutpat sagittis. Curabitur at est egestas, tincidunt nunc ac, pretium dolor. Cras et justo eu purus eleifend mollis vel dapibus diam. Nam vitae mi sit amet massa bibendum viverra vel eu justo. Mauris gravida gravida rutrum. Phasellus nec justo interdum, egestas est non, lacinia mauris.      \newline  \newline       Aliquam in eleifend sem. Sed nulla massa, pretium non est et, egestas euismod enim. Nulla sed consequat leo. Nullam ultrices metus vitae dolor convallis eleifend. Ut vitae leo laoreet, sodales nisi sit amet, fermentum lacus. Etiam ullamcorper justo et bibendum fringilla. Nunc adipiscing sem non volutpat sagittis. Curabitur at est egestas, tincidunt nunc ac, pretium dolor. Cras et justo eu purus eleifend mollis vel dapibus diam. Nam vitae mi sit amet massa bibendum viverra vel eu justo. Mauris gravida gravida rutrum. Phasellus nec justo interdum, egestas est non, lacinia mauris.      \newline  \newline       “\textit{Today abstraction is no longer that of the map, the double, the mirror, or the concept. Simulation is no longer that of a territory, a referential being, or a substance. It is the generation by models of a real without origin or reality: a hyperreal}.”  \cite[p.~1]{baudrillard}     \newline  \newline       Aliquam in eleifend sem. Sed nulla massa, pretium non est et, egestas euismod enim. Nulla sed consequat leo. Nullam ultrices metus vitae dolor convallis eleifend. Ut vitae leo laoreet, sodales nisi sit amet, fermentum lacus. Etiam ullamcorper justo et bibendum fringilla. Nunc adipiscing sem non volutpat sagittis. Curabitur at est egestas, tincidunt nunc ac, pretium dolor. Cras et justo eu purus eleifend mollis vel dapibus diam. Nam vitae mi sit amet massa bibendum viverra vel eu justo. Mauris gravida gravida rutrum. Phasellus nec justo interdum, egestas est non, lacinia mauris,      \newline  \newline       “\textit{Aliquam in eleifend sem. Sed nulla massa, pretium non est et, egestas euismod enim. Nulla sed consequat leo. Nullam ultrices metus vitae dolor convallis eleifend. Ut vitae leo laoreet, sodales nisi sit amet, fermentum lacus. Etiam ullamcorper justo et bibendum fringilla. Nunc adipiscing sem non volutpat sagittis. Curabitur at est egestas, tincidunt nunc ac, pretium dolor. Cras et justo eu purus eleifend mollis vel dapibus diam. Nam vitae mi sit amet massa bibendum viverra vel eu justo. Mauris gravida gravida rutrum. Phasellus nec justo interdum, egestas est non, lacinia mauris. }.” \cite[p.~1]{baudrillard}     \newline  \newline       Aliquam in eleifend sem. Sed nulla massa, pretium non est et, egestas euismod enim. Nulla sed consequat leo. Nullam ultrices metus vitae dolor convallis eleifend. Ut vitae leo laoreet, sodales nisi sit amet, fermentum lacus. Etiam ullamcorper justo et bibendum fringilla. Nunc adipiscing sem non volutpat sagittis. Curabitur at est egestas, tincidunt nunc ac, pretium dolor. Cras et justo eu purus eleifend mollis vel dapibus diam. Nam vitae mi sit amet massa bibendum viverra vel eu justo. Mauris gravida gravida rutrum. Phasellus nec justo interdum, egestas est non, lacinia mauris.       \newline  \newline       “\textit{It is no longer a question of imitation, nor duplication, nor even parody. It is a question of substituting the signs of the real for the real, that is to say of an operation of deterring every real process via its operational double, a programmatic, metastable, perfectly descriptive machine that offers all the signs of the real and short-circuits all its vicissitudes}.” \cite[p.~2]{baudrillard}     \newline  \newline       Aliquam in eleifend sem. Sed nulla massa, pretium non est et, egestas euismod enim. Nulla sed consequat leo. Nullam ultrices metus vitae dolor convallis eleifend. Ut vitae leo laoreet, sodales nisi sit amet, fermentum lacus. Etiam ullamcorper justo et bibendum fringilla. Nunc adipiscing sem non volutpat sagittis. Curabitur at est egestas, tincidunt nunc ac, pretium dolor. Cras et justo eu purus eleifend mollis vel dapibus diam. Nam vitae mi sit amet massa bibendum viverra vel eu justo. Mauris gravida gravida rutrum. Phasellus nec justo interdum, egestas est non, lacinia mauris.      \newline  \newline       “\textit{The closer one gets to the perfection of the simulacrum (…), the more evident it becomes (…) how everything escapes representation, escapes its own double and its resemblance}.”\cite[p.~71]{baudrillard}     \newline  \newline       Aliquam in eleifend sem. Sed nulla massa, pretium non est et, egestas euismod enim. Nulla sed consequat leo. Nullam ultrices metus vitae dolor convallis eleifend. Ut vitae leo laoreet, sodales nisi sit amet, fermentum lacus. Etiam ullamcorper justo et bibendum fringilla. Nunc adipiscing sem non volutpat sagittis. Curabitur at est egestas, tincidunt nunc ac, pretium dolor. Cras et justo eu purus eleifend mollis vel dapibus diam. Nam vitae mi sit amet massa bibendum viverra vel eu justo. Mauris gravida gravida rutrum. Phasellus nec justo interdum, egestas est non, lacinia mauris.      \newline  \newline       “\textit{If, according to Mach, the universe is that of which there is no double, no equivalent in the mirror, then with the hologram we are already virtually in another universe: which is nothing but the mirrored equivalent of this one. But which universe is this one}?” \cite[p.~71]{baudrillard}     \newline  \newline       Vivamus fringilla elit quis enim accumsan tempus. Proin sodales est sed tempus scelerisque. Maecenas molestie urna non tincidunt semper. Integer hendrerit, turpis sed tincidunt auctor, leo augue vehicula est, quis rhoncus sem neque a libero. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Quisque porttitor eros sed feugiat varius. Vestibulum dictum vulputate malesuada.           \section*{A (still) inexistent existence}     Vivamus fringilla elit quis enim accumsan tempus. Proin sodales est sed tempus scelerisque. Maecenas molestie urna non tincidunt semper. Integer hendrerit, turpis sed tincidunt auctor, leo augue vehicula est, quis rhoncus sem neque a libero. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Quisque porttitor eros sed feugiat varius. Vestibulum dictum vulputate malesuada.      \newline  \newline       I will like to start with a quote from “The Measurement of Nothingness,” which will open a door to further discussion into the matter of existence:     \newline  \newline       “\textit{Virtuality is not a speedy return, a popping into and out of existence with great rapidity, but rather the indeterminacy of being/non-being, a ghostly non/existence}.” \cite[p.~12]{barad}     \newline  \newline       Vivamus fringilla elit quis enim accumsan tempus. Proin sodales est sed tempus scelerisque. Maecenas molestie urna non tincidunt semper. Integer hendrerit, turpis sed tincidunt auctor, leo augue vehicula est, quis rhoncus sem neque a libero. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Quisque porttitor eros sed feugiat varius. Vestibulum dictum vulputate malesuada.      \newline  \newline       Vivamus fringilla elit quis enim accumsan tempus. Proin sodales est sed tempus scelerisque. Maecenas molestie urna non tincidunt semper. Integer hendrerit, turpis sed tincidunt auctor, leo augue vehicula est, quis rhoncus sem neque a libero. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Quisque porttitor eros sed feugiat varius. Vestibulum dictum vulputate malesuada.      \newline  \newline       Vivamus fringilla elit quis enim accumsan tempus. Proin sodales est sed tempus scelerisque. Maecenas molestie urna non tincidunt semper. Integer hendrerit, turpis sed tincidunt auctor, leo augue vehicula est, quis rhoncus sem neque a libero. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Quisque porttitor eros sed feugiat varius. Vestibulum dictum vulputate malesuada.      \newline  \newline       “\textit{Virtual particles are short-lived particles that cannot be directly detected, but that affect physical quantities—such as the mass of a particle or the electric force between two charged particles—in measurable ways}.”\cite[p.~38]{dukes}     \newline  \newline       Vivamus fringilla elit quis enim accumsan tempus. Proin sodales est sed tempus scelerisque. Maecenas molestie urna non tincidunt semper. Integer hendrerit, turpis sed tincidunt auctor, leo augue vehicula est, quis rhoncus sem neque a libero. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Quisque porttitor eros sed feugiat varius. Vestibulum dictum vulputate malesuada.      \newline  \newline       “\textit{Vivamus fringilla elit quis enim accumsan tempus. Proin sodales est sed tempus scelerisque. Maecenas molestie urna non tincidunt semper. Integer hendrerit, turpis sed tincidunt auctor, leo augue vehicula est, quis rhoncus sem neque a libero. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Quisque porttitor eros sed feugiat varius. Vestibulum dictum vulputate malesuada. }.” \cite[p.~15]{barad}     \newline  \newline       Vivamus fringilla elit quis enim accumsan tempus. Proin sodales est sed tempus scelerisque. Maecenas molestie urna non tincidunt semper. Integer hendrerit, turpis sed tincidunt auctor, leo augue vehicula est, quis rhoncus sem neque a libero. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Quisque porttitor eros sed feugiat varius. Vestibulum dictum vulputate malesuada.                \section*{Ghosts}     Vivamus fringilla elit quis enim accumsan tempus. Proin sodales est sed tempus scelerisque. Maecenas molestie urna non tincidunt semper. Integer hendrerit, turpis sed tincidunt auctor, leo augue vehicula est, quis rhoncus sem neque a libero. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Quisque porttitor eros sed feugiat varius. Vestibulum dictum vulputate malesuada.                \end{document}


title: Splitting a code listing inside a longtable

text: Is there a way to have code listings split across multiple pages when included inside a longtable? For example, the following code:               \documentclass{article}          \usepackage{listings}     \usepackage{longtable}          \begin{document}     \begin{longtable}{ll}     \textbf{Language} & \textbf{Code}\\\hline     C++ &      \begin{lstlisting}[language=C++]     int a0;     int a1;     int a2;     int a3;     int a4;     int a5;     int a6;     int a7;     int a8;     int a9;     int a0;     int a1;     int a2;     int a3;     int a4;     int a5;     int a6;     int a7;     int a8;     int a9;     int a0;     int a1;     int a2;     int a3;     int a4;     int a5;     int a6;     int a7;     int a8;     int a9;     int a0;     int a1;     int a2;     int a3;     int a4;     int a5;     int a6;     int a7;     int a8;     int a9;     int a0;     int a1;     int a2;     int a3;     int a4;     int a5;     int a6;     int a7;     int a8;     int a9;     \end{lstlisting}     \end{longtable}     \end{document}      leaves the first page largely blank. Certainly, listings can split code across multiple pages and longtable can split across multiple pages. This is the case where both are combined.


In IEEE conference latex file, my pictures are merged/overlapped with text. I dont know how to attach the screen shot of the file. Please help me with this. My last date to submit is the day after tomorrow. Thank you


title: Assistance on arabic text on TikZ

text: I attempting to use both arabic and TikZ pictures but, I have four problems:   1. The Arabic words appear in reverse order, the first word appears finally ...   2. The sentence is not in arc as in the English sentence.   3. The numbers appears Idiens digits and not in Arabic.   4. Most of the ornaments do not appear or appear in different places.               \documentclass[12pt]{book}     \usepackage{nopageno}     \usepackage[a4paper]{geometry}     \geometry{verbose,tmargin=2cm,bmargin=2cm,lmargin=2.5cm,rmargin=2.5cm}     \setlength{\parskip}{\bigskipamount}     \setlength{\parindent}{0pt}     \usepackage{color}     \usepackage{tikz,pgfornament,tikzrput}         % altermundus.com/pages/tkz/tikzrput/     \usetikzlibrary{decorations,decorations.text}  % altermundus.com/pages/tkz/ornament/                     \usepackage{setspace}     \usepackage{fontspec}     \usepackage{polyglossia}     \usepackage{setspace}     \setdefaultlanguage[numerals=machriq]{arabic}     \setmainlanguage{english}     \setotherlanguage{arabic}     \newfontfamily\arabicfont[Script=Arabic,Scale=1.5     ,Mapping=arabicdigits]{Scheherazade}     \begin{document}          \begin{Arabic}               \begin{tikzpicture}          \draw[ultra thick,color=blue] circle[radius=6cm] circle[radius=7cm]  ;     \draw[line width=2mm,color=blue] circle[radius=7.4cm]  ;     \draw[line width=0.5mm,color=blue] circle[radius=5cm]  ;          \path          [rotate=170,postaction={decoration={text along path,text format delimiters={|}{|},text={|\huge| Knowledge Raising House has no Mainstay {\pgfornament[scale=.4,ydelta=-9pt,color=blue]{15}} And Ignorance Destroys House of Glory and Honor {\pgfornament[scale=.4,ydelta=-9pt,symmetry=v,color=blue]{15}}},           text align=fit to path,reverse path}, decorate}]          circle[radius=6.2cm] ;            \rput{-20}(1.5,4.2){\pgfornament[scale=.2,color=blue]{87}}           \rput{20}(-1.5,4.2){\pgfornament[scale=.2,color=blue]{87}}           \rput{-20}(-1.5,-4.2){\pgfornament[scale=.2,color=blue]{87}}           \rput{20}(1.5,-4.2){\pgfornament[scale=.2,color=blue]{87}}            \rput{}(-2.5,-2.75){\pgfornament[scale=.25,color=blue]{10}}            \rput{}(2.5,-2.75){\pgfornament[scale=.25,color=blue]{10}}            \rput{}(0,4){\pgfornament[scale=.2,color=blue]{66}}           \rput{}(0,2){\pgfornament[scale=.3,color=blue]{70}}            \rput{}(0,-3){\pgfornament[scale=.3,color=blue]{70}}            \rput(0,0){\pgfornament[scale=.6,color=blue]{75}}           \rput{-90}(2,0){\pgfornament[scale=.6,color=blue]{72}}           \rput{90}(-2,0){\pgfornament[scale=.6,symmetry=v,color=blue]{72}}        \node[font=\huge,color=blue] at (0,3){} ;          \path          [rotate=218,postaction={decoration={text along path,text format delimiters={|}{|}, text={|\Huge| \AR{والجهل يهدم بيت العز والشرف} {\pgfornament[scale=.4,ydelta=-9pt,color=blue]{15}} 14-12-1968 {\pgfornament[scale=.4,ydelta=-9pt,symmetry=v,color=blue]{15}} \AR{العِلْمُ يرفع بيتًا لا عماد له} {\pgfornament[scale=.4,ydelta=-9pt,color=blue]{15}}},           text align=fit to path,reverse path}, decorate}]          circle[radius=5.2cm] ;         \node[font=\huge,color=blue] at (0,-2){} ;      \end{tikzpicture}          \end{Arabic}          \end{document}


title: Bibliography with names separated by a comma, not by "and"?

text: My text is in German yet I'm using the style `alpha` and not `alphadin` because I don't like the capitalization and the word order in the latter. The only problem I have with `alpha` is that it separates the names by "and": > [AZ10] Martin Aigner and Günter M. Ziegler. _Das Buch der Beweise._ > Springer, Berlin, Heidelberg, 2010. And I'd like it to be separated by a comma. My code, in case it might be relevant:               \documentclass{article}          \usepackage[utf8]{inputenc}     \usepackage[ngerman]{babel}          \usepackage{natbib}          \usepackage{filecontents}     \begin{filecontents}{\jobname.bib}          @BOOK{Aigner2010,         AUTHOR = {Martin Aigner and G{\"u}nter M. Ziegler},         YEAR = {2010},         TITLE = {Das Buch der Beweise},         ISBN = {978-3-642-02259-3},         PUBLISHER = {Springer},         ADDRESS = {Berlin, Heidelberg},     }          \end{filecontents}          \begin{document}          \nocite{*}     \bibliographystyle{alpha}     \bibliography{\jobname}           \end{document}


title: Usage of curly braces in math mode for macros

text: > **Possible Duplicate:**   >  Why do people use unnecessary braces?   >  How bad for TeX is omitting braces {}, even if the result is the same? I wanted to know what is the preffered way of writing macros which accept parameters. So what is a more correct way: `\frac 1 2` or `\frac{1}{2}`? I think that the former should be preffered in most cases, as the code will work if there is only one symbol and it especially help the readability of code in cases of `$\vec e_i$` instead of `$\vec{e}_i$` as `$\vec{e_i}$` would not typeset the math correctly. So what do people usually do in such cases?


title: Why do people use unnecessary braces?

text: I often see people creating new macros where the macro token is surrounded by braces. For example,               \newcommand{\foo}{foo}      This is unnecessary and I find the extra braces make it harder to read. Why do people do this? (As an aside, I've even seen people try to use `\let{\foo}{\bar}` which, of course, doesn't work.)


title: Should I put the name of a new command in braces?

text: > **Possible Duplicate:**   >  Why do people use unnecessary braces? In so far as I know, the open and close braces around the command name for               \newcommand{\commandname}{...}      versus               \newcommand\commandname{...}      seem to be a matter of personal preference or _style_? Is there a consensus on this issue and if so what is it?


title: How to mix titling and mdframed packages

text: Through a tip on this site, I have used package `mdframed` to get a nice rounded box. But I would like to include it with the `titling` package. The following minimum example shows `mdframed` working correctly later in the document. It also shows `titling` working, as the `\thedate` and `\thetitle` are available after `\maketitle`, which is one of its helpful features. And I've included the `flushright` environment which works with `titling`. But the `mdframed` environment causes errors.               \documentclass{scrartcl}          \usepackage{lipsum}     \usepackage{titling}     \usepackage[framemethod=TikZ]{mdframed}          \title{My document's title}     \author{Jonathan Clark}     \date{10 May 2014}          % \pretitle{\begin{mdframed}[roundcorner=10pt]\LARGE\bfseries}  % doesn't work     \pretitle{\LARGE\bfseries}    % but without mdframed it works     \posttitle{}     \preauthor{\begin{flushright}\scshape}     \postauthor{\end{flushright}}     \predate{\large}     % \postdate{\end{mdframed}}   % doesn't work     \postdate{\end{mdframed}}     % but without mdframed it worsk          \begin{document}     \maketitle     \begin{mdframed}[roundcorner=10pt]     Date: \thedate. Title: \thetitle.     \end{mdframed}          \lipsum{1}          \end{document}      I believe I'm running the latest version of all packages via TeX Live on OS X.


title: Accessing side-bearings in LuaTeX

text: This question has been solved, in XeTeX, by this code:               \def\kright#1{\leavevmode #1\kern-\XeTeXglyphbounds3 \the\XeTeXcharglyph`#1 }     \def\kleft#1{\leavevmode \kern-\XeTeXglyphbounds1 \the\XeTeXcharglyph`#1 #1}      which allows me to align text more precisely to the ink by accessing the side- bearing measurements (`\XeTeXglyphbounds1` and `3`). This XeTeX dependency is currently the only thing stopping me from moving to LuaTeX (mainly for microtype). Is an equivalent function available in LuaTeX, or planned? * * * After reading a bit more on `microtype`, could the equivalent effect be achieved by an appropriately-tailored set of character protrusions? That way, my move to LuaTeX might be a lot simpler.


title: Inserting caption for listings in LyX

text: I'm using LyX 2.1.1 and want to put captions for `listings`. I can do this by using LaTeX code in ERT but would like to do by using LyX built-in capabilities of `Insert > Program Listing`. Any help will be highly appreciated.


title: How to break the make of a new line?

text: I'm trying to break the make of a new line by `\begin{itemize}` for a more appropriate view of `longtable`. I can't find how to achieve this. Any help, please ?               \begingroup     \setlength{\LTleft}{-20cm plus -1fill}     \setlength{\LTright}{\LTleft}     \begin{longtable}{|p{3cm}|p{4cm}|p{7cm}|}     \hline     1 & 2 & 3 \tabularnewline     \hline     \begin{itemize} \item[-] ABC.\item[-] DEF \end{itemize} & AAA & BBB. \tabularnewline     \hline     \multicolumn{3}{l}{} \\[-7pt]       \caption[]{Description.}     \end{longtable}     \endgroup     \vspace{0.5cm}      Thanks in advance.


title: redeclare an arrow in TikZ

text: As you know, I'm adding more arrows to the code in this answer (maybe tomorrow). At this point, I'd like to overwrite the arrows declarations so that one can simply write `-latex` instead of `-latex new`, but `TikZ` gives me an error because the arrow names have already been used. Is there a way to bypass this behaviour and redefine an arrow tip? Example of code:               \documentclass[tikz, border=1pt]{standalone}     \usepackage{tikz}          \pgfarrowsdeclare{space}{space}     {       \pgfutil@tempdima=0.88pt%       \advance\pgfutil@tempdima by.3\pgflinewidth%       \pgfarrowsleftextend{0pt}       \pgfarrowsrightextend{\pgfutil@tempdima}     }     {}          \begin{document}     \begin{tikzpicture}     \draw [-space] (0,0) -- (1,0);     \end{tikzpicture}     \end{document}


title: How do I make the sections un-numbered?

text: Every time I call `\section{**Section Name**}`, a number appears to the left of the name of the section. How do I hide this number?


title: TikZ-picture: remove arrows at starting point of edge

text: I'm a litte confused, because I drew a TikZ-picture and didn't get what I expected. Have look at the following:               \documentclass[12pt,a4paper]{article}     \usepackage{amsmath, amssymb, ngerman}     \usepackage[latin1]{inputenc}          \begin{document}     \usepackage{pgf,tikz}     \usetikzlibrary{arrows}     \begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=0.8cm,y=0.8cm]     \draw[->,color=black] (-3.17,0) -- (5.5,0);     \foreach \x in {-3,-2,-1,1,2,3,4,5}     \draw[shift={(\x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) node[below] {\footnotesize $\x$};     \draw[->,color=black] (0,-3.22) -- (0,7.5); \foreach \y in {-3,-2,-1,1,2,3,4,5,6,7}     \draw[shift={(0,\y)},color=black] (2pt,0pt) -- (-2pt,0pt) node[left] {\footnotesize $\y$};     \draw[color=black] (0pt,-10pt) node[right] {\footnotesize $0$};     \clip(-3.17,-3.22) rectangle (5.35,7.26);     \draw (0,0) rectangle (1,1);     \draw (-1,0) rectangle (0,1);     \draw (0,-1) rectangle (1,-2);     \draw (3,0) rectangle (4,1);     \draw (0,4) rectangle (1,5);     \draw[->] (1,1) edge [bend right] node[above right] {$d_{A,P_1}$} (-1,1);     \draw[->] (-1,0) edge [bend right] node[left] {$d_{A,P_2}$} (0,-2);     \draw[->] (1,-2) edge [bend right] node[below right] {$d_{A,P_3}$} (4,0);     \draw[->] (4,1) edge [bend right] node[above right] {$d_{A,P_4}$} (1,5);     \end{tikzpicture}          \end{document}      I drew some bended edges, but the little arrows showing up at the starting point of my edge are not intended. I have no idea how to fix it but it has something to do with "edge". Perhaps someone can help me out? Thanks in advance.


title: ToC with different title from part title in document

text: I'm using the code below for my `\part` heading style. I want to be able to modify what appears in ToC as my part name. Possibly put a different text there and also modify its font style (size, shape etc.). What should I modify in my code?               \documentclass[draft]{book}     \usepackage[table]{xcolor}     \usepackage{epigraph}     \setlength\epigraphwidth{.6\textwidth}          \makeatletter     \def\@part[#1]#2{%     \ifnum \c@secnumdepth >-2\relax      \thispagestyle{epigraph}       \refstepcounter{part}%       \addcontentsline{toc}{part}{\partname~\thepart:\hspace{1em}#1}%     \else       \addcontentsline{toc}{part}{#1}%     \fi     \markboth{}{}%       \reset@font       \parindent \z@        \vspace*{-400\p@}%       \hbox{%         \vbox{%           \hsize=7mm%          \makebox(0,0){\put(10,-100){\fbox{\phantom{\rule[-4cm]{7mm}{4cm}}}}}%      \begin{tabular}{@{}p{7mm}@{}}         \makebox[7mm]{\scshape\strut\small\partname}\\         \makebox[7mm]{\cellcolor{gray}\Huge\color{white}\bfseries\strut\thepart\rule[-4cm]{0pt}{4cm}}%       \end{tabular}%       }%     \kern6pt     \vbox to 0pt{%        \tabular[t]{@{}p{1cm}>{\raggedright\arraybackslash}p{\dimexpr\hsize-2.55cm}@{}}\hline           & \Huge\itshape\rule{0pt}{1.5\ht\strutbox}#1\endtabular}%     }%       \cleardoublepage          }     \makeatother          \begin{document}          \tableofcontents     \cleardoublepage          \epigraphhead[450]{Fairy tales are more than true: not because they tell us that dragons exist, but because they tell us dragons can be beaten.\par\hfill\textsc{C.K. Chesterton}}     \part{A Test Part Title}          \end{document}


title: How to draw a simple 1mm thick page frame?

text: I'm trying to make a simple one-line 1mm thick page frame. Left line of that frame should be 2.5cm from edge and all other lines 0.5cm. Document includes tikz drawing, and text. The problem is that I'm failing to make any frame that is not sticked to the content or drawn by dimensions mentioned above. I think that this could be made by using packages like frame, or mdframed, but since I've just recently started using LaTeX, I find them a bit difficult to comprehend.


title: How to change enumerate item from 1. to (1)?

text: I would like to force latex enumerate environment to output (1), (2),... in place of 1., 2. that he gives by default. How could I do this ? I don't need to do it in my whole document but in some places only. Hence I should only make modifications in the chosen enumerate environment.


title: enumerate tag using the alphabet instead of numbers

text: The default behaviour for the `\begin{enumerate}`tag is to sequentially list the items given by `\item` over the numbers {1, 2, 3, 4, ...}.   1. Is it possible to change this to the alphabet {a, b, c, d, ...}   2. How about Roman Numerals {i, ii, iii, iv, v, vi, ... }   3. How is this done? Note that I use emacs 24.3. Thanks for all the help.


title: Which graphics formats can be included in documents processed by latex or pdflatex?

text: There several types of graphics files. In no particular order .jpeg .eps .pdf .png .tif .jif (and no doubt others). Some work with latex, dvips and some work with pdflatex. How am I supposed to know which? Just to confuse matters, metapost produces .eps but I can use these with pdflatex as long as I put in a four line incantation. Can anyone explain this?


title: How to include .tif pictures via pdftex?

text: > **Possible Duplicate:**   >  Which graphics formats can be included in documents processed by latex or > pdflatex? I am in the process of writing a paper for submission to PLOS ONE. Under their manuscript guidelines, they write that all photos (termed "half-tones") have to be submitted as tiff files. How do I include tiff files in latex? At the moment my minimal example looks like this:               \documentclass[a4paper]{article}           \usepackage[latin1]{inputenc}     \usepackage[pdftex]{graphicx}     \title{hep}     \author{hep}          \usepackage{pdfpages}          \begin{document}          \maketitle            \includegraphics[width=\textwidth]{figurer/artifact.tif}          \end{document}      Compiling it with texlive I get:               ! LaTeX Error: Unknown graphics extension: .tif.      Most threads I come across simply advice the user to change the image format, but that is not really an option here. It would be preferable if the fix also worked with elsarticle.


title: error of Cannot determine size of graphic

text: I compile my LaTeX code as LaTeX ,it give an error `Error: LaTeX Error: Cannot determine size of graphic in scope.jpg (no BoundingBox).` If I compile as PdfLateX not errors...i need my output as a PDF...what is a solution for that? I add figures using,               \begin{figure}[ht]          \begin{center}          \includegraphics[width=2cm,height=2.5cm]{scope.jpg}          \end{center}          \begin{center}          \caption[sss]{sss}          \end{center}          \end{figure}


title: Latex or PdfLatex to generate DVI

text: I would like to generate DVI output using `latex` or `pdflatex`, it doesn't matter. First, I would like to mention that I run the following command to compile my document and it runs successfully - `pdflatex -shell-escape -synctex=1 report.tex` Now if I wanted to have a DVI on the same file, I run the following command - `latex report.tex` I get the following error - `! LaTeX Error: Cannot determine size of graphic in platform.pdf (no BoundingBox ).` Just to mention that the figure `platform.pdf` is in pdf format which is generated using other image editing software (Microsoft Visio). I also tried to add `%&latex` on the first line. How should I solve this problem?


title: Importing JPG files into LaTeX

text: I would like to import JPG file into my document in LaTeX. The code below works but only for EPS files, but I need JPG. How can I fix it?               \documentclass{article}     \usepackage{graphicx}     \begin{document}     \includegraphics{image}     \end{document}


title: what would be the best way to include .tif image to pdflatex document?

text: > **Possible Duplicate:**   >  Which graphics formats can be included in documents processed by latex or > pdflatex? I'm trying to include .tif image to a pdflatex document, but it says it is unknown extension. what would be the best way to include .tif image to my pdflatex document?


title: compile problem of "pdflatex+makeindex+bibtex"

text: I'm using the Springer latex macro package, but when I compile the tex. file using pdflatex+makeindex+bibtex (Miktex2.9), it always shows an error               SVJour3 warning: Missing \journalname     ! LaTeX Error: Unknown graphics extension: .eps.     See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...                                                        l.122   \includegraphics{example.eps}      But if I use "xelatex+makeindex+bibtex", it works well. Does somebody know the reason? http://www.springer.com/engineering/production+engineering/journal/170


title: I want to use \includegraphics but I can't

text: My simplified tex source is as follows:               \documentclass{amsart}     \usepackage{graphicx,color,float}     \newcommand{\aaa}{\includegraphics[width=.15in]{aaa.eps}}     \begin{document}     $\aaa$.     \end{document}      But it doesn't work. What did I do wrong?


title: Can't include jpg image

text: I am new to LaTeX and trying to learn it by writing a CV. I tried to add a photo of me in the document. The code is below:               \documentclass[a4paper, 12pt]{article}          \usepackage{graphicx}          \begin{document}       \begin{figure}[h!]         \centering           \includegraphics[width=0.5\textwidth]{taufique}       \end{figure}     \end{document}      'taufique' is the name of the jpg image file. It's located in the same directory where tex file is placed. I compiled with pdflatex but it is not being compiled. Error report says that compiler can't find the image file. What's the problem?


title: Unable to fix the figure attachment error

text: I am facing a problem in attaching a figure. I get the following error: > Latex error: Cannot determine size of graphic in fig.pdf               \begin{figure}     \centering     \includegraphics[width=0.8\textwidth,]{fig.pdf}     \caption{Coop. Network with Relays}     \end{figure}


title: Pdf not generating after attaching figures in PdfteXt

text: I am using scientific Linux 6.3 and pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6) and elsarticle document class. I have to attach figures and iam doing it as,               %%%%%%%%%%%%%%% begin figure 1   %%%%%%%%%%%%%%%%%%%%%%%%%%     \clearpage     %vspace{-10pt}     \begin{figure}[htbp]     \centering     \includegraphics[clip,width=1.0\linewidth]{Figures/fig1.eps} %changing it to .jpeg     % \vspace{-50pt}      \caption{Physical domain considered for present study.}     \label{fig:1} \end{figure}      but after compilation it is showing error..               ====> Running PDFLaTeX to generate PDF document     pdflatex -interaction=batchmode   manuscript     This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)      %&-line parsing enabled.     entering extended mode     make: *** [pdf] Error 70      What i am doing wrong? please help me to identify the error..


title: LaTeX Editors/IDEs

text: What editors/IDEs are available for easing the process of writing TeX/LaTeX documents? Please state some useful features like code completion, spell checking, building final DVI or PDF files, etc. * * * This question is undergoing a systematic refurbishment, see Let’s polish the Editors/IDEs question on meta. If you’d like to see another editor feature covered here or to take care of an editor that’s not covered yet, share your ideas in that meta question.


title: Recommended Windows LaTeX editor, similar to Kile ?

text: > **Possible Duplicate:**   >  LaTeX Editors/IDEs My Linux box has crashed, so I'm looking for an editor on Windows (should work on Win7) that is similar to Kile - could someone help?