title: How to prevent text generated with `Sweave` from running off the right margin?

text: I am using `Sweave` to generate output for some R analysis. Some of the code generates long lines that are run off the right margin when the `.tex` file is compiled. I have pasted an example `Schunk` below and you can see how long some of the lines are. I think the `Schunk`s are typeset as verbatim. Is there a way to prevent these sections from running off the right margin? Thank you.               \begin{Schunk}     \begin{Sinput}     > load("/media/working/working_files/R_working/survey_OM.RData")     > summary(lm(survey_OM$perc.OM[survey_OM$lake == "GTH 91" & survey_OM$depth ==      +     "hypo" & survey_OM$sed > 0] ~ survey_OM$sed[survey_OM$lake ==      +     "GTH 91" & survey_OM$depth == "hypo" & survey_OM$sed > 0]))     \end{Sinput}     \begin{Soutput}     Call:     lm(formula = survey_OM$perc.OM[survey_OM$lake == "GTH 91" & survey_OM$depth ==      "hypo" & survey_OM$sed > 0] ~ survey_OM$sed[survey_OM$lake ==      "GTH 91" & survey_OM$depth == "hypo" & survey_OM$sed > 0])          Residuals:      Min       1Q   Median       3Q      Max      -1.62011 -0.63241  0.04838  0.61389  2.81551           Coefficients:                                                                                Estimate     (Intercept)                                                                               23.06997     survey_OM$sed[survey_OM$lake == "GTH 91" & survey_OM$depth == "hypo" &     survey_OM$sed > 0] -0.07520                                                                                Std. Error     (Intercept)                                                                                0.44174       survey_OM$sed[survey_OM$lake == "GTH 91" & survey_OM$depth == "hypo" & survey_OM$sed > 0]    0.07685                                                                                t value     (Intercept)                                                                                52.226     survey_OM$sed[survey_OM$lake == "GTH 91" & survey_OM$depth == "hypo" & survey_OM$sed > 0]  -0.978                                                                                Pr(>|t|)     (Intercept)                                                                                <2e-16     survey_OM$sed[survey_OM$lake == "GTH 91" & survey_OM$depth == "hypo" & survey_OM$sed > 0]    0.338          (Intercept)                                                                               ***     survey_OM$sed[survey_OM$lake == "GTH 91" & survey_OM$depth == "hypo" & survey_OM$sed > 0]         ---     Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1           Residual standard error: 1.004 on 23 degrees of freedom     (2 observations deleted due to missingness)     Multiple R-squared: 0.03996,    Adjusted R-squared: -0.001778      F-statistic: 0.9574 on 1 and 23 DF,  p-value: 0.338      \end{Soutput}


title: Block Diagrams Multi Input - Multi Output Components in TikZ

text: My problem is to define blocks (mainly rectangles) that has labels in them in terms of matrices (mostly block diagonal) such that the n-many arrows that goes in this rectangle visually is at the same height as the corresponding element on the diagonal of the label. Consider the following example               \documentclass{article}     \usepackage{tikz}     \begin{document}     \begin{tikzpicture}[>=stealth]     \node[draw,rectangle,inner sep=0.5cm] (y) at (0,0) {$A$};     \node[draw,rectangle,inner sep=0.3cm] (d) at (0,2) {$\begin{array}{cc}B&\\&C \end{array}$};     \draw[->] (y.west) -| ++(-1,1) |- (d.west);     \draw[->] (d.east) -| ++(1,-1) |- (y.east);     \end{tikzpicture}     \end{document}      Now, let me start by creating two subproblems:   1. When I create this label, the `inner sep` option of node shape (the visible rectangle around B and C) is kind of annoying to adjust. So I don't think it would survive in a better solution. So this question would be obsolete if the following problem is solved.    2. I would like to get a handle of the node height resulting from the matrix label that I have put in and then somehow obtain a subdivision of n+1 of this height creating n nodes to connect to and from on the west and east sides. such that in the minimal example above I would connect to two arrows going out from A (not from the same location but separate and equally dividing the height of A) and connecting to B and C respectively (and vice versa).


title: Display plot pgfplots multicolumns

text: I have the following data & I'm trying to display a plot similar to the screenshot               items,section_1,section_2,section_3,section_4     10,82,42,38,22     20,38,24,20,63     30,44,49,39,40     40,58,48,47,47     50,58,45,59,41      ![Graph](http://i.stack.imgur.com/wsECZ.jpg)


title: Lining up free translation in interlinear glossing with expex

text: I'm trying to line up the English translation using the expex package. Expex allows you to create a side panel of the free translation. What I would like is a way to define a fixed with to this side panel. I am currently doing the following:               \documentclass[12pt]{article}          % extra packages     \usepackage[margin=1.0in]{geometry}     \usepackage{fontspec}     \usepackage[nomain]{glossaries}     \usepackage{leipzig}     \usepackage{pstricks}     \usepackage{expex}     \usepackage{paracol}     \usepackage{polyglossia}          % dimensions     \newlength{\defparindent}     \setlength{\defparindent}{\parindent}     \setlength{\parindent}{0pt}          % custom ling styles     \definelingstyle{Conversation}{aboveexskip=0pt,belowexskip=0pt,       belowglpreambleskip=0pt,aboveglftskip=0pt,glwordalign=left,       everyglpreamble=\bf,glftpos=right,glhangstyle=none}     \definelingstyle{ConversationDescription}{aboveexskip=4pt,       glwordalign=left,glhangindent=0em,glftpos=right,       glhangstyle=none,everyglpreamble=\setlength{\parskip}{6pt}}     \definelingstyle{ConversationTitle}{aboveexskip=4pt,       glwordalign=left,glhangindent=0em,belowglpreambleskip=0pt,       aboveglftskip=0pt,glftpos=right,glhangstyle=none}          \pagestyle{empty}          \newleipzig{abil}{abil}{abilitative}        % abilitative -(y)Abil     \newleipzig{aff}{aff}{affirmative}          % affirmative     \newleipzig{aor}{aor}{aorist}               % aorist     \newleipzig{buf}{buf}{buffer}               % buffer     \newleipzig{defn}{def}{definite past}       % definite past     \newleipzig{der}{der}{derivative}           % derivative     \newleipzig{ppo}{ppo}{primarypost}          % primary postposition          \setdefaultlanguage{turkish}          \begin{document}          \columnratio{0.31,0.69}     \begin{paracol}{2}     (22.1) \textbf{CONVERSATION:}          \switchcolumn     \exdisplay[lingstyle=ConversationTitle]     \begingl     \glpreamble \textbf{Bir kitap ariyorum.}//     \gla \textbf{Bir} \textbf{kitap}     \textbf{arı}$^{(I)}$\textbf{-yor-um.}//     \glb \textbf{A} \textbf{book}     \textbf{to.look.for}-\Prog{}-\Fsg{}.//     \glft I am looking for a book.//     \endgl     \xe     \end{paracol}          \exdisplay[lingstyle=ConversationDescription]     \begingl     \glpreamble \textit{Cemal kitapçıda bayramlarla ilgili birkitap     arıyor.}//     \gla \textit{Cemal}     $\underbrace{\textit{kitap-çı}}_\textrm{kitapçı}$\textit{-da}     \textit{bayram-lar-la} \textit{ilgili}$^{(lA)}$ \textit{bir}     \textit{kitap} \textit{arı}$^{(I)}$\textit{-yor}.//     \glb Cemal $\underbrace{book-\Der{}}_\textrm{bookseller}$-\Loc{}     festival-\Pl{}-\Ppo{} about a book to.look.for-\Prog{}.\Tsg{}.//     \glft Cemal is looking for a book about festivals at the bookseller.     //          \endgl     \xe          \medskip          \columnratio{0.15,0.85}     \begin{paracol}{2}     \hfill Satıcı:          \switchcolumn     \exdisplay[lingstyle=Conversation]     \begingl     \glpreamble Buyrun efendim, size nasıl yardımcı olabilirim? //     \gla Buyur$^{(-/I/A)}$-un efend-im, siz-e nasıl yardım-cı     ol$^{(-)}$-abil-ir-im? //     \glb to.order-\Imp{}.\Ssg{} lord-\Poss{}.\Fsg{}, you-\Dat{} how     help-\Der{} to.be-\Abil{}-\Aor{}-\Poss{}.\Fsg{}? //     \glft Welcome, sir. How may I help you? //     \endgl     \xe          \switchcolumn*     \hfill Cemal:          \switchcolumn     \exdisplay[lingstyle=Conversation]     \begingl     \glpreamble Bir kitap arıyorum, ama adını hatırlamıyorum. //     \gla Bir kitap arı$^{(I)}$-yor-um, ama ad-ı-n-ı     hatırla$^{(I)}$-m-ıyor-um. //     \glb A book to.look.for-\Prog{}-\Fsg{}, but     name-\Poss{}-\Buf-\Acc{}.\Tsg{} to.remember-\Neg{}-\Prog{}-\Fsg{}.//     \glft I'm looking for a book but I don't remember its title. //     \endgl     \xe          \end{paracol}          \end{document}      ![Result](http://i.stack.imgur.com/1j37J.png) I am using the paracol package to align the conversation text towards the bottom. The left column is for the parties in the conversation and the second column is the interlinear glossed text. I am doing something similar for the interlinear gloss in the CONVERSATION title. While there is a \glwidth parameter to set the total width of the glosses, there doesn't seem to be something for the right-hand side panel. I thought about posting to the ling-tex list but the web page to be added to this list appears to be down.


title: MinionPro semibold/medium

text: After a day of struggle I managed to install the full family of `MinionPro` font on LaTeX. After an hour of googling I cannot figure out how to use the medium (semibold) font. Ideally I would have something like a `\sb` command, eg., `{\sb This is medium bold.}`.


title: How do force center-alignment in a caption in a figure?

text: When I use the following code:                   \documentclass{article}         \usepackage{graphicx}              \begin{document}              \begin{figure}[h!]         \begin{center}         \caption{test}         \includegraphics{intpoptotal.png}         \end{center}         \end{figure}              \end{document}      The caption is centered as I want it, e.g., ![enter image description here](http://i.stack.imgur.com/5VM19.png) But when I use this apa6 class, with the following code:                   \documentclass{apa6}              \begin{document}              \begin{figure}[h!]         \begin{center}         \caption{test}         \includegraphics{intpoptotal.png}         \end{center}         \end{figure}              \end{document}      The caption is left-aligned, e.g., ![enter image description here](http://i.stack.imgur.com/swUDH.png) How can I use `\documentclass{apa6}` with centered captions? And what code in apa6 causes this to happen?


title: LyX BibTeX with child-documents not working

text: If I insert the bibliography within the child document, it works perfectly. (therefore it cannot be the Databank). But when I try to render the parent document, I get the following error:                \citep                {NatalieJ.Sayer:2007}     The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spelling (e.g., `I\hbox'). Otherwise just continue,     and I'll forget about whatever was undefined.      ![enter image description here](http://i.stack.imgur.com/Ks5xP.jpg)


title: How to arrange table rows in multiline like rowspan but with same color?

text: I am working on LaTeX and R. My result in table are in one line (comma seprated) and i want them to be in multiline but within same row (like rowspan). ![enter image description here](http://i.stack.imgur.com/Y2ukq.png) I tried to use newline but that does not seems to be working. I also used row span but color of multiline gets changed (automatic alternate coloring). ![enter image description here](http://i.stack.imgur.com/NGTZr.png) In the above figure, I am keeping first line record into multiple line which were comma seprated earlier? How can I implement it in LaTeX. Any working example will help me a lot.


title: MakeIndex (first time user) on TeXMaker

text: I've looked online for how to create an index on LaTeX, and honestly, I have no idea why there isn't any good documentation on it. This reminds me of the time when I was trying to learn how to create a bibliography [on BibTeX, that is] and I spent at least 3 days just trying to figure it out due to just _poor documentation_ online. Anyway, here's my MWE:               \documentclass[12pt]{article}     \usepackage[margin=2cm]{geometry}     \usepackage{amsmath, amssymb, enumitem}     \usepackage [english]{babel}     \usepackage{icomma} %no space after commas     \usepackage{imakeidx}%for indexes     \makeindex%for indexes     \setlength{\parindent}{0pt}     \newcommand{\E}{\text{E}}     \newcommand{\Var}{\text{Var}}     \begin{document}     \textbf{Notation}. We write $\mu^{\prime}_{k} = \E\left[X^{k}\right]$, known as the \textbf{$k$th raw moment}\index{raw moment} and $\mu_{k} = \E\left[\left(X-\mu\right)^{k}\right]$, known as the \textbf{$k$th central moment}\index{central moment}.          \printindex     \end{document}      I ran LaTeX -> MakeIndex -> PDFLaTeX and this works fine. But typically, I have more in the Preamble:               \documentclass[12pt]{article}     \usepackage[margin=2cm]{geometry}     \usepackage{amsmath, amssymb, enumitem}     \usepackage [english]{babel}     \usepackage[utf8]{inputenc}     \usepackage [autostyle, english = american]{csquotes}     \usepackage{icomma} %no space after commas          \usepackage{imakeidx}%for indexes     \makeindex%for indexes          \MakeOuterQuote{"}     \setlength{\parindent}{0pt}     \pagenumbering{gobble} %remove page numbers     \frenchspacing %no space after periods     \usepackage{graphicx}     %put photo in same folder, do \includegraphics{"file name"}          \newcommand{\E}{\text{E}}     \newcommand{\Var}{\text{Var}}     \begin{document}     \textbf{Notation}. We write $\mu^{\prime}_{k} = \E\left[X^{k}\right]$, known as the \textbf{$k$th raw moment}\index{raw moment} and $\mu_{k} = \E\left[\left(X-\mu\right)^{k}\right]$, known as the \textbf{$k$th central moment}\index{central moment}.          \printindex     \end{document}      This doesn't work for generating the index if I run LaTeX -> MakeIndex -> PDFLaTeX. Why is that? I assume there's probably a conflict between `inputenc` and some other package.


title: listings: General settings for a language seem to be overwritten/not respected

text: I struggle with the following `listings` styles. I have code of two different languages (R and LaTeX) in my .tex file. As some settings are the same for R listings and LaTeX listings, I define the style "all". It should be respected by any `\begin{lstlisting} .. \end{lstlisting}`. I therefore use `style=all` in the `lstset` definitions for the two languages. Then, there are additional, language specific settings, which should also be respected. However, as you can see, that does not quite work. Although I set the keywords in the R listings to just be `if`, `else`, or `function`, lapply and sapply get a blue color as well. Why? And how can this be solved? It seems like I would have to repeat all the definitions in the optional argument of the `lstlisting` environment. But it's tedious to do this every time, that's why I wanted to define styles in the first place. Also, it's not clear to me why a setting like `keywords` is overwritten since the optional argument of `lstlisting` does not contain `keywords=...`.               \documentclass{scrartcl}          \usepackage[T1]{fontenc}     \usepackage[american]{babel}     \usepackage{xcolor}     \usepackage{fancyvrb}     \usepackage{listings}          \xdefinecolor{blue}{RGB}{0, 0, 255}     \xdefinecolor{red}{RGB}{255, 0, 0}          % this style should be active for all lstlistings environments     \lstdefinestyle{all}{       basicstyle=\ttfamily\small,       frame=lrtb, framerule=1pt, framexleftmargin=1pt,       showstringspaces=false     }          % this style should be active (additionally to "all") for "input" lstlistings environments     \lstdefinestyle{input}{       commentstyle=\itshape\color{red},       keywordstyle=\color{blue}     }          % listings settings for LaTeX in general [this is not respected!]     \lstset{       language=[LaTeX]TeX,       style=all,       keywords={},       otherkeywords={}     }          % listings settings for R (should hold for all R listings in general)     \lstset{       language=R,       style=all,       literate={<-}{{$\leftarrow$}}2,% this is respected       keywords={if, else, function},% this is not respected       otherkeywords={}     }          \begin{document}          \begin{lstlisting}[{language=[LaTeX]TeX}, style=input]     \begin{enumerate}     \item foo % bar     \end{enumerate}     \end{lstlisting}          \begin{lstlisting}[language=R, style=input]     x <- 4     s <- lapply(1:10, function(z) z+x)     k <- sapply(1:10, function(z) z+2*x) # other case     \end{lstlisting}          \end{document}


title: Cannot see the .bib file contents

text: I'm realty new at using LaTeX. But I have an problem getting an `.bib` file to show in my output:               \documentclass[]{article}     \usepackage{natbib}          \begin{document}          \title{Title}     \author{Author}     \date{Today}     \maketitle               \bibliographystyle{alpha}     \bibliography{Litteratur}          Content          \end{document}      And my `Litteratur.bib` looks like this:               @book{goossens93,     author    = "Michel Goossens and Frank Mittelbach and Alexander Samarin",     title     = "The LaTeX Companion",     year      = "1993",     publisher = "Addison-Wesley",     address   = "Reading, Massachusetts"     }      I'm using Latexian as my editor, and I have been into and change the setting so the type set I set to 2. And then exporting BibTeX is checked. But then I look at the log file after exporting. It's saying this:               This is BibTeX, Version 0.99d (TeX Live 2011)     The top-level auxiliary file: TSWLatexianTemp_000003.aux     The style file: alpha.bst     Database file #1: Litteratur.bib     Warning--I didn't find a database entry for "Friedl2006"     (There was 1 warning)      But I don't no where it gets that `Friedl2006`.


title: Emphasize line in minted code

text: Is there a way to stress/emphasize a line (or part of it for that matter) in `minted` code? The `listings` package has the `moredelim`-option for that purpose.


title: Problem with beamerthemesplit package

text: Just turn from PowerPoint to Latex for slides:). A problem encountered: Templates from beamerthemesplit can't be properly applied as the snapshot below. What may be the reason? BTW, are there any more templates to use? Thanks and Best Regards. ![enter image description here](http://i.stack.imgur.com/UNa5g.png) * * * UPDATE: Here is the .tex document.               \documentclass{beamer}          \usepackage{beamerthemesplit}          \title{\LaTeX presentations with Beamer}     \author{******}     \date{\today}     \begin{document}     \frame{\titilepage}     \end{document}      My working environment is: pdfTeX 3.1415926-1.40.10-2.2 (TeX Live 2009/Debian) & kpathsea version 5.0.0


title: Problem using Biblatex

text: I'm trying to use `biblatex` to generate a list of publications on my CV. This works fine, however it doesn't generate the output I wanted:               \documentclass{article}     \usepackage[         sorting=ydnt,         bibstyle=ieee     ]{biblatex} %ydnt: Sort by year (descending), name, title.     \addbibresource{MyPublications.bib}          \begin{document}     \cite{FirstPaper}     \printbibliography[title={Journal Papers}]     \end{document}      Then I tried this, following the example 3.10.4 in `biblatex` user's guide:               \documentclass{article}     \usepackage[         sorting=ydnt,         bibstyle=ieee     ]{biblatex} %ydnt: Sort by year (descending), name, title.     \addbibresource{MyPublications.bib}     \DeclareBibliographyCategory{primary}     \addtocategory{primary}{FirstPaper}          \begin{document}     \printbibheading     \printbibliography[category=primary,heading=subbibliography,title={Journal Papers}]     \end{document}      The code produces an empty document with only a section titled 'References'. I'm using 64-bit MiKTeX 2.9 and TeXstudio (Windows), however I also tried TeXnicCenter and WinEdt. BTW, in the second case the `.bbl` file is empty (except for the header), which might give some indication as to what's wrong.


title: Automatic deletion of unused macros

text: The following scenario occurs quite often to me: I have a couple of input files where I have my own macros, mainly math-related stuff like definitions for `\esssup` and so on which are not available in the usual ams-math files. When writing a paper, I input those collection and use the stuff I like. At the end, I cut-copy-paste things into one file, as publishers usually don't get along with multiple LaTeX files etc., Ugly, but prevents many errors and trouble (bad experiences...) Now the question: is it possible (surely yes) to extract only those macros which are actually used by some clever automatic process (shell script, LaTeX itself, ..), so that I can include only those macros and not the whole collection of them. Again, the reason is to minimize the possible collisions of my own definitions and pre-defined stuff from the publishers.


title: How to label a figure?

text: I understand how to put a caption on a figure, I'd do something like,               \begin{figure}[h]          ...put figure here...          \label{figure1}\caption{this is a figure}          \end{figure}      and the caption reads,               Figure 1: this is a figure      which is all very well and good. However, I would dearly like my figure to only have the label,               Figure 1      without the caption. How would I do this? (Basically, I have a figure that I want to reference, so I need it to have some label. It is perfectly fine without any caption, and adding one would detract from what is going on.)


title: multirow with word wrapped columns in longtable

text: I am trying to create a table that looks like this using `longtable`. The table will have many rows so that it spans several pages. What I'm looking for is how to create this table so that the text in the first column ('Header 1') is left-center justified in the cell and the text the second column ('Header 2') is upper left justified. I am able to make it work by manually setting the rowcount in `multirow`, but since the text will change row by row, manually setting the rowcount is not efficient. I need a generic solution that will reflow appropriately. Sorry for the poor graphic, but due to site rules, I can't post a screenshot.               --------------------------------------------------------------     |header 1      |header 2       |header 3       |header 4     |     ---------------|---------------|---------------|-------------|     |              |This is where  |               |             |     |              |some text will |               |             |     |              |go that spans  |               |             |     |This is where |several rows.  |               |             |     |a lot of text |---------------|---------------|             |     |will go that  |This is where  |               |             |     |will span     |some text will |               |             |     |several       |go that spans  |               |             |     |columns and   |several rows.  |               |             |     |needs to      |---------------|---------------|             |     |left-centered |This is where  |               |             |     |justified.    |some text will |               |             |     |              |go that spans  |               |             |     |              |several rows.  |               |             |     |--------------|---------------|---------------|-------------|


title: Vertically-centering multiple TikZ pictures, preserving baseline height

text: I've often need to write out equations between pictures, which are drawn using TikZ. However, to display them properly, I have two requirements: any common features must be on the same horizontal line, and the diagrams as a whole must be vertically centered with respect to any = signs separating them. Here's a picture of the effect I want: ![enter image description here](http://i.stack.imgur.com/jUuvH.jpg) Here's a picture of the effect I _don't_ want, but which is easily achieved: ![enter image description here](http://i.stack.imgur.com/wC2QV.jpg) Of course, for a particular diagram, it's just a couple of lines of code to get the effect I want. But ideally, I'd specify the position of the labels - perhaps by setting the baseline of the diagrams to the label A - and then the rest should happen automatically. There are many ways I can achieve this manually: for example, increasing the size of the bounding box for the smaller diagram to artificially force it to have the same height as the larger one; or manually setting the baseline of the images to exactly the point which I want aligned with the baseline of the = sign. But both of these are fiddly, and none are robust against future changes of the diagrams. Here's the code to produce the second image above:               \documentclass{article}     \usepackage{tikz}     \usepackage{amsmath}     \begin{document}     \[     \begin{aligned}     \begin{tikzpicture}     \draw (0,0)         node [above] {$A$}         to [out=down, in=down] (1,0)         node [above] {$A^*$};     \end{tikzpicture}     \end{aligned}     =     \begin{aligned}     \begin{tikzpicture}     \draw (0,0)         node [above] {$A$}         to [out=down, in=up] (1,-1)         to [out=down, in=down] (0,-1)         to [out=up, in=down] (1,0)         node [above] {$A^*$};     \end{tikzpicture}     \end{aligned}     \]     \end{document}


title: biblatex: \fullcite produces different result from bibliography entry

text: I am using BibLaTeX+Biber to generate the bibliography of my thesis. I use a customised bibliography styles (based on BiBLaTeX' `numeric-comp`). For example, here is my style definition for "inproceedings" entries, along with some redefined helper commands:               %load numeric-comp     \RequireBibliographyStyle{numeric-comp} %in turn that one requires standard.bbx          %This redefines the doi+eprint+url macro from standard.bbx (biblatex v1.6).     % Changes: \newblock instead of \newunit\newblock, to avoid periods after DOIs (\newunit = ". ")     % It should be prettier that way because we put DOIs and URLs on a new line (see below).     % Does not print eprint (for now)     \renewbibmacro*{doi+eprint+url}{%       \iftoggle{bbx:doi}         {\printfield{doi}}         {}%       \newblock       %\iftoggle{bbx:eprint}       %  {\usebibmacro{eprint}}       %  {}%       %\newblock       \iftoggle{bbx:url}         {\usebibmacro{url+urldate}}         {}}          %Override declarations from biblatex.def (biblatex v1.6); Changes: newlines before DOI, URL, ISSN, ISBN and ISRN (+ colon in same font as label)     \DeclareFieldFormat{doi}{%       \\\mkbibacro{DOI\addcolon}\space       \ifhyperref         {\href{http://dx.doi.org/#1}{#1}} %used to be \nolinkurl{#1} instead of #1, which is a clever trick but it I don't want the font mismatch with issn/isbn numbers (since (nolink)urls are using a different font)         {#1}} %idem     \DeclareFieldFormat{url}{\\\mkbibacro{URL\addcolon}\space\url{#1}}     \DeclareFieldFormat{isbn}{\\\mkbibacro{ISBN\addcolon}\space #1}     \DeclareFieldFormat{isrn}{\\\mkbibacro{ISRN\addcolon}\space #1}     \DeclareFieldFormat{issn}{\\\mkbibacro{ISSN\addcolon}\space #1}          %%For (in)proceedings: only print publication date when keyword "-showpubdate" is present (to avoid repetion, date is usually already in booktitle or booksubtitle)     %%Based on publisher+location+date macro from standard.bbx (biblatex v1.6).     \newbibmacro*{publisher+location+pubdate}{%       \printlist{location}%       \iflistundef{publisher}         {\setunit*{\addcomma\space}}         {\setunit*{\addcolon\space}}%       \printlist{publisher}%       \ifkeyword{-showpubdate}%       {\setunit*{\addcomma\space}%        \usebibmacro{date}}%       {}%       \newunit}          % Inproceedings (changes: also print ISSN; disable event+venue+date, in our database this is already in the booktitle field, no time/use to split it off)     \DeclareBibliographyDriver{inproceedings}{%       \usebibmacro{bibindex}%       \usebibmacro{begentry}%       \usebibmacro{author/translator+others}%       \setunit{\labelnamepunct}\newblock       \usebibmacro{title}%       \newunit       \printlist{language}%       \newunit\newblock       \usebibmacro{byauthor}%       \newunit\newblock       \usebibmacro{in:}%       \usebibmacro{maintitle+booktitle}%       \newunit\newblock       %%%\usebibmacro{event+venue+date}%!!! (disabled)       %%%\newunit\newblock       \usebibmacro{byeditor+others}%       \newunit\newblock       \iffieldundef{maintitle}         {\iffieldundef{series}% !!!           {\printfield{volume}}% !!!           {}% !!!          \printfield{part}}         {}%       \newunit       \printfield{volumes}%       \newunit\newblock       \usebibmacro{series+number}%       \newunit\newblock       \printfield{note}%       \newunit\newblock       \printlist{organization}%       \newunit       \usebibmacro{publisher+location+pubdate}%       \newunit\newblock       \usebibmacro{chapter+pages}%       \newunit\newblock       \usebibmacro{addendum+pubstate}%       \setunit{\bibpagerefpunct}\newblock       \usebibmacro{pageref}%       \usebibmacro{finentry}%       \iftoggle{bbx:isbn}         {\printfield{isbn}         \newblock         \printfield{issn}         }         {}%       \newblock       \usebibmacro{doi+eprint+url}%       }      Now consider this entry:               @INPROCEEDINGS{Stevens2010a,       author = {{M}atthias {S}tevens and {E}llie {D}'{H}ondt},       title = {{C}rowdsourcing of {P}ollution {D}ata using {S}martphones},       booktitle = {Proceedings of the Workshop on Ubiquitous Crowdsourcing, held at         Ubicomp '10 (Copenhagen, Denmark, September 26-29, 2010)},       year = {2010},       month = {September},       url = {http://soft.vub.ac.be/Publications/2010/vub-tr-soft-10-15.pdf}     }      When I cite this somewhere in the text using `\cite{Stevens2010a}`, this produces the following entry in the bibliography: ![Result in bibliography \(with dot, correct\)](http://i.stack.imgur.com/vOgVm.png) This is what I want it to look like. Notice the "." before the newline and "URL".   But when I put an in-place citation (in the text itself) using `\fullcite{Stevens2010a}`, the result is: ![Full cite result \(no dot, incorrect\)](http://i.stack.imgur.com/uIzSJ.png) Notice that here the "." is missing. Does anyone know how I can make the `\fullcite` result look exactly like the `\cite` result? Or in other words, how I can add that "." in the `\fullcite` result?


title: How to make glossaries in output?

text: This is my sample script. I want to print glosssaries. I am trying to do that but nothing gets printed. I am using               \documentclass[oneside,12pt]{report}         \usepackage{fancyheadings}        \usepackage[acronym]{glossaries}         \makeglossaries       \newglossaryentry{electrolyte}{name=electrolyte,%         description={solution able to conduct electric current}}          \newacronym{svm}{SVM}{support vector machine}           \begin{document}          \printglossary[type=acronym]     \printglossary               \chapter{\textbf{Background}}          Some text about \gls{svm}.          Some more text about \gls{svm}.          Some text about \gls{electrolyte}.          Some more text about \gls{electrolyte}.               \end{document}      Now I hope that this script works. I minimized the whole script to the point of problem. I compiled this..no glossaries are printing to my document..fortunately i can see them in .glo file..My command to execute the file is latexmk -pdf filename.tex..I included the following code in .latexmk file..               add_cus_dep('glo', 'gls', 0, 'makeglossaries');     add_cus_dep('acn', 'acr', 0, 'makeglossaries');          sub makeglossaries {         system "makeglossaries $_[0]";         if ( -z "$_[0].glo" ) {             open GLS, ">$_[0].gls";             close GLS;         }         return 0;     }      My .glo file contents:               \glossaryentry{electrolyte?\glossaryentryfield{electrolyte}{\glsnamefont{electrolyte}}{solution able to conduct electric current}{\relax }|setentrycounter[]{page}\glsnumberformat}{2}     \glossaryentry{electrolyte?\glossaryentryfield{electrolyte}{\glsnamefont{electrolyte}}{solution able to conduct electric current}{\relax }|setentrycounter[]{page}\glsnumberformat}{2}      My .acn file contents:               \glossaryentry{SVM?\glossaryentryfield{svm}{\glsnamefont{SVM}}{support vector machine}{\relax }|setentrycounter[]{page}\glsnumberformat}{2}     \glossaryentry{SVM?\glossaryentryfield{svm}{\glsnamefont{SVM}}{support vector machine}{\relax }|setentrycounter[]{page}\glsnumberformat}{2}      Now, I hope i get some response..tack..


title: How to enforce printing the decimal part in pgfmath macros?

text: I have the opposite problem to this question. I want the decimal parts of an integer printed for consistency's sake. I already tried specifying the `precision` but without success. See below. ![an example](http://i.stack.imgur.com/sPK60.png)               \documentclass{article}     \usepackage{pgfplots}          \begin{document}     \begin{tikzpicture}     \begin{axis}[ybar,     nodes near coords, %={\pgfmathprintnumber[fixed,precision=2]{\pgfplotspointmeta}}     ]     \addplot coordinates { (1,1.11) (2,2.22)(3,3.00)(4,4.44) };     \end{axis}     \end{tikzpicture}     \end{document}      * * * Follow up question in response to Peter Grill's answer: Is it possible to let this specifications only affect the nodes over the bars and let the axis ticks stay without additional decimal parts? That would be the high point. Answer: By chance I already found the answer to that one myself. Setting               \pgfkeys{         /pgf/number format/precision=0,          /pgf/number format/fixed zerofill=true }      to `0` and using               nodes near coords={\pgfmathprintnumber[fixed,precision=2]{\pgfplotspointmeta}}      in the `axis`-specifications, I get "normal " integers on the axes and enforced decimal parts in the chart itself.


title: Using TikZ to label a Commutative Diagram with a Picture

text: I'm writing a beamer presentation and having some diagram troubles. Is it possible to label an arrow in `tikzcd` with a `tikzpicture`? For example, the code               \begin{tikzcd}     S^1     \arrow{r}{     \begin{tikzpicture}[x=1ex,y=1ex]     \draw[thick] (0,0) circle (1 and 2);     \draw[thick] (0,2) arc (450:270:2 and 2);     \end{tikzpicture}     }     \pgfmatrixnextcell     \varnothing     \end{tikzcd}      produces ![enter image description here](http://i.stack.imgur.com/JJdXy.png) which is obviously deficient. Any ideas?


Is it possible to create a new command of the form ----------{TEX}----------? For instance, I would like to have something like `\nc{TEX}` which produces "TEX" in the middle of the line and the rest of it should be filled with '-'. `\nc{TEX}` -> ----TEX----


title: LaTeX page numbering

text: I am writing my PhD thesis and facing a strange problem: whatever I may do, all my page numbers are appearing on the top right side of the page. I want them to be in the even(left) and odd(right) format. The preamble I'm using is:               \documentclass[12pt,twoside,openright]{report}          \usepackage{geometry}     \usepackage{amssymb,amsmath,amsfonts}     \usepackage{multirow}     %\usepackage{natbib}     \usepackage[pdftex]{graphicx}     \usepackage{tocloft}     %\usepackage{lastpage}     %\usepackage{latexsym}          %\usepackage{setspace}     %\doublespacing     \onehalfspacing          \usepackage[hypertexnames=false,linktocpage=true]{hyperref}     \hypersetup{colorlinks=true,         linkcolor=blue,         anchorcolor=blue,         citecolor=blue,         filecolor=blue,urlcolor=blue,         bookmarksnumbered=true,         pdfview=FitB}          %Margins and Header/Footer     \geometry{a4paper,       top=2in,       bottom=1in,       left=1in,       right=1in,       headheight=14.5pt, % the default is too short       heightrounded, % avoids the need of a flexible baselineskip     }          \usepackage{titlesec}     \titleformat{\chapter}[display]     {\normalfont\huge\bfseries}{\chaptertitlename\ \thechapter}{20pt}{\Huge}[\vspace{2ex}\titlerule]     %---------------------------------------------------------------------------------------------------------     % Fonts used     \usepackage[OT1]{fontenc}      \usepackage{charter}     %------------------------------     \pagenumbering{roman}     \usepackage{fancyhdr}     \pagestyle{fancy}     \fancyhead{}     \fancyhead[LE]{\sl\leftmark}     \fancyhead[LO,RE]{\rm\thepage}     \fancyhead[RO]{\sl\rightmark}          ...........


title: Use a custom shape as a "building block"

text: I want to create a custom shape (not a big one) and use it in custom places. The shape is a camera and is quite simple:                   \draw [fill=black](0,0) -- (2,2.5) -- (-2,2.5) -- cycle;         \draw [fill=white,ultra thick](0,0) circle (1);      What I want is to be able to place my custom shape in arbitrary places and to be able to rotate it. The origin for placement and rotation should be the (0,0) point. Is it there an easy way to do this or do I have to redraw it for rotation and positioning? ![enter image description here](http://i.stack.imgur.com/daZHB.png)


title: .bst function to strip LaTeX command from string

text: Is there a preexisting `.bst` command to stip all LaTeX commands from a string? For example, if the string on the top of the stack is "`Hello \textsc{ladies}`" I'd like to replace it with just "`Hello ladies`".


title: Changing the numbering of lemmas and theorems in the appendix

text: I wanted to change the name of the appendix. So, I wanted my appendix name would be not Appendix A, as usual, but Appendix I. So I use               \begin{appendix}          \renewcommand{\theequation}{I.\arabic{equation}}          % redefine the command that creates the equation no.     \setcounter{equation}{0}  % reset counter          \section*{\textbf{Appendix I}}  % use *-form to suppress numbering          ....................%some text     \end{appendix}      These commands helped me to change the formulas numbering. I've tried the same 'trick' to change lemma and theorem numbering (I wanted, for example Lemma I.1, Theorem I.2) but it did not work. Help me please with these commands.


title: Pgfplotstable. How to exclude one row from sorting scope?

text: I am a beginner in LaTeX, experimenting with industrial documents. I cannot find the suitable code to solve some of the problems below:   1. I would like to be able to sort the table, but excluding the final row, supposed to be a summary.   2. I could not find how to apply the `fixed, zerofill, dec sep align, precision=2` parameters to all columns but the first.   3. I could not make the code for bold fonts in the last row to work.               \documentclass{article}     \usepackage{colortbl,hhline}      \usepackage{pgfplots}      \usepackage{pgfplotstable}     \usepackage{filecontents}     \usepackage{booktabs}          \begin{filecontents}{data.csv}      {Items},{Rating},{Design 1},{Design 2},{Design 3}     Design complexity, 6.3,3.5, 8.5, 8.12     Cost,9.2, 3.8, 5.77, 5.9     Energy consumption,6.62,4.8, 8.1,9.5     Average weighted normalized,, 3.7, 7.92,7.35     \end{filecontents}          \begin{document}     \pgfplotstableread[col sep=comma]{data.csv}{\datatable}          \centering     \pgfplotstabletypeset[font=\small,     every even row/.style={     before row={\rowcolor[gray]{0.9}}},     every head row/.style={     before row=\toprule,after row=\midrule},     every last row/.style={     after row=\bottomrule},     %every first column/.style={string type},%does not work     columns/Items/.style={string type}, %works     column 2/.style={fixed, zerofill, dec sep align, precision=2}, %does not work     every last column/.style={fixed, zerofill, dec sep align, precision=1},      %sort, sort key={Design 2}, %Works but should not include last row     %sort cmp={float >}, %Works but should not include last row     every first column/.style={column type={l}}, %Does not work     every head row/.style={     before row={\toprule},     after row=\midrule     },     every last row/.style={before row={\bottomrule},      after row={\bottomrule},      postproc cell content/.style={@cell content=\textbf{##1}}}, %does not work     ]{\datatable}          \end{document}


title: Enumerate list not showing when using parallel package

text: I want to divide a paragraph with enumerate. First I use package "parallel":               \documentclass{article}     \usepackage{color}     \usepackage{parallel}     \begin{document}          \begin{Parallel}{0.45\textwidth}{0.45\textwidth}     \ParallelLText{         \textcolor{red}{Bonds}         \begin{enumerate}             \item Not a share of ownership             \item Fixed maturity         \end{enumerate}     }     \ParallelRText{         \textcolor{red}{Stocks}         \begin{enumerate}             \item Not a share of ownership             \item Fixed maturity         \end{enumerate}         }     \ParallelPar     \end{Parallel}          \end{document}      So the two items do not appear under the two columns. They just appear on the left hand side. ![enter image description here](http://i.stack.imgur.com/3tDxs.png) I don't know how to fix it. And with the package `paracol`, I don't know how to create a vertical line between coloums. Can anyone help me? If you know any package better than those packages please let me know. * * * @Heiko Oberdiek: I still have a problem with vertical problem when i use both packages: hyperref and pdfcolparallel. Here is my code:               \documentclass[12pt,a4paper,final]{book}     \usepackage[utf8]{inputenc}     \usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}     \usepackage{color}     \usepackage{pdfcolparallel}     \setkeys{parallel}{rulebetweencolor=blue}     \usepackage{hyperref} % for bookmark          \hypersetup{     %    bookmarks=true,         % show bookmarks bar?         unicode=false,          % non-Latin characters in Acrobat’s bookmarks         pdftoolbar=true,        % show Acrobat’s toolbar?         pdfmenubar=true,        % show Acrobat’s menu?         pdffitwindow=false,     % window fit to page when opened         pdfstartview={FitH},    % fits the width of the page to the window         pdftitle={My title},    % title         pdfauthor={Author},     % author         pdfsubject={Subject},   % subject of the document         pdfcreator={Creator},   % creator of the document         pdfproducer={Producer}, % producer of the document         pdfkeywords={keyword1} {key2} {key3}, % list of keywords         pdfnewwindow=true,      % links in new window         colorlinks=true,       % false: boxed links; true: colored links         linkcolor=blue,          % color of internal links (change box color with linkbordercolor)         citecolor=green,        % color of links to bibliography         filecolor=magenta,      % color of file links         urlcolor=cyan           % color of external links     }          \begin{document}          \pagenumbering{roman}     \cleardoublepage     \pdfbookmark{\contentsname}{Contents}     \tableofcontents          \chapter{Fundamental differences}\hfill     \section{Bonds vs stocks}     \begin{Parallel}[v]{0.45\textwidth}{0.45\textwidth}     \ParallelLText{         \textcolor{red}{Bonds}         \begin{enumerate}             \item Not a share of ownership             \item Fixed maturity             \item Contractual payment             \item Bondholders acquire decision rights in default states.         \end{enumerate}     }     \ParallelRText{         \textcolor{red}{Stocks}         \begin{enumerate}             \item Share of ownership.             \item Not maturity.             \item No contractual payment.             \item Stockholders have decision rights as long as the firm is solvent.         \end{enumerate}         }     \ParallelPar     \end{Parallel}               \end{document}      and here is result: ![enter image description here](http://i.stack.imgur.com/2Be2a.jpg) If use only package "pdfcolparallel", the result is very well. But I want to use more packages "hyperref" to creat bookmark. Would you help me fix this problem? Thks


title: Typography and Beamer

text: I'm facing a difficulty to transpose my idea of slide into LaTeX code. Here is the idea ![enter image description here](http://i.stack.imgur.com/sPAps.png) Basically it's formed with   * 3 description items   * sub item description text   * curly brace with the same font of the text   * bullet points items So far I achieved the description items and a TiKz solution for the bullet points.               \documentclass{beamer}          \usepackage{tikz}     \usetikzlibrary{decorations.pathreplacing}          \begin{document}     \begin{frame}{frame title}     \begin{description}         \item[description item] \hspace{.5cm} \begin{tikzpicture}[baseline={(A.center)}]             \node[text width=7cm,align=center] (A) {\begin{itemize} \item some bullet points \item some other bullet point \end{itemize}};             \draw[decorate,decoration={brace,amplitude=3pt},color=blue] (A.south west) -- (A.north west);          \end{tikzpicture}     \end{description}     \end{frame}     \end{document}      Would really appreciate how to implement the sub item description text and the curly brace with the text font scaled to the height of the bullet point items. Looking for a TikZ based solution.


title: Controlling font size in math environment, fine tuning

text: In my document using `\documentclass[12pt]{report}`, I have tables containing an index and a inequality in each line. As it's a long list, it's a `supertabular` with columns `c|rcr`. Sample data of one line is `1 & x_{i,j} & \leq & 0 \\\`. Now, in this specific table, I prefer typewriter style. Additionally, the length of these inequalities is too high to fit with normal text size, therefore, I also reduce the font size. To have this in every math environment without repetition of commands I've declared a specific environment:               \newenvironment {specialMath} [0] {} {}     \AtBeginEnvironment{specialMath}     {     \everymath{\scriptstyle\mathtt{\xdef\tmp{\fam\the\fam\relax}\aftergroup\tmp}}     \everydisplay{\scriptstyle\mathtt{\xdef\tmp{\fam\the\fam\relax}\aftergroup\tmp}}     }      It works, in the sense that everything is displayed at the size of subscripts. However, printed on A4, this is a bit too small. In summary, `\textstyle` is too large, `\scriptstyle` too small, but I do not want to adjust _all_ font sizes (that can be done with `\DeclareMathSizes{...` in the preamble, afaik). How do I fine tune the font size locally, not globally, in a set of math environments? A minimal compilable example (pdflatex), without the table:               \documentclass[12pt]{report}     \usepackage{amsmath}                                 % math environment     \usepackage{etoolbox}                                % environment customization     \usepackage{supertabular}                            % multi-page tables          \newenvironment {specialMath} [0] {} {}     \AtBeginEnvironment{specialMath}     {     \everymath{\scriptstyle\mathtt{\xdef\tmp{\fam\the\fam\relax}\aftergroup\tmp}}     \everydisplay{\scriptstyle\mathtt{\xdef\tmp{\fam\the\fam\relax}\aftergroup\tmp}}     }          \begin{document}          $x_{i,j} \leq 0$ % normal style     \begin{specialMath}     \begin{supertabular}{r}     $x_{i,j} \leq 0$\\ % typewriter, slightly smaller     \end{supertabular}     \end{specialMath}     $x_{i,j} \leq 0$ % normal style again     \end{document}      Without the supertabular, somehow it's not typewriter font. It will be used in a tabular anyway, but you can ignore that fact.


I am getting this error message:               (C:\Users\Δημήτρης\AppData\Roaming\MiKTeX\2.9\tex\latex\esint\uesint.fd     )miktex-maketfm.exe: Permission denied: C:\Users\EE49~1\AppData\Local\Temp\mik44600     miktex-maketfm.exe: Data: C:\Users\EE49~1\AppData\Local\Temp\mik44600          ! Font U/esint/m/n/12=esint10 at 12.0pt not loadable: Metric (TFM) file not found.     <to be read again>                         relax      l.5 \[      when I am trying to use the `esint` package. Here is a Minimal Working Example wich generates this message.               \documentclass[12pt,letterpaper]{article}     \usepackage{amsmath, amsthm, amsfonts, amssymb}     \usepackage{esint}     \begin{document}          \[      I = \ointctrclockwise x dx     \]          \end{document}


title: Counters for use in array/tabular cells

text: The following practical example               \documentclass{article}     \usepackage{array}% http://ctan.org/pkg/array     \newcounter{tabcol}\newcounter{tabrow}     \newcolumntype{C}{>{\stepcounter{tabcol}}c}     \begin{document}     \[       \begin{array}{>{\stepcounter{tabrow}\setcounter{tabcol}{1}}CCC}         (\thetabrow,\thetabcol) & (\thetabrow,\thetabcol) & (\thetabrow,\thetabcol) \\         (\thetabrow,\thetabcol) & (\thetabrow,\thetabcol) & (\thetabrow,\thetabcol) \\         (\thetabrow,\thetabcol) & (\thetabrow,\thetabcol) & (\thetabrow,\thetabcol)       \end{array}     \]     \end{document}      outputs row and column indices: ![enter image description here](http://i.stack.imgur.com/n1p2H.png) Somewhat inspired by the construction of Auto generate table with tons of + and -, what would be the most flexible way to implement a row/column indexing system like above that would fit within the standard `tabular` and `array` environments _without_ having to intervene with the column specification? For example, mixing `l`, `c` and `r` (and `X` and other) column types requires one to define a new column type to step the appropriate column for _every_ such column type, which isn't very convenient. As mentioned, I am interested in a technique of incorporating these counters with the traditional `tabular` and `array` environments (and therefore not something like a `tikz` matrix). The end-game would be to use the row/column indices to condition on the cell contents (perhaps colouring, perhaps some output or whatever); similar in style to the following elementary example: ![enter image description here](http://i.stack.imgur.com/3FV62.png)               \documentclass{article}     \usepackage{array}% http://ctan.org/pkg/array     \newcounter{tabcol}\newcounter{tabrow}     \newcolumntype{C}{>{\stepcounter{tabcol}}c}     \newcommand{\oddornot}{\relax\ifodd\numexpr\value{tabrow}+\value{tabcol}\relax odd\else even\fi}     \begin{document}     \begin{tabular}{>{\stepcounter{tabrow}\setcounter{tabcol}{1}}CCC}       \oddornot & \oddornot & \oddornot \\       \oddornot & \oddornot & \oddornot \\       \oddornot & \oddornot & \oddornot     \end{tabular}     \end{document}      I'm assuming a solution approach would entail a redefinition of `&` and `\\\` for counter stepping and renewal. However, I'm not comfortable doing that without (perhaps) breaking something else along the way.


title: How to search keyword in all imported files

text: I am using `WinEdt 6.0`. I having a `tex` file reference other `tex` files using `\input{otherFiles}` is it possible to search keywords in all reference files?


title: Remove blank page after end of chapter

text: I have used a double-paged template and it currently creates a blank page such that the new chapter always begins on the left side. However, my report is quite small and I would like to remove these blank pages. How do I do that? A MWE:               \documentclass[10pt,twoside,b5paper,showtrims]{memoir}               % Stock and paper layout     \showtrimsoff     \pagebv     \setlrmarginsandblock{26mm}{20mm}{*}     \setulmarginsandblock{35mm}{30mm}{*}     \setheadfoot{8mm}{10mm}     \setlength{\headsep}{7mm}     \setlength{\marginparwidth}{18mm}     \setlength{\marginparsep}{2mm}               \checkandfixthelayout                 % Check if errors!     \sideparmargin{outer}                 % Put sidemargins in outer position               % Chapterstyle     \makeatletter     \makechapterstyle{mychapterstyle}{         \chapterstyle{default}         \def\format{\normalfont\sffamily}              \setlength\beforechapskip{0mm}              \renewcommand*{\chapnamefont}{\format\LARGE}         \renewcommand*{\chapnumfont}{\format\fontsize{40}{40}\selectfont}         \renewcommand*{\chaptitlefont}{\format\fontsize{32}{32}\selectfont}                             \setlength\midchapskip{1ex}              \renewcommand*{\printchaptertitle}[1]{\raggedleft \chaptitlefont ##1}         \renewcommand*{\afterchaptertitle}{\vskip0.5\onelineskip \hrule \vskip1.3\onelineskip}          }     \makeatother     \chapterstyle{mychapterstyle}          % Header and footer     \def\hffont{\sffamily\small}     \makepagestyle{myruled}     \makeheadrule{myruled}{\textwidth}{\normalrulethickness}     \makeevenhead{myruled}{\hffont\thepage}{}{\hffont\leftmark}     \makeoddhead{myruled}{\hffont\rightmark}{}{\hffont\thepage}     \makeevenfoot{myruled}{}{}{}     \makeoddfoot{myruled}{}{}{}     \makepsmarks{myruled}{         \nouppercaseheads         \createmark{chapter}{both}{shownumber}{}{\space}         \createmark{section}{right}{shownumber}{}{\space}         \createplainmark{toc}{both}{\contentsname}         \createplainmark{lof}{both}{\listfigurename}         \createplainmark{lot}{both}{\listtablename}         \createplainmark{bib}{both}{\bibname}         \createplainmark{index}{both}{\indexname}         \createplainmark{glossary}{both}{\glossaryname}     }     \pagestyle{myruled}     \copypagestyle{cleared}{myruled}      % When \cleardoublepage, use myruled instead of empty     \makeevenhead{cleared}{\hffont\thepage}{}{} % Remove leftmark on cleared pages          \makeevenfoot{plain}{}{}{}            % No page number on plain even pages (chapter begin)     \makeoddfoot{plain}{}{}{}             % No page number on plain odd pages (chapter begin)          %          \begin{document}     %     \chapter{Discussion}     \chapter{Modelling}          \end{document}


title: Using minipage with subfigure didn't produce side by side figures

text: As per this, I tried using `\minipage` with my `\subfigure`, however to no avail. (My figures are still stacked vertically) I even tried changing `scale` to `width=0.5\textwidth`... What did I do wrong? Brief working example: Also uploaded **here** as a .zip file. Sorry, I really don't know how to format stuff on here. So it looks messy.               \documentclass[a4paper,10pt]{article}     \usepackage{setspace}     \usepackage[T1]{fontenc}     \usepackage{amsmath}     \usepackage{graphicx}     \usepackage{eps2pdf}     \usepackage{subfigure}     \usepackage{float}     \usepackage[super,numbers,sort&compress]{natbib}     \usepackage{color}     % \usepackage{underscore}     \usepackage{grrfile}     \usepackage{placeins}     \newcommand{\hilight}[1]{\colorbox{yellow}{#1}}     \renewcommand{\thefootnote}{\alph{footnote}}     \usepackage[paper=letterpaper,left=1.0in,right=1.0in,top=0.25in,bottom=1.0in,]{geometry}                         \begin{document}                    \begin{figure}[ht]     \centering          \begin{minipage}{0.45\textwidth}     \begin{subfigure}[Initial condition]{        \includegraphics[scale =0.25] {./pngs/profile_L_3lambda_max_1wl_0.png}        \label{fig:subfig1}      }     \end{subfigure}     \end{minipage}                \begin{minipage}{0.45\textwidth}      \begin{subfigure}[DFT]{        \includegraphics[scale =0.25] {./pngs/profile_L_3lambda_max_1wl_dft_0.png}        \label{fig:subfig2}      }\end{subfigure}     \end{minipage}                    \begin{minipage}{0.45\textwidth}      \begin{subfigure}[DFT (corner)]{        \includegraphics[scale =0.25] {./pngs/profile_L_3lambda_max_1wl_dft_0_X.png}        \label{fig:subfig3}      }\end{subfigure}     \end{minipage}               \label{myfigure}     \caption{Initial condition, $L=3\lambda_{max}, \text{k}=1, G=0.333,S=100, M=35.1, \text{Pr=7.02}, E=0, Ra=0$}     \end{figure}                         \begin{figure}     \centering          \begin{subfigure}[Initial condition]{        \includegraphics[scale =0.25] {./pngs/profile_L_3lambda_max_1wl_Rup.png}        \label{fig:subfig4}      }\quad     \end{subfigure}           \begin{subfigure}[DFT]{        \includegraphics[scale =0.25] {./pngs/profile_L_3lambda_max_1wl_dft_Rup.png}        \label{fig:subfig5}      }\end{subfigure}           \label{myfigure}     \caption{Rupture condition, , $L=3\lambda_{max}, \text{k}=1, G=0.333,S=100, M=35.1, \text{Pr=7.02}, E=0, Ra=0$}     \end{figure}          \end{document}


title: Using a new environment to make a title bold, large, in a different font, and red

text: I have what I thought was a simple thing to do in latex. I need to take several titles and make them LARGE,bold face,in Bookman font, and red in colour. Is the easiest way to accomplish this to use a new environment? Below is what I tried without success.               \documentclass[a4paper,12pt]{article}     \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage{color}          \newenvironment{scrip}{%       \center\LARGE\bfseries\fontfamily{pbk}\selectfont\color{red}%     %     }{\endcentering}          \begin{document}          \begin{scrip}     I Corinthians 4:1-6     \end{scrip}     \end{document}      Thanks!


title: How to deal with very long lstinline-phrases like long class names?

text: According to this Question: listing: How to deal with very long lines that do not contain spaces? My problem is that my `\lstinline`-phrases does not contain any special character like "-". In my lstlinlines there are very long class name like `ThisIsAVeryLongExampleClassNameAndItHasNoLineBreak`. The problem that results from those class names are overfull boxes. Does anyone knows an approach how to set conditional line breaking marks. (Like `\\-` in normal text).


title: Hyphenation of the word "paraboloid"

text: It seems like my TeX does not hyphenate the word "paraboloid" on its own. After adding `\hyphenation{para-boloid}` (I hope that's the right hyphenation...) to the preamble everything is fine. My question is: How can I tell whether this (or any other word) is an instance where TeX fails to hyphenate or is it happening because of my setting (e.g. packages in use)? The reason I'm curious here is that I don't consider _paraboloid_ an exotic word, and thus I'm surprised it is not hyphenated automatically.


title: Command to increase spacing in table

text: WHen I needed to increase vertical space in a matrix I found this great custom command:               \makeatletter     \renewcommand*\env@matrix[1][\arraystretch]{%       \edef\arraystretch{#1}%       \hskip -\arraycolsep       \let\@ifnextchar\new@ifnextchar       \array{*\c@MaxMatrixCols c}}     \makeatother      which allows me to make matrices like `\begin{bmatrix}[2.5] ... \end{bmatrix}` that have increased vertical space. I'm not too familiar with creating custom commands for latex. Could someone help me edit the above command to allow me to make tables with this increased spacing option?


title: Table of Contents chapter number width

text: I am using the `tocloft` package to design my table of contents. I know how to set the width of the chapter numbers in the toc using               \setlength{\cftchapnumwidth}{2em}      However this sets a fixed width of `2em` for all chapter numbers. Some chapter numbers need more space than others - .e.g. XVII vs V. Is there a way to set the width to dynamically include the width of the chapter number followed by one space?


title: Indent entire section using only preamble

text: I heavily use `org-mode` in Emacs to create TODO lists with timekeeping, which has a handy export to LaTeX feature. The problem is that in order to get my exported LaTeX document to look right, I want to indent entire sections, essentially treating sections like lists. It's very easy to create a template to copy and paste into every new file, but not feasible to edit the text directly as this would interfere with `org-mode`s ease of use. Thus: Is there a way to indent an entire section, using only the preamble? MWE               \documentclass{article}     \usepackage[explicit]{titlesec}     \setcounter{secnumdepth}{0}     \newcommand{\clock}{CLOCK: number number number \\}          \titleformat{\section}{\bfseries{}}{\roman{section}}{3pt}{#1}     \titlespacing*{\section}{0pt}{0pt}{0pt}     \titleformat{\subsection}{\bfseries{}}{\roman{subsection}}{3pt}{$\rightarrow$#1}     \titlespacing*{\subsection}{2em}{0pt}{0pt}     \begin{document}               \section{First section}     \clock          \section{Second section}     \clock     \clock     \clock          \subsection{First subsection}     \clock     \clock          \subsection{Second subsection}     \clock          \subsection{Third subsection}     \clock          \end{document}      I want the text with the red arrow to be indented to the same level as the section. ![Minimum working example](http://i.stack.imgur.com/K1lK4.png)


title: Problem with "Package pgfkeys Error"

text: I am trying to create a color box using `tcolorbox` package.   source code is like this-               \documentclass[11pt]{article}     \usepackage[top=.5in, bottom=.5in, left=1in, right=1in]{geometry}     \usepackage{tcolorbox}     \tcbuselibrary{skins}          \begin{document}          \tcbset{skin=enhanced,fonttitle=\bfseries,     frame style={upper left=blue,upper right=red,lower left=yellow,lower right=green},     interior style={white,opacity=0.5},     segmentation style={black,solid,opacity=0.2,line width=1pt}}          \begin{tcolorbox}[title=Nice box in rainbow colors]          With the ’enhanced’ skin, it is quite easy to produce fancy looking effects.          \tcblower     Note that this is still a \texttt{tcolorbox}.          \end{tcolorbox}          \end{document}      The error I am having is:               ! Package pgfkeys Error: I do not know the key '/tikz/upper left' and I m going to ignore it.     ! Package pgfkeys Error: I do not know the key '/tikz/upper right' and I m going to ignore it.     ! Package pgfkeys Error: I do not know the key '/tikz/lower left' and I m going to ignore it.     ! Package pgfkeys Error: I do not know the key '/tikz/lower right' and I m going to ignore it.


title: htlatex gives me a lot of "random" errors

text: I'm using `htlatex` to convert LaTeX into HTML and I'm getting errors on things that I haven't specified, such as my own environments. An example is `\def\inline{\lstinline[style=inlineStyle]}` which lets me write: `\inline{x == 10}` I'm also using it like this: `\inline!new[]{}!` This is just one example, I've got tons of different environments like this. The error I'm getting on this is: > ? ! Missing } inserted. } l.223 \inline!new[] {}! **So I want to know** if there is an _"Silent"_ -flag that I can use when converting using `htlatex`? So I don't have to press and hold `Enter` for 1 minute during the conversion.


title: Using Expl3 token-list variables where token lists are called for

text: The code below illustrates the trouble I’m having. It seems I cannot directly use a token-list variable where a token list is called for, but why, and how can I get the result I want?               \documentclass{article}     \usepackage{xparse}     \ExplSyntaxOn          \bool_new:N \found_bool          \cs_new_protected:Npn \find_token_in_tl:Nn #1#2       {         \bool_set_false:N \found_bool         \tl_map_inline:nn { #2 }           {             \token_if_eq_charcode:NNT ##1 #1               {                 \bool_set_true:N \found_bool                 \tl_map_break:               }           }       }          \NewDocumentCommand { \FindTokInList } { m m }       {         \find_token_in_tl:Nn #1 {#2}         \bool_if:NTF \found_bool { ! } { ? }       }          \tl_const:Nn \punct_tl {,.;:}          \NewDocumentCommand { \FindTokInPunctList } { m }       {         \find_token_in_tl:Nn #1 \punct_tl         \bool_if:NTF \found_bool { ! } { ? }       }     \ExplSyntaxOff          \begin{document}     dot: \FindTokInList{.}{,.;:} % finds token & prints “!”          x: \FindTokInList{x}{,.;:} % doesn’t find token & prints “?”          dot: \FindTokInPunctList{.} % doesn’t find token & prints “?”, but why?          x: \FindTokInPunctList{x} % doesn’t find token & prints “?”     \end{document}


title: LaTeX table header with split horizontal lines

text: I've seen the following table in paper and would like to reproduce it in LaTeX. The one thing that I'm struggling with is the broken horizontal lines between the two different "Dep. Var." columns (gap between model "(5)" and "(6)". What is a good way to achieve a similar effect in LaTeX? I can thing only of adding a narrow, empty "dummy" column. Any other ideas? ![enter image description here](http://i.stack.imgur.com/bkRD6.png)


title: Set the axis range according to the data range, that is, no scales for axis

text: I use the matlab2tikz package to creat surface in LaTex editor, but it display ugly unlike the Fig. created in the Matlab. Can anyone help me out? Is there a way of adjusting the x,y and z axis ranges with different ratios? Thanks in advance! Here is my MWE:               \documentclass[border=5mm]{standalone}     \usepackage{pgfplots}     \pgfplotsset{compat=newest}     \begin{document}     \begin{tikzpicture}          \begin{axis}[%     width=11.0276041666667in,     height=0.913361757624398in,     view={-34.5}{32},     scale only axis,     xmin=0,     xmax=124.6,     xmajorgrids,     ymin=-5.16,     ymax=5.16,     ymajorgrids,     zmin=-0.50849813416709,     zmax=1.00241500295172,     zmajorgrids,     axis x line*=bottom,     axis y line*=left,     axis z line*=left     ]          \addplot3[%     surf,     colormap/jet,     shader=faceted interp,     mesh/rows=215]     table[row sep=crcr,header=false] {     124.6 5.16 0.00245834984130098\\     124.6 -5.16 -0.0300853482799027\\     124.011214907829 5.16 -0.0135370418770717\\     124.011214907829 -5.16 -0.0483636748913606\\     123.422429845324 5.16 -0.0297011079876108\\     123.422429845324 -5.16 -0.0684925075668529\\     122.833644805243 5.16 -0.0458579043788372\\     122.833644805243 -5.16 -0.0901666015746197\\     122.24485978034 5.16 -0.0618314869392716\\     122.24485978034 -5.16 -0.113080712182901\\     121.656074763371 5.16 -0.0774459115574348\\     121.656074763371 -5.16 -0.136929594659937\\     121.067289747092 5.16 -0.0925252341218476\\     121.067289747092 -5.16 -0.161408004273967\\     120.478504724259 5.16 -0.106893510521031\\     120.478504724259 -5.16 -0.186210696293232\\     119.889719687627 5.16 -0.120374796643505\\     119.889719687627 -5.16 -0.211032425985972\\     119.300934629952 5.16 -0.132793148377792\\     119.300934629952 -5.16 -0.235567948620426\\     118.71214954399 5.16 -0.143972621612411\\     118.71214954399 -5.16 -0.259512019464835\\     118.12336442634 5.16 -0.153823976538202\\     118.12336442634 -5.16 -0.282581403365504\\     117.53457930115 5.16 -0.162879533599953\\     117.53457930115 -5.16 -0.304650646023493\\     116.945794204593 5.16 -0.171942844348157\\     116.945794204593 -5.16 -0.325663144189178\\     116.357009172889 5.16 -0.181818589801119\\     116.357009172889 -5.16 -0.345562581324311\\     115.76822424226 5.16 -0.19331145097714\\     115.76822424226 -5.16 -0.364292640890642\\     115.179439438368 5.16 -0.207115287119426\\     115.179439438368 -5.16 -0.381809574168138\\     114.590654683129 5.16 -0.222835244352622\\     114.590654683129 -5.16 -0.398193098682909\\     114.00186983958 5.16 -0.239458526583429\\     114.00186983958 -5.16 -0.413593010115434\\     113.413084770077 5.16 -0.255965245124939\\     113.413084770077 -5.16 -0.428159908486555\\     112.824299336981 5.16 -0.271335511290247\\     112.824299336981 -5.16 -0.442044393817114\\     112.235513428429 5.16 -0.28461138880528\\     112.235513428429 -5.16 -0.455375466100645\\     111.646727290617 5.16 -0.295695451104695\\     111.646727290617 -5.16 -0.467982104195751\\     111.057941431882 5.16 -0.305120257447062\\     111.057941431882 -5.16 -0.479473639163968\\     110.469156366569 5.16 -0.313432804794809\\     110.469156366569 -5.16 -0.489454368287139\\     109.880372609021 5.16 -0.321180090110363\\     109.880372609021 -5.16 -0.497528588847106\\     109.291590615277 5.16 -0.328885046062938\\     109.291590615277 -5.16 -0.503319162055522\\     108.702809639187 5.16 -0.336574421653107\\     108.702809639187 -5.16 -0.506831720340943\\     108.114027804823 5.16 -0.343808668220827\\     108.114027804823 -5.16 -0.508431612370634\\     107.52524319245 5.16 -0.350130157246391\\     107.52524319245 -5.16 -0.50849813416709\\     106.936453882333 5.16 -0.355081260210092\\     106.936453882333 -5.16 -0.507410581752805\\     106.347658073921 5.16 -0.358214154550374\\     106.347658073921 -5.16 -0.505538763822303\\     105.758857904086 5.16 -0.359404977508339\\     105.758857904086 -5.16 -0.502939055864529\\     105.170060254916 5.16 -0.358920288733003\\     105.170060254916 -5.16 -0.499290097162155\\     104.581272291004 5.16 -0.357049891626036\\     104.581272291004 -5.16 -0.494248038516736\\     103.992501176942 5.16 -0.354083589589109\\     103.992501176942 -5.16 -0.487469030729825\\     103.403753868045 5.16 -0.350308690878921\\     103.403753868045 -5.16 -0.478614341408224\\     102.815024762875 5.16 -0.345862795053773\\     102.815024762875 -5.16 -0.467652246473429\\     102.226288797027 5.16 -0.340651453189456\\     102.226288797027 -5.16 -0.455026884734723\\     101.637519231861 5.16 -0.334560255201975\\     101.637519231861 -5.16 -0.441223329443348\\     101.04868932874 5.16 -0.327474791007333\\     101.04868932874 -5.16 -0.426726653850547\\     100.459772633662 5.16 -0.319281053143255\\     100.459772633662 -5.16 -0.412019787060976\\     99.8707815761551 5.16 -0.309920035495395\\     99.8707815761551 -5.16 -0.39729275060269\\     99.2818066192337 5.16 -0.299443111499199\\     99.2818066192337 -5.16 -0.382147743929335\\     98.6929475528583 5.16 -0.287914847698635\\     98.6929475528583 -5.16 -0.36611670709928\\     98.1043041669895 5.16 -0.275399810637669\\     98.1043041669895 -5.16 -0.348731580170891\\     97.5159760221363 5.16 -0.261962681304634\\     97.5159760221363 -5.16 -0.329524642631773\\     96.9279461174515 5.16 -0.247726278425107\\     96.9279461174515 -5.16 -0.308200604021461\\     96.3398915932526 5.16 -0.232965975062752\\     96.3398915932526 -5.16 -0.284916633051188\\     95.7514400283359 5.16 -0.217981864263998\\     95.7514400283359 -5.16 -0.259903215147184\\     95.1622190014972 5.16 -0.203074039075273\\     95.1622190014972 -5.16 -0.233390835735677\\     94.5718561232485 5.16 -0.188542572978624\\     94.5718561232485 -5.16 -0.20560999015383\\     93.9803165862943 5.16 -0.17447929615653\\     93.9803165862943 -5.16 -0.176896665734152\\     93.3887365596779 5.16 -0.160253702182748\\     93.3887365596779 -5.16 -0.147952771451401\\     92.7985059382545 5.16 -0.145078769561836\\     92.7985059382545 -5.16 -0.119559503762741\\     92.2110146168792 5.16 -0.128167476798355\\     92.2110146168792 -5.16 -0.0924980591253398\\     91.6276524904074 5.16 -0.108732802396864\\     91.6276524904074 -5.16 -0.067549633996362\\     91.0501686126752 5.16 -0.0863259757928153\\     91.0501686126752 -5.16 -0.0452684152582118\\     90.4819696011121 5.16 -0.0620592967490891\\     90.4819696011121 -5.16 -0.0251609122295703\\     89.9269399341717 5.16 -0.0374951078921182\\     89.9269399341717 -5.16 -0.00643159798989736\\     89.3889641352027 5.16 -0.0141957941297012\\     89.3889641352027 -5.16 0.0117150827575436\\     88.8719267275536 5.16 0.00627625963036314\\     88.8719267275536 -5.16 0.0300746853094894\\     88.3780038959451 5.16 0.0227123268322176\\     88.3780038959451 -5.16 0.0493629677219275\\     87.8988291612511 5.16 0.0360862113974958\\     87.8988291612511 -5.16 0.0698032356345549\\     87.4220182849799 5.16 0.048203469297768\\     87.4220182849799 -5.16 0.0914311233986398\\     86.9351791196646 5.16 0.0608712938117892\\     86.9351791196646 -5.16 0.11428189593378\\     86.4259195178384 5.16 0.0758968782183145\\     86.4259195178384 -5.16 0.138390818159575\\     85.883453525421 5.16 0.094876857078085\\     85.883453525421 -5.16 0.163793687048257\\     85.3104333331473 5.16 0.117646234896269\\     85.3104333331473 -5.16 0.190530750966532\\     84.7162072641422 5.16 0.143162208397564\\     84.7162072641422 -5.16 0.218644476379448\\     84.1101726586624 5.16 0.170375548564539\\     84.1101726586624 -5.16 0.248177345989008\\     83.5017268569649 5.16 0.198237026379766\\     83.5017268569649 -5.16 0.279171842497217\\     82.8996787869656 5.16 0.225768316231811\\     82.8996787869656 -5.16 0.31163655132421\\     82.3059970831171 5.16 0.252815344603939\\     82.3059970831171 -5.16 0.345186001988375\\     81.7182372873149 5.16 0.279755813524383\\     81.7182372873149 -5.16 0.379180494394074\\     81.133881389912 5.16 0.306976287947126\\     81.133881389912 -5.16 0.412976091285434\\     80.5504113812614 5.16 0.334863332826151\\     80.5504113812614 -5.16 0.445928855406581\\     79.9654085390389 5.16 0.363773272482593\\     79.9654085390389 -5.16 0.477436925531164\\     79.378121857673 5.16 0.393554483107753\\     79.378121857673 -5.16 0.507605186241167\\     78.7891841486556 5.16 0.42363386207264\\     78.7891841486556 -5.16 0.537124956780007\\     78.1992701103181 5.16 0.453425548981282\\     78.1992701103181 -5.16 0.566705307216056\\     77.6090544409918 5.16 0.482343683437705\\     77.6090544409918 -5.16 0.597055307617682\\     77.0191964432262 5.16 0.509823576669842\\     77.0191964432262 -5.16 0.628853034931425\\     76.4299583469635 5.16 0.535846577257793\\     76.4299583469635 -5.16 0.661977222498642\\     75.8411798603109 5.16 0.560975067828137\\     75.8411798603109 -5.16 0.695456028425124\\     75.25268019959 5.16 0.585799610438877\\     75.25268019959 -5.16 0.728276358971502\\     74.6642785811227 5.16 0.610910767148012\\     74.6642785811227 -5.16 0.759425120398406\\     74.0757963333257 5.16 0.636890903485123\\     74.0757963333257 -5.16 0.787907669844716\\     73.487146945386 5.16 0.663964731383268\\     73.487146945386 -5.16 0.813534464197314\\     72.8983697906526 5.16 0.691868436874628\\     72.8983697906526 -5.16 0.837215661516257\\     72.3095133055073 5.16 0.720303034559864\\     72.3095133055073 -5.16 0.859940592868467\\     71.7206259263318 5.16 0.748969539039638\\     71.7206259263318 -5.16 0.882698589320866\\     71.1317558508364 5.16 0.777567203502448\\     71.1317558508364 -5.16 0.906467255350646\\     70.5429304824813 5.16 0.805641818102081\\     70.5429304824813 -5.16 0.931202516304728\\     69.9541405886593 5.16 0.832468796225283\\     69.9541405886593 -5.16 0.955060266006394\\     69.3653732075218 5.16 0.857296029193753\\     69.3653732075218 -5.16 0.97601317031439\\     68.7766153772201 5.16 0.87937140832919\\     68.7766153772201 -5.16 0.992033895087461\\     68.1878541547636 5.16 0.897944847649775\\     68.1878541547636 -5.16 1.00110020788952\\     67.5990811257314 5.16 0.912751992771678\\     67.5990811257314 -5.16 1.00241500295172\\     67.0102982534909 5.16 0.924641604470226\\     67.0102982534909 -5.16 0.99798870662968\\     66.4215089490548 5.16 0.934617717080566\\     66.4215089490548 -5.16 0.99022338086466\\     65.8327166234359 5.16 0.943684364937846\\     65.8327166234359 -5.16 0.981521087597941\\     65.2439246870578 5.16 0.952845299006288\\     65.2439246870578 -5.16 0.974283396979457\\     64.6551356564309 5.16 0.962674431976003\\     64.6551356564309 -5.16 0.970165893173758\\     64.0663493546142 5.16 0.9724505297176\\     64.0663493546142 -5.16 0.968576428036379\\     63.4775650994052 5.16 0.981209402953593\\     63.4775650994052 -5.16 0.96850120382469\\     62.8887822086013 5.16 0.987986862406498\\     62.8887822086013 -5.16 0.968926422796058\\     62.3 5.16 0.991818718798828\\     62.3 -5.16 0.968838287207852\\     61.7112177913987 5.16 0.992029325287716\\     61.7112177913987 -5.16 0.967317785174214\\     61.1224349005948 5.16 0.989097204768754\\     61.1224349005948 -5.16 0.963825048236384\\     60.5336506453858 5.16 0.983789422572151\\     60.5336506453858 -5.16 0.957914993792379\\     59.9448643435691 5.16 0.976873044028117\\     59.9448643435691 -5.16 0.949142539240214\\     59.3560753129422 5.16 0.96911513446686\\     59.3560753129422 -5.16 0.937062601977904\\     58.7672833765641 5.16 0.961197123011807\\     58.7672833765641 -5.16 0.921383362666899\\     58.1784910509452 5.16 0.953343928760892\\     58.1784910509452 -5.16 0.902630018729716\\     57.5897017465091 5.16 0.945628962520855\\     57.5897017465091 -5.16 0.881598922232666\\     57.0009188742686 5.16 0.938125535216578\\     57.0009188742686 -5.16 0.859086604000787\\     56.4121458452364 5.16 0.930906957772943\\     56.4121458452364 -5.16 0.835889594859115\\     55.8233846227799 5.16 0.923925919463005\\     55.8233846227799 -5.16 0.812706615377532\\     55.2346267924782 5.16 0.916270404781198\\     55.2346267924782 -5.16 0.789535210227975\\     54.6458594113407 5.16 0.90665106580451\\     54.6458594113407 -5.16 0.766066950988247\\     54.0570695175187 5.16 0.8937769833122\\     54.0570695175187 -5.16 0.741992135094825\\     53.4682441491636 5.16 0.876357238083529\\     53.4682441491636 -5.16 0.717001059984187\\     52.8793740736682 5.16 0.853282257338918\\     52.8793740736682 -5.16 0.690830786141849\\     52.2904866944927 5.16 0.825224015736729\\     52.2904866944927 -5.16 0.663677774247094\\     51.7016302093474 5.16 0.793865675691223\\     51.7016302093474 -5.16 0.63599923574065\\     51.112853054614 5.16 0.760902005788897\\     51.112853054614 -5.16 0.608255374898384\\     50.5242036666743 5.16 0.728027774616247\\     50.5242036666743 -5.16 0.580906395996161\\     49.9357214188773 5.16 0.696845486217194\\     49.9357214188773 -5.16 0.554378091489725\\     49.34731980041 5.16 0.667676103997848\\     49.34731980041 -5.16 0.528618278822104\\     48.7588201396891 5.16 0.639902365535598\\     48.7588201396891 -5.16 0.503224846226765\\     48.1700416530365 5.16 0.61288550661184\\     48.1700416530365 -5.16 0.477787662432439\\     47.5808035567738 5.16 0.585986763007968\\     47.5808035567738 -5.16 0.45189659616786\\     46.9909455590082 5.16 0.558586750796152\\     46.9909455590082 -5.16 0.425166541245261\\     46.4007298896819 5.16 0.530465689880285\\     46.4007298896819 -5.16 0.397728385760678\\     45.8108158513444 5.16 0.501779335160029\\     45.8108158513444 -5.16 0.370197932857997\\     45.221878142327 5.16 0.472698002234357\\     45.221878142327 -5.16 0.343209787396737\\     44.6345914609611 5.16 0.443392006702236\\     44.6345914609611 -5.16 0.317398554236418\\     44.0495886187386 5.16 0.414029132438028\\     44.0495886187386 -5.16 0.293377135706701\\     43.466118610088 5.16 0.384693522636444\\     43.466118610088 -5.16 0.271041446854509\\     42.8817627126851 5.16 0.355368520345758\\     42.8817627126851 -5.16 0.249423320519435\\     42.2940029168829 5.16 0.326031467489245\\     42.2940029168829 -5.16 0.227503146507329\\     41.7003212130344 5.16 0.296659705990182\\     41.7003212130344 -5.16 0.204261314624044\\     41.0982731430351 5.16 0.267232024142359\\     41.0982731430351 -5.16 0.178696528172047\\     40.4898273413376 5.16 0.237813992470467\\     40.4898273413376 -5.16 0.150906300250734\\     39.8837927358578 5.16 0.208605693957086\\     39.8837927358578 -5.16 0.122691299144737\\     39.2895666668527 5.16 0.179818782548922\\     39.2895666668527 -5.16 0.0959987011116136\\     38.716546474579 5.16 0.151664912192673\\     38.716546474579 -5.16 0.0727756824089198\\     38.1740804821616 5.16 0.124355491324606\\     38.1740804821616 -5.16 0.0549593528098825\\     37.6648208803354 5.16 0.0980683896910431\\     37.6648208803354 -5.16 0.0431116597962725\\     37.1779817150201 5.16 0.0729141698606611\\     37.1779817150201 -5.16 0.0350348040376191\\     36.7011708387489 5.16 0.0489953495160949\\     36.7011708387489 -5.16 0.0282011276449008\\     36.2219961040549 5.16 0.026414446339982\\     36.2219961040549 -5.16 0.0200829727290969\\     35.7280732724464 5.16 0.00527359277326598\\     35.7280732724464 -5.16 0.00815469829562729\\     35.2110358647973 5.16 -0.0145207815225178\\     35.2110358647973 -5.16 -0.00908475427375977\\     34.6730600658283 5.16 -0.0335757740609423\\     34.6730600658283 -5.16 -0.03044792330668\\     34.1180303988879 5.16 -0.052581694560997\\     34.1180303988879 -5.16 -0.0543116979313642\\     33.5498313873248 5.16 -0.0722288527416733\\     33.5498313873248 -5.16 -0.0790529672760451\\     32.9723475095926 5.16 -0.0932075325147445\\     32.9723475095926 -5.16 -0.103048655517106\\     32.3889853831208 5.16 -0.115933325781693\\     32.3889853831208 -5.16 -0.125048739361974\\     31.8014940617455 5.16 -0.139868996211003\\     31.8014940617455 -5.16 -0.145097208342081\\     31.2112634403221 5.16 -0.164270849740765\\     31.2112634403221 -5.16 -0.163518437205726\\     30.6196834137057 5.16 -0.188395192309065\\     30.6196834137057 -5.16 -0.180636800701207\\     30.0281438767515 5.16 -0.211498329853994\\     30.0281438767515 -5.16 -0.196776673576825\\     29.4377809985028 5.16 -0.233004519635358\\     29.4377809985028 -5.16 -0.212185364379588\\     28.8485599716641 5.16 -0.253113135256614\\     28.8485599716641 -5.16 -0.226754511504272\\     28.2601084067474 5.16 -0.272247009554766\\     28.2601084067474 -5.16 -0.240273216764837\\     27.6720538825485 5.16 -0.290828996360733\\     27.6720538825485 -5.16 -0.252530572341968\\     27.0840239778637 5.16 -0.309281949505434\\     27.0840239778637 -5.16 -0.263315670416348\\     26.4956958330105 5.16 -0.327953872184169\\     26.4956958330105 -5.16 -0.272491177556375\\     25.9070524471417 5.16 -0.34673084214186\\     25.9070524471417 -5.16 -0.280373809676841\\     25.3181933807663 5.16 -0.365322899517437\\     25.3181933807663 -5.16 -0.287453318752528\\     24.7292184238449 5.16 -0.383439737919108\\     24.7292184238449 -5.16 -0.294219797380386\\     24.1402273663382 5.16 -0.400791050955083\\     24.1402273663382 -5.16 -0.301163338157362\\     23.5513106712596 5.16 -0.417090155613281\\     23.5513106712596 -5.16 -0.308688588212764\\     22.9624807681389 5.16 -0.432080683725219\\     22.9624807681389 -5.16 -0.316485319009246\\     22.3737112029735 5.16 -0.44552137279428\\     22.3737112029735 -5.16 -0.323887084527663\\     21.7849752371249 5.16 -0.457171070900622\\     21.7849752371249 -5.16 -0.330224831160139\\     21.1962461319546 5.16 -0.466788626124401\\     21.1962461319546 -5.16 -0.334829505298794\\     20.607498823058 5.16 -0.47415600863399\\     20.607498823058 -5.16 -0.337118862900207\\     20.0187277089964 5.16 -0.47932398287326\\     20.0187277089964 -5.16 -0.337519821107768\\     19.4299397450839 5.16 -0.482516728947697\\     19.4299397450839 -5.16 -0.337110368798292\\     18.8411420959137 5.16 -0.483961317223812\\     18.8411420959137 -5.16 -0.336979346044152\\     18.2523419260789 5.16 -0.483884818068118\\     18.2523419260789 -5.16 -0.338215592917721\\     17.6635461176669 5.16 -0.482508202759974\\     17.6635461176669 -5.16 -0.341810296135255\\     17.0747568075504 5.16 -0.479949996974207\\     17.0747568075504 -5.16 -0.347114371196972\\     16.485972195177 5.16 -0.476243720358448\\     16.485972195177 -5.16 -0.352117689952201\\     15.8971903608127 5.16 -0.471420319507932\\     15.8971903608127 -5.16 -0.354768926740659\\     15.3084093847231 5.16 -0.465510741017896\\     15.3084093847231 -5.16 -0.353016755902063\\     14.7196273909792 5.16 -0.458549584804613\\     14.7196273909792 -5.16 -0.344887472907207\\     14.1308436334309 5.16 -0.450665673587248\\     14.1308436334309 -5.16 -0.330409299818457\\     13.5420585681176 5.16 -0.442088091827533\\     13.5420585681176 -5.16 -0.31174069301942\\     12.9532727093831 5.16 -0.433050786557501\\     12.9532727093831 -5.16 -0.291143422619167\\     12.3644865715714 5.16 -0.423787704809184\\     12.3644865715714 -5.16 -0.270879258726766\\     11.7757006630187 5.16 -0.414523787259028\\     11.7757006630187 -5.16 -0.253178353180044\\     11.1869152299226 5.16 -0.405090984368217\\     11.1869152299226 -5.16 -0.238891201961684\\     10.5981301604204 5.16 -0.394784453732404\\     10.5981301604204 -5.16 -0.226983802684749\\     10.0093453168708 5.16 -0.382860706534687\\     10.0093453168708 -5.16 -0.216286478466366\\     9.42056056163238 5.16 -0.368576253958161\\     9.42056056163238 -5.16 -0.205629552423662\\     8.83177575773971 5.16 -0.351194060377347\\     8.83177575773971 -5.16 -0.193850001095043\\     8.24299082711088 5.16 -0.330539324469457\\     8.24299082711088 -5.16 -0.180364480347981\\     7.65420579540707 5.16 -0.307427809795068\\     7.65420579540707 -5.16 -0.165610946216501\\     7.06542069884972 5.16 -0.282776111030737\\     7.06542069884972 -5.16 -0.150131314442139\\     6.4766355736602 5.16 -0.257500822853019\\     6.4766355736602 -5.16 -0.13446750076643\\     5.88785045600988 5.16 -0.232517352265225\\     5.88785045600988 -5.16 -0.119160701400256\\     5.2990653700479 5.16 -0.208455897675182\\     5.2990653700479 -5.16 -0.104579324013857\\     4.71028031237311 5.16 -0.185293066057777\\     4.71028031237311 -5.16 -0.0906958095651698\\     4.12149527574123 5.16 -0.162914291908904\\     4.12149527574123 -5.16 -0.0774273637918704\\     3.53271025290799 5.16 -0.141205009724459\\     3.53271025290799 -5.16 -0.0646911924316356\\     2.94392523662908 5.16 -0.120050654000336\\     2.94392523662908 -5.16 -0.0524045012221414\\     2.35514021966025 5.16 -0.0993366592324308\\     2.35514021966025 -5.16 -0.0404844959010647\\     1.7663551947572 5.16 -0.0789484599166379\\     1.7663551947572 -5.16 -0.0288483822060813\\     1.17757015467567 5.16 -0.058771490548853\\     1.17757015467567 -5.16 -0.0174133658748683\\     0.588785092171356 5.16 -0.0386911856249704\\     0.588785092171356 -5.16 -0.00609665264510153\\     0 5.16 -0.018592979640886\\     0 -5.16 0.00518455174554207\\     };     \end{axis}     \end{tikzpicture}%     \end{document}      ![enter image description here](http://i.stack.imgur.com/0NZ1I.png) This Fig. is created by Matlab, the axis range of which is what I what. ![enter image description here](http://i.stack.imgur.com/J2gOE.jpg) And this Fig. is created by the above code, which does not display well.


title: How to alter the bond length of a double bond in chemfig?

text: With the chemfig package, is it possible to alter the bond length of the pi- bond in a double-bond? I know about the `\setbondoffset{}`-command, but in this case, this does not work. Hope the below example clarifies what i want to accomplish. Input:               \documentclass{scrartcl}     \usepackage{chemfig}          \begin{document}     \chemfig{-[:120]=^[:180]-[:240]}     \end{document}      Output: ![Output.](http://i.stack.imgur.com/KGdCG.png) Desired ouput: ![Desired output.](http://i.stack.imgur.com/qgBIy.png)


title: Biblatex with MiKTeX

text: I wanted to try `biblatex`, but even my minimal examples don't work:               \documentclass{article}     \begin{filecontents}{\jobname.bib}     @ONLINE{Doe:2009:Online,     author = {Doe, Ringo},     title = {This is a test entry of type {@ONLINE}},     month = jun,     year = {2009},     url = {http://www.test.org/doe/}     }     \end{filecontents}     \usepackage{biblatex}     \bibliography{\jobname.bib}     \title{BibTeX Website citations with the \textsf{biblatex}~package}     \date{}     \begin{document}     \maketitle     \nocite{Doe:2009:Online}     \printbibliography     \end{document}      I just do not get any output for my document. Is there anything I have to watch out for using MiKTeX? Where does the bib file have to be? Unfortunately, I haven't found anything on the internet in this regard.


title: Using math symbols inside mbox

text: I am trying to write something like r=1m or r~1m inlined in my text. Currently i am using `$\mbox{r=1m}$`. However this gives me problems if I use `$\mbox{r \approx 1m}$` it is not working and `$\mbox{r}\approx\mbox{1m}$` is horrible to write and produces large gaps between r the ~ symbol and 1m. Is there a smarter way to do it ?


title: graph weight Visualization incorrect

text: A picture is worth a thousand words ... ![enter image description here](http://i.stack.imgur.com/d42Tz.png) As you can see, the weight-caption are drawn into the line. Anyone have an idea how to fix it? Here's my code:               \begin{figure}[h]          \centering          \begin{tikzpicture}[->,>=stealth',shorten >=1pt,auto,node distance=3cm,thick,main node/.style={circle,fill=white!20,draw,font=\sffamily\Large\bfseries}]            \node[initial,main node] (1) {1};       \node[main node] (2) [right of=1] {2};       \node[main node] (3) [right of=2] {3};                 \path[every node/.style={font=\sffamily\small}]         (1) edge node [right] {0.5} (2)         (2) edge node [right] {0.8} (3);               \end{tikzpicture}          \caption{Beispiel Pfad} \label{fig:begriffe_4}          \end{figure}       Thanks for any help!


title: How to use the import package with folders containing accented (non-English) letters in their names?

text: To illustrate my problem, suppose that you have the master file `main.tex` and a chapter called `chapter.tex` in a subfolder called `folder`. Both files use UTF8 encoding. Then, the following minimal code example compiles fine:               % main.tex     \documentclass[12pt]{book}     \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage{import}     \usepackage{lipsum}          \begin{document}     \includefrom{folder/}{chapter}     \end{document}      * * *               % chapter.tex     \lipsum[1]      How should I change the code above if the subfolder contains accents in its name (e.g. `fólder` instead of `folder`)? Changing the `\includefrom` to               \includefrom{fólder/}{chapter}      or               \includefrom{f\'older/}{chapter}      wouldn't help. Thanks,   Ádám


title: How to avoid widows-orphans with mdframed?

text: I have a document with a lot of mdframed boxes ; which option can I set to avoid 'widow' lines at the end of the box (that is, avoid to have small parts of boxes on new pages)?               \documentclass[a4paper]{article}     \usepackage[english]{babel}     \usepackage[utf8x]{inputenc}     \usepackage{mdframed}          \title{Your Paper}     \author{You}          \begin{document}     \maketitle          \begin{abstract}     Your abstract.     \end{abstract}          \section{Introduction}          \begin{mdframed}     Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec a diam lectus. Sed sit amet ipsum mauris. Maecenas congue ligula ac quam viverra nec consectetur ante hendrerit. Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean ut gravida lorem. Ut turpis felis, pulvinar a semper sed, adipiscing id dolor. Pellentesque auctor nisi id magna consequat sagittis. Curabitur dapibus enim sit amet elit pharetra tincidunt feugiat nisl imperdiet. Ut convallis libero in urna ultrices accumsan. Donec sed odio eros. Donec viverra mi quis quam pulvinar at malesuada arcu rhoncus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. In rutrum accumsan ultricies. Mauris vitae nisi at sem facilisis semper ac in est.     \end{mdframed}          \begin{mdframed}     Vivamus fermentum semper porta. Nunc diam velit, adipiscing ut tristique vitae, sagittis vel odio. Maecenas convallis ullamcorper ultricies. Curabitur ornare, ligula semper consectetur sagittis, nisi diam iaculis velit, id fringilla sem nunc vel mi. Nam dictum, odio nec pretium volutpat, arcu ante placerat erat, non tristique elit urna et turpis. Quisque mi metus, ornare sit amet fermentum et, tincidunt et orci. Fusce eget orci a orci congue vestibulum. Ut dolor diam, elementum et vestibulum eu, porttitor vel elit. Curabitur venenatis pulvinar tellus gravida ornare. Sed et erat faucibus nunc euismod ultricies ut id justo. Nullam cursus suscipit nisi, et ultrices justo sodales nec. Fusce venenatis facilisis lectus ac semper. Aliquam at massa ipsum. Quisque bibendum purus convallis nulla ultrices ultricies. Nullam aliquam, mi eu aliquam tincidunt, purus velit laoreet tortor, viverra pretium nisi quam vitae mi. Fusce vel volutpat elit. Nam sagittis nisi dui.     \end{mdframed}          \begin{mdframed}     Vivamus fermentum semper porta. Nunc diam velit, adipiscing ut tristique vitae, sagittis vel odio. Maecenas convallis ullamcorper ultricies. Curabitur ornare, ligula semper consectetur sagittis, nisi diam iaculis velit, id fringilla sem nunc vel mi. Nam dictum, odio nec pretium volutpat, arcu ante placerat erat, non tristique elit urna et turpis. Quisque mi metus, ornare sit amet fermentum et, tincidunt et orci.          Widow lines.     \end{mdframed}          %\begin{mdframed}...\end{mdframed}\begin{mdframed}...          \end{document}


title: How to use an hyperlink as a paragraph title?

text: I want to use the `hyperref` package to create hyperlinks in my pdf output. I have a global table and I would like to link each line to a more detailed table further down the document. And for each detailed table, I would like the paragraph title to become an hyperlink to the global table. The first part is not a problem (linking each line of the big table to a small detail table). I didn't find how to do the second one though (link the paragraph title to the global table). Something like               \subparagraph{\hyperlink{my target here}{my title here}}      doesn't seem to work. Anybody knows how to write this one ? Thank you for your help.


title: TeXworks auto-complete

text: TeXworks autocomplete capability is incomplete, messy and unpredictable. Is there any way to migrate TeXStudio auto-complete data to TeXworks?


title: Allow more authors before replacement by "et al." with natbib/achemso

text: I'm using the natbib package to create my bibliography combined with the achemso style. I know there is a achemso package to create achemso-themed articles, but I'm writing a thesis so that's not applicable. Currently, I use the package as follows:               \usepackage[super,sort&compress,comma]{natbib} % Bibliography style package          \begin{document}          [...]          \bibliographystyle{achemso}     \bibliography{Masterthesis2014}          \end{document}      The standard settings cut off more than 15 authors by "et al." However, there is one citation that has a LOT of authors (>30, haven't counted them) and everyone has to be cited (it's Gaussian, for those who care). I was wondering how I could make them all appear. I tried changing the achemso.bst (located in ...\MiKTeX 2.9\bibtex\bst\achemso\achemso.bst)'and made the following edit               #1 'ctrl.article.title.bool :=     #0 'ctrl.chapter.title.bool :=     #100 'ctrl.etal.firstonly.bool :=     #100 'ctrl.etal.number.int :=      Where the original was               #0 'ctrl.article.title.bool :=     #0 'ctrl.chapter.title.bool :=     #1 'ctrl.etal.firstonly.bool :=     #15 'ctrl.etal.number.int :=


title: How to install PGF/TikZ 3.0 in MikTeX?

text: Currently, the MiKTeX package manager does not know of the latest stable version of PGF/TikZ. I have made an attempt at installing it manually, following Stephan Kottwitz’ answer to question How can I manually install a package on MiKTeX (Windows) as a guide, but I get stuck at the following steps: > You could extract it to the right place. Also here, as after any > installation After downloading the package from SourceForge, I found that it contains C code in the `.\source\generic\pgf\c` directory, which does not seem to belong in my `~\AppData\Roaming\MiKTeX\2.9\source` directory. How should I install this into the latest MiKTeX distro (2.9.5105 x86_64)? PS: If you're wondering why I would need that, it's because someone suggested it to me.


title: How to float figure within multicol text

text: I have a simple two-column text, and want to place figures within the text. I used this code               \documentclass{article}     \usepackage{multicol}     \usepackage{graphicx}     \usepackage{caption}          \begin{document}     \begin{multicols}{2}     First text     \begin{center}         \includegraphics[width=0.5\textwidth]{ebooks.jpg}         \captionof{figure}{This is a test}         \label{fig: 11}     \end{center}     Second text     \end{multicols}     \end{document}      My problem is that the figure will be placed exactly after `First text` no matter where it is. For example, if `First text` needs 80% space and figure needs 30%; figure will be pushed to the second page, and we will have 20% gap in the first page. How can I make the structure flexible. In this example, put 70% of `First text` in the first page (with 30% space needed for figure to make 100% filled page); then, flow the remaining 10% of `First text` to the second page.


title: How can Bibtex find the auxiliary files it needs when these are stored in a subdirectory

text: In order to make my major folder containing my master .tex file more clean, I have set Texworks to store all auiliary files in a subfolder called `auxfiles`. This was done by adding the following command line `-aux- directory=./auxfiles` into the Arguments list for the pdfLaTex processing tool in TexWorks (detailed explanation given in: How can I put .aux files in separate folder using a command inside TexWorks?). However, after having done this BibTEx is no longer able to find the auxiliary files it needs. How do I make BibTex find the auxiliary files it needs, and in addition put its output into the `auxfiles` directory?