title: Use of \scshape or \textsc with fontspec/xelatex

text: I've already tried Use of \scshape or \textsc in beamer \institute fix with `\rmfamily` in the MWE below, but it doesn't work - I've seen A problem with \textsc as well, but I don't think I should load `fontenc` now that I'm using `fontspec` with `xelatex`. This is the output I get - the centered text below the section should be smallcaps, but isn't (note, however, that the section heading/title does indeed show smallcaps, as intended): ![test.png](http://i.stack.imgur.com/jfo52.png) Here is the MWE:               \documentclass[letterpaper,12pt]{article}          % \typeout{ == \the\paperwidth / \the\paperheight ==}     % \typeout{ == \the\pdfpagewidth / \the\pdfpageheight ==}     \pdfpagewidth=\paperwidth \pdfpageheight=\paperheight          \usepackage{fontspec}     \defaultfontfeatures{Ligatures=TeX}     \setmainfont{Junicode}          \makeatletter     \renewcommand{\section}{\@startsection     {section}%                   % the name     {1}%                         % the level     {\z@}%                       % the indent / 0mm     {-\baselineskip}%            % the before skip / -3.5ex \@plus -1ex \@minus -.2ex     {0.5\baselineskip}%          % the after skip / 2.3ex \@plus .2ex     {\centering\normalsize\scshape}} % the style     \makeatother               \usepackage{lipsum}     \usepackage{tikz}               \begin{document}          \section*{A test of section small-caps}          \begin{center}     \textbf{\rmfamily \textsc{Something written without small-caps}}     \end{center}            \lipsum[1]          \end{document}      Any suggestions on how to get the small-caps running here? Many thanks in advance for any answers,   Cheers!


title: MiKTeX 2.9 bugs between xkeyval or dstroke

text: Please help a not installation expert. I just upgraded from MiKTeX 2.8 to MiKTeX 2.9 and I use TeXnicCenter 2.02. The compilation "hangs" whith the line > "MiKTeX 2.9\tex\generic\xkeyval\xkeyval.tex" It does not go on even after half an hour... When I stop the building process the next line reads > "MiKTeX 2.9\tex\latex\dstroke\dsfont.sty" Both packages are correctly installed. I even uninstalled them and re- installed them, but it didn't help. Moreover missing packages are installed on the fly.


title: Looking for (some) l3box equivalents of graphics' \resizebox variants

text: AFAIK, the box resizing functions of the `l3box` module are implemented using the LaTeX2e `graphics`package. However, some of the `\resizebox` variants don't have an `expl3` counterpart. The available ones are:               \resizebox*{<h-size>}{<v-size>} --> \box_resize:Nnn<boxnum>{<h-size>}{<v-size>}     \resizebox*{!}{<v-size>}        --> \box_resize_to_ht_plus_dp:Nn<boxnum>{<v-size>}     \resizebox{<h-size>}{!}         --> \box_resize_to_wd:Nn<boxnum>{<h-size>}      But I am looking for               \resizebox{<h-size>}{<v-size>}  --> ? resizes width and height *     \resizebox{!}{<v-size>}         --> ? resizes height, while maintaining aspect ratio **       `*)` Something like `\box_resize_to_wd_and_ht:Nnn<boxnum>{<h-size>}{<v-size>}`, because existing `\box_resize:Nnn` is essentially `\box_resize_to_wd_and_ht_plus_dp:Nnn` **) The latter of the missing mappings could be named as `\box_resize_to_ht:Nn<boxnum>{<v-size>}`. Is there a reason why they are not provided? Could they be added in a future `expl3` version?


title: LaTeX abntex package, twoside putting the page number on the wrong side of the page

text: I'm finishing writing my thesis, and to save paper I'm trying to use the twoside option for the package abntex. The problem is that the number is in the wrong side of the page! How can I put it on the other side? Here's a my header:               \documentclass[a4paper,12pt,normaltoc,twoside,openright]{abnt}     \usepackage[utf8]{inputenc}     \usepackage{setspace}     \usepackage[T1]{fontenc}     \usepackage[bitstream-charter]{mathdesign}     \usepackage[portuguese,brazil,brazilian]{babel}     \usepackage{graphicx}     \usepackage{amsmath}     \usepackage{url}     \usepackage{pdflscape}     \usepackage{rotating}     \usepackage{appendix}     \usepackage{color}     \usepackage{microtype}     \usepackage{tabela-simbolos}     \usepackage{subfigure}     \usepackage[num,abnt-etal-list=0,abnt-etal-text=it,abnt-   emphasize=it,recuo=0.0cm,bibjustif,abnt-last-names=abnt]{abntcite}     \usepackage{float}     \usepackage[format=hang,font={footnotesize,singlespacing},labelfont=bf,labelsep=endash] {caption}          \onehalfspacing            \begin{document}          \include{folha_rosto}     \include{resumos}          \tableofcontents     \listoffigures     \include{introducao}     \end{document}


title: Placing many conditionals in a series

text: I frequently need to do something like this:               IF x < 1, DO a     ELSE IF x < 2, DO b     ELSE IF x < 3, DO c     ELSE, DO d      Using `etoolbox`, I end up nesting a lot of `ifnumless`, like this:               \ifnumless{x}{1}{a}{         \ifnumless{x}{2}{b}{             \ifnumless{x}{3}{c}{                 d             }         }     }      Is there a simpler way to achieve this?


title: MacTeX pgfkeys/tikz package fails

text: the document listed below, (taken from here: texample.net) fails on my system (running MacTeX 2011) with the error:               Package pgfkeys Error: I do not know the key '/tikz/drop shadow' and      I am going to ignore it. Perhaps you misspelled it.      I've checked my packages using the TeX Live Utility and they all seem to be up to date. Any ideas on what I might be doing wrong? Thanks. The document:               \documentclass{article}          \usepackage{tikz}     \usepackage{pgf-umlsd}     \usepgflibrary{arrows} % for pgf-umlsd     \begin{document}          \begin{figure}       \centering            \begin{sequencediagram}         \newthread{ss}{}{SimulationServer}         \newinst{ctr}{}{SimControlNode}         \newinst{ps}{}{PhysicsServer}         \newinst[1]{sense}{}{SenseServer}              \begin{call}{ss}{Initialize()}{sense}{}         \end{call}         \begin{sdloop}{Run Loop}           \begin{call}{ss}{StartCycle()}{ctr}{}             \begin{call}{ctr}{ActAgent()}{sense}{}             \end{call}           \end{call}           \begin{call}{ss}{Update()}{ps}{}             \begin{call}{ps}{PrePhysicsUpdate()}{sense}{state}             \end{call}             \begin{callself}{ps}{PhysicsUpdate()}{}             \end{callself}             \begin{call}{ps}{PostPhysicsUpdate()}{sense}{}             \end{call}           \end{call}           \begin{call}{ss}{EndCycle()}{ctr}{}             \begin{call}{ctr}{SenseAgent()}{sense}{}             \end{call}           \end{call}         \end{sdloop}       \end{sequencediagram}            \caption{UML sequence diagram demo.}     \end{figure}     \end{document}      Update: I found the answer: The packages were wrong - for my system running `pgf-umlsd.sty v0.5` atleast. They should have been...               \documentclass{article}          \usepackage{tikz}     \usetikzlibrary{arrows,shadows} % for pgf-umlsd     \usepackage[underline=true,rounded corners=false]{pgf-umlsd}      Additionally, the command `\begin{sdloop}{Run Loop}` now needs to be `\begin{sdblock}{Run Loop}`.


Using LyX, how can I make a 6 column table with the second row having multiple lines of text? I am trying to create the following layout in LyX: ![screenshot](http://i.stack.imgur.com/VmuiQ.jpg) I'm using LyX 2.0 for mac. What are ways to accomplish this?


title: Combining tufte handout with classicthesis article

text: I am a sucker for the large margins in Tufte-inspired classes, and in classicthesis. However, I want to write an article with a Tufte layout (example), but with the classicthesis title/author/abstract/contents/(general front matter) structure. To me, the tufte-handout class is too 'handouty', and the tufte-book is too 'booky'. I want a genuinely 'articley' class. For an example of the classicthesis part (in fact the article in question), see this article written by me. (Note to mathematicians: this is not the most up-to-date version! The content has been much improved since). Perhaps the way to go about this is to hack classicthesis, so that the margins are as per tuftr-handout (e.g. as in this question). Or perhaps hack tufte- handout so that the front matter is as per classicthesis (but left-aligned the tuft-handout front matter). However, I have no experience in this matter! Which would be better? Or is there another way?


title: Is there a way to modify the default vertical spacing conventions of LaTeX left and right delimiters?

text: I am wondering if there is a way to modify the way left and right delimiters in LaTeX handle vertical spacing. This tends to come up when they are enclosing a fraction that has a big numerator but a small denominator. I have posted a (made up) example, but it illustrates the issue I am running into - there is a lot of extra vertical space at the bottom of the expression, and I'm wondering if there is a way to get rid of it. Many thanks. Self-contained short LaTeX article using amsmath package below.               \documentclass{article}          \usepackage{amsmath}          \begin{document}     When this expression is included in the text, $\left\vert\frac{\begin{bmatrix}\phantom{-}d&-b\\-c&\phantom{-}a\end{bmatrix}}{a d-b c}\right\vert$, the absolute value signs treat the denominator as if it were the same size as the numerator, even though it is much smaller. The fraction bar is centred about at the middle of the line of the text. In this expression, $\frac{\begin{bmatrix}\phantom{-}d&-b\\-c&\phantom{-}a\end{bmatrix}}{a d-b c}$, the centring is the same; the fraction bar is about in line with the middle of the text. However, the vertical spacing before the next line of text is much smaller.          The same phenomenon occurs in displayed equations.     \begin{equation*}     \left\vert\begin{bmatrix}a&b\\c&d\end{bmatrix}^{-1}\right\vert=\left\vert\frac{\begin{bmatrix}\phantom{-}d&-b\\-c&\phantom{-}a\end{bmatrix}}{a d-b c}\right\vert     \end{equation*}     Note the spacing below this equation and the following text. Contrast with the following example,     \begin{equation*}     \begin{bmatrix}a&b\\c&d\end{bmatrix}^{-1}=\frac{\begin{bmatrix}\phantom{-}d&-b\\-c&\phantom{-}a\end{bmatrix}}{a d-b c}     \end{equation*}     where the text is much closer to the denominator of the fraction. The same effect does not happen in the next example,     \begin{equation*}     \left.\begin{bmatrix}a&b\\c&d\end{bmatrix}^{-1}\right.=\left.\frac{\begin{bmatrix}\phantom{-}d&-b\\-c&\phantom{-}a\end{bmatrix}}{a d-b c}\right.     \end{equation*}     in which the expressions have been surrounded by invisible left and right delimiters. It does happen in the next example,     \begin{equation*}     \left(\begin{bmatrix}a&b\\c&d\end{bmatrix}^{-1}\right)=\left(\frac{\begin{bmatrix}\phantom{-}d&-b\\-c&\phantom{-}a\end{bmatrix}}{a d-b c}\right)     \end{equation*}     which uses parentheses instead of absolute values.     \end{document}


title: Is it possible to have back references after each chapter with a single main.bib file?

text: I'm using LaTeX + BibTeX to write my dissertation. I have one separate `.tex` file for each chapter. And I'll generate one bibliography for each chapter. But all the references are from the same file (`main.bib`). So, there are many situations in which different chapters will cite the same reference. Thus, one reference can appear more than once in the bibliographies of the whole dissertation (but in different chapters). I'd like to use back references from the `hyperref` package. I'm just wondering whether it would be possible to do so?               % chapter 1     Bibliography     [1]. A and B, Nature, 1991. 15, 20.     ...          % chapter 2     Bibliography     ...     [3]. A and B, Nature, 1991. 55, 67.     ...


title: How can I optimize the arara password program?

text: I have written the following (runable) `arara`-program, which creates a password-locked `pdf` with adjustable prohibited access rights: `secure.yaml`               !config     # GhostScript-ps2pdf password-security rule for arara     # version: 0.1b     # requires arara 3.0+     identifier: secure     name: Secure     command: <arara> @{program} -sOwnerPassword=@{ownerpw} -sUserPassword=@{userpw} -dEncryptionR=@{encryptionmethode} -dKeyLength=@{keylength} -dPermissions=@{permission} @{getBasename(file)}.pdf @{outputpath}@{getBasename(file)}@{nameaffix}.pdf     arguments:     - identifier: program       flag: <arara> @{parameters.program}       default: ps2pdf     - identifier: ownerpw       flag: <arara> @{parameters.ownerpw}       default: aaa     - identifier: userpw       flag: <arara> @{parameters.userpw}       default: bbb     - identifier: encryptionmethode       flag: <arara> @{parameters.encryptionmethode}       default: 3     - identifier: keylength       flag: <arara> @{parameters.keylength}       default: 128     - identifier: permission       flag: <arara> @{parameters.permission}       default: 0     - identifier: nameaffix       flag: <arara> @{parameters.nameaffix}       default: _sec     - identifier: outputpath       flag: <arara> @{parameters.outputpath}       default: C:\Secret\      I would like to change, the last both `identifier` s. **1. Problem "`nameaffix`"** Without the `ouputpath`-Option, there will be created a file `jobname_sec.pdf` per default in the same working folder. I would like to have an option like `%arara: secure: {nameaffix: false}`, so there would be generated a "secured"file `jobname.pdf`, that means, the the "unsecured" file will be 'overwritten'. * * * # Edit 1: So, I think the first problem is not a problem, because:               % arara: pdflatex     % #arara: secure: { userpw: foo }      % #arara: secure: { userpw: foo , nameaffix: -mostsecret }      % #arara: secure: { userpw: foo , nameaffix: "" }          % in this order:     % <"nothing">  yields: jobname_sec.pdf, the default     % <nameaffix: -mostsecret> yields jobname-mostsecret.pdf     % <nameaffix: "">  yields jobname.pdf; but a different outputpath is needed!!!          \documentclass{article}            \begin{document}     \section{My very secret Text}     ......     \end{document}      * * * **2. Problem "`outputpath`"** How can I have this option as a pure optional parameter? That means: `%arara: secure: {...}` If there is _no_ `... outputpath: C:/...` declared, the same working folder will be used for writing the "secured" file. I hope, I have explained my problems understandable ;) Thank you for reading and for your interest. * * * # Edit 2: For the 2nd problem, I think something like:               - identifier: outputpath       flag: <arara> @{parameters.outputpath}       default: <arara> @{ getDirname(file) }      is needed. **But this could not be completely right, because:** In the case               % #arara: secure: { userpw: foo , outputpath: \SecrectDocuments\TodaysSecretDocuments }       an 'outputpath' was used (with a correct file inside). **But:** In the case               % arara: secure: { userpw: foo }       that means, without `outputpath`, a file named `nulljobname_sec.pdf` was created in the working folder. How can I erase this prefix ' **null** '? * * * **PS: Improvement suggestions / ideas in general are welcome too!** _PPS:_ I forgot, for testing arara-secure, use the following MWE for example:               % arara: pdflatex     % arara: secure: { userpw: foo , permission: 0 }           \documentclass{article}            \begin{document}     \section{My very secret Text}     ......     \end{document}


title: Problems with character display in LyX

text: When I type some Romanian characters (`ș` and `ț`, to be more specific) in LibreOffice and in LyX, they are not displayed. I just see blank spaces, nothing shows up. However, the same characters are displayed when I type them into Terminal or vim, nano, etc. (I have openSUSE 11.4). Any suggestion might help. Thank you!


title: LaTeX \graphicspath recursive search

text: I've read that LaTeX image directories can be searched recursively with the `\graphicspath` command by including a double slash at the end - i.e. `\graphicspath{{../my_images//}}`. However, the recursive part of this doesn't seem to be happening. I've tried several different iterations, including `/` vs `\`, absolute paths, and `pdftex` vs `latex`. Any ideas what is wrong? Google has turned up nothing but confirmation that this should work. I'm on Windows 7 using Miktex 2.9. I've not had the opportunity to try this on another platform.


title: piecewise function

text: So this is a piecewise defined function I have that I need to talk about:                  f(a,b) = \left\{          \begin{array}{lr}            \text{open} & : \text{RMSD}_\text{s-open}\ge6, \text{RMSD}_\text{closed}\ge6\\            \text{closed} & : \text{RMSD}_\text{closed}\le2 \\            \text{semiopen} & : \text{RMSD}_\text{s-open}\le2\\            \text{transition} & :f(a,b)\notin\{\text{open}, \text{closed}, \text{semiopen}\} \           \end{array}        \right.      So what's the way to align up the colons (conditions) so that it looks all nice and pretty? Also, if I want to describe transition to be the value of the function when none of the conditions of the previous 3 are satisfied, is the way I wrote it out with `f(a,b)` not belonging to the set `{open,closed,semiopen}` a good way of writing it? seems really unprofessional...


title: Manually deleting \chapter ruins all hyperlinks in the document

text: I'm a tex noob and I'm using doxygen to generate a pdf documentation. I had doxygen generate a refman.tex file which contains something like               \chapter{Program Reference}     \label{index}\hypertarget{index}{}\input{index}     \chapter{Appendix}     \label{_appendix}     \hypertarget{_appendix}{}     \input{_appendix}     \chapter{Useless chapter}     ...     \chapter{Module Index}     ...      I'd like to 1) Move Appendix at the end of the document 2) Delete the Useless chapter Since I can't get doxygen to generate a latex as I want, I edited the main refman.tex file by hand and moved Appendix at the end and deleted the useless chapter. Turns out the document has the structure I want but the hyperlinks of the last sections are all ruined and point to the document's beginning What am I doing wrong? How are hyperlinks created between sections of a tex document?


title: equation labels inside a nested align and aligned environment

text: I'd like to have several equations aligned pair-wise in, essentially, two columns, but with individual labels for each equation and/or for each line (where one line displays two equations). I have achieved the desired alignments by nesting aligned environments inside an align environment. I can also label the whole align environment. What about labeling the individual equations inside the aligned environment? I'm looking for a solution that is not too hacky, if there is one. I'm not tied to align and aligned. It may be too cluttered to number each equation, but at least I'd like to label/number each line. Thanks!               \documentclass{article}     \usepackage{amsmath}     \begin{document}          \begin{align}     \label{eq:myeq}     \begin{aligned}[c]     %  \label{eq:myeq:AB}        A & = B     \\      %  \label{eq:myeq:CD}        C & = D     \\      %  \label{eq:myeq:EF}        E & = F     \end{aligned}     \qquad \Rightarrow \qquad     \begin{aligned}[c]     %  \label{eq:myeq:ab}        a & = b     \\        %  \label{eq:myeq:cd}        c & = d     \\      %  \label{eq:myeq:ef}        e & = f     \,.     \end{aligned}     \end{align}          \end{document}      ![enter image description here](http://i.stack.imgur.com/CUY80.png) Edit: Adding info. To see what I'm after, consider the following:               \begin{align}     \label{eq:myeq:ABab}       A & = B &&             & a & = b      \\      \label{eq:myeq:CDcd}       C & = D && \Rightarrow & c & = d      \\     \label{eq:myeq:EFef}       E & = F &&             & e & = f     \end{align}       This produces the desired result for odd-numbered equations, but not for even- numbered equations. And also I prefer to see the equations "split" as they are in my first code, as it's easier to read. ![enter image description here](http://i.stack.imgur.com/8hJl0.png)


title: MikTeX update caused compilation problems (Oct 2013)

text: I just updated all my MikTeX packages in an attempt to deal with the problem posed in this question: Biblatex citation and bibliography misbehaving in Texmaker - help!. Now TeXworks and TeXmaker both will not compile even the simplest of example documents. I am using biblatex and biber for bibliographies, the problems I am having with which are what has led me down this path. The test .tex file is               \documentclass{article}      \usepackage{biblatex}      \bibliography{refs}      \begin{document}      Hello\cite{KandR}     \printbibliography      \end{document}       The .bib file is               @BOOK       {KandR,        AUTHOR  = "Kernighan, Brian W. and Ritchie, Dennis M.",        TITLE   = "{The C Programming Language Second Edition}",        PUBLISHER = "Prentice-Hall, Inc.",        YEAR = 1988       }      The logfile for this simple .tex file is:               LOG FILE :     This is pdfTeX, Version 3.1415926-2.5-1.40.14 (MiKTeX 2.9) (preloaded format=pdflatex 2013.10.16) 16 OCT 2013 17:37     entering extended mode     **test.tex     ("C:\Users\Mike\Documents\Study\University of Salford\Coursework\MSc project wo     rk\Dissertation files\LaTeX\Tests\test.tex"     LaTeX2e <2011/06/27>     Babel <v3.8m> and hyphenation patterns for english, afrikaans, ancientgreek, ar     abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic,     croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, ga     lician, german, german-x-2013-05-26, greek, gujarati, hindi, hungarian, iceland     ic, indonesian, interlingua, irish, italian, kannada, kurmanji, latin, latvian,     lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerman, n     german-x-2013-05-26, nynorsk, oriya, panjabi, pinyin, polish, portuguese, roman     ian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swissgerm     an, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, usengl     ishmax, welsh, loaded.     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\article.cls"     Document Class: article 2007/10/19 v1.4h Standard LaTeX document class     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\size10.clo"     File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)     )     \c@part=\count79     \c@section=\count80     \c@subsection=\count81     \c@subsubsection=\count82     \c@paragraph=\count83     \c@subparagraph=\count84     \c@figure=\count85     \c@table=\count86     \abovecaptionskip=\skip41     \belowcaptionskip=\skip42     \bibindent=\dimen102     )     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\biblatex\biblatex.sty"     Package: biblatex DATE vVERSION programmable bibliographies (PK/JW/AB)     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\biblatex\biblatex2.sty"     Package: biblatex2 DATE vVERSION programmable bibliographies (biber) (PK/JW/AB)     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\etoolbox\etoolbox.sty"     Package: etoolbox 2011/01/03 v2.1 e-TeX tools for LaTeX     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\misc\etex.sty"     Package: etex 1998/03/26 v2.0 eTeX basic definition package (PEB)     \et@xins=\count87     )     \etb@tempcnta=\count88     )     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\keyval.sty"     Package: keyval 1999/03/16 v1.13 key=value parser (DPC)     \KV@toks@=\toks14     )     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\oberdiek\kvoptions.sty"     Package: kvoptions 2011/06/30 v3.11 Key value format for package options (HO)     ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\ltxcmds.sty"     Package: ltxcmds 2011/11/09 v1.22 LaTeX kernel commands for general use (HO)     )     ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\kvsetkeys.sty"     Package: kvsetkeys 2012/04/25 v1.16 Key value parser (HO)     ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\infwarerr.sty"     Package: infwarerr 2010/04/08 v1.3 Providing info/warning/error messages (HO)     )     ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\etexcmds.sty"     Package: etexcmds 2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO)     ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\ifluatex.sty"     Package: ifluatex 2010/03/01 v1.3 Provides the ifluatex switch (HO)     Package ifluatex Info: LuaTeX not detected.     )     Package etexcmds Info: Could not find \expanded.     (etexcmds) That can mean that you are not using pdfTeX 1.50 or     (etexcmds) that some package has redefined \expanded.     (etexcmds) In the latter case, load this package earlier.     )))     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\logreq\logreq.sty"     Package: logreq 2010/08/04 v1.0 xml request logger     \lrq@indent=\count89     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\logreq\logreq.def"     File: logreq.def 2010/08/04 v1.0 logreq spec v1.0     ))     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\ifthen.sty"     Package: ifthen 2001/05/26 v1.1c Standard LaTeX ifthen package (DPC)     )     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\url\url.sty"     \Urlmuskip=\muskip10     Package: url 2006/04/12 ver 3.3 Verb mode for urls, etc.     )     \c@tabx@nest=\count90     \c@listtotal=\count91     \c@listcount=\count92     \c@liststart=\count93     \c@liststop=\count94     \c@citecount=\count95     \c@citetotal=\count96     \c@multicitecount=\count97     \c@multicitetotal=\count98     \c@instcount=\count99     \c@maxnames=\count100     \c@minnames=\count101     \c@maxitems=\count102     \c@minitems=\count103     \c@citecounter=\count104     \c@savedcitecounter=\count105     \c@uniquelist=\count106     \c@uniquename=\count107     \c@refsection=\count108     \c@refsegment=\count109     \c@maxextratitle=\count110     \c@maxextratitleyear=\count111     \c@maxextrayear=\count112     \c@maxextraalpha=\count113     \c@abbrvpenalty=\count114     \c@highnamepenalty=\count115     \c@lownamepenalty=\count116     \c@maxparens=\count117     \c@parenlevel=\count118     \blx@tempcnta=\count119     \blx@tempcntb=\count120     \blx@tempcntc=\count121     \blx@maxsection=\count122     \blx@maxsegment@0=\count123     \blx@notetype=\count124     \blx@parenlevel@text=\count125     \blx@parenlevel@foot=\count126     \blx@sectionciteorder@0=\count127     \labelnumberwidth=\skip43     \labelalphawidth=\skip44     \shorthandwidth=\skip45     \biblabelsep=\skip46     \bibitemsep=\skip47     \bibnamesep=\skip48     \bibinitsep=\skip49     \bibparsep=\skip50     \bibhang=\skip51     \blx@bcfin=\read1     \blx@bcfout=\write3     \c@mincomprange=\count128     \c@maxcomprange=\count129     \c@mincompwidth=\count130     Package biblatex Info: Trying to load biblatex default data model...     Package biblatex Info: ... file 'blx-dm.def' found.     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\biblatex\blx-dm.def")     Package biblatex Info: Trying to load biblatex custom data model...     Package biblatex Info: ... file 'biblatex-dm.cfg' not found.     \c@afterword=\count131     \c@savedafterword=\count132     \c@annotator=\count133     \c@savedannotator=\count134     \c@author=\count135     \c@savedauthor=\count136     \c@bookauthor=\count137     \c@savedbookauthor=\count138     \c@commentator=\count139     \c@savedcommentator=\count140     \c@editor=\count141     \c@savededitor=\count142     \c@editora=\count143     \c@savededitora=\count144     \c@editorb=\count145     \c@savededitorb=\count146     \c@editorc=\count147     \c@savededitorc=\count148     \c@foreword=\count149     \c@savedforeword=\count150     \c@holder=\count151     \c@savedholder=\count152     \c@introduction=\count153     \c@savedintroduction=\count154     \c@namea=\count155     \c@savednamea=\count156     \c@nameb=\count157     \c@savednameb=\count158     \c@namec=\count159     \c@savednamec=\count160     \c@shortauthor=\count161     \c@savedshortauthor=\count162     \c@shorteditor=\count163     \c@savedshorteditor=\count164     \c@translator=\count165     \c@savedtranslator=\count166     \c@labelname=\count167     \c@savedlabelname=\count168     \c@institution=\count169     \c@savedinstitution=\count170     \c@lista=\count171     \c@savedlista=\count172     \c@listb=\count173     \c@savedlistb=\count174     \c@listc=\count175     \c@savedlistc=\count176     \c@listd=\count177     \c@savedlistd=\count178     \c@liste=\count179     \c@savedliste=\count180     \c@listf=\count181     \c@savedlistf=\count182     \c@location=\count183     \c@savedlocation=\count184     \c@organization=\count185     \c@savedorganization=\count186     \c@origlocation=\count187     \c@savedoriglocation=\count188     \c@origpublisher=\count189     \c@savedorigpublisher=\count190     \c@publisher=\count191     \c@savedpublisher=\count192     \c@language=\count193     \c@savedlanguage=\count194     \c@pageref=\count195     \c@savedpageref=\count196     Package biblatex Info: Trying to load compatibility code...     Package biblatex Info: ... file 'blx-compat.def' found.     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\biblatex\blx-compat.def"     File: blx-compat.def DATE vVERSION biblatex compatibility (PK/JW/AB)     )     Package biblatex Info: Trying to load generic definitions...     Package biblatex Info: ... file 'biblatex.def' found.     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\biblatex\biblatex.def"     File: biblatex.def     \c@biburlnumpenalty=\count197     \c@biburlucpenalty=\count198     \c@biburllcpenalty=\count199     \c@smartand=\count200     )     Package biblatex Info: Trying to load bibliography style 'numeric'...     Package biblatex Info: ... file 'numeric.bbx' found.     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\biblatex\bbx\numeric.bbx"     File: numeric.bbx DATE vVERSION biblatex bibliography style (PK/JW/AB)     Package biblatex Info: Trying to load bibliography style 'standard'...     Package biblatex Info: ... file 'standard.bbx' found.     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\biblatex\bbx\standard.bbx"     File: standard.bbx DATE vVERSION biblatex bibliography style (PK/JW/AB)     \c@bbx:relatedcount=\count201     \c@bbx:relatedtotal=\count202     ))     Package biblatex Info: Trying to load citation style 'numeric'...     Package biblatex Info: ... file 'numeric.cbx' found.     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\biblatex\cbx\numeric.cbx"     File: numeric.cbx DATE vVERSION biblatex citation style (PK/JW/AB)     ! LaTeX Error: \iffinalcitedelim undefined.     See the LaTeX manual or LaTeX Companion for explanation.     Type H <return> for immediate help.     ...     l.7 \renewcommand*{\iffinalcitedelim}     {%     Try typing <return> to proceed.     If that doesn't work, type X <return> to quit.     Package biblatex Info: Redefining '\cite'.     Package biblatex Info: Redefining '\parencite'.     Package biblatex Info: Redefining '\footcite'.     Package biblatex Info: Redefining '\footcitetext'.     Package biblatex Info: Redefining '\smartcite'.     Package biblatex Info: Redefining '\supercite'.     Package biblatex Info: Redefining '\textcite'.     Package biblatex Info: Redefining '\textcites'.     Package biblatex Info: Redefining '\cites'.     Package biblatex Info: Redefining '\parencites'.     Package biblatex Info: Redefining '\smartcites'.     )     Package biblatex Info: Trying to load configuration file...     Package biblatex Info: ... file 'biblatex.cfg' found.     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\biblatex\biblatex.cfg"     File: biblatex.cfg     ))     ! Missing number, treated as zero.     <to be read again>     D     l.87     A number should have been here; I inserted `0'.     (If you can't figure out why I needed to see a number,     look up `weird error' in the index to The TeXbook.)     ! Missing = inserted for \ifnum.     <to be read again>     D     l.87     I was expecting to see `<', `=', or `>'. Didn't.     ! Missing number, treated as zero.     <to be read again>     D     l.87     A number should have been here; I inserted `0'.     (If you can't figure out why I needed to see a number,     look up `weird error' in the index to The TeXbook.)     ! LaTeX Error: Missing \begin{document}.     See the LaTeX manual or LaTeX Companion for explanation.     Type H <return> for immediate help.     ...     l.87     You're in trouble here. Try typing <return> to proceed.     If that doesn't work, type X <return> to quit.     LaTeX Warning: You have requested, on input line 87, version     `' of package biblatex2,     but only version     `DATE vVERSION programmable bibliographies (biber) (PK/JW/AB)'     is available.     )     ! Missing number, treated as zero.     <to be read again>     D     l.3 \bibliography     {refs}     A number should have been here; I inserted `0'.     (If you can't figure out why I needed to see a number,     look up `weird error' in the index to The TeXbook.)     ! Missing = inserted for \ifnum.     <to be read again>     D     l.3 \bibliography     {refs}     I was expecting to see `<', `=', or `>'. Didn't.     ! Missing number, treated as zero.     <to be read again>     D     l.3 \bibliography     {refs}     A number should have been here; I inserted `0'.     (If you can't figure out why I needed to see a number,     look up `weird error' in the index to The TeXbook.)     ! LaTeX Error: Missing \begin{document}.     See the LaTeX manual or LaTeX Companion for explanation.     Type H <return> for immediate help.     ...     l.3 \bibliography     {refs}     You're in trouble here. Try typing <return> to proceed.     If that doesn't work, type X <return> to quit.     LaTeX Warning: You have requested, on input line 3, version     `' of package biblatex,     but only version     `DATE vVERSION programmable bibliographies (PK/JW/AB)'     is available.     Package biblatex Info: Trying to load language 'english'...     Package biblatex Info: ... file 'english.lbx' found.     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\biblatex\lbx\english.lbx"     File: english.lbx DATE vVERSION biblatex localization (PK/JW/AB)     ! Package keyval Error: langczech undefined.     See the keyval package documentation for explanation.     Type H <return> for immediate help.     ...     l.482 }     Try typing <return> to proceed.     If that doesn't work, type X <return> to quit.     ! Package keyval Error: langpolish undefined.     See the keyval package documentation for explanation.     Type H <return> for immediate help.     ...     l.482 }     Try typing <return> to proceed.     If that doesn't work, type X <return> to quit.     ! Package keyval Error: fromczech undefined.     See the keyval package documentation for explanation.     Type H <return> for immediate help.     ...     l.482 }     Try typing <return> to proceed.     If that doesn't work, type X <return> to quit.     ! Package keyval Error: frompolish undefined.     See the keyval package documentation for explanation.     Type H <return> for immediate help.     ...     l.482 }     Try typing <return> to proceed.     If that doesn't work, type X <return> to quit.     )     \@quotelevel=\count203     \@quotereset=\count204     ("C:\Users\Mike\Documents\Study\University of Salford\Coursework\MSc project wo     rk\Dissertation files\LaTeX\Tests\test.aux")     LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 4.     LaTeX Font Info: ... okay on input line 4.     LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 4.     LaTeX Font Info: ... okay on input line 4.     LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 4.     LaTeX Font Info: ... okay on input line 4.     LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 4.     LaTeX Font Info: ... okay on input line 4.     LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 4.     LaTeX Font Info: ... okay on input line 4.     LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 4.     LaTeX Font Info: ... okay on input line 4.     Package biblatex Info: No input encoding detected.     (biblatex) Assuming 'ascii'.     Package biblatex Info: Automatic encoding selection.     (biblatex) Assuming data encoding 'ascii'.     Package biblatex Info: Trying to load bibliographic data...     Package biblatex Info: ... file 'test.bbl' found.     ("C:\Users\Mike\Documents\Study\University of Salford\Coursework\MSc project wo     rk\Dissertation files\LaTeX\Tests\test.bbl")     Package biblatex Info: Reference section=0 on input line 4.     Package biblatex Info: Reference segment=0 on input line 4.     [1     {C:/Users/Mike/AppData/Local/MiKTeX/2.9/pdftex/config/pdftex.map}]     ("C:\Users\Mike\Documents\Study\University of Salford\Coursework\MSc project wo     rk\Dissertation files\LaTeX\Tests\test.aux")     LaTeX Warning: There were undefined references.     Package biblatex Warning: Please (re)run Biber on the file:     (biblatex) test     (biblatex) and rerun LaTeX afterwards.     Package logreq Info: Writing requests to 'test.run.xml'.     )     Here is how much of TeX's memory you used:     5681 strings out of 493921     98414 string characters out of 3144878     472965 words of memory out of 3000000     8970 multiletter control sequences out of 15000+200000     4591 words of font info for 17 fonts, out of 3000000 for 9000     841 hyphenation exceptions out of 8191     44i,4n,49p,813b,792s stack positions out of 5000i,500n,10000p,200000b,50000s     <C:/Program Files (x86)/MiKTeX 2.9/fonts/type1/public/amsfonts/cm/cmbx12.pfb>     <C:/Program Files (x86)/MiKTeX 2.9/fonts/type1/public/amsfonts/cm/cmr10.pfb><C:     /Program Files (x86)/MiKTeX 2.9/fonts/type1/public/amsfonts/cm/cmti10.pfb>     Output written on test.pdf (1 page, 41663 bytes).     PDF statistics:     18 PDF objects out of 1000 (max. 8388607)     0 named destinations out of 1000 (max. 500000)     1 words of extra memory for PDF output out of 10000 (max. 10000000)      The more complex .tex file which is the file I really need to compile can be seen at the question linked at the top of the page. The errors from this are similar:               ! Missing number, treated as zero. <to be read againD l.87          ! Missing = inserted for \ifnum. <to be read againD l.87 I was     expecting to see `<', `=', or `>'. Didn't. ! Missing number, treated     as zero. <to be read againD l.87          ! Missing number, treated as zero. <to be read againD l.87 A number     should have been here; I inserted `0'.          ! LaTeX Error: Missing \begin{document}. See the LaTeX manual or LaTeX     Companion for explanation. Type H <returnfor immediate help. ...     l.87          ! Missing number, treated as zero. <to be read againD l.14     \addbibresource {References/references.bib}          ! Missing = inserted for \ifnum. <to be read againD l.14     \addbibresource {References/references.bib} I was expecting to see     `<', `=', or `>'. Didn't. ! Missing number, treated as zero. <to be     read againD l.14 \addbibresource {References/references.bib} A     number should have been here; I inserted `0'.          ! LaTeX Error: Missing \begin{document}. See the LaTeX manual or LaTeX     Companion for explanation. Type H <returnfor immediate help. ...     l.14 \addbibresource {References/references.bib}          ! Package keyval Error: langczech undefined. See the keyval package     documentation for explanation. Type H <returnfor immediate help. ...     l.482 }          ! Package keyval Error: langpolish undefined. See the keyval package     documentation for explanation. Type H <returnfor immediate help. ...     l.482 }          ! Package keyval Error: fromczech undefined. See the keyval package     documentation for explanation. Type H <returnfor immediate help. ...     l.482 }          ! Package keyval Error: frompolish undefined. See the keyval package     documentation for explanation. Type H <returnfor immediate help. ...     l.482 }      Any suggestions as to what could have gone so wrong?


title: How to set some lines right aligned in the align enviroments?

text: I have try some code like this:               \begin{align*}     Q(R)&=\bi(R,R)\\         &=\bi(R_I+R_{\Rico}+R_W,R_I+R_{\Rico}+R_W)\\         &=\bi(R_I,R_I)+2\bi(R_I,R_{\Rico})+2\bi(R_I,R_W)\\         &+\bi(R_{\Rico},R_{\Rico})+2\bi(R_{\Rico},R_w)\\         &+\bi(R_W,R_W).     \end{align*}      where               \newcommand{\Rico}{\Ric_o}     \newcommand{\bi}{\mathrm{bi}\,}      The problem is I would like to set the last three lines aligned right, did there has any solutions instead to type several \quad or \qquad?


title: Vertical align in a table

text: I have the following code:               \begin{table}[H]       \begin{center}       \caption{Quarks and leptons of the Standard Model.}       \label{TablaQuarks}       \begin{tabu}{|m{2cm}|m{2cm}|m{4cm}|[2pt]} \hline       \multicolumn{3}{|c|[2pt]}{Quarks} \\ \hline       Flavour & Charge & Mass \\ \hline       u & 2/3 $e$ & 2.3$_{-0.5}^{+0.7}$ MeV/c$^2$ \\[1.0ex]       d & -1/3 $e$ & 4.8$_{-0.3}^{+0.7}$ MeV/c$^2$ \\[1.0ex]\hline       c & 2/3 $e$ & 1.275 $\pm$ 0.025 GeV/c$^2$ \\       s &  -1/3 $e$ & 95 $\pm$ 5 MeV/c$^2$ \\ \hline       t & 2/3 $e$ & 173.5 $\pm$ 0.6 GeV/c$^2$ \\       b &  - 1/3 $e$ & 4.18 $\pm$ 0.03 GeV/c$^2$ \\ \hline       \end{tabu}     \end{center}       \end{table}      The problem is that I cannot center (vertically) the text in the last column, it always remains at the top. Moreover the first two that are vertically aligned cannot be centered horizontally. In order to use the previous code you need the `tabu` and `array` packages.


title: How to plot atan(x), sqrt(x) using PSTricks?

text: For example, this code works:               \documentclass{minimal}          \usepackage{pstricks}     \usepackage{pst-plot}          \begin{document}          \begin{pspicture}(-5,-5)(5,5)       \psgrid[griddots=10,gridlabels=0pt, subgriddiv=0, gridcolor=black!20]       \psaxes(0,0)(-5,-5)(5,5)       \psplot[algebraic,xunit=0.5cm,linewidth=1pt]{-5}{5}{x*cos(x)}     \end{pspicture}          \end{document}      But putting `atan(x)`, `sqrt(x)` (this list is not full I guess) instead of `x*cos(x)` gives me nothing at all.


title: pgf/tikz line to triangle

text: I'm trying to draw a simple tree. Here's the latex code:               \begin{tikzpicture}     \node at (2,-2) [circle,draw,minimum size=8mm] (A) {$\alpha$};     \node at (0,-4) [circle,draw,minimum size=8mm] (B) {$\beta$};     \node at (4,-4) (C) {};     \node at (4,-4)     [isosceles triangle, shape border rotate=+90,     draw,minimum size=8mm,minimum height=2cm,     anchor=north] (Ctriangle) {$\gamma$};     \draw [-,thick] (A) to (B);     \draw [-,thick] (A) to (C);     ;     \end{tikzpicture}      Here's the picture: ![enter image description here](http://i.stack.imgur.com/kaIev.png) How do I get the line to touch the top vertex of the triangle


title: add noise to piecewise constant function

text: Is it possible to add noise to the following function, which is piecewise constant? Data:               time    energy     0       0     1       0     2       0     3       0     4       0     5       0     6       0     7       0     8       0     9       0     10      1.8     12      1.8     13      1.8     14      1.8     15      1.8     16      0.8     17      0.8     18      0.8     19      0.8     20      0.8     21      0.8     22      0.8     23      0.8     24      0.8     25      0.3     26      0.3     27      0.3     28      0.3     29      0.3     30      0.3     31      0.3     32      0.3     33      0.3     34      0.3     36      0.3     37      0.3     38      0.3     39      0.3     40      0.3     41      0.3     42      0.3     43      0.3     44      0.3     45      0.3     46      0.3      Code:               \documentclass{article}     \usepackage{tikz}     \usepackage{pgfplots}     \pgfplotsset{width=7cm,compat=newest}          \begin{document}          \pgfplotstableread     {energy.dat}     {\table}     \begin{tikzpicture}     \begin{axis}[     ymin=0,     minor tick num=4,     enlarge x limits=false,     axis on top,     every axis plot post/.append style=     {mark=none},     const plot,     legend style={     area legend,     at={(0.5,-0.15)},     anchor=north,     legend columns=-1}]     \addplot[draw=blue,fill=blue!30!white]     table[x=time,y=energy] from \table     \closedcycle;     \legend{energy}     \end{axis}     \end{tikzpicture}          \end{document}


title: TeXworks linux vs windows

text: I have some documents that require extensive use of BibTeX files, and on the windows version of TeXworks there is the possibility of running `pdflateX+MakeIndex+BibTeX`, which is not present in the linux version (I am using ubuntu). I have to separately run BibTeX and the LaTeX compilers so that I can update my citations, which is a bit of a hassle. Is there any way to manually add the `pdflateX+MakeIndex+BibTeX` mode to TeXworks under linux?


title: Create a two column matching type question?

text: I am currently looking for some ways to create a command that would give two column. I have a similar problem to this link : Two column text and choices Two column questions and choices is also my problem. Hope I could get a help for creating a macro for this. I prefer this each question corresponds with its opposite equally in the same level.


title: beamer style text box

text: If you're using beamer you can do some nice text boxes using:               \begin{block}{block title}content of block\end{block}      Which gives a text box something like this (the box with the header Esimerkki): ![enter image description here](http://i.stack.imgur.com/Uqo5n.png) How can I do the same thing in a regular latex document (I really like the look of the beamer text boxes and would like as close to this as possible). Minimal reproducible example:               \documentclass{scrartcl}     \begin{document}     I wish I were inside of a really super cool text box so all the word would stop and look at me and say wow that text is pretty.  But alas I am just ordinary \LaTeX{} text.  I am sad.     \end{document}


title: How to plot integral as summation, as pictured?

text: I'm new to TikZ and `pgfplots` but would like to know how to plot the square as well as how to plot the arrows + delta x as well as arrow + delta A: ![enter image description here](http://i.stack.imgur.com/dlvFT.png) I'd be most grateful if some of you had some examples I could learn from.


title: Formatting of long equation containing a matrix?

text: I've a problem formatting this equation. It's containing a 5x1 matrix and the content of a cell in a matrix is pretty long. All in all it does not fit on the page. Should I use `split()` or is there another option?               \begin{equation}      \varphi_{i,j,k}^{n+1} = \varphi_{i,j,k}^{n} + \delta t \frac{1}{|x^3|}     \begin{smallmatrix}      \frac{1}{2}((\rho v_1)_{i,j+1,k}-(\rho v1)_{i,j-1,k})\delta x + \frac{1}{2}((\rho v_2)_{i+1,j,k}-(\rho v_2)_{i-1,j,k})\delta y + \frac{1}{2}((\rho v_3)_{i,j,k+1}-(\rho v_3)_{i,j,k-1})\delta z\\     \frac{1}{2}((\rho v_1^2+p)_{i,j+1,k}-(\rho v_1^2+p)_{i,j-1,k})\delta x + \frac{1}{2}((\rho v_1 v_2)_{i+1,j,k}-(\rho v_1 v_2)_{i-1,j,k})\delta y + \frac{1}{2}((\rho v_1 v_3)_{i,j,k+1}-(\rho v_1 v_3)_{i,j,k-1})\delta z\\     \frac{1}{2}((\rho v_2 v_1)_{i,j+1,k}-(\rho v_2 v_1)_{i,j-1,k})\delta x + \frac{1}{2}((\rho v_2^2+p)_{i+1,j,k}-(\rho v_2^2+p)_{i-1,j,k})\delta y + \frac{1}{2}((\rho v_2 v_3)_{i,j,k+1}-(\rho v_2 v_3)_{i,j,k-1})\delta z\\     \frac{1}{2}((\rho v_3 v_1)_{i,j+1,k}-(\rho v_3 v_1)_{i,j-1,k})\delta x + \frac{1}{2}((\rho v_3 v_2)_{i+1,j,k}-(\rho v_3 v_2)_{i-1,j,k})\delta y + \frac{1}{2}((\rho v_3^2+p)_{i,j,k+1}-(\rho v_3^2+p)_{i,j,k-1})\delta z\\     \frac{1}{2}(((\rho E+p)v_1)_{i,j+1,k}-((\rho E+p)v_1)_{i,j-1,k})\delta x + \frac{1}{2}(((\rho E+p)v_2)_{i+1,j,k}-((\rho E+p)v_2)_{i-1,j,k})\delta y + \frac{1}{2}(((\rho E+p)v_3)_{i,j,k+1}-((\rho E+p)v_3)_{i,j,k-1})\delta z\\     \end{smallmatrix}      \end{equation}


title: Creating a seamless XOR symbol as node

text: I want to have a XOR node in my TikZ diagram, but couldn't find any available symbol, therefore made one myself, but I am not very happy with it. I used the example from how to draw XOR gate symbol as a node in tikz? as basis.               \tikzstyle{XOR} = [draw,circle]      And use it as follows:                \node [XOR] {\large +};      However, there is always a padding around the `+`. I want the `+` to 'connect' with the circle. Here my MWE:               \documentclass{standalone}     \usepackage{tikz}     \usetikzlibrary{shapes,arrows,fit,calc,positioning,automata}     \begin{document}          \tikzstyle{XOR} = [draw,circle]     \tikzstyle{line}    = [draw, -latex']          \begin{tikzpicture}[auto,>=latex', scale = 1, transform shape]         \tikzstyle{line}=[draw, -latex']              \node (XOR-aa)[XOR] {\large +};                   \node [above of=XOR-aa,node distance=1.5cm,text width=1.5cm,anchor=south,align=center] (bla) {Bla};              \node [right of=XOR-aa,node distance=3cm,text width=1.5cm,anchor=east,align=center] (Blob) {Blob};              \node [left of=XOR-aa,node distance=3cm,text width=1.5cm,anchor=west,align=center] (blubb) {Blubb};              \path[line] (XOR-aa) edge (Blob)                     (bla) edge (XOR-aa)                     (blubb) edge (XOR-aa);     \end{tikzpicture}     \end{document}


title: Customizing biblatex styles using \usebibmacro

text: I am currently trying to adapt a `biblatex` style to my needs. I was able to do most tweaks by reading all the answers to similar demands here (such as Suppress "In:" biblatex or Guidelines for customizing biblatex styles). However, despite all my efforts, I have not been successful in my attempts to work with `\usebibmacro`. I had started with the `authoryear` style, and I want to arrive at the citation style for the Cambridge Review of International Affairs. I have been able to change everything, except for the `@incollection` entries. This is their example: > Cottier, Thomas (2001) 'Risk management experience in WTO dispute > settlement' in David Robertson and Aynsley J Kellow (eds) _Globalization and > the environment: risk assessment and the WTO_ (Cheltenham, United Kingdom: > Edward Elgar Publishing), 41-62 And this is what I've got so far: > Cottier, Thomas (2001) ‘Risk management experience in WTO dispute > settlement’. In: ed. by David Robertson and Aynsley J Kellow. _Globalization > and the environment: risk assessment and the WTO_. Cheltenham, United > Kingdom: Edward Elgar Publishing, 41–62. So the differences I have not been able to address are:   1. Remove the punctuation after the title, the editors and the collection title.   2. Remove capital letter from "In:" as well as the ':'.   3. Move the 'ed. by' and change it to '(eds)'.   4. Put the publisher in brackets. Actually, I prefer the punctuation at the end of each bibliography ending, but just in case: how to remove it? I know that the key to this lies in the `\renewcommand` and `\usebibmacro`, but I just cannot make it work. How can I change these parameters per reference type? Thank you very much in advance for showing me where I have to move from here. PS: I just realized that I have to change some dots to commas as well in for other reference types, but I guess that won't be a problem once I understood how to make these changes here. EDIT: attempt at MWE `paper.tex`:               \documentclass[a4paper,oneside,12pt,notitlepage]{article}     \usepackage{geometry}     \usepackage[utf8]{inputenc}     \usepackage[style=authoryear-comp,maxnames=2,maxbibnames=4,bibstyle=mybibstyle,autocite=inline,useprefix=true,backend=bibtex]{biblatex}     \DeclareFieldFormat{postnote}{#1}     \DeclareFieldFormat{pages}{#1}     \bibliography{lit}           \begin{document}          This is just a test sentence to show you how I cite within my text. \autocite[]{cottier2001}          \newpage          %%%%%%%%%%%%%% BIBLIOGRAPHY     \renewcommand*{\bibfont}{\small}     \printbibliography[title=Bibliography]          \end{document}      `lit.bib`:               @incollection{cottier2001,       title={Risk management experience in WTO dispute settlement},       author={Cottier, Thomas},       booktitle={Globalization and the environment: risk assessment and     the WTO},       pages={41--62},       year={2001},       publisher={Cheltenham, United Kingdom: Edward Elgar Publishing},       editor={Robertson, David and Kellow, Aynsley J}     }      `mybibstyle.bbx` (adapted from the above-mentioned thread):               \ProvidesFile{mybibstyle.bbx}     \RequireBibliographyStyle{standard}     \RequireBibliographyStyle{authoryear-comp}      \DeclareFieldFormat[article,incollection,unpublished]{title}{ `#1'}%     \DeclareBibliographyDriver{incollection}{%       \usebibmacro{bibindex}%       \usebibmacro{begentry}%       \usebibmacro{author/translator+others}%       \newblock       \usebibmacro{title}%       \newunit       \printlist{language}%       \newunit\newblock       \usebibmacro{byauthor}%       \newunit\newblock       \usebibmacro{in:}%       \usebibmacro{byeditor+others}%       \newunit\newblock       \usebibmacro{maintitle+booktitle}%       \newunit\newblock        \printfield{edition}%       \newunit       \iffieldundef{maintitle}         {\printfield{volume}%          \printfield{part}}         {}%       \newunit       \printfield{volumes}%       \newunit\newblock       \usebibmacro{series+number}%       \newunit\newblock       \printfield{note}%       \newunit\newblock       \usebibmacro{publisher+location+date}%       \newunit\newblock       \usebibmacro{chapter+pages}%       \newunit\newblock       \iftoggle{bbx:isbn}         {\printfield{isbn}}         {}%       \newunit\newblock       \usebibmacro{doi+eprint+url}%       \newunit\newblock       \usebibmacro{addendum+pubstate}%       \setunit{\bibpagerefpunct}\newblock       \usebibmacro{pageref}%       \newunit\newblock       \usebibmacro{related}%       \usebibmacro{finentry}}      I don't have anything left from my tinkering with `\usebibmacro` ;-)


title: What is an appropriate way of plotting a number as a function of year?

text: I am trying to plot a certain number as a function of year for different entities. In this example, it is the number of missions to the Moon for different agencies per year. What I have come up with so far is the following: ![Plot until now.](http://i.stack.imgur.com/pLnY1.png) The associated code is:               \begin{tikzpicture}     \begin{axis}[                  width=0.8\textwidth,                  height=0.25\textheight,                  stack plots=y,                  area style,                  xlabel={Year},                               ylabel={Number of missions},                  enlarge x limits=false,                               enlarge y limits=upper,                                        legend pos=outer north east,                  x tick label style={/pgf/number format/1000 sep=},                   ]      % USA     \addplot coordinates     {(1958,4) (1959,3) (1960,2) (1962,3) (1963,0)      (1964,2) (1965,2) (1966,4) (1967,7) (1968,2)      (1969,3) (1970,2) (1971,3) (1972,3) (1973,0)      (1974,0) (1975,0) (1976,0)      (1977,0) (1978,0) (1979,0) (1980,0) (1981,0)      (1982,0) (1983,0) (1984,0) (1985,0) (1986,0)        (1987,0) (1988,0) (1989,0)       (1990,0) (1991,0) (1992,0) (1993,0) (1994,1)      (1995,0) (1996,0) (1997,0) (1998,1)      (1999,0) (2000,0) (2001,0) (2002,0)      (2003,0) (2004,0) (2005,0) (2006,0) (2007,0)      (2008,0) (2009,3) (2010,0)      (2011,1) } \closedcycle;       \addlegendentry{USA}     % Soviets/Russia     \addplot coordinates     {(1958,3) (1959,4) (1960,2) (1962,0) (1963,3)      (1964,2) (1965,7) (1966,6) (1967,0) (1968,4)      (1969,5) (1970,5) (1971,2) (1972,1) (1973,2)      (1974,2) (1975,0) (1976,1)      (1977,0) (1978,0) (1979,0) (1980,0) (1981,0)      (1982,0) (1983,0) (1984,0) (1985,0) (1986,0)        (1987,0) (1988,0) (1989,0)      (1990,0) (1991,0) (1992,0) (1993,0) (1994,0)      (1995,0) (1996,0) (1997,0) (1998,0)      (1999,0) (2000,0) (2001,0) (2002,0)      (2003,0) (2004,0) (2005,0) (2006,0) (2007,0)      (2008,0) (2009,0) (2010,0)      (2011,0) } \closedcycle;       \addlegendentry{Russia}          % Japan       \addplot coordinates     {(1958,0) (1959,0) (1960,0) (1962,0) (1963,0)      (1964,0) (1965,0) (1966,0) (1967,0) (1968,0)      (1969,0) (1970,0) (1971,0) (1972,0) (1973,0)      (1974,0) (1975,0) (1976,0)       (1977,0) (1978,0) (1979,0) (1980,0) (1981,0)      (1982,0) (1983,0) (1984,0) (1985,0) (1986,0)        (1987,0) (1988,0) (1989,0)       (1990,1) (1991,0) (1992,0) (1993,0) (1994,0)      (1995,0) (1996,0) (1997,0) (1998,0)      (1999,0) (2000,0) (2001,0) (2002,0)      (2003,0) (2004,0) (2005,0) (2006,0) (2007,1)      (2008,0) (2009,0) (2010,0)      (2011,0) } \closedcycle;       \addlegendentry{Japan}     % ESA       \addplot coordinates     {(1958,0) (1959,0) (1960,0) (1962,0) (1963,0)      (1964,0) (1965,0) (1966,0) (1967,0) (1968,0)      (1969,0) (1970,0) (1971,0) (1972,0) (1973,0)      (1974,0) (1975,0) (1976,0)       (1977,0) (1978,0) (1979,0) (1980,0) (1981,0)      (1982,0) (1983,0) (1984,0) (1985,0) (1986,0)        (1987,0) (1988,0) (1989,0)      (1990,0) (1991,0) (1992,0) (1993,0) (1994,0)      (1995,0) (1996,0) (1997,0) (1998,0)      (1999,0) (2000,0) (2001,0) (2002,0)      (2003,1) (2004,0) (2005,0) (2006,0) (2007,0)      (2008,0) (2009,0) (2010,0)      (2011,0) } \closedcycle;       \addlegendentry{Europe}     % China       \addplot coordinates     {(1958,0) (1959,0) (1960,0) (1962,0) (1963,0)      (1964,0) (1965,0) (1966,0) (1967,0) (1968,0)      (1969,0) (1970,0) (1971,0) (1972,0) (1973,0)      (1974,0) (1975,0) (1976,0)      (1977,0) (1978,0) (1979,0) (1980,0) (1981,0)      (1982,0) (1983,0) (1984,0) (1985,0) (1986,0)        (1987,0) (1988,0) (1989,0)      (1990,0) (1991,0) (1992,0) (1993,0) (1994,0)      (1995,0) (1996,0) (1997,0) (1998,0)      (1999,0) (2000,0) (2001,0) (2002,0)      (2003,0) (2004,0) (2005,0) (2006,0) (2007,1)      (2008,0) (2009,0) (2010,1)      (2011,0) } \closedcycle;       \addlegendentry{China}     % India       \addplot coordinates     {(1958,0) (1959,0) (1960,0) (1962,0) (1963,0)      (1964,0) (1965,0) (1966,0) (1967,0) (1968,0)      (1969,0) (1970,0) (1971,0) (1972,0) (1973,0)      (1974,0) (1975,0) (1976,0)      (1977,0) (1978,0) (1979,0) (1980,0) (1981,0)      (1982,0) (1983,0) (1984,0) (1985,0) (1986,0)        (1987,0) (1988,0) (1989,0)      (1990,0) (1991,0) (1992,0) (1993,0) (1994,0)      (1995,0) (1996,0) (1997,0) (1998,0)      (1999,0) (2000,0) (2001,0) (2002,0)      (2003,0) (2004,0) (2005,0) (2006,0) (2007,0)      (2008,2) (2009,0) (2010,0)      (2011,0) } \closedcycle;       \addlegendentry{India}     \end{axis}     \end{tikzpicture}      However, I find this representation highly unsuitable, although it is the best I could come up with. If there is only one entry per year it creates this odd triangle. Moreover, some parts appear wrong, like the plot for India. What would be an appropriate way of plotting this?


title: Is it possible to reprint an equation without actually rewriting it?

text: I have an equation like:               \begin{equation} \label{whatever}     x+y=1     \end{equation}      I want to write it again, keeping the same number. I know I could do the following:               \begin{equation}      x+y=1 \tag{\ref{whatever}}     \end{equation}      However, I would like to get the same outcome without rewriting the full equation. The reason is that I may change the first equation, and I would like the change to be automatically applied to all the cases in which the equation is repeated. I.e. I'd like to have something like               \begin{equation}      \rewrite{whatever} \tag{\ref{whatever}}     \end{equation}      Is it possible?


title: Auto generate list-items within table from string with delimiter

text: This is a follow-up on this question: Creating bullet-list from string with delimiters I have a CSV file where I genereate some tables from. Some of those table cells will have items that should be itemized. MWE:               \documentclass{scrreprt}     \usepackage{csvsimple}     \usepackage{etoolbox}     \DeclareListParser{\ListParser}{|}     \newcommand{\listItems}[1]{         \parbox{10cm}{             \begin{itemize}                 \newcommand*{\do}[1]{\item[] ##1}                 \expandafter\ListParser\expandafter{#1}                 \ListParser{#1}             \end{itemize}         }     }     \begin{document}       \csvreader[head to column names]{content/usecases.csv}{}{%         \begin{table}           \begin{tabular}{|l|l|}             \hline             Name     & \ucname \\ \hline             Trigger  & \listItems{\trigger} \\ \hline           \end{tabular}         \end{table}       }     \end{document}      CSV Example:               ucname,trigger     test,This is|A test     test2,Barely     test3,No List     test4,List|Again|Here      However, this current code gives me the output of the whole string of `\trigger` twice, and not delimited.


title: Can't Get Any LaTeX Editor To Run

text: I just build a desktop and seem to be having issues getting LaTeX to run. **Important Information:**   * Windows 7 (64-bit)   * Asus Radeon R9 290   * All LaTeX-related software is saved on the non-OS drive   * Several different editors have been installed and tested (MikTex, LyX, TeXstudio, and TeXworks), all of seem to be unable to compile/build anything - several were re-installed as a test   * No log file seems to be created As test code I've been using a basic example copied from the internet, in case it's a package issue, and a cover letter I wrote, as I can guarantee it works (though it does require some packages). Any ideas on what could be the issue here? Thanks for the help! **Screenshot:** ![enter image description here](http://i.stack.imgur.com/HCGUs.png) **Basic Test Code:**                   \documentclass[12pt]{article}     %   options include 12pt or 11pt or 10pt     %   classes include article, report, book, letter, thesis          \title{This is the title}     \author{Author One \\ Author Two}     \date{29 February 2004}          \begin{document}     \maketitle          This is the content of this document.          This is the 2nd paragraph.     Here is an inline formula:     $   V = \frac{4 \pi r^3}{3}  $.     And appearing immediately below     is a displayed formula:     $$  V = \frac{4 \pi r^3}{3}  $$     \end{document}      **Cover Letter Test (with personal information removed):**               %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     % Short Stylish Cover Letter     % LaTeX Template     % Version 1.0 (28/5/13)     %     % This template has been downloaded from:     % http://www.LaTeXTemplates.com     %     % Original author:     % Stefano (http://stefano.italians.nl/archives/63)     %     % License:     % CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)     %     % IMPORTANT: THIS TEMPLATE NEEDS TO BE COMPILED WITH XeLaTeX     %     % The two fonts used in this template: Adobe Garamond Pro and Gill Sans     % do not come with Windows by default. You will need to download them in     % order to get an output as in the preview PDF. Otherwise, change those      % fonts to fonts that do come with Windows or comment out the lines to use      % the default font.     %     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%          %----------------------------------------------------------------------------------------     %   PACKAGES AND OTHER DOCUMENT CONFIGURATIONS     %----------------------------------------------------------------------------------------          \documentclass{scrlttr2}          %\usepackage[left=2.5cm, right=2.5cm, bottom=1cm]{geometry}     \usepackage[left=2cm, right=2.5cm, bottom=1cm]{geometry}     \usepackage{fontspec} % Allows font customization     \usepackage{marvosym} % Allows the use of symbols     \usepackage[english]{babel} % Required to compile in Windows     \usepackage{graphicx}               \setlength\parindent{0pt} % Removes all indentation from paragraphs          \defaultfontfeatures{Mapping=tex-text}     %\setmainfont {Adobe Garamond Pro} % Main document font     \setsansfont {Cambria} % Used in the from address line above the to address          \renewcommand{\normalsize}{\fontsize{12}{12}\selectfont} % Sets the font size and leading     \def\second{{\raise.5ex\hbox{\small nd}}}     \makeatletter     \@setplength{refvpos}{8cm}     \makeatother          %----------------------------------------------------------------------------------------     %  PERSONAL INFORMATION     %----------------------------------------------------------------------------------------          %\setkomavar{fromname}{Name} % Your name     %\setkomavar{fromaddress}{Address} % Your address     %\setkomavar{fromphone}{(555) 555-5555} % Your phone number     %\setkomavar{fromemail}{myemail@gmail.com} % Your email address     %\setkomavar{place}{} % City written before the date, put your city here if you want this     \setkomavar{signature}{My Name} % Your name as you want it to appear in the signature     %\setkomavar{date}{\flushleft\vspace{-\baselineskip}\today\par}     \setkomavar{date}{\vspace*{-\baselineskip}}     \newkomavar{phone}     \newkomavar{email}     \setkomavar{phone}{(555) 555-5555}     \setkomavar{email}{myemail@gmail.com}          % These are not used in this document, uncomment if you would like to use them and refer to them as \usekomavar{name}     %\setkomavar{fromfax}{+1 (1)23 456789} % Your fax number     %\setkomavar{fromurl}{http://www.johnsmith.com} % Your personal website     %\setkomavar{frombank}{Postbank 9307157}          %----------------------------------------------------------------------------------------     %  HEADER SECTION     %----------------------------------------------------------------------------------------          \firsthead{     \centering     {\addfontfeature{LetterSpace=20.0}\fontsize{36}{36}\selectfont\scshape Name}\\[5mm]     \fontsize{21}{21}\selectfont\scshape My Title \\ My Institution } % Your current job title          %----------------------------------------------------------------------------------------     %  FOOTER SECTION     %----------------------------------------------------------------------------------------          %\firstfoot{     %\centering     %\addfontfeature{LetterSpace=20.0}\scshape     %{     %\renewcommand{\\}{\ {\large\textperiodcentered}\ }     %\usekomavar{fromaddress}     %}\\     %{\Large\Letter} \usekomavar{fromemail} \ {Large\Telefon} \usekomavar{fromphone} % If you want your fax number or website URL showing, add it here; you may need to play around with spacing     %}               %----------------------------------------------------------------------------------------          \begin{document}          %----------------------------------------------------------------------------------------     % COVER LETTER CONTENTS     %----------------------------------------------------------------------------------------          \begin{letter}{ % Address of the company you are applying to     \today \par \vspace*{2\baselineskip}     Biotech Company \\     123 Street Street \\     Washington, CA 12345      }          %\setkomavar{subject}{Cover Letter} % This is the bold text saying 'Cover Letter', remove it if you don't like it          \opening{Dear Mr. Thompson:\\}          \begin{sloppypar}     My name is...          Thank you for your time and consideration. I am looking forward to a further discussion of this job position. \\          \end{sloppypar}          Sincerely, \\     %\includegraphics[width=6cm]{Signature.png}          \usekomavar{signature}\\      \usekomavar{phone}\\     \usekomavar{email}          %----------------------------------------------------------------------------------------          \end{letter}     \end{document}      **Confirmation of Hard Drive Recognition:** ![enter image description here](http://i.stack.imgur.com/ZnoiX.png)


title: Basic S Column Alignment with siunitx package

text: OK, what am I missing here? Why is the `S` column not aligning on the decimal: ![enter image description here](http://i.stack.imgur.com/pozbR.png) The desired result is the data aligned on the decimal and centered within the column: ![enter image description here](http://i.stack.imgur.com/mVJOc.png) ## Code:               \documentclass{article}     \usepackage{siunitx}          \begin{document}         \begin{tabular}{S}         \multicolumn{1}{c}{Measured Values} \\             \SI{0.003 1}{\meter} \\             \SI{0.003 123}{\meter} \\             \SI{0.003 45}{\meter} \\         \end{tabular}      \end{document}


title: transparency of beamercolorbox and opaqueness of its text

text: this is a follow up question to How to make partially transparent beamercolorbox The question is that I would like to have a transparent beamercolorbox, but a not transparent text. What should I do? I also do not like the darker line on the top of the beamercolorbox. I am also open to other possibilities. the following is a minimal example of the offending slide:               \documentclass[xcolor=usenames,dvipsnames]{beamer}          \colorlet{color1}{PineGreen}           \mode<presentation>     {     \usetheme{default}     \usecolortheme{lily}     \usefonttheme{professionalfonts}     \setbeamercolor{alert}{fg=red!80!black}     \setbeamercolor{text1}{fg=color1!80!black}     \setbeamercolor{text2}{fg=black}     \setbeamercolor{structure}{fg=color1!80!black}     \setbeamercolor{frametitle}{fg=red!80!black}     \setbeamercolor{box1}{fg=black,bg=Dandelion}     \setbeamercolor{box2}{fg=black,bg=SeaGreen}     \setbeamercolor{box3}{fg=black,bg=Aquamarine}          \setbeamerfont{frametitle}{series=\bfseries}     \setbeamertemplate{frametitle}     {       \begin{flushright}         \insertframetitle\par       \end{flushright}     }     \usebackgroundtemplate{\includegraphics[width=\paperwidth]{figures/PNG/ripple.png}}     \setbeamercovered{transparent}     \setbeamerfont{title}{size=\Large,series=\bfseries,shape=\itshape,family=  \rmfamily}     \setbeamercolor{title}{fg=red!80!black}     }          \usepackage[english]{babel}     \usepackage{aas_macros}     \usepackage[latin1]{inputenc}     \usepackage{times}     \usepackage[T1]{fontenc}               \begin{document}          \begin{frame}     \frametitle{slide title}     \pgfsetfillopacity{0.35}     \begin{columns}     \column{0.5\textwidth}     \pgfsetfillopacity{0.35}       \begin{beamercolorbox}[shadow=false,rounded=true]{box2}         {\usebeamercolor[fg]{text2} \bf T1}         \begin{itemize}         \item element         \item element         \item element         \item element         \item element         \end{itemize}       \end{beamercolorbox}     \column{0.5\textwidth}       \begin{beamercolorbox}[shadow=false,rounded=true]{box3}         {\usebeamercolor[fg]{text2} \bf T2}         \begin{itemize}         \item element         \item element         \item element         \item element         \end{itemize}       \end{beamercolorbox}     \end{columns}       \begin{beamercolorbox}[shadow=false,rounded=true]{box1}       \begin{itemize}       \item element       \item element       \end{itemize}     \end{beamercolorbox}     \end{frame}          \end{document}


title: Is there a predefined bandpass filter block in tikz?

text: ![enter image description here](http://i.stack.imgur.com/S3z8i.jpg) I want to create this block diagram.                   \documentclass{article}      \usepackage{tikz}      \usepackage{circuitikz}      \usepackage{pst-solides3d}      \usetikzlibrary{shapes,decorations}      \usetikzlibrary{positioning,arrows}      \tikzset{      state/.style={circle,draw,minimum size=6ex},      arrow/.style={-latex, shorten >=1ex, shorten <=1ex}}      \begin{document}      \begin{tikzpicture}        %antenne       \draw (0,-2) -- (0,.75);       \draw (-1,.75) -- (0,-.25) -- (1,.75);       \draw       (0,-2) -- (3,-2);       %lna       \draw       (3,-2.5) -- (3,-1.5)       (3,-1.5) -- (4,-2)       (3,-2.5) -- (4,-2)       ;       \draw[-latex]       (4,-2) -- (6,-2);       %bf1       \draw       (6,-2.5) -- (6,-1.5) -- (7,-1.5) -- (7,-2.5)-- (6,-2.5);      \end{tikzpicture}      \end{document}      ![enter image description here](http://i.stack.imgur.com/ukdSp.png) Is there any predefined bandpass filter in circuitikz and if don't how do I get the sinus curves into this little box?


title: \savebox in page header with redefinable commands

text: I'm making a document class with some redefinable commands for page headers. However, I'm running into the following issue:               \documentclass{article}     \usepackage{fancyhdr}          % In custom document class     \newcommand{\foo}{old header}          \fancypagestyle{mystyle}{         \fancyhf{}         \newsavebox\mybox         \sbox\mybox{\foo}         \chead{\usebox\mybox}     }     \pagestyle{mystyle}          % In user tex file     \renewcommand{\foo}{new header}          \begin{document}         Page 1         \newpage         Page 2     \end{document}      This produces ![page 1](http://i.stack.imgur.com/QI1w7.png) ![page 2](http://i.stack.imgur.com/cY2Ze.png) How can I allow the user to redefine these commands, but still use `\sbox` so I can use `\wd` inside the page header for positioning purposes?


title: List of symbols after equation

text: Is there way to   * Define the symbols after the use of an equation, AND show that list right after the equation   * Repeat that list at the beginning of the document containing all the used symbols with their defenition I have tried the nomenclature package and even some more custom functions found on stackexchange. The custom function wont allow me to use math symbols as variable names (for example \rho) and the nomenclature package wont allow me to list the symbols under the eq **and** list them at the beginning. Help is much appricated!


title: Editing partly Beamer header (with existing theme content)

text: ## MWE : Considering the following minimal working example :               \documentclass{beamer}     \usetheme{CambridgeUS}          \begin{document}          \section{Section1}     \subsection{Subsection1}     \begin{frame}     \end{frame}          \subsection{Subsection2}     \begin{frame}     \end{frame}          \end{document}      Which renders as follow : ![enter image description here](http://i.stack.imgur.com/RIDb4.png) * * * ## Question : I would like to remove the automatic content placed on header right (the `subsection` content) and place there instead some _dots_ counting how many slides remain for the current `section`. By _dots_ I mean :   * the number of _dots_ tells how much slides we have for the section (not considering the pauses!) ;   * if they are white full, we read the slides   * if it is empty :      1. empty in white, we are reading it ;     2. if they are empty grey, we didn't read them yet. * * * ## It seems that it exists already : I have seen these kind of dots on some other themes like _Frankfurt_ : ![enter image description here](http://i.stack.imgur.com/NryNW.png) (source : http://www.hartwork.org/beamer-theme-matrix/) I guess it can be exploited, but I am not expert enough in latex to do it. * * * ## Example of the expected display : On this example, we have 6 pages for this Section1, and we are currently on the second page for this section. ![enter image description here](http://i.stack.imgur.com/TiZoJ.png) (Of course the background doesn't have to be black, it's just a bad edit made by hand) * * * ## Summary : How can I place these dots instead of the subsection on this _CambridgeUS_ theme ? Is this possible to integrate the _Frankfurt_ code regarding these dots inside _CambridgeUS_ theme ? Thanks in advance for your help. * * *


title: Create a booklet for conference programs

text: I would like to create a booklet with the program (titles and abstracts of talks + schedule) of a conference. I want A5 format because I will print the program on A4 papers and, then, bend the sheets in order to have the program. So I want to produce A4 sheets which would contain text in A5 layout. I'm looking anything (LaTeX templates, classes, ...) which could simplify the work. P-S : this question is different from this one because the answers aims to produces a5 layout (and my aims is to print on a4 paper a document which has an a5 layout).


title: The right way to draw a slashbox without content in a table?

text: Here is a part of my table:               \begin{table*}[t]         \begin{tabularx}{\textwidth}{|l|l|l|X|X|X|X|}             \hline             \multicolumn{1}{|c|}{Application}&\multicolumn{1}{c|}{Version}&\multicolumn{1}{c|}{MD5}&\multicolumn{4}{c|}{Result}\\         \hline         Anguanjia: Security Manager&4.5.1&adcfd8a30f6b2ae48e8bb44b05589533&35&X&Y&$\blacksquare$\\             ...      And here is what it turned to be: ![My Table](http://i.stack.imgur.com/jii7A.png) I want to use `\slashbox` to indicate that this cell does not need to be filled, how do I fix this or use a better way to express?


title: Is it possible to get EPS output from XeLaTeX

text: I need to get a good way to produce quality equations in MS Word documents. There is no simple way to produce vector graphics in TeX, that Word natively understands (`EMF`, `WMF`). There is yet another vector graphics format that Word kind of supports: `EPS`. I could automate generation of equations in `EPS` format, adding a preview bitmap and inserting it into Word, just like SWord does. And now I have a question: how to get the XeLaTeX to produce `EPS` output? I know, that a long time ago, the legacy LaTeX could do that, but I'd prefer not to hang to it if I could.


title: LaTeX is moving my section to a new page

text: I'm just wondering, why LaTeX always moves my section to a new page, even without using the new page command. This will look like the following, and does only happen for this particular section ![enter image description here](http://i.stack.imgur.com/Vh4Vd.jpg) Do you have any general hint for me about what could be wrong? Do you need to whole code of the LaTeX-document to elaborate this problem? The strange thing is, that it doesn't happen for the other subsections and sections, so obviously it doesn't have to do anything with the general Latex template... Here is a small excerpt of the file               dBLA BLA BLA BLA SOME TEXT dBLA BLA BLA BLA SOME TEXT dBLA BLA BLA BLA SOME TEXT dBLA BLA BLA BLA SOME TEXT dBLA BLA BLA BLA SOME TEXT dBLA BLA BLA BLA SOME TEXT dBLA BLA BLA BLA SOME TEXT dBLA BLA BLA BLA SOME TEXT dBLA BLA BLA BLA SOME TEXT dBLA BLA BLA BLA SOME TEXT dBLA BLA BLA BLA SOME TEXT dBLA BLA BLA BLA SOME TEXT dBLA BLA BLA BLA SOME TEXT dBLA BLA BLA BLA SOME TEXT dBLA BLA BLA BLA SOME TEXT      \begin{table}[hbt]         \centering             \begin{tabular}{rcrcrcrc}                 \toprule                 \textbf{bla} & \phantom{-} & \textbf{bla} & \phantom{-} & \textbf{bla} & \phantom{-} & \textbf{bla} \\                   \cmidrule{1-1} \cmidrule{3-3} \cmidrule{5-5} \cmidrule{7-7}             50  &&  35.6     &&   111    &&    67.92\\          100  &&  35.2     &&   12    &&   621.018\\          200  &&  16.8     &&   330    &&   6111.422\\          ........ SOME MORE DATA .............                      \bottomrule     \end{tabular}     \caption{BLABLA}\label{tab:bla}     \end{table}          \begin{figure}[htb]     \centering     \includegraphics[scale=0.7]{02clippers.jpg}      \caption{blaaaaaa}       \label{fig:clipperss}                \end{figure}     Die Grafik \autoref{fig:clipperss} dBLA BLA BLA BLA SOME TEXT dBLA BLA BLA BLA SOME TEXT dBLA BLA BLA BLA SOME TEXT dBLA BLA BLA BLA SOME TEXT dBLA BLA BLA BLA SOME TEXT dBLA BLA BLA BLA SOME TEXT dBLA BLA BLA BLA SOME TEXT dBLA BLA BLA BLA SOME TEXT dBLA BLA BLA BLA SOME TEXT dBLA BLA BLA BLA SOME TEXT dBLA BLA BLA BLA SOME TEXT dBLA BLA BLA BLA SOME TEXT dBLA BLA BLA BLA SOME TEXT dBLA BLA BLA BLA SOME TEXT dBLA BLA BLA BLA SOME TEXT dBLA BLA BLA BLA SOME TEXT           %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     %%====================================================================================================     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \section{Stand der Technik}     \label{sec:Stand-der-Technik}     dBLA BLA BLA BLA SOME TEXT dBLA BLA BLA BLA SOME TEXT dBLA BLA BLA BLA SOME TEXT dBLA BLA BLA BLA SOME TEXT dBLA BLA BLA BLA SOME TEXT dBLA BLA BLA BLA SOME TEXT dBLA BLA BLA BLA SOME TEXT dBLA BLA BLA BLA SOME TEXT dBLA BLA BLA BLA SOME TEXT dBLA BLA BLA BLA SOME TEXT dBLA BLA BLA BLA SOME TEXT dBLA BLA BLA BLA SOME TEXT dBLA BLA BLA BLA SOME TEXT dBLA BLA BLA BLA SOME TEXT dBLA BLA BLA BLA SOME TEXT dBLA BLA BLA BLA SOME TEXT dBLA BLA BLA BLA SOME TEXT dBLA BLA BLA BLA SOME TEXT dBLA BLA BLA BLA SOME TEXT dBLA BLA BLA BLA SOME TEXT dBLA BLA BLA BLA SOME TEXT       Using latest TeCnicCenter with MiKTeX and TeXify for outputting under Windows 8.1.


title: Animation on paper

text: I started writing my thesis and someone proposed that I could put small markings on the edge of the pages so that when someone flips the pages an animation would be shown. I would like to have the animation done in `PSTricks` or `TikZ` or another format (e.g. `.gif`) and then specify in the preamble that there is going to be an animation in pages `x-y` and indicate the animation (either a `.gif` or a `.pdf`) and maybe where in the margin it will take place. Is there a package doing something close to that? Has anyone done something similar with other tools?


title: hyperref pagebackref: page number and link in references wrong

text: I try to use hyperref with pagebackref to get a page number and a link for each of my references. My first pages have roman numbers (title page, ...), later on I switch to arabic numbers. For whatever reason the links in the references have the right page number but the link is wrong (somehow a negative offset). I have a minimal example:               \documentclass[a4paper, 12pt, twoside]{report}     \usepackage[latin1]{inputenc}      \usepackage[T1]{fontenc}     \usepackage[english,ngerman]{babel}     \usepackage[left=4cm,top=3cm,right=3cm,bottom=4cm]{geometry}     \usepackage[pdftex, plainpages=false, hypertexnames=false, pdfpagelabels=true,         hyperindex=true, linktocpage, pagebackref=true, pdfa=true]{hyperref}          \begin{document}     \pagenumbering{roman}     \pagestyle{empty}     Titel          \setcounter{page}{1}     \tableofcontents     \newpage          \pagenumbering{arabic}     \pagestyle{plain}      \chapter{one}     \section{one}     \newpage          \section{two}     Zitation~\cite{citation_key}          \bibliographystyle{plain}     \begin{thebibliography}{widest-label}         \bibitem{citation_key}Autor: Titel. Verlag, Jahr.     \end{thebibliography}       \end{document}      Any ideas?


title: Long Execution Time with pdfLaTeX on Mac OS X

text: > **Possible Duplicate:**   >  Fast PNG embedding using pdflatex I'm using pdfLaTeX on Mac OS X v10.7.3, and I've added about 25 PNG images to a LaTeX document that is roughly 35 pages long. The images are between 90 and 175 KB each. Now that I've added the images, pdfLaTeX takes over 5 minutes to run:               real    5m52.787s     user    0m9.438s     sys     0m0.340s      Is there any way to speed up the compilation, like re-using the image resources, or is this just how long pdfLaTeX takes with images? Please let me know if you need any more information.


title: Tricky appendices: Issues with header or ToC. Ranking the appendices as subsections

text: I am trying to obtain a pretty appendix and ToC, however I am experiencing a number of issues and it seems that I have to choose: If I use the traditional code:                 \documentclass{article}       \usepackage{booktabs,amsmath,caption,}       \begin{document}          \appendices     \appendixpage     \addappheadtotoc                \section{Abbreviations and symbols}     \end{document}      I obtain an table of contents where the appendix A, B and so on, are ranked as a section: ![Example code 1](http://i.stack.imgur.com/SfKpn.png) If I call appendix A for `\subsection{Abbreviations and symbols}` I obtain the right "rank", however, instead of being named A and B, it is now called .1 and .2 etc... As an alternative I have used this other code, however although I obtain a nice looking TOC, my headers is wrongfully set as the section before the Appendix (which is because of my "newcommand" I believe)...               \documentclass{article}     \usepackage{booktabs,amsmath,caption}     \begin{document}       \appendix     \section*{Appendix}     \renewcommand{\thesubsection}{\Alph{subsection}}%consider {Appendix \Alph..}     \addappheadtotoc     \subsection{Abbreviations and symbols}     \end{document}      ![This is how it should look in ToC](http://i.stack.imgur.com/YSswq.png) This last code is satisfactory when looking in ToC, but not when you look at the header... ![The problem with the header \(should say APPENDICES\)](http://i.stack.imgur.com/B6WSq.png) Any one got a solution? Link to similar problem (which is when writing report): Appendices' sections at subsection level in TOC Thanks!


title: libertine font package doesn't work anymore (December 2011)

text: If you're using an up-to-date system and you're having trouble with using the Linux Libertine fonts, you should probably check out Linux Libertine package and fonts not working any more (fall 2012), which deals with the current situation. The situation described in this question and its answer **do not apply anymore** to current systems. * * * Ever since an update in December 2011, `libertine` doesn't work anymore at all, the standard Computer Modern fonts are used instead. The minimal               \documentclass{article}     \usepackage{libertine}     \usepackage[T1]{fontenc}     \begin{document}     Hello World.     \end{document}      produces the error message               ! Package libertine Error: Package is deprecated, use libertineotf!. If I proceed accordingly and use `libertineotf` instead of `libertine`, I get 11 errors and no output:               ! Package libertineotf Error: runs only with xelatex and lualatex!. ...               !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!     !     ! Fatal fontspec error: "cannot-use-pdftex"     !      ! The fontspec package requires either XeTeX or LuaTeX to function.     !      ! You must change your typesetting engine to, e.g., "xelatex" or "lualatex"     ! instead of plain "latex" or "pdflatex".     !      ! See the fontspec documentation for further information.     !      ! For immediate help type H .     !............................................... I am indeed compiling with pdfLaTeX, but I don't want to switch to Xe/LuaLaTeX. Is there any way to get back the Linux Libertine fonts with pdfLaTeX? I know the answer to this question, but I thought this matter is worth sharing -- expecting some Googlers looking for help. I've seen the answer in a couple of comments on here, so I'll wait a bit, assuming the answer will pop up.


title: Error In styling the chapter in Book class

text: I want to style the chapter in book class from the default look.I get error.Here is the code:               %Template for Technical Document     \documentclass{book}     \usepackage{graphicx}     \usepackage[explicit]{titlesec}     \usepackage{tikz}     \usepackage[a4paper,margin=1in,bindingoffset=0.2in,centering,headheight=0.3in,heightrounded]{geometry}  \usepackage{titlesec}     \renewcommand{\chaptername}{Article}     %% Can also use centering, or hcentering          \usetikzlibrary{shapes.misc,arrows}     \newcommand\titlebar{%     \tikz[baseline,trim left=0cm,trim right=2.5cm] {%         \node [             text = red!70!green,             anchor= base east,             minimum height=3.5ex] (a) at (2.5cm,1ex) {%         };        \path[fill=red!70!blue] (a.east) circle (.5ex);        \draw[color=red!70!blue, thick,rounded corners=1ex] (a.east) |- (\textwidth+2.15cm,-0.75ex);     }%     }          \newcommand\subtitlebar{%     \tikz[baseline,trim left=0cm,trim right=3.05cm] {%         \node[             text = red!70!green,             anchor= base east,             minimum height=3.5ex] (b) at (3.05cm,0) {%         };        \path[fill=red!70!blue] (b.east) circle (.5ex);        \draw[color=red!70!blue, thick,rounded corners=1ex] (b.east) |- (\textwidth+2cm,-0.75ex);     }%     }          \titleformat{\subsection}{\normalfont\sf}{\subtitlebar}{0.2cm}{\textcolor{blue!60!green}{#1}}     \titlespacing*{\subsection}{-2cm}{3.5ex plus 1ex minus .2ex}{2.3ex plus .2ex}     \titlespacing*{name=\subsection,numberless}{0cm}{3.5ex plus 1ex minus .2ex}{2.3ex plus .2ex}     \renewcommand*{\thesubsection}{\arabic{subsection}}               \titleformat{\section}{\large\sf}{\titlebar}{0.25cm}{\textcolor{blue!60!green}{#1}}     \titlespacing*{\section}{-2.15cm}{3.5ex plus 1ex minus .2ex}{2.3ex plus .2ex}     \titlespacing*{name=\section,numberless}{0cm}{3.5ex plus 1ex minus .2ex}{2.3ex plus .2ex}     \renewcommand*{\thesection}{\arabic{section}}          \makeatletter     \newcommand{\chapterauthor}[1]{%       {\parindent0pt\vspace*{-25pt}\large\scshape#1}%       \par\nobreak\vspace*{35pt}       \@afterheading%     }     \makeatother          \titleformat{\chapter*}     {\normalfont\LARGE\bfseries}{1em}{}     \begin{document}     \chapter*{Install Backtrack on an Android Device}     \chapterauthor{K.DINESH KUMAR \par II Year B.Tech CSE}     \section{What is Backtrack?}     BackTrack is a distribution designed by Jason Dennis based on the Ubuntu Linux distribution aimed at digital forensics and penetration testing use. BackTrack provides users with easy access to a comprehensive and large collection of security-related tools ranging from port scanners to Security Audit. Support for Live CD and Live USB functionality allows users to boot BackTrack directly from portable media without requiring installation, though permanent installation to hard disk and network is also an option.\par     \section{Security Tools in Backtrack}     BackTrack includes many well known security tools including:     \begin{itemize}         \item Metasploit for integration         \item Wi-Fi drivers supporting monitor mode (rfmon mode) and packet injection         \item Aircrack-ng         \item Gerix Wifi Cracker         \item Kismet         \item Nmap         \item Ophcrack         \item Ettercap         \item Wireshark (formerly known as Ethereal)         \item BeEF (Browser Exploitation Framework)         \item Hydra         \item OWASP Mantra Security Framework, a collection of hacking tools, add-ons and scripts based on FirefoX.         \item Cisco OCS Mass Scanner, a very reliable and fast scanner for Cisco routers with telnet and enabling of a default password.     \end{itemize}          \section{Installing Backtrack on Android Device}     \subsection{Tools Required}     \begin{enumerate}     \item Backtrack 5 ARM.\\     Download Backtrack 5 ARM from Backtrack official site. Backtrack with ARM architecture only on Backtrack 5 version. ARM architecture not available for Backtrack 5 R1, Backtrack 5 R2, and Backtrack 5 R3.     \item Rooted android device \\     Why rooted android device ? Because we need install some application that need Android to be root     \item Busybox, Superuser, Terminal Emulator, and AndroidVNC. \\     You can download search and all of them on Google Play. BusyBox is installer and uninstaller Android program, Superuser is superuser rights manager for Android, Terminal Emulator is Android's built-in Linux command line shell program, and AndroidVNC is a VNC viewer for Android.     \end{enumerate}     \subsection{Installation}     \begin{enumerate}     \item Extract BT5-GNOME-ARM.7z to folder, for example "BT5" folder and then put on device root directory.     \item Open Terminal Emulator on device then go to BT5 folder with command prompt. Here is  the command \verb+ cd sdcard/BT5 +     \item Then run this following command \verb+ su + and \verb+ sh bootbt + and you will see \verb+ root@localhost +     \item Now lets run Backtrack GUI with VNC viewer \verb+startvnc+     \item To connect wth VNC we must know the port where VNC listening. Run \verb+netstat -anpt+ and remember the port where VNC listening. In this case the port is 59016. Open AndroidVNC and fill the form like this: \\     Nickname : BT5\\     Password : toortoor\\     Address  : 127.0.0.1\\     Port     : 5901 \\     \item Connect it and you will see Backtrack 5 interface \par     \textit{Remember! Some of the Backtrack tools can't work properly and do it for your own risk. I hope you can Install Backtrack on Android device without any problems, tell me if you get problems.}     \end{enumerate}     \end{document}


title: description: paragraph as definition - get straight left margin for multi-line definition

text: With `\item[keyword]explanation-that-goes-on-for-several-lines` I get:               keyword this is the first line         this is the second line      But I'd like it like this               keyword this is the first line             this is the second line      I also tried with tabular, but then it didn't do line breaks at all!


title: Custom tabular environments

text: I'm trying to create the following structure using the best possible "user- interface" in LaTeX:                ---------------------------------------------     |  Week 1  |  1.  Topic 1                        |     |          |  2.  Topic 2                        |      ---------------------------------------------     | Week 2   |  1.  Topic 3                        |      |          |  2.  Topic 4                        |      ---------------------------------------------      I can, of course create this using a nested `enumerate` inside a `tabular` but it would be ugly to look at and difficult to maintain with all the `&` and the `\\\` characters. What I need is a way to cleanly define this structure so that the code looks pretty. The only requirements is the numbering, the tabular structure and of course, page-spanning outlines. If there's a package available, I'd be happy to modify it. (I found the courseoutline package on CTAN by it doesn't have weekly topic breakdown.)


title: Changing the Header of more than one bibliography

text: I have seen too many good solutions to change the name of the References heading for the bibliography. But I have more than one bibliography (and more than one .bib file) and I would like to change the headings locally not globally. I also tried solutions that partition the bibliography (multibib, etc) but these are not working so I prefer to simply change the Heading. MWE:               \documentclass{article}      \begin{document}               Sample Text.     \nocite{*}          \bibliographystyle{naturemag}     \bibliography{FirstBiB}     \bibliographystyle{naturemag}     \bibliography{SecondBiB}          \end{document}


title: tikzscale and \tikzsetnextfilename

text: I'm using Windows 7 or 8.1 with MiKTeX 2.9. I still have the problems, described here and here. I updated the packages with the package manager and I use               \documentclass{report}     \usepackage{tikzscale,pgfplots}     \pgfplotsset{compat=1.9}     \usepgfplotslibrary{external}     \tikzexternalize     %     \begin{filecontents}{A.tikz}       \begin{tikzpicture}         \draw (0,0) rectangle (2,2);       \end{tikzpicture}     \end{filecontents}     %     \begin{document}     \newcommand{\figFilename}{}     \renewcommand{\figFilename}{A}     \tikzpicturedependsonfile{\figFilename.tikz}     \tikzsetnextfilename{\figFilename}     \includegraphics[width=\linewidth]{\figFilename}     \end{document}      Instead of `A.pdf`, `main-figure0.pdf` is made and the figure is NOT scaled. From the mentioned threads I thought this bug is fixed. Without specifying the filename it's working fine. Is there a special way to update the external library?


title: How to prevent frames on each groupplot in TikZ/pgfplots

text: I want to do a group of plots. However, I set the option `\tikzset{every picture/.style={framed}` at the begin of my document, because I want a frame around all my pictures. What I get now is a frame around the figure AND each subplot - which I don´t want. How can I prevent this? * * * MWE:               \documentclass{standalone}          \usepackage{pgfplots}     \usetikzlibrary{backgrounds,pgfplots.groupplots}          \tikzset{every picture/.style={framed,background rectangle/.style={draw=black!80,rounded corners=.5ex}}}          \begin{document}          \begin{tikzpicture}          \begin{groupplot}[group style={group size=2 by 2},     height=6cm, width=8cm,     xlabel=$\vartheta$,     hide y axis,     axis x line=middle,     xmin=-1, xmax=361,     every axis xlabel/.style={     at={(0,0)},anchor=center},     samples=200,     xtick={0,60, 120, 180, 240, 300, 360}]     \nextgroupplot[title={$m=0$}]     \addplot+[domain=0:360,mark=none]{0*x};     \nextgroupplot[title={$m=1$}]     \addplot+[domain=0:360,mark=none]{sin(x)};     \nextgroupplot[title={$m=2$}]     \addplot+[domain=0:360,mark=none]{sin(2*x)};     \nextgroupplot[title={$m=3$}]     \addplot+[domain=0:360,mark=none]{sin(3*x)};     \end{groupplot}             \end{tikzpicture}          \end{document}      Example (doesn´t look the as the MWE due to strange spacing in my document, but that shouldn´t bother): ![example of unwanted behaviour](http://i.stack.imgur.com/aQwTH.png) Sorry if this question has already been asked or if there is an obvious answer - I couldn´t find anything.