title: Including DOI field in bibliography while using multibib package

text: I am new to Latex and I used `multibib package` and .bib file. Every thing works great except there is no `DOI` at the end of entities. All my entities in the bib file have `DOI` filed and `url` and I use `unsrt` and `ieeetr` styles in my bibliography subsections. I check this post but including `doi package` in Latex with `multibib` results in error `Option clash for package hyperref. \begin{document}` which I don't understand why? I also came up with the idea of editing `biblatex.cfg` by adding `doi=true` line to that file it does not work either (I don't know if i did it in correct way). I use x64 edition of `MiKTeX 2.9` with `BibTex` and `TexStudio 2.6.6`. I want something that results in adding DOI to the end of my bib entities in the PDF with hyperlink like `\newcommand*{\doi}[1]{\href{http://dx.doi.org/#1}{doi: #1}}` automatically for my doi fields in bib file for `unsrt` and `ieeetr` styles. As mentioned in comments I provide a minimal sample of the paper at following: File: Ref.bib               @article{a1,      author             = {Author1},      title              = {Title1},      journal            = {Journal1},      issn               = {xxxx-yyyy},      year               = {2013},      volume             = {TR},      number             = {3},      pages              = {52-144},      doi                = {10.10.1038/nphys1170},      url                = {http://dx.doi.org/10.10.1038/nphys1170}     }          @article{a2,      author             = {Author2},      title              = {Title2},      journal            = {Journal2},      issn               = {xxxx-yyyy},      year               = {2012},      volume             = {k-8},      number             = {6},      pages              = {12-17},      doi                = {10.1002/0470841559.ch1},      url                = {http://dx.doi.org/10.1002/0470841559.ch1}     }          @inproceedings{c1,       author             = {Author3},      title              = {Title3},      booktitle          = {proceedings1},      year               = {2012},      pages              = {578-584},      numpages           = {3},      doi                = {10.1594/PANGAEA.726855},      url                = {http://dx.doi.org/10.1594/PANGAEA.726855}     }      File: test.tex               \documentclass[]{article}          \title{Title Here}     \author{Name Here}          \usepackage{multibib}     \newcites{Articles,Proceedings}{{Journal Papers},{Conference Papers}}          \begin{document}     \maketitle          \begin{abstract}     This is the minimal abstract ever.     \end{abstract}          \section{Introduction}     Introduction here.          \section{References}     \nociteArticles{a1,a2}     \bibliographystyleArticles{unsrt}     \bibliographyArticles{Ref}          \nociteProceedings{c1}     \bibliographystyleProceedings{ieeetr}     \bibliographyProceedings{Ref}          \end{document}      I hope this could help. Thanks and regards.


title: Section numbering in the left column

text: Can anyone make this in LaTeX? ![picture showing the wanted result](http://i.stack.imgur.com/5GpJi.png) I mean the section numbering on the left side? Perhaps, this can be done with the `titlesec` package. Or maybe there is another way.


title: pgfplots: changing line axis and plotting lines width

text: I have some problems with the width of the lines in my graph. When I try to change the width of the plot lines, straight lines remain in the default width whereas the non-straight lines are shown in the desired with. How can I change the width of the straigh line? Besides that, I want to know how to change the width of the axis lines (both x and y).               \documentclass[a4paper,12pt]{report}     \usepackage{pgfplots,pgf} %graphics     \pgfplotsset{compat=1.3}          \begin{document}          \begin{tikzpicture}         \begin{axis}[             xmin=0,             xmax = 4,             ymin = 0,             ymax = 50,             axis x line = bottom,             axis y line = left,             xlabel= \footnotesize $x$,             ylabel style={at={(current axis.north west)},rotate=-90,xshift=-1ex,yshift=-1ex},             ylabel= \footnotesize $f(x)$,             xtick=\empty,             ytick=\empty             ]             \addplot[mark=none,domain=0:4,very thin]{30};             \addplot[blue,mark=none,domain=0.2:3.8,very thick]{exp(x)+3};         \end{axis}         \end{tikzpicture}          \end{document}


title: global bookmark settings

text: As far as I know, there is no way to globally set-up the bookmark options for sections only. If I am wrong, what is the correct way to have sections (only) with respective blue bookmarks? It can be done manually but it is quite tedious.               \documentclass{book}     \usepackage[utf8]{inputenc}     \usepackage{xcolor}     \usepackage{times}     \usepackage{bookmark}     \begin{document}     \bookmarksetup{level=section,bold,color=blue}     \chapter{chapter}     \section{section}     \end{document}       The `level=section` option above is wrong but somehow describes what should be achieved: blue section bookmarks.


title: Writing Neater Equations

text: I have this problem all the time: I am trying to write a very large polynomial, but when I use eqnarray it does not look very nice. Is there a way to make it look nicer ? I am using a two column template so it I have limited space.               \begin{eqnarray}\label{rsmEqu}     && B =-0.76562-2.38354S-0.17144R+0.81956\lambda      \nonumber \\     &&-0.18059SR+0.14635S\lambda+0.0253R\lambda+0.02885S^2 \nonumber \\          \end{eqnarray}


title: Macros in LaTeX and in programming languages

text: There is a fairly widespread consensus that macros are a bad idea in most programming languages. (For example, cf. http://scienceblogs.com/goodmath/2007/12/17/macros-why-theyre-evil/ .) That said, I have the impression that macros are not just in LaTeX for historical reasons --- there seems to be some property of the typesetting domain that makes macros the right tool. (This seems to be related to the fact that working with LaTeX is _very_ unlike programming in any mainstream language.) Can anyone articulate why this might be the case? Or, indeed, argue that macros are indeed a historical artefact? Edit: this doesn't answer the question, but is closely related: http://tex.stackexchange.com/a/42749/17049


title: Turtle does not draw anything

text: Tried using Turtle example from Tikz manual but it did not output any graphics that I could see. Below MWE produces blank white page. What am I doing wrong? Is my Texlive install broken?               \documentclass[10pt]{article}     %\documentclass[tikz]{standalone}     \usetikzlibrary{turtle}     \begin{document}     \begin{figure}[!htb]         \begin{tikzpicture}             \tikz[turtle/distance=1cm]             \draw [thick,red,turtle={home,forward,right,forward,left,forward,left,forward}];                  \tikz \filldraw [thick,blue,fill=blue!20][turtle=home]             \foreach \i in {1,...,5}             {                 [turtle={forward,right=144}]             };         \end{tikzpicture}        \end{figure}     \end{document}      This certainly does produce some graphics, as evident from the compilation log when specifying overly large distance (30cm for example). But the result is not visible in PDF.


title: Inserting images in ShareLaTeX

text: I have no idea how to correctly define my graphics path on ShareLaTeX. In a Linux terminal my folder location would look like: `\home\Libraries\Documents\paperimages` I'm sorry if this is asked on the usual, but I cannot find any real substantial help online.


title: Texmaker: How to "type through" closing brackets, braces, and parentheses?

text: I'll start by saying that my recent experiences using Python 3.3 (a programming language) have prompted me to question the potential of my favorite way to "TeX" something using Texmaker. In Python, when you define a function or simply create a left parenthesis\bracket\brace (hereafter collectively described by the word "brace"), the cursor moves immediately past the left brace and creates a corresponding right brace following the cursor. The convenient feature of Python is that when I'm done typing the argument of the braces, all I have to do to "escape" the inner part of the braces is to simply re-type the automatically-created right brace. As soon as the cursor advances past the right brace, the left brace, the right brace, and everything within the argument maintains a temporary gray-fill background to help the user verify that the argument is correct. I love this feature of Python and Texmaker is certainly almost as good for typing commands for environments. Texmaker has its own way of indicating where the argument begins and ends by highlighting the left and right braces in yellow and also changing the font color of those braces to red on my system. The problem I am having is that in Texmaker I cannot "type through" the automatically-created right braces; such an ability would be most helpful because Texmaker uses braces so often. I'll do my best to illustrate what I'm looking for below and then what the problem looks like. If you can allow the vertical bar "|" to represent the cursor, the following happens: Let's say I'm almost done typing the fraction of 1/2 in the simplest format (note that the auto-complete feature is what created all 4 of the braces when I began to type `\frac`. * * * This is what I'm looking for: `\frac{1}{2|}` (Just finished typing `2`, Cursor is behind the `2`, I now want to "type through" the rightmost brace. `\frac{1}{2}|` (I have just typed `}` and the cursor can continue typing. This is what I want to be able to do.) This is what Texmaker does for me: `\frac{1}{2}|}` (I have just typed `}` and the cursor is between 2 right braces. Thus, a mismatched brace is created and I have to press DELETE to continue typing as before. So my formal question is: With Texmaker's auto-complete feature enabled, how can "type through" (as demonstrated above) the closing brace at the end of an argument? Any help is extremely appreciated!


title: tikz array indexing

text: I'm trying to generate glyph plot. The idea is that I've a list of elements with 4 values (0.0 .. 1.0) that represent the value of a particular characteristic. My goal is to connect those points but I cannot access the data within the elements array. I tried some macros, and using `\pgfmathparse` with no success. Here's an example of what I'm trying to do:               \documentclass{standalone}     \usepackage{pgfmath,pgffor}     \begin{document}     \def\elements{{0.5,0.5,0.59,0.5}, {0.2,0.5,0.5,0.8} }% romboide and a diamond shape          \foreach \elementPoints [count=\i] in \elements {      \draw ({2.2*\i},0) ++(\elementPoints[1],0) node (a) {}                 ({2.2*\i},0) ++(0,\elementPoints[2]) node (b) {}                 ({2.2*\i},0) ++({-1*\elementPoints[3]},0) node (c) {}                 ({2.2*\i},0) ++(0,{-1*\elementPoints[4]}) node (d) {};          \draw (a) -- (b) -- (c) -- (d) -- (a);               }          \end{document}      Thanks


title: Critical Error after blue-screen / system crash - Thesis

text: My PC crashed and somehow the **thesis.tex** file is **not compilable anymore**! Actually directly after the blue-screen it was it was blank. Because it was stored on a DropBox folder I changed the file with an older (20m or so) one. But Texmaker cannot compile it anymore. I get critical errors, but the chapter and other files seem to be OK. Any clue? Log-file chunk:               ("C:\Users\...\Thesis.out"     ! Text line contains an invalid character.     l.1                                                                                ...     A funny symbol that I can't read has just been input.     Continue, and I'll forget that it ever happened.          ! Text line contains an invalid character.     l.1                                                                                ...     A funny symbol that I can't read has just been input.     Continue, and I'll forget that it ever happened.          [... 100+ times]                                                                                ...     A funny symbol that I can't read has just been input.     Continue, and I'll forget that it ever happened.          ! Text line contains an invalid character.     l.1 ...                                                                                ...     (That makes 100 errors; please try again.)      Here is how much of TeX's memory you used:      8159 strings out of 493921      121925 string characters out of 3144870      216984 words of memory out of 3000000      11389 multiletter control sequences out of 15000+200000      3938 words of font info for 15 fonts, out of 3000000 for 9000      841 hyphenation exceptions out of 8191      38i,0n,38p,3787b,38s stack positions out of 5000i,500n,10000p,200000b,50000s          !  ==> Fatal error occurred, no output PDF file produced!


title: Need help starting long, text-heavy table

text: ![Text-heavy table](http://i.stack.imgur.com/9t8Wu.png) I am new to LaTex and trying to teach myself. Currently I am trying to write a unit plan for graduate school (MA in Math Ed), which would look something like that provided image. One question, one request: What environment should I use for such a text-heavy table? longtable? It will run two or three pages. landscape. Anyone willing to share how they would write the first few lines of this table, to help me get started?


title: customize hyphenation

text: I finish writing my article in english, but I think there are many hyphenations, this makes the document a bit ugly. my question: how prevent hyphenation throughout the document, and propose to latex, the words to cut. I use the `\usepackage[none]{hyphenat}` , in this case, I could not impose hyphenations where I want. I use two columns, normally I work on the model of Elsevier, I made some changes, here is the preamble:               \documentclass[final,5p,times,twocolumn]{elsarticle}     \usepackage{ecrc}      \usepackage[T1]{fontenc}      \usepackage[francais]{babel}      your ideas please. thank you ...


title: How to change font size for bibliography?

text: I want to use a smaller font size for the bibliography, e.g., \footnotesize. What is the easiest way to achieve this? I currently do `\renewenvironment{thebibliography}...` and copy the definition from report.cls but with the `\footnotesize` inserted in. However, that seems to be a bit of a hack, so I'm looking for a cleaner way.


title: How to create Highlight Boxes in LaTeX?

text: I am writing an Article in LaTeX. Please suggest me how to create a highlight boxes like the ones shown below in LaTeX: ![enter image description here](http://i.stack.imgur.com/ndl4E.jpg) ![enter image description here](http://i.stack.imgur.com/N7Z9a.jpg)


title: Pretty formattings for warning and info blocks

text: I'm looking for pretty formatting for warnings, and others for some info or tips. For the moment, I use the following formatting but maybe someone has one better idea. ![enter image description here](http://i.stack.imgur.com/qjtit.png) To obtain this, I use the following code.               \documentclass[10pt,a4paper]{article}     \usepackage[utf8]{inputenc}     \usepackage[x11names,svgnames]{xcolor}     \usepackage{graphicx}     \usepackage{fourier-orns}     \usepackage[framemethod=tikz]{mdframed}     \usetikzlibrary{calc}          \makeatletter     % Default settings for warnings         \newcommand{\warningSymbol}{\raisebox{0.8\depth}{\danger}}              \definecolor{warningColorText}{named}{Red3}         \definecolor{warningColorLine}{named}{Red3}         \definecolor{warningColorBack}{named}{LemonChiffon1}         \definecolor{warningColorBackSymbol}{named}{white}          % Inline mode         \newcommand{\warning}[1]{%             \textcolor{warningColorText}{\warningSymbol{}\,#1}%         }          % Block mode         \tikzset{             warningsymbol/.style={                 rectangle,                 draw  = warningColorText,                 fill  = warningColorBackSymbol,                 scale = 1,                 overlay             }         }              \mdfdefinestyle{warning}{%             hidealllines      = true,             leftline          = true,             skipabove         = 12,             skipbelow         = 12pt,             innertopmargin    = 0.4em,%             innerbottommargin = 0.4em,%             innerrightmargin  = 0.7em,%             rightmargin       = 0.85em,%             innerleftmargin   = 1.1em,%             leftmargin        = 0.85em,%             middlelinewidth   = .2em,%             linecolor         = warningColorLine,%             backgroundcolor   = warningColorBack,%             fontcolor         = warningColorText,%             firstextra        = {                 \path let \p1=(P), \p2=(O) in ($(\x2,\y1-4)$)                 node[warningsymbol] {\warningSymbol};             },%             secondextra       = {                 \path let \p1=(P), \p2=(O) in ($(\x2,\y1-4)$)                  node[warningsymbol] {\warningSymbol};             },%             middleextra       = {                 \path let \p1=(P), \p2=(O) in ($(\x2,\y1-4)$)                  node[warningsymbol] {\warningSymbol};             },%             singleextra       = {                 \path let \p1=(P), \p2=(O) in ($(\x2,\y1-4)$)                  node[warningsymbol] {\warningSymbol};             },%         }              \newmdenv[style=warning]{@Warning}         \newenvironment{Warning}{\let\warning\relax\begin{@Warning}}{\end{@Warning}}     \makeatother          \usepackage{lipsum}          \begin{document}          \warning{IMPORTANT !} \lipsum[1]          \begin{Warning}          \lipsum[1]     \end{Warning}          \end{document}


title: Need Help to create a Fancy 'Key-Idea' Box for Article

text: > **Possible Duplicate:**   >  How to create Highlight Boxes in LaTeX? I am writing an Article. I am trying to create a 'Key-Idea Box' like the one shown below: ![enter image description here](http://i.stack.imgur.com/UfeoR.jpg) Can somebody help me creating a similar box as the one shown above? Thanks.


title: How to add and align figure and texts like that

text: Please show me how I can do that. And I want to use many times. Help me write a macro so that I can use every time I need. For example,               \begin{question}          Texts in the question field.      \end{question}      ![the figure in the left, the texts in the right \(with justify aligned\)](http://i.stack.imgur.com/PKgGZ.png) **Update** : This question is already solved by other linked questions.


title: Flexible brackets around text

text: Is there any way to make flexible brackets around some text? So I tried to use `fancyvrb` and got something like this: ![Brackets with fancyvrb](http://i.stack.imgur.com/u1niH.png)               \documentclass{article}     \usepackage{fancyvrb}     \usepackage{color}          \definecolor{darkblue}{rgb}{0.1,0.3,0.5}          \DefineVerbatimEnvironment%         {MyVerbatim}{Verbatim}         {gobble=0,label=\hspace{.85\textwidth},labelposition=all,          frame=single,framerule=3pt,framesep=5mm,rulecolor=\color{darkblue}}          \begin{document}     \begin{minipage}{6cm}     \begin{MyVerbatim}     some text some text some      some text some text some      some text some text some      \end{MyVerbatim}     \end{minipage}     \hfill     \end{document}      However, I am unhapy with it, because of the misuse of `fancvrb`. I want to be able to define the thickness of the rule, the size of the corners or the spaces. A good candidate would be a package similar to `dashedbox`. Any hint would be appreciated.


title: How to Install SVMult

text: I'm struggling actually with an article to send to Springer. They ask me to use `SVMult` class. In my case I use `\documentclass{SVMult}` unsuccesfully. It is impossible to send or even continue writing my document. It's bugging. MikTeX says this: > "! LaTeX Error: File `SVMult.cls' not found. Type X to quit or to proceed, > or enter new name. (Default extension: cls) Enter file name" I've tried to see if there is a package named `SVMUlt` but there is none. How to install and use `SVMult`?


title: .bbl file confusing order

text: I am using TexShop on the Mac with BibDesk as my citation manager. Here's the short version of my question, if you can answer this then no need to read on: how do I amend my `.bst` to sort by author, but when the Author and Year both match, to then sort according to the order in which they are cited in the article? Now for the longer version, which includes MWEs. Here are two MWEs, where the error occurs in the second. When authoring my MWE, I used all code referring to my bibliography as it appeared in my article.               \documentclass{article}          \usepackage{natbib,url}     \bibpunct{(}{)}{;}{a}{ }{,}          \begin{document}     Minimal working example \citep{Author:2013}.          \newpage     \bibliographystyle{myapalike-url}     \bibliography{\string~/Desktop/Test}     \end{document}      This is how it prints out: Minimal working example (Author 2013). The `.bbl` created is as follows:               \begin{thebibliography}{}          \bibitem[{Author}, 2013]{author:2013}     {Author} (2013).     \newblock {Protected Sites Map}.     \newblock Available from:     \url{http://}     [Accessed 1 October 2013].          \end{thebibliography}      As soon as I add a second reference for that year, albeit with a different citekey, the suffixing goes to pot:               \documentclass{article}          \usepackage{natbib,url}     \bibpunct{(}{)}{;}{a}{ }{,}          \begin{document}     Minimal working example \citep{author:2013}.          And another \citep{author:2013b}.          \newpage     \bibliographystyle{myapalike-url}     \bibliography{\string~/Desktop/Test}     \end{document}      Which prints out as follows: Minimal working example (Author 2013b). And another (Author 2013a). Notice that the first citation, which previously printed out as (Author 2013), has been amended to (Author 2013b) The `.bbl` now looks like this:               \begin{thebibliography}{}          \bibitem[Author, 2013a]{author:2013b}     Author (2013a).     \newblock {Eryri}.          \bibitem[Author, 2013b]{author:2013}     Author (2013b).     \newblock {Protected Sites Map}.          \end{thebibliography}      Now, I'm aware that I'm using my own `myapalike-url.bst`, but that's because I have edited it (very carefully and sparsely to alter the URL). I'm also aware that I could use a package like unsrtnat, which makes my citations appear in the same order in-text as they are input (i.e. it doesn't confuse the 'a' and 'b' suffixes), but also removes any sorting from the full bibliography. This also makes me think that it's during the generation of the `.bbl` file and the process of sorting that the error occurs (rather than a bad command within the `.tex` file). And as I'm working this through, I think I've found the problem, but I don't know how to fix it. The citation referred to as 2013b has a Title of 'Eryri', where the citation referred to as 2013a has a Title of 'Protected Sites Map'. It appears that, if the Author is the same then it checks the Year, but if the year is the same then it checks the Title, and then sorts alphabetically. So here's the question: how do I amend my `.bst` to sort by author, but when the Author and Year both match, to then sort according to the order in which they are cited in the article? Edit: Looking inside the .bst it says, on lines 42-43, the following:               %   24-jan-88   (OP)    Updated for BibTeX version 0.99a, from alpha.bst 0.99a;     %           apalike now sorts by author, then year, then title;      So I want to change that to sort by author, then year, then _order called in article_. I think you can agree, putting the first reference to an author as 2013b, and the second reference as 2013a, is just plain wrong.


title: Problem with lstlinsting biblatex utf8 T1 and babel

text: I am a Spanish speaker. I have in my TeX file all the usual stuff for my language. Also I use lstlistings and now I want to use biblatex (ex bibtex user). However I can not get working together this two.... here the minimal example:               \documentclass{book}               \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}          \usepackage[spanish,es-tabla]{babel}     \AtBeginDocument{     \spanishdecimal{.}     }          \usepackage[         style=numeric-comp,         firstinits=true,         sorting=none,         doi=false,         isbn=false,         url=false,         eprint=false,         backend=bibtex,         maxnames=99     ]{biblatex}          %\usepackage{listings}          \addbibresource{library.bib}          \begin{document}          \begin{refsection}        Hola \cite{El-sayed2005}        Buen día \cite{Voter2002a}        \printbibliography[heading=subbibliography]     \end{refsection}          \end{document}      When I uncomment lstlistings I get the followin error:               (/usr/share/texmf/tex/latex/biblatex/lbx/spanish.lbx)                                                                                Package biblatex Warning: 'babel' detected but 'csquotes' missing.                                                                                (biblatex)                Loading 'csquotes' recommended.                                                                                (./main.aux)                                                                                Package biblatex Warning: Data encoding is 'utf8'.                                                                                (biblatex)                Use backend=biber.                                                                                No file main.bbl.                                                                                (./main1-blx.bbl)                                                                                ./main.tex:33: Undefined control sequence.                                                                                <to be read again> \edef \lbx@tempa {m.z                                                                                a.el-sayed}                                                                                l.33 \printbibliography[heading=subbibliography]                                                                                ./main.tex:33:  ==> Fatal error occurred, no output PDF file produced!                                                                                Transcript written on main.log.        What can I do? I need both packages... :S. Here the library.bib               @inproceedings{Voter2002a,     address = {San Juan, Puerto Rico, USA},     author = {Voter, Arthur F.},     booktitle = {Int. Conf. Comput. Nanosci. Nanotechnol.},     pages = {128 -- 131},     publisher = {Computational Pubns},     title = {{Introduction to the time scale problem}},     volume = {836},     year = {2002}     }     @article{El-sayed2005,     author = {El-Sayed, Ivan H and Huang, Xiaohua and El-Sayed, Mostafa A},     journal = {Nano Lett.},     number = {5},     pages = {829--834},     volume = {5},     year = {2005}     }      Thank you.


title: List of figures without figure numbers

text: How can I create a List of Figures which has captions and page numbers, but no figure numbers?


title: How to incorporate TeX into a website?

text: How should I incorporate TeX in a website to render mathematical formulas? If there are multiple ways, what is the easiest way?


title: How to align text position on both sides of a twocolumn layout

text: I'm pretty sure this problem has been adressed somewhere before but I can't find a solution anywhere, probably because I have no idea how to define/call this problem. Pretty much everything that isn't normal text size has influence on the text vertical alignment between both columns, how can I force latex to align the position of the lines on each side of the two column layout? Minimal example:               \documentclass[A4,12pt]{article}     \usepackage{blindtext,amsmath}     \begin{document}     \sloppy     \twocolumn     \section{Random Section}     \blindtext          \blindtext          \begin{align*}     \sum_i X(i) \cdot x     \end{align*}     \blindtext          \blindtext          \end{document}      notice how even the section title doesn't have an appropriate height such that the text on the second column lines up... or is this normal? Is it just me who has a problem with that?


title: *.aux file not generated

text: I am using `\documentclass[margin]{res}`. On running latex/xelatex, `*.aux` file is not generated. Because of this the references in the document are not being cited. I am using `biblatex` for citations. What might be wrong?


title: Open source fonts in LaTeX

text: Which LaTeX fonts are open source? Someone told me they are all, but I am not sure...


title: How to use effects on beamer [Lyx user]

text: I am trying to use Beamer in Lyx in order to write my thesis presentation and i would like to add some effects in it (for e.x. fade away etc).. How can i add effects in Lyx while using beamer?


title: Problem plotting histogram using pgfplots package

text: The following code plots a histogram using pgfplots.               \documentclass[a4paper]{article}          \usepackage{pgfplots}     \pgfplotsset{compat=newest}          \begin{document}          \begin{tikzpicture}       \centering       \begin{axis}[         ybar,         enlargelimits=0.15,         legend style={at={(0.5,-0.15)},         anchor=north,legend columns=-1},         ylabel={\#percentage},         symbolic x coords={mod2,mod3,mod5,mod7,mod11,mod13,mod17,mod19,mod23},         xtick=data,         nodes near coords,         nodes near coords align={vertical},         ]         \addplot coordinates {(mod2,75.4064) (mod3,89.7961) (mod5,94.4597)           (mod7,96.6786) (mod11,97.5600) (mod13,98.2339)           (mod17,98.6138) (mod19,98.9129) (mod23,99.0970)};         \addplot coordinates {(mod2,30.5101) (mod3,34.5384) (mod5,36.3324)           (mod7,37.3570) (mod11,37.9158) (mod13,38.3514)           (mod17,38.6484) (mod19,38.9125) (mod23,39.1067)};         \legend{Residue,non-Residue}       \end{axis}     \end{tikzpicture}          \end{document}      The problem, however, is that the output looks something like this. ![Example Histogram](http://i.imgur.com/sPgz0.png) Is there a way of spacing the x-axis so that there is no overlap of the ticks and bars on the x-axis?


title: ps2pdf -dEPSCrop stops short with pstricks \uput

text: Basically `ps2pdf -dEPSCrop` doesn't crop to the full extent specified and stops at some mysterious point. I'm trying to trim the white space on the left of the image but `-dEPSCrop` stops short irrespective of the value I give to the lower left bounding box coordinate of the pspicture environment variable. Please find a not-so-MWE at: http://pastebin.com/MYAJtLUu Here's the file stripped of all but the `\uput`'s:                   \documentclass[english,landscape,a4paper]{slides}              \usepackage{graphics}         \usepackage{graphicx}         \usepackage{babel}         \usepackage{pst-eps}         \usepackage{pstricks}         \usepackage{multido}         \usepackage{pst-node}         \usepackage{pst-math}         \usepackage{pstricks-add}              \begin{document}             \begin{TeXtoEPS}                 \begin{pspicture}(2,-2.966)(12.064,0)                 \psset{linejoin=1}                 \newcommand{\verysmall}{\fontsize{9}{9pt}\selectfont}                 \verysmall                         \uput{0.2mm}[180](2.349,-1.66){$s$}                         \uput{1mm}[225](2.522,-2.043){$c$}                         \uput{1mm}[-110](4.067,-.9){$b$}                         \uput{0.25mm}[-45](8.405,-2.671){$a$}                         \uput{0mm}[0](11.808,-1.66){$t$}                         \uput{1mm}[100](4.799,-1.199){$d$}                         \uput{0.5mm}[90](8.653,-2.597){$e$}                         \end{pspicture}             \end{TeXtoEPS}         \end{document}       I'm trying to create cropped PDF images from pstricks graphics. My workflow is as follows:                   latex NoSoMWE.tex         dvips -E NoSoMWE.dvi         ps2pdf -dEPSCrop NoSoMWE.ps NoSoMWE.pdf      Lately however, `ps2pdf -dEPSCrop` no longer works when the pstricks file makes use of the `\uput` directive. Cropping however works when all `\uput`'s are removed from the not-so-MWE. Cropping does not work if at most _one_ `\uput` directive is used. Please advise, thanks.


title: Directed hyper-edges in tikz

text: > **Possible Duplicate:**   >  Arc between arrows in TikZ (automata library) Can anyone tell me if and how I can draw directed hyper-edges in tikz? Specifically, I'm trying to get an edge starting at one node and ending in two that is connected by some arc to show that this is one hyper-edge instead of two normal edges. ![The kind of hyper-edge I want to draw](http://i.stack.imgur.com/USgx1.png) I got the screenshot by manually drawing an arc in between to edges in open office and I hope there is a better way to do this in tikz. Thanks for your help.


title: Editing the reference style for subfigures using cleveref and memoir

text: I'm using the `cleveref` package to reference floats (in this case subfigures) in the `memoir` class. Currently the output looks like this (sorry for the danish, I don't think it matters): ![subfigures in memoir using cleveref](http://i.stack.imgur.com/HdLSn.jpg) Using the following input (not all packages included, ofc):               \documentclass[oneside,article,12pt,danish]{memoir}     \usepackage{graphicx}     \newsubfloat{figure}     \captiontitlefont{\slshape}     \subcaptionfont{\slshape}          \usepackage{varioref}     \usepackage{hyperref}     \usepackage{cleveref}          \begin{document}          \begin{figure}[h!]       \centering       \subbottom[Subfigure 1 caption]{\rule{3cm}{1cm}\label{sub1}}       \hspace{1cm}       \subbottom[Subfigure 2 caption]{\rule{3cm}{1cm}\label{sub2}}     \caption{Figure text.}     \label{fig:secondfig}     \end{figure}          \cref{sub1,sub2}          \end{document}      I like the way the figure/subfigures are set up, but I would like the reference to say `5a` or `5.a` instead of `5(a)` without changing the figure/subfigure captions. Is there a general way to do this in the entire document, so that it can be easilly be changed to a somewhat random notation?


title: Make titlepage one-sided (centered) while all other pages are two-sided

text: I am using scrbook to write a small paper. I am trying to create a title page which displays its contents (title, author, institution) with a one-sided layout, while all other pages should use a two-sided layout. I couldn't come up with an easy solution. I use the following macro to define my title page:               \newenvironment{tpage}[3]{       \begin{titlepage}         \title{#2}         \subtitle{#3}         \date{City, den \today}         \author{#1}              \titlehead {           \begin{minipage}[b]{0.6\textwidth}             Institution\\           \end{minipage}           \begin{minipage}[b]{0.4\textwidth}             \begin{flushright}               \includegraphics[scale=0.5]{somelogo.pdf}             \end{flushright}           \end{minipage}           \hrule         }              \maketitle       \end{titlepage}     }{}      I'd like to stick with that macro if possible. Is there a simple command to switch from a onesided layout to a twosided layout? Something like `\oneside`? I didn't find such a command. My documentclass is configured as follows:               \documentclass[a4paper,     , 12pt     , titlepage     , toc=listofnumbered     , bibliography=totoc     ]{scrbook}


title: Aligning a set of equations

text: I'm currently writing a dissertation using Texmaker and I'm fairly new to it! I have a set of three equations that I want to align so that they all start underneath each other on the left. I have tried this:               \documentclass[11pt]{article}          \usepackage{amsmath}     \usepackage{graphicx}               \begin{document}              $$\begin{aligned} \rho = \int_{2MG}^r \sqrt{g_{rr}(r')} dr' \\         =  \int_{2MG}^{r} (1-\dfrac{2MG}{r'})^{-0.5} dr' \\         = \sqrt{r(r-2MG)}+2MGsinh^{-1} (\sqrt{\dfrac{r}{2MG}-1)}\end{aligned}$$     \end{document}      It doesn't seem to work as I want it! Can anyone please offer me some words of wisdom?


title: tikz color changing path

text: I have tried to answer the question from TikZ: changing colour of a path half way along with decorations - unsuccessfully. Maybe it is not possible!? Can someone tell me why scoped path color change is not implemented?


title: Modify TikZ coil decoration

text: Can I modify the existing tikz coil decoration, so that the downstrokes are not drawn in a certain interval, to produce a picture like this? ![coil](http://i.stack.imgur.com/0Brh9.png) **Edit** : Previous attempts, code and MWE has been moved to or superseded by my own answer.


title: MikTeX Czech typeset

text: I use MikTeX and I need to get the Czech typeset (setting Czech characters), web advised me to use this:               \usepackage[czech]{babel}     \usepackage[cp1250]{inputenc}     \usepackage[IL2]{fontenc}      First two rows work, but with the third one error occurs:               ! Package fontenc Error: Encoding file 'il2enc.def' not found.     (fontenc)                  You might have misspelt the name of encoding.     See the fontenc package documentation for explanation.      Third command was advised on more websites so I do not think that I misspelled it. I'd know whether it is necessary to download some extra package.


title: Must be equal and other stacked math symbols

text: Several times already I wanted to express something like                 !     A = B      or                  n->0     X ------> oo      in a math environment. **How do I achieve this?** On a related note: What is the correct term for this? Googling for `!` and `=` unsurprisingly doesn't yield too many useful results.


title: Problem with titlesec/titletoc/tikz

text: I have a problem in the sheet dedicated to the table of contents. I'm using titlesec/titletoc/tikz which works fine except in the page "table of contents". I have this result : ![enter image description here](http://i.stack.imgur.com/keq0E.jpg) The problem is that I don't want to have this "Chapitre 0 :" before "Table des matières" (i.e. Table of contents). The code used is :               % |_-_-_-_-_-_-_-_-| Package pour redéfinir les titres |_-_-_-_-_-_-_-_-|%     \usepackage{titlesec}     \usepackage{titletoc}          % |_-_-_-_-_-_-_-_-|  Numérotation des sections  |_-_-_-_-_-_-_-_-|%     \setcounter{secnumdepth}{5}     \renewcommand{\thechapter}{\arabic{chapter}}     \renewcommand{\thesection}{\arabic{section}}     \renewcommand{\thesubsection}{{\thesection}.\alph{subsection}}     \renewcommand{\thesubsubsection}%         {{\thesubsection}$_{\textnormal{\bfseries\emph{\arabic{subsubsection}}}}$}     \renewcommand{\theparagraph}{}     \renewcommand{\thesubparagraph}{}          % >>>> A tikz box for chapters          \newcommand\boxedchapter[1]{{%             \begin{center}             \begin{tikzpicture}             \node (0,0) [left color=Marron!40!white, right     color=Anthracite!20%             , text=RougeSang, font=\bf\Huge] {Chapitre \thechapter : #1} ;         \end{tikzpicture}%             \end{center}     }}     \titleformat{\chapter}%                       {}%         {}%         {0pt}%         {\boxedchapter}%      If I remove all the part `% >>>> A tikz box for chapters`, the problem disappears (there is only "Table des matières" without "Chapitre 0 :"), but "Chapitre 1", "Chapitre 2", etc. disappear too, and I would like to keep this (except for the table of contents), like this : * * * ![enter image description here](http://i.stack.imgur.com/Tc5HS.jpg) Thank you for help.


title: Latin Modern and Greek, an issue

text: Here is the code :               \documentclass{article}     \usepackage[vmargin=1in]{geometry}     \usepackage{xfrac,fontspec,unicode-math}     \setmathfont[version=lm]{Latin Modern Math}     \setmathfont[version=cambria]{Cambria Math}     \usepackage{xgreek}          \begin{document}          \setmainfont{Latin Modern Roman}     \mathversion{lm}     \section*{Latin Modern}     This is a greek text Ελληνικό Κείμενο     $\cos φ$          \setmainfont{Cambria}     \mathversion{cambria}     \section*{Cambria, Cambria Math}     This is a greek text Ελληνικό Κείμενο     $\cos φ$     \end{document}      but in the output the greek letters are missing, when i use Latin Modern !! In Cambria mode i have no problem with the greek letters.


title: Conflict between mathtools and MnSymbol

text: When I run `latex` on the following file, it terminates successfully, and produces the expected result:               \documentclass[12pt]{article}     \usepackage{amsmath}     \usepackage[fleqn,tbtags]{mathtools}     %% \usepackage{MnSymbol}     \begin{document}     $$ x \xhookrightarrow{\gamma} y $$     \end{document}      But if I uncomment the commented-out line, I get this error:               ! Undefined control sequence.     <argument> \lhook                       \joinrel \relbar     l.6 $$ x \xhookrightarrow{\gamma}                                       y $$     ?       Is there any way to get around this? (Of course, the example above does not require MnSymbol, but I do need it, along with mathtools, for what I'm working on.) FWIW, here are the versions I have of the packages mentioned in the example:               Package: amsmath 2000/07/18 v2.13 AMS math features     Package: mathtools 2011/02/12 v1.10 mathematical typesetting tools     Package: MnSymbol 2007/01/21 v1.4 support for the MnSymbol font      Thanks! PS: ironically enough, the only reason I have for using MnSymbol is to use its arrow definitions, as in               $$     \begin{matrix}     X & & \xrightarrow{h} & & Y \\       & {\scriptstyle f} \lhooksearrow & & \rhookswarrow {\scriptstyle g} & \\       & & Z & & \\     \end{matrix}     $$      to produce commutative diagrams like: ![results from latex code above](http://i.stack.imgur.com/ejuhB.png) ...whose layout I find _just barely_ acceptable (the arrows are too short, and don't necessarily lie right on, and/or parallel to, the lines connecting their source and target symbols; the spacing between these symbols is not always the best; etc.). IOW, if there is a better way to produce diagrams like these, possibly without needing MnSymbol, please let me know. Thanks!


title: How do You print flowfram book?

text: I prepare a brocure in which the color gets to the border of the physical paper (which is called bleed in printing). I also have to set the crop marks. But if any colorful object is in contact with page boundary — then it has to be extended over the boundary, to compensate for possbile deviations during the crop. Here's what I have: ![enter image description here](http://i.stack.imgur.com/PvbB8.png) Here's what I'd like to get: ![enter image description here](http://i.stack.imgur.com/wKV1p.png) The problem is that `crop` package won't leave a thing outside of cropmarks. MWE (XeLaTeX):               \documentclass[a5paper,twoside,openany]{book}               % =======     %% xetex:          \usepackage{fontspec}     \defaultfontfeatures{Scale=MatchLowercase,Mapping=tex-text}          \setmainfont{Linux Libertine O}     \setsansfont{Linux Biolinum O}     \setmonofont{DejaVu Sans Mono}               % ==========     %% packages:          \usepackage{lipsum}          \usepackage[xetex,margin=1.4cm,top=2.5cm,bottom=1.5cm]{geometry}          \usepackage{xcolor}     \definecolor{Small}{HTML}{99D277}     \definecolor{Large}{HTML}{9FC9E0}     \definecolor{Pages}{HTML}{FFB341}     \definecolor{CAM}{RGB}{1,1,1}          \usepackage[cam,a4,center,color=CAM]{crop}          \usepackage[colorlinks,                 linkcolor=black,                 urlcolor=black,                 plainpages=false,                 pdfpagelabels=true,                 ]{hyperref}     \usepackage{fancybox}     \usepackage{flowfram}          \newdynamicframe{\textwidth}{3\baselineskip}{0pt}{\textheight}[Header]               % ========     %% thumbs:          \makethumbtabs{3.7cm}          \setthumbtab{1}{backcolor=Pages}     \setthumbtab{2}{backcolor=Pages}     \setthumbtab{3}{backcolor=Pages}          \newcommand{\thumbtabstyle}[1]{\textsc{\sffamily \normalsize \normalfont #1}}     \setthumbtab{all}{style=thumbtabstyle,textcolor=white}               % ========     %% footer:          \pagestyle{plain}          \makedfheaderfooter          \newlength{\xoffset}     \computerightedgeodd{\xoffset}     \addtolength{\xoffset}{-1.2cm}     \newlength{\yoffset}     \computebottomedge{\yoffset}          \newcommand{\footstyle}[1]{\bfseries\Large #1}          \setdynamicframe*{footer}{oddx=\xoffset,y=\yoffset,width=1.2cm,height=1.2cm,backcolor=Small,textcolor=white,style=footstyle,pages=none}          \computeleftedgeeven{\xoffset}     \setdynamicframe*{footer}{evenx=\xoffset}          \dfchaphead*{header}               % =========     %% stripes:          \newlength{\leftwidth}     \newlength{\rightwidth}          \computeleftedgeodd{\leftwidth}     \setlength{\leftwidth}{-\leftwidth}     \addtolength{\leftwidth}{0.2\textwidth}     \setlength{\rightwidth}{\paperwidth}     \addtolength{\rightwidth}{-\leftwidth}          \vtwotone[1]{\leftwidth}{Small}{backleft}{\rightwidth}{Large}{backright}          \vtwotone[none]{\rightwidth}{Large}{lastbackright}{\leftwidth}{Small}{lastbackleft}          \vtwotonetop[odd]{0.5cm}{\leftwidth}{Small}{oddtopleft}{\rightwidth}{Large}{oddtopright}     \vtwotonetop[even]{0.5cm}{\rightwidth}{Large}{eventopleft}{\leftwidth}{Small}{eventopright}               % ================     %% customizations:          % to prevent vertical justification when inserting picture without floats:     \raggedbottom          % tables:     \usepackage{tabularx}               % ============     %% title page:          \begin{document}          \noindent     \begin{tabularx}{\textwidth}{p{0.19\textwidth}X}            &            \color{white}            \vspace{2cm}            International Symposium            \vspace{1cm}            {\LARGE       {\bf \textsc{Frontiers}}            {\bf \textsc{In Electronic Structure Theory}}            {\bf \textsc{And Multi Scale Modeling}}       }            \vspace{1cm}            \hfill\textit{book of abstracts}            \vspace{\baselineskip}            \vspace{6.7cm}            {21–22 October, 2013}          \end{tabularx}          \clearpage     \setstaticframe*{backleft}{pages=none}     \setstaticframe*{backright}{pages=none}               % =============     %% second page:          \noindent     \lipsum[1]          \frontmatter          \setdynamicframe*{footer}{pages=all}     \setdynamicframe*{header}{pages=all}               \mainmatter     \chapter{Program}     \enablethumbtabs     \pagenumbering{arabic}          \lipsum[2-9]                    \cleardoublepage     \chapter{Abstracts}          \lipsum[10-18]               % ============     %% back cover:          \cleardoublepage     \finishthispage\mbox{}     \disablethumbtabs     \setdynamicframe*{footer}{pages=none}     \setstaticframe*{lastbackleft,lastbackright}{pages=even}          \end{document}      (pdf output) One possible solution is to add the cropmarks as watermarks, or as a tikz picture. The problem then is to add it on each page. But I think a tweak to `crop` package will be easier to do and to use.


title: What does "File stack underflow!" mean?

text: I am getting two times the error: > Package currfile Warning: File stack underflow! on input line xxx. I am not explicitly loading `currfile`, but standalone seems to do. I am getting this warning once after I load `\usepackage{standalone}` on a line, where a working if-directive is written (`\ifclolor ... \fi`) and once in the `standalone.sty` after `\RequirePackage{currfile}` on the line `\ifsa@subpreambles`. I don't know, what that warning means, so I don't know, what to search for. This message is not treated anywhere so far. **Edit:** After some searching I found out that it appears when loading `unicode-math` AND `standalone`               % arara: lualatex     \documentclass{scrreprt}     \usepackage{unicode-math}     \usepackage{standalone}         \begin{document}     \chapter{Chapter}     Nothing     \end{document}


title: Why the shape is shifted ion rotation?

text: I would like to draw a similar drawing using tikz ![enter image description here](http://i.stack.imgur.com/aD9h3.png) So far a created a custom shape               \NeedsTeXFormat{LaTeX2e}[1994/06/01]     \ProvidesPackage{wesys}[2013/10/16 Wesys Custom Package]          \RequirePackage{tikz}          \tikzset{arc style/.initial={}}          \pgfdeclareshape{windturbine}{         \inheritsavedanchors[from=circle]         \inheritanchorborder[from=circle]         \inheritanchor[from=circle]{north}         \inheritanchor[from=circle]{north west}         \inheritanchor[from=circle]{north east}         \inheritanchor[from=circle]{center}         \inheritanchor[from=circle]{west}         \inheritanchor[from=circle]{east}         \inheritanchor[from=circle]{mid}         \inheritanchor[from=circle]{mid west}         \inheritanchor[from=circle]{mid east}         \inheritanchor[from=circle]{base}         \inheritanchor[from=circle]{base west}         \inheritanchor[from=circle]{base east}         \inheritanchor[from=circle]{south}         \inheritanchor[from=circle]{south west}         \inheritanchor[from=circle]{south east}         \inheritanchor[from=circle]{center}              \backgroundpath{             \radius              \pgf@xa=\pgf@x              \centerpoint \pgf@xb=\pgf@x \pgf@yb=\pgf@y             \pgfpathcircle{\centerpoint}{\radius/10}                       \pgfpathellipse{\pgfpointadd{\centerpoint}{\pgfpoint{\radius/2}{0pt}}}{\pgfpoint{\radius/2}{0}}{\pgfpoint{0}{\radius/20}}             \pgfpathellipse{\pgfpointadd{\centerpoint}{\pgfpoint{-\radius/2}{0pt}}}{\pgfpoint{\radius/2}{0}}{\pgfpoint{0}{\radius/20}}                  \begingroup                 \tikz@mode                      \iftikz@mode@fill                     \iftikz@mode@draw                         \pgfusepath{fill,draw}                     \else                     \pgfusepath{fill}                         \fi                     \else                             \iftikz@mode@draw                         \pgfusepath{draw}                     \fi                 \fi             \endgroup         }     }      And I started to create a similar drawing as above               \documentclass{article}          \usepackage{tikz}     \usepackage{wesys}     \usetikzlibrary{positioning}     \makeatletter               \makeatother          \begin{document}     \begin{tikzpicture}         \node[ windturbine, draw=black,dashed, minimum width=3cm, rotate=-10, xshift=5cm](turbineirot) {};         \node[ windturbine, draw=black, fill=black, rotate=-40, xshift=5cm, minimum width=3cm,label={[midway,above]i}](turbinei) {};                  \node[ windturbine, below=2cm of turbinei,rotate=-10, draw=black, fill=black, minimum width=3cm,label={[below= of turbinej, xshift=-8pt]j}](turbinej) {};              \draw[-] (turbinei.center) -- (turbinej.center)node [midway,right,draw=none] {};     \end{tikzpicture}     \end{document}      When I am rotating the shapes all are shifted, how can I prevent the shift? How can I draw the lines with label and angles with label?


title: Closing Environments in TeXstudio

text: Is there any command and/or hotkey in TeXstudio to close open environments? I know this feature from HTML or programming editors. For the editor almost no language knowledge is necessary for this. TeXstudio simply has to look for the latest \begin with no \end and include the command to end it. I think that writing the same stuff over and over again is annoying work that can be easily saved with such a feature... And if there is not such a thing, where can I propose it? Thanks for your help!


title: Problem with special characters

text: I have defined my document defined by `\usepackage[utf8]{inputenc} \usepackage[ngerman]{babel} \usepackage[T1]{fontenc}` but I get this Error: `Package inputenc Error: Unicode char \u8:̈ not set up for use with LaTeX \titlepage` What do I have to do to get rid of this?? Thanks in advance!


title: Differential Equation direction plot with pgfplots

text: In earlier thread Jake provided some code whom successfully draws the following differential equations in the range [0; 1]               dy/dx=2*x     dy/dx=x*sqrt(x)      See: How to draw slope fields with all the possible solution curves in latex I have not been able to determine how to change the range to `[-1; 1]` for both dimensions. My attempt               xmin=-1.1, xmax=1.1, % Axis limits     ymin=-1.1, ymax=1.1,     domain=-1:1, y domain=-1:1,      Also, I had some trouble with the notation for a differential equation that consists of y, example `(dy/dx=x^2+y^2-1)`. My attempt:               declare function={f(\x) = \x^2 + f(\x)^2 - 1;}


title: Why do the labels in the PDF file become garbage characters?

text: Yesterday, I used the package `hyperref` to get hyperlinks. Why the PDF file's labels on the left of the application window becomes full of garbage characters? I searched Google and know the reason about GBK and Unicode.                    \documentclass[UTF8 ]{ctexart}          \usepackage{hyperref}          \begin{document  }         \tableofcontents         \section{介绍}               大家好，我叫汤书桃         \section{常州}            中国江苏常州有一所综合大学，常州大学         \section{结论}         我非常喜欢latex       \end{document}      However, I don't know how to convert it. By the way, I use the UTF-8 to write the LaTeX file. Can someone help me?


title: Transcribing pdf into tikz code

text: How do I convert this PDF from a WASD keyboard layout into tikz code. Is there an automated way to at least extract the key outlines? ![](http://i.stack.imgur.com/N9XiU.png)


title: Arrows between two tables with multiple columns

text: How can I place two multicolumn tables (tableA and tableB) side by side and draw arrows from cell in tableA to another cell in tableB? I have tried this Arrows between two tables and its also working ok with simple tables. But if I try to use nested nodes to create multiple columns it goes wrong. What to do? This is what I have tried, but if I change the labels to longer words like "Copenhagen" the whole cell gets very wide and it looks weird on the page. Is it something with the margin I have to change? How should I add border in nested nodes?               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{shapes.multipart,matrix,positioning}     \begin{document}     \begin{tikzpicture}     \node[rectangle split, rectangle split parts=3,draw,inner sep=2ex] (A) at (0,1)     {     \begin{tikzpicture}     \node[rectangle,text height=2em] (1st) {a11};     \node[rectangle,text height=2em,right=of 1st] (2nd) {a21};     \end{tikzpicture}     \nodepart{two}     \begin{tikzpicture}     \node[rectangle,text height=2em] (1st) {a12};     \node[rectangle,text height=2em,right=of 1st] (2nd) {a22};     \end{tikzpicture}     \nodepart{three}     \begin{tikzpicture}     \node[rectangle,text height=2em] (1st) {a13};     \node[rectangle,text height=2em,right=of 1st] (2nd) {a23};     \end{tikzpicture}};          \node[rectangle split, rectangle split parts=3,draw,inner sep=2ex] (B) at (7,1)     {\begin{tikzpicture}     \node[rectangle,text height=2em] (1st) {b11};     \node[rectangle,text height=2em,right=of 1st] (2nd) {b21};     \end{tikzpicture}     \nodepart{two}     \begin{tikzpicture}     \node[rectangle,text height=2em] (1st) {b12};     \node[rectangle,text height=2em,right=of 1st] (2nd) {b22};     \end{tikzpicture}     \nodepart{three}     \begin{tikzpicture}     \node[rectangle,text height=2em] (1st) {b13};     \node[rectangle,text height=2em,right=of 1st] (2nd) {b23};     \end{tikzpicture}};     \draw[->] (A.two east) -- (B.text west);     \draw[->] (B.two west) -- (A.text east);     \end{tikzpicture}     \end{document}


title: Symbol to represent a key

text: Does anybody knows a LaTeX command that represents a key, like this? ![enter image description here](http://i.stack.imgur.com/lYBiQ.jpg)


title: Natbib giving single character instead of author-year

text: I am using MiKTeX 2.9/TeXmaker. When I cite(`\citep{}`) with the `natbib` package, I get random characters e.g [a],[x] etc, instead of e.g [John1998]. I ran `PdfLatex->Bibtex->Pdflatex->Pdflatex`, but still getting the same result. I am writing my first document in LaTeX and its my thesis, so please forgive if I overlooked any minor error or method.               \documentclass[a4paper,12pt]{book}     \usepackage[square,authoryear]{natbib}     \usepackage{hyperref}          \begin{document}     Photonic crystals are a class of materials      that are either man made\citep{Yablonovitch1993} or      naturally found\citep{Zi2003}      .     .     .     .     .     \backmatter     \bibliographystyle{plainnat}     \bibliography{references}     \end{document}      Output: > Photonic crystals are a class of materials that are either man made[b, a] or > naturally found [e, i]. Within BibTeX file               @ARTICLE{Yablonovitch1993,       author = {Yablonovitch, E.},       title = {Photonic band-gap structures},       journal = {J. Opt. Soc. Am. B},       year = {1993},       volume = {10},       pages = {283-295},       number = {2}     }          @ARTICLE{Zi2003,       author = {Zi, Jian and Yu, Xindi and Li, Yizhou and Hu, Xinhua and Xu, Chun         and Wang, Xingjun and Liu, Xiaohan and Fu, Rongtang},       title = {Coloration strategies in peacock feathers},       journal = {Proceedings of the National Academy of Sciences},       year = {2003},       volume = {100},       pages = {12576-12578},       number = {22},       abstract = {We report the mechanism of color production in peacock feathers. We         find that the cortex in differently colored barbules, which contains         a 2D photonic-crystal structure, is responsible for coloration. Simulations         reveal that the photonic-crystal structure possesses a partial photonic         bandgap along the direction normal to the cortex surface, for frequencies         within which light is strongly reflected. Coloration strategies in         peacock feathers are very ingenious and simple: controlling the lattice         constant and the number of periods in the photonic-crystal structure.         Varying the lattice constant produces diversified colors. The reduction         of the number of periods brings additional colors, causing mixed         coloration.}     }      .bbl file contents (Only the above two references are shown. I deleted the references from other parts of my document for convenience):               \begin{thebibliography}{29}     \providecommand{\natexlab}[1]{#1}     \providecommand{\url}[1]{\texttt{#1}}     \expandafter\ifx\csname urlstyle\endcsname\relax       \providecommand{\doi}[1]{doi: #1}\else       \providecommand{\doi}{doi: \begingroup \urlstyle{rm}\Url}\fi          \bibitem[Yablonovitch(1993)]{Yablonovitch1993}     E.~Yablonovitch.     \newblock Photonic band-gap structures.     \newblock \emph{J. Opt. Soc. Am. B}, 10\penalty0 (2):\penalty0 283--295, 1993.          \bibitem[Zi et~al.(2003)Zi, Yu, Li, Hu, Xu, Wang, Liu, and Fu]{Zi2003}     Jian Zi, Xindi Yu, Yizhou Li, Xinhua Hu, Chun Xu, Xingjun Wang, Xiaohan Liu,       and Rongtang Fu.     \newblock Coloration strategies in peacock feathers.     \newblock \emph{Proceedings of the National Academy of Sciences}, 100\penalty0       (22):\penalty0 12576--12578, 2003.          \end{thebibliography}


title: Shorten both ends of a line with on key

text: Consider the following snippet:               \begin{tikzpicture}         \def\ptRad{2pt}         \fill (0,0) circle (\ptRad);         \fill (1,1) circle (\ptRad);         \draw[<->, shorten <=\ptRad,shorten >=\ptRad] (0,0) -- (1,1);       \end{tikzpicture}      Is there a way to use only _one_ shortening key for both ends at the same time?


title: Altered marginpar conflicts with biblatex citation

text: Consider the MWE below:               \documentclass[10pt,twoside,onecolumn,openright,draft]{memoir}     \usepackage{fontspec}     \usepackage{filecontents}     \usepackage{calc}     \usepackage[french]{babel}     \usepackage{mparhack}     \usepackage{csquotes}     \usepackage[authordate,strict,backend=biber,babel=other]{biblatex-chicago}          %\let\oldmarginpar\marginpar     %\renewcommand\marginpar[1]{\-\oldmarginpar[\raggedleft\footnotesize\hspace{0pt}#1]%     %{\raggedright\footnotesize\hspace{0pt}#1}}          \begin{filecontents}{references.bib}     @book{Thomsen:SL,         author = {Thomsen, Marie-Louise},     title = {The Sumerian Language},         subtitle = {An Introduction to its History and Grammatical Structure},         shorttitle = {Sumerian Language},         shorthand = {SL},         edition = {2},         series = {Mesopotamia Copehagen Studies in Assyriology},         number = {10},         location = {Copenhagen},         publisher = {\foreignlanguage{danish}{Akademisk Forlag}},         date = {1987},         year = {1987}     }     \end{filecontents}     \bibliography{references.bib}          \begin{document}     Texte\marginpar{\cite[§228]{Thomsen:SL}} et encore.     \end{document}      This compiles fine. However, when I uncomment the redefinition of marginpar (which I've used successfully for a few years), I get               ./minimal:33: Argument of \blx@citeargs@i has an extra }      Either the redefinition is problematic or else this causes a conflict of some kind with `biblatex-chicago`. Any thoughts?


title: Multiple names bold in bibliography

text: I'm following the guidelines from this post. However I'm struggling when trying to put in bold another name besides mine. The main characteristic is that the entry is like:               @TECHREPORT{EntryDeliverable,       author = {{Company 1 name} and {Company 2 name}},       title = {{Title}},     }      Note: Include the company name {} because I don't want the company name to be shortened when using firstinits=true. When I read the bbl file for Company 1 name I get:               {{hash=aaf4dfbf2d0b73914eae5cf63523f601}{{Company\bibnamedelimb 1\bibnamedelimb name}}{C\bibinitperiod}{}{}{}{}{}{}}      Note: name modified, so hash is not working. Then, I have tried with all the options as below               \forcsvlist{\listadd\boldnames}      {{{Company\bibnamedelimb 1\bibnamedelimb name}}, %       {{Company\bibnamedelimb 1\bibnamedelimb name}, }, %       {, {Company\bibnamedelimb 1\bibnamedelimb name}, }, %      }      What is the correct form to do it. BTW, how can I do it with the hash option.


title: Automatic header for LaTeX

text: I am writing my thesis using the template obtained from http://www-h.eng.cam.ac.uk/help/tpl/textprocessing/ThesisStyle/ with a bit of modification to suit my needs. I would like to have the left header to display the chapter title if there is no other sections in the page, display section title if there is a section there. If that section is longer than 1 page (2 pages and above), I would like the header to display the section title and chapter title alternately over the pages that cover that particular section. I use the code               \pagestyle{fancy}     \renewcommand{\chaptermark}[1]%     {\markboth{\MakeUppercase{\thechapter.\ #1}}{}}     \renewcommand{\sectionmark}[1]%     {\markright{\MakeUppercase{\thesection.\ #1}}}     \renewcommand{\headrulewidth}{0.5pt}     \renewcommand{\footrulewidth}{0pt}     \addtolength{\headheight}{0.5pt}     \fancyhf{}     \fancyhead[RO,LE]{\fontsize{10}{11}\selectfont \thepage}     \fancyhead[LO]{\fontseries{b}\fontsize{10}{11}\selectfont \leftmark}     \fancyhead[RE]{\fontseries{b}\fontsize{10}{11}\selectfont \leftmark}       but the header displays only the section title on every page How can I do it? Any code provided would be much appreciated.


title: How I can eliminate the date on the top right in a slide?

text: I use `Warsaw` theme but the date appear on the top right of each slide. How I can eliminate this date? * * * PREAMBLE               \documentclass{beamer}     \usetheme{Warsaw}     \setbeamertemplate{headline}{}     \useinnertheme{default}     \useoutertheme{shadow}     \usefonttheme{default}     \addtobeamertemplate{headline}{}{\vskip2pt}     \usefonttheme{structurebold}     \setbeamertemplate{footline}[frame number]     \setbeamercovered{transparent}     \setbeamercovered{invisible}     \setbeamertemplate{navigation symbols}{}          \usepackage{latexsym}     \usepackage{pgf}     \usepackage{mathrsfs}     \usepackage[english]{babel}     \usepackage{verbatim}     \usepackage{epsfig}     \usepackage{graphicx}     \usepackage{color}     \usepackage{import}     \usepackage{transparent}     \usepackage{bussproofs}     \usepackage{qtree}     \usepackage{tree-dvips}     \usepackage{lingmacros}     \usepackage{mathrsfs}     \usepackage{amsfonts}     \usepackage{amsmath}     \usepackage{amssymb}     \usepackage{latexsym}     \usepackage{amsthm}     \setbeamercovered{dynamic}     \usepackage{newlfont}     \usepackage{multirow}     \usepackage{array,cmll}     \usepackage{mathdots}     \usepackage{textcomp}     \usepackage{bbding}     \usepackage{accents}     \usepackage{rotating}     \usepackage{logreq}     \usepackage{biblatex}     \usepackage{biblist}     \usepackage{hyperref}


title: How can I do a case-insensitive search using "Find in project" in kile?

text: The "Find in Project" function is quite useful, however it is case-sensitive, at least when using `%s` in the text box right of the dropdown box with `Template: Normal`. Is there documentation on what the `%s` stands for and what alternatives are allowed?


title: Recreating a Cathode Ray Tube Diagram in TikZ?

text: Could someone help me produce this diagram in TikZ? ![enter image description here](http://i.stack.imgur.com/Aljkv.png) This is the code I have right now.               \begin{tikzpicture}     \draw (3.5, 3.5) circle (130 pt);          \draw[blue, very thick] (-1, 3.5) parabola (5.5, 1.5);     \draw[blue, very thick] (-2.5, 3.5) -- (-1, 3.5);     \draw (5.5, 1.5) node [anchor=north] {$(x, y)=O$};     \draw [black, very thick] (5.5, 1.5) circle (2 pt);      \draw [black, very thick] (-1, 1.5) circle (2 pt);     \draw (-1, 1.5) node [anchor= north east] {$B$};     \draw [red, very thick] (-1, 1.5) -- (5.5, 1.5);     \draw [red, very thick] (-1, 1.5) -- (-1, 3.5);     \draw [very thick] (-1, 1.8) -- (-0.7, 1.8);     \draw [very thick] (-0.7, 1.8) -- (-0.7, 1.5);     \draw [very thick] (-1, 1.8) -- (-1, 1.5);     \draw [very thick] (-1, 1.5) -- (-0.7, 1.5);     \draw (-1, 1.5) -- (-1, -6) node[near end, left] {$R-y$};     \draw (-1, -6) -- (5.5, 1.5) node[near start, below] {$R$};     \draw [very thick] (-1, -6) circle (2 pt);     \draw (-1, -6) node [anchor=north east] {$E$};     \foreach \x in {1,...,6}     \foreach \y in {1,...,6}     {     \draw (\x,\y) +(-.5,-.5) rectangle ++(.5,.5);          }     \end{tikzpicture}


title: Is it possible to modify @title?

text: In the following example, I would like to make the "look" of the title of the document same as that of a chapter heading.               \documentclass[12pt]{report}     \usepackage[T1]{fontenc}     \usepackage{lipsum}          \begin{document}          \title{Footer Testing}     \date{January 3, 2012}\maketitle          \chapter*{Preface}     \begin{flushleft}     \lipsum[1]\par      \chapter*{What is footer?}      \lipsum[2]     \end{flushleft}     \end{document}      One thing led to another, and I was looking at report.cls after a while. In other words I like the `\huge\bfseries` chapter headings, and would like to use the same `huge\bfseries` for the title of the document. (I looked at the definition of `\makechapterhead` in `report.cls` to come to this conclusion. Please correct me if I am wrong.) However, I could not find the definition of `@title` in `report.cls`. (It seems `@title` is more fundamental.) Is it possible to change the "look" of the `@title` to match the look of a chapter title, one way or another?


title: How to label a word inside a paragraph?

text: The idea is to place `\LBL{some_label_name}` in a paragraph so that I can refer back to the particular point inside that paragraph where the `\LBL` was placed. I would like to define the macro for `\LBL.` Unfortunately the `\label` must be placed inside an environment with a counter. I tried phantomsection but the label picks up the true section counter. I'm using the hyperref package. How can I achieve this, what would the `\def` for `\LBL` look like?


title: Two rows of upper indices

text: How do we do this in LaTeX? The main problem is having two rows of values as upper indices. ![enter image description here](http://i.stack.imgur.com/sPWvD.jpg)


title: polyglossia adds extra kerning to csquotes

text: When I use `csquotes` with `polyglossia`, an extra kerning is added after the first quotation mark. `\enquote{Werk}` becomes `„ Werk“`, not `„Werk“`. This doesn't look nice, especially when you have a word starting with a letter like `w`. When I use `babel` instead, `csquotes` works fine (`„Werk“`). Can anyone help to prevent `csquotes` (or `polyglossia`?) from inserting an extra space when using `polyglossia` (and running `xelatex`)?               \documentclass{scrartcl}      %\usepackage[ngerman]{babel}     %\usepackage[T1]{fontenc}     \usepackage{polyglossia}     \setdefaultlanguage{german}     \usepackage{csquotes}          \begin{document}     Werk          \enquote{Werk}          „Werk“          \end{document}


title: How can I use an align environment flush right?

text: Is there an option analogous within the `align` environment to the left align for right align, i.e. `fralign`. MWE:                \documentclass{article}      \usepackage[fleqn]{amsmath} % Instead have [freqn].      %\usepackage[fleqn]{mathtools} Something that will also work for mathtools as well.          \begin{document}          \begin{align*} % Would be fralign* instead.         \sin 2x &= 2sin x\cos x \\          \cos 2x &= \cos^2 x-\sin^2 x &     \end{align*}          \end{document}


title: 'Standalone' TikZ pictures

text: I want to create a TikZ picture in an external PDF file, which then can be included in my main document via `\includegraphics`. However, compiling a document with a TikZ picture in it produces a whole page, meaning lots of white space. What I want to do can be done using the preview package as described in Standalone diagrams with TikZ?, on SO. But there are some problems with the preview package and XeTex (see Transparency in tikz, preview package and xelatex). Since creating standalone pictures seems like a natural thing to ask, I am hoping for a different, and maybe more elegant, solution.


title: Split table into multiple files with \input

text: I want to split my table into multiple files: `\input{table_head.tex}` with following content               \begin{table}[htpb]     \centering     \caption{Caption}     \begin{tabular}[r]{ccc}     \addlinespace     \toprule     A &      B &      C \\     \midrule      `\input{content1.tex}` with following content               A1 & B1 & C1 \\      `\input{content2.tex}` with following content               A2 & B2 & C2 \\      and so on until `\input{contentX.tex}` with following content               AX & BX & CX \\      and finally the table footer `\input{table_footer.tex}` with the following content               \bottomrule     \end{tabular}     \label{tab:tab_label}     \end{table}      Which command should I use? I get errors with `input`.


title: Braid diagrams in TikZ

text: > **This question led to a new package:**   >  `spath3` > > (Technically, this question led to a _subpackage_ of the `spath3` package; > the `spath3` package provides some foundations on which a TikZ library > `knots` was built and the TikZ library is bundled with the `spath3` > library.) > > See also the blog post: How can I draw a knot in TeX? I need to use TikZ to draw some braid diagrams. These will be built from families of curves, which appear to cross over each other in places. At each crossing, it needs to be obvious which line is going over which, and so I'm using the TikZ double functionality, to draw a fat white line underneath the thin black lines representing the curves. That way, if I draw 'on top' line segments after 'on the bottom' line segments, I'll get the correct effect. But still, drawing these diagrams is a pain. In particular, I might have two continuous curves in one diagram, with the first curve going on top of the second in some places, and beneath it in others. So I can't simply draw the 'lower' curve first: I have to draw different segments of the curves individually. For ease of programming, I'd really like to have all the code for each curve together. One way I could achieve this is if I could change the layer independently for each segment of a multi-point path command. The idea would be something like this:               \draw (1) to [layer=middlelayer] (2) to [layer=toplayer] (3) to [layer=bottomlayer] (4);      Is this possible? Or is there a better way to achieve the effect I want? Unfortunately, my braid diagrams need to be much more freeform than those produced by Andrew Stacey's braid package. They're not of the form of generators of the braid group stacked neatly on top of one another. Here's an example of the sort of thing I need: ![enter image description here](http://i.stack.imgur.com/OIg0C.jpg)


title: command \equal{#1}{} produces error if compactitem is in argument

text: I want to check if a variable is empty or not in a custom command. This works well, as long as it contains "normal text" but as soon as there is an itemize environment, I get an error message:               \documentclass[11pt, a4paper]{scrartcl}          \usepackage[ngerman]{babel}     \usepackage{ifthen, paralist}          \begin{document}          \begin{compactitem}     \item Item 1     \item Item 2     \end{compactitem}          \newcommand{\equalsNothing}[1]{     \ifthenelse{\equal{#1}{}}{true}{false}     }          \equalsNothing{}     \equalsNothing{1}          \equalsNothing{      \begin{compactitem}     \item Item 1     \item Item 2     \end{compactitem}     }          \end{document}      How can I change the \equalsNothing-command, so that it correctly works also with that itemize-content?


title: Nesting outlined boxes in math mode (formulas from Laws of Form)

text: I want to type-set some formulas from Spencer-Brown's Laws of Form using the nested cross formatting, and preferably using math mode, at times inlined into a paragraph. E.g. the following: ![enter image description here](http://i.stack.imgur.com/Vin4t.png) So what I need is the possibility to nest blocks with triangles/lines as delimiters. How would I go about this without resorting to drawing and embedding a SVG graphic?


title: accessing data using datatool when headers aren't available

text: I have a series of `csv` files I'm expecting to receive on a regular basis, and there are two problems with these files.   1. I am not guaranteed to have headers.   2. I cannot rely on how many data entries there will be per row (sometimes there may be 50 or so, sometimes more) What I am guaranteed is that, let's say, the 1st, 10th, and 30th column have the data I want. Up until now I've been using a perl script to _collapse_ these `csv` files to something where the rows have only the elements I'm interested in. Is there a way in `datatool` to tell it to create headers for certain columns and ignore the rest? For example, it would be nice to be able to do something like the following:               \DTLloaddb[noheader,headers={modelname=1,serialnumber=10,weight=30}]{itemweights}{somefile.csv}      which would mean that `modelname` is in the first column, `serialnumber` is in the 10th column and `weight` is in column 30. Here is an extremely simplified example of a `csv` file I might work with.                 "toaster",    "",      "",       "",       "234-02015-23-948",  "",  "",      "",      "",      "",  "1255",  "",  ""        "blender",    "junk",  "",       "",       "753-20842-46-824",  "",  "",      "junk",  "",      "",  "1567",  ""        "microwave",  "",      "",       "stuff",  "376-73178-68-487",  "",  "",      "",      "junk",  "",  "2434",  "",  "",  ""       "radio",      "",      "stuff",  "junk",   "724-86499-61-446",  "",  "",      "",      "junk",  "",  "2343"        "tv",         "",      "",       "",       "423-90219-60-149",  "",  "junk",  "",      "",      "",  "3023",  "",  "",  ""      A solution that creates a header for every column is completely infeasible because I have upwards of 50 columns only 3 or 4 of which I'm interested in. What I'd like to be able to do is write:               \DTLloaddb[noheader,headers={appliance=1,serialnumber=5,detailnumber=11}]{itemweights}{somefile.csv}


title: Minipages' vertical alignment

text: I use three minipages so to make a table and two images be placed next to each other and although the images are in the right place the table is placed much lower producing an ugly result. Why is that happening? How can I fix it?               \begin{minipage}[t]{5cm}     \begin{tabular}{|c|c|c|}     \hline     $V_{c}(Low)$ & $mV$ & $0$\\     \hline     $V_{c}(High)$ & $V$ & $5.6$\\     \hline     $T_{d}$ & $ns$ & $30$\\     \hline     $T_{r}$ & $ns$ & $30$\\     \hline      $T_{sd}$ & $ns$ & $780$\\     \hline      $T_{f}$ & $ns$ & $240$\\     \hline      $F_{max}$ & $kHz$ & $570$\\     \hline     \end{tabular}     \end{minipage}     \begin{minipage}[t]{5cm}     \includegraphics[width=\textwidth]{A1.JPG}     \end{minipage}     \begin{minipage}[t]{5cm}     \includegraphics[width=\textwidth]{A2.JPG}     \end{minipage}


title: Incorrect page dimensions

text: I'm trying to create a simple document, on letter paper with 1-inch margins all around. Here's the simple document I'm working with:               \documentclass[letterpaper,12pt]{report}     \usepackage[margin=1in]{geometry}     \begin{document}          \the\textwidth          \the\paperwidth          \end{document}      Given that letter paper is 8.5in by 11in (i.e., 612pt by 792pt), and the margins are 1in all around (i.e., 72pt on each side), I would expect the values of `\textwidth` and `\paperwidth` to be `612pt` and `468pt` respectively. However, the actual result I get when I compile the above document is:               469.75502pt     614.295pt      I'm sure that some assumption I've made is incorrect, but I can't seem to find where I've gone wrong online. Can anyone explain why the actual results differ from my expectations?


title: Sub-sections related to sections

text: I’d like to know whether it’s possible to improve the subsection style of my document. As you can see, I want to have up to four subsections in the “Methods” chapter. For example, the document shows “II. Selection of assets” when the ideal would be “I.II. Selection of assets” (because it belongs to a particular chapter). Is this possible? Here’s my code:               \AtBeginDocument{\flushbottom}     \documentclass[10pt,a4paper,twocolumn]{scrartcl}     \bibliographystyle{nature}           \setlength{\columnsep}{30pt}     \usepackage{geometry}     \geometry{a4paper,left=25mm,right=25mm, top=25mm, bottom=25mm, headsep=10mm}      \setlength{\parskip}{\the\baselineskip plus 2pt minus 1pt}     \setlength{\parindent}{0pt}     \usepackage[T1]{fontenc}     \usepackage[latin1,utf8]{inputenc}     \usepackage{lmodern}     \usepackage[ngerman,english]{babel}      \usepackage[english,ngerman]{babel}          \usepackage[tracking=true]{microtype}                        \usepackage{dsfont}     \usepackage{hyperref}     \usepackage{accents}     \usepackage{textcomp}     \usepackage{url}          %----------------------------------------------------------------------------------------     %   HEADER     %----------------------------------------------------------------------------------------     \usepackage{fancyhdr}      % All pages have headers and footers     \pagestyle{fancy}      % Blank out the default header     \fancyhead{}     % Custom header text     \fancyhead[C]{ABC $\bullet$ ABC $\bullet$ ABC}      %----------------------------------------------------------------------------------------          %----------------------------------------------------------------------------------------     %   TITLES     %----------------------------------------------------------------------------------------     % Allows customization of titles     \usepackage{titlesec}      % Roman numerals for the sections     \renewcommand\thesection{\Roman{section}.}      % Arabic numerals for subsections     \renewcommand\thesubsection{\Roman{subsection}.}     %----------------------------------------------------------------------------------------          %----------------------------------------------------------------------------------------     %   REFERENCE HYPERLINK SMALLER FONT     %----------------------------------------------------------------------------------------     \makeatletter     \def\url@leostyle{       \@ifundefined{selectfont}{\def\UrlFont{\sffamily}}{\def\UrlFont{\small\ttfamily}}}     \makeatother     \urlstyle{leo}     %----------------------------------------------------------------------------------------          \begin{document}     % starts supressing the twoculomn environment, from here on it will we one column     \twocolumn[\begin{@twocolumnfalse}          % make a section     \section*{\huge\scshape\centering{The Mash-Up Experiment}}     \vspace{4mm}         \normalsize          \begin{center}     \large\textsc{XXX XXX}\\     \vspace{4mm}       University          \href{mailto:xxx@example.com}{xxx@killthepixelnow.com}     \end{center}     \vspace{6mm}          \section*{Abstract}      “The Mash-Up Experiment” is a six-minute musical piece.           \vspace{8mm}          %begins tabular     \begin{tabular}{p{1,5cm}p{12,55cm}p{1,5cm}}        &\textbf{Keywords}: authorship\\     \end{tabular}      % ends tabular          \vspace{11mm}          % ends suppressing the twocolumn environment, from here on it will be twocolumn     \end{@twocolumnfalse}]            \section{Methods} % make section      \subsection{Foundations}     In the matter of the sonic sources included in this song, more than thirty different tracks were utilised. The scope of genres and authors was motley, ranging from classical orchestration to bolero, from old singers to contemporary pop acts. Nonetheless, a great percentage of these tunes were taken from the works of James Bernard, who composed several scores for Hammer Films in the last millennium. He is the man behind the music from classic horror flicks such as “The Quartermass Experiment (1955),“ ”The Devil Rides Out (1968),” and “Scars of Dracula (1970).”           \subsection{Selection of assets}     In the matter of the sonic sources included in this song, more than thirty different tracks were utilised. The scope of genres and authors was motley, ranging from classical orchestration to bolero, from old singers to contemporary pop acts. Nonetheless, a great percentage of these tunes were taken from the works of James Bernard, who composed several scores for Hammer Films in the last millennium. He is the man behind the music from classic horror flicks such as “The Quartermass Experiment (1955),“ ”The Devil Rides Out (1968),” and “Scars of Dracula (1970).”           \subsection{Composition and arrangement}     In the matter of the sonic sources included in this song, more than thirty different tracks were utilised. The scope of genres and authors was motley, ranging from classical orchestration to bolero, from old singers to contemporary pop acts. Nonetheless, a great percentage of these tunes were taken from the works of James Bernard, who composed several scores for Hammer Films in the last millennium. He is the man behind the music from classic horror flicks such as “The Quartermass Experiment (1955),“ ”The Devil Rides Out (1968),” and “Scars of Dracula (1970).”           \end{document}


title: Install tikz-cd

text: How to install tikz-cd, I am using texshop. I need the following               \documentclass{article}     \usepackage{tikz-cd}     \usetikzlibrary{arrows}     \tikzset{       commutative diagrams/.cd,       arrow style=tikz,       diagrams={>=space}}     \begin{document}     \begin{tikzcd}                    & A \arrow{d}            &              \\                    & B \arrow{dl}\arrow{dr} &              \\       C \arrow{dr} &                        & D \arrow{dl} \\                    & F                      &              \\     \end{tikzcd}     \end{document}      Or alternatively, could we write in a different way?


title: Vertically spelled words in a table

text: I have made the following table in LaTeX. In order to vertically rotate the headers (extraction/production, transportation,...) in the table I have used the `\rotatebox` command. However, I would like to vertically spell these headers so that they are readable in a presentation without turning my slide. ![Table life cycle phases](http://i.stack.imgur.com/xq00k.png) Can anyone help me with this?


title: Article class complaining about missing \title

text: I'm making a custom Latex class which I am basing on the article class. When compiling a document I get `! LaTeX Error: No \title given.`, even though I use \title in the document. How can I solve this problem?


title: Exclude certain references in the bibliography

text: I'm creating my bib-file (`Literaturverzeichnis.bib`) with jabref under windows and I'm also inserting papers and books etc which I read but might not need as they might be irrelevant for my current work. But I still want to keep them in the bib-file to always have a record of what I've read already (taking notes on each entry with a short summary on my own if the entry is relevant or not). I therefore organize the entries in groups, one group called `_irrelevant_`. Then I insert them into my thesis via               \bibliographystyle{alphadin}    % Literaturverzeichnis nach DIN 1505     \bibliography{Literaturverzeichnis}      Would it be now possible to somehow exclude either   * a) every entry of my reference-list which wasn't quoted in my thesis at all by using `\cite{XYZ`} or   * b) (if a) isn't possible) only display entries of certain groups (so that I could exclude all entries which I assigned to group `_irrelevant_` and only display the relevant entries) Thank you a lot in advance!


title: How to compile .bib to LaTeX

text: I have been writing a manuscript using a .bib file and apacite, but the journal that I submitted to requires bibliography to be manually included within the .tex file like this               Johnson, A. \& Smith, B. (2014). Paper title. \textit{Journal Name, 101}(1), 111--123.      More specifically, right now my .tex file looks like this:               \documentclass[twocolumn]{article}     \usepackage{apacite}          \begin{document}     This is some previous work \cite{article1}.          \bibliographystyle{apacite}     \bibliography{ref.bib}          \end{document}      ref.bib file looks like this:               @article{article1,         Author = {Johnson, Adam},         Journal = {Journal Name},         Number = {101},         Pages = {111--123},         Title = {Paper title},         Volume = {11},         Year = {2014}}      But the journal wants it to look something like:               \documentclass[twocolumn]{article}     \usepackage{hanging}          \begin{document}     This is some previous work (Johnson, 2014).          \section*{Reference}     \begin{hangparas}{2em}{1}     Johnson, A. (2014). Paper title. \textit{Journal Name, 11}(101), 111-–123.     \end{hangparas}          \end{document}      How can I convert the .tex file to the required format? Thanks. Btw, the .bbl looks like this:               \begin{thebibliography}{}          \bibitem [\protect \citeauthoryear {%     Johnson%     }{%     Johnson%     }{%     {\protect \APACyear {2014}}%     }]{%     article1}     \APACinsertmetastar {%     article1}%     \begin{APACrefauthors}%     Johnson, A.%     \end{APACrefauthors}%     \unskip\     \newblock     \APACrefYearMonthDay{2014}{}{}.     \newblock     {\BBOQ}\APACrefatitle {Paper title} {Paper title}.{\BBCQ}     \newblock     \APACjournalVolNumPages{Journal Name}{11}{101}{111--123}.     \PrintBackRefs{\CurrentBib}          \end{thebibliography}


title: Error using \toprule \midrule from Booktabs package

text: I am trying to use the package booktabs to make my tables look nicer. However, Latex gives me an error whenever I use \toprule \midrule or \bottomrule. Here is a simple example I created:               \documentclass[10pt,DIV=12,a4paper,numbers=noenddot]{scrreprt}               \usepackage[english]{babel}     \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}          \usepackage{booktabs} % To thicken table lines          \begin{document}          \begin{table}         \begin{tabular}{ll}         \topline         Header 1 & Header 2\\         \midline         Body 1 & Body 2\\         Body 3 & Body 4\\         \bottomline         \end{tabular}         \end{table}          \end{document}      Here is the latex output: http://www.text-upload.com/read.php?id=367245&c=7201095 I also browsed to `/usr/local/texlive/2011/texmf-dist/tex/latex/` to check if the package is really there. And it is. I cannot see why latex is throwing these errors. Can anyone help?


title: Is there a way to automatically change kerning between commas/full stops and footnote marks?

text: > **This question led to a new package:**   >  `fnpct` Following up on my question on the kerning of footnote marks after punctuation marks, I'd like to know if there is a way to achieve the kerning of footnote marks over a comma or full stop automatically or with a better macro than the one I provided there. I'm going to repeat my result and the macro I suggested. Here the footnote marks are moved to the left by a little less than a third of the width of the punctuation marks and the normal footnote marks (that is, those that come after any other symbol or letter) are moved right by the same amount, as inspired by http://www.read.seas.harvard.edu/~kohler/latex.html and shown in my comment: ![package default compensation](http://i.stack.imgur.com/cXrH7.png) This is achieved with the following code:               \documentclass{article}     % URW Classico is a font that makes the issue apparent     \renewcommand{\sfdefault}{uop}     \renewcommand{\familydefault}{\sfdefault}     % define punctuation-aware footnote macro     \let\origfootnote\footnote     \renewcommand{\footnote}[1]{\kern.06em\origfootnote{#1}}     \newcommand{\punctfootnote}[1]{\kern-.06em\origfootnote{#1}}     % define a very small      \setlength{\textwidth}{150pt}     \setlength{\textheight}{5\baselineskip}     \begin{document}     \noindent The three little pigs built their houses out of     straw,\punctfootnote{not to be confused with hay}     sticks\footnote{or lumber according to some sources} and     bricks.\punctfootnote{probably fired clay bricks}     \end{document}      Using LuaLaTeX is an option for me. I'm also aware of the existing question regarding automatic kerning but I know too little to adapt the LuaLaTeX code there to my problem.


title: Lualatex (luaotfload) broke after upgrading to Mavericks

text: Ever since I upgraded to OS X Mavericks—post hoc ergo propter hoc—I can no longer compile my dissertation using LuaLaTeX. When running lualatex I first got the following error:               luaotfload | db: reload initiated; reason: “unresolved font name: ‘lucidacal      Segmentation fault: 11 'lucidacal' presumably refers to the Lucida Grande font, which I had installed in ~/Library/texmf. I removed ~/Library/texmf and ~/Library/texlive and now I get the following error:               luaotfload | db : Font names database not found, generating new one.     luaotfload | db : This can take several minutes; please be patient.Segmentation fault: 11      I can reproduce this error by running luaotfload-tool --update. At some point I also got the following error:               luaotfload | db: Font names database not found, generating new one.     Bus error: 10      I can't reproduce this, however. I tried upgrading all packages using TeXLive but this didn't help. I have no idea how to fix it and would be grateful for any clues!


title: LuaLateX (luaotfload & blacklist) do not work in Mac OS X Mavericks (Segmentation error)

text: I have the same problem as already stated by Till A. Heilmann under:   Lualatex (luaotfload) broke after upgrading to Mavericks After updating to Mavericks, LuaLaTeX does no longer work for me and when running               luaotfload-tool -v -vvv -u        I always get “Segmentation fault:” with and without editing               /usr/local/texlive/2013/texmf-dist/tex/luatex/luaotfload/luaotfload-blacklist.cnf        So putting fonts on the blacklist has no affect.   After moving the font which didn't work into a different directory and rerunning                luaotfload-tool -v -vvv -u        the error keeps occurring for a lot of other fonts (e.g. Krungthep.ttf, KufiStandardGK.ttf, Gungseouche.ttf, NISC18030.ttf and many more).   It seems to be a never ending story...   I would be very grateful for any suggestions how to handle this problem. ### Update Thanks for your reply.   However the               luaotfload-tool -b      command doesn't exist on my system - even after updating to the newest revision of luaotfload-tool via               tlmgr install luaotfload      as described in https://github.com/lualatex/luaotfload/blob/master/README. Furthermore               luaotfload-tool --update --force --verbose=2      also didn't succed and it does not show a line of output for each processed font. So you do not know because of which font it stopped generating the database.   Nevertheless it now suddenly and somehow works, even with all the fonts which didn't work an hour ago, exept for Skia.ttf.   The only difference is that I closed my shell emulator and that I ran                luaotfload-tool -fuvvv --log=stdout      as described in section 8.1 Troubleshooting (Database Generation) of the documentation of the luaotfload-package (ftp://ftp.tex.ac.uk/tex- archive/macros/luatex/generic/luaotfload/luaotfload.pdf).   Sorry for asking such stupid questions.


title: Getting rid of Glossary text in glossary in memoir style (Bug?)

text: > **Possible Duplicate:**   >  \pagestyle{ruled} adds superfluous text in glossary I would like to get rid of the glossary in the first line after header. How can I do that? `lualatex` and `makeglossaries` is used. ![enter image description here](http://i.stack.imgur.com/DeGuW.png) MWE:               \begin{filecontents}{main-acro.tex}     \newacronym{pdms}{PDMS}{Poly-dimethyl-siloxane}     \newacronym{dc}{DC}{Direct current}     \newacronym{ac}{AC}{Alternative current}     \end{filecontents}          \documentclass{memoir}          \usepackage[xindy,nonumberlist]{glossaries}     \usepackage{glossary-mcols}% to allow multicollumn glossaries          \makepagestyle{genomics}     \makepsmarks{genomics}{%       \createplainmark{glossary}{both}{\glossaryname}     }     \pagestyle{genomics}          \loadglsentries{main-acro}     \makeglossaries     \glsaddall    % add all the glossary regardless of them being used.     \renewcommand*{\glsmcols}{2}       \glossarystyle{mcolindex}           \begin{document}     \printglossary     \end{document}      I found the culprit during making a MWE. it it the `createplainmark` line. If you comment that out, everything is OK. Is this a bug?


title: Two "glossary" elements being generated on my first glossaries page

text: I'm successfully generating a glossary, but for whatever reason I'm getting a rogue "Glossary" element before my first glossary entry, but after my Glossary heading. Here's the relevant example code:               \documentclass[10pt,ebook,oneside,openright]{memoir}     \usepackage{graphicx}     \usepackage[scaled]{berasans}     \usepackage[T1]{fontenc}     \usepackage{setspace}     \usepackage[toc,nonumberlist]{glossaries}          \chapterstyle{madsen}     \pagestyle{ruled}     \setsecnumdepth{subsection}     \renewcommand*\familydefault{\sfdefault}          \makeglossaries     \newglossaryentry{ge1}     {       name={Entry 1},       description={My first glossary entry.}     }          \begin{document}     \title{My Fancy Title}     \author{John Smith}     \date{March 2013}     \maketitle     \linespread{1.2}          \frontmatter     \tableofcontents          \mainmatter     \chapter{The House}     It was a dark and stormy night...          \backmatter     \glsaddall     \printglossaries     \end{document}


title: Border or frame around figure

text: I'd like to place a border / frame around my figure. The figure is a bunch of equations:               \begin{figure}[ht]         \[ eqn 1 \]              \[ eqn 2 \]              \[ eqn 3 \]              \caption{\label{myfig} My caption.}     \end{figure}      I've tried putting an `\fbox{...}` and `\framebox[\textwidth]{...}` around the equations but it doesn't work. Preferably, I'd like the border to _not_ include the caption. Any hints are welcome... * * * Related question (though it concerns `\includegraphics` instead):   * How to add border for an image?