title: tkz-euclide changing labels and size (triangle, inscribed circle)

text: A friend of me Torbjørn, showed me how to build the image below using tikz ![Inscribed circle and whatnot](http://i.stack.imgur.com/7ZIse.png) with the following code.                \documentclass{article}      \usepackage{tkz-euclide}      \usetkzobj{all}      \begin{document}\begin{minipage}{0.5\textwidth}      I en $\Delta ABC$ er $\angle A = 90^{\circ}$ En sirkel med sentrum i       $S$ er innskrevet i trekanten. Sidene $AC$ og $BC$ tangerer sirkelen      i punktene $D$ og $E$. Linjen gjennom $B$ og $S$ skjærer $DE$ i $F$. \\      \\      Se skissen til høyre. \\      \\      Du får oppgitt at $DC=EC$.\\      \\      Vi setter $\angle ABC = v, \: \angle BCU = u, \: $ og $\angle BFE=x$\\      \end{minipage}      \begin{minipage}{0.5\textwidth}      \begin{tikzpicture}[scale=1.5]        \tkzInit[ymin=-1,ymax=5,xmin=-1,xmax=5]        \tkzClip         \tkzDefPoint(0,0){A}        \tkzDefPoint(4,0){B}        \tkzDefPoint(0,4){C}        \tkzDefCircle[in](A,B,C)          \tkzGetPoint{S}          \tkzGetLength{rSN}        \tkzDrawPoints(A,B,C)        \tkzDrawCircle[R](S,\rSN pt)        \tkzDrawPolygon[very thick](A,B,C)        \tkzInterLC[R](A,C)(S,\rSN pt) \tkzGetFirstPoint{D}        \tkzInterLC[R](B,C)(S,\rSN pt) \tkzGetFirstPoint{E}        \tkzInterLL(B,S)(D,E) \tkzGetPoint{F}        \tkzDrawPoints(D,E,F,S)        \tkzDrawSegments[thick,red](D,E)        \tkzDrawSegments[thick,violet](B,F)        \tkzLabelPoints[left](D)        \tkzLabelPoints[above left](C,F)        \tkzLabelPoints[below right](B)        \tkzLabelPoints[below left](A,S)        \tkzLabelPoints[above right](E)        \tkzMarkAngle[size=0.4 cm](B,F,E)        \tkzLabelAngle[pos=0.6](B,F,E){\large $x$}        \tkzMarkRightAngle(B,A,C)      \end{tikzpicture}      \end{minipage}      \end{document}           Using geogebra, I was able to prduce a simmilar looking image, as below ![Geogebra image of the same figure](http://i.stack.imgur.com/Gvtix.png) My question is. How can I transform my tikz image into looking more like the geogebra image? The point in S should be black, not violet, and one should keep the angle A. (I had problems both changing the color of the inscribed circle, changing the size of the labels, and changing the color of the points.) I think that was it for now. Alas the tikz image works better without the minipages.


title: Labeling a circuit element with its symbol and value on both sides

text: I have modified the circuit code given in Voltage sign convention (European vs. American) in Circuitikz to serve my presentation in circuit making. However, **_I am unable to change the voltage source into american style_** [-ve polarity assigns to the terminal connecting to ground]. I looked through the manuals of both circuitikz and tikz but could not get an answer. My question is to **how I can label circuit element(s) with its value and the symbol[american format] on both sides in tikzpicture environment**. Please help me. Here is the modified code for your reference:               \documentclass{article}     \usepackage{tikz}     \usepackage[american voltages,american currents]{circuitikz}     %\usepackage[american voltages, american currents,siunitx]{circuitikz}     \usetikzlibrary{arrows,circuits.ee.IEC,positioning}          \begin{document}     \begin{tikzpicture}[circuit ee IEC,american,x=2cm,y=2cm, semithick, every info/.style={font=\footnotesize}, small circuit symbols, set resistor graphic=var resistor IEC graphic]     \draw (0,0) to [ground={near start, rotate=180}] (0,1)               to [voltage source={near start, info=$V_S$,info'=$5\mbox{V}$}] (0,3)               to [break contact={info=$t_0$}] (2,3)               to [inductor={info=$L$,info'=$1\mbox{H}$}] (3,3)               to [resistor={info=$R$, info'=$47\Omega$}] (6,3)               to [capacitor={info'=$C$, info=$247\mbox{pF}$}] (6,1)               to [ground={near end}] (6,0);     \end{tikzpicture}     \end{document}      ![Wanted to replace the european symbol into american symbol](http://i.stack.imgur.com/8mevs.png) Here is another style with little bit of clean codes, however, both the component symbol and its value are on the same side:               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{arrows, circuits.ee.IEC, positioning}     \usepackage[american voltages, american currents,siunitx]{circuitikz}          \begin{document}     \begin{tikzpicture}[circuit ee IEC,american,x=2cm,y=2cm, semithick, every info/.style={font=\footnotesize}, small circuit symbols, set resistor graphic=var resistor IEC graphic]          \draw (0,0) node[shape=ground]{}         to [V, l=\mbox{$V_S=\SI{5}{\volt}$}] (0,1)         to [cspst , l =$t_0$] (1,1)         to [L, l=\mbox{$L=\SI{1}{\henry}$}] (2,1)         to [R, l=\mbox{$R=\SI{47}{\ohm}$}] (3,1)         to [C, l=\mbox{$C=\SI{247}{\pico\farad}$}] (3,0)         to (3,0) node[shape=ground]{};     \end{tikzpicture}     \end{document      and output of the above code: ![enter image description here](http://i.stack.imgur.com/5rep7.png) The last example uses tikz with circuittikz library. _But labeling on both sides of the component in american format is still unsuccessful_!


title: pgfplot annotation spacing and arrow length

text: I am trying to make the following figure using `pgfplots`.               \documentclass{article}          \usepackage{pgfplots}         \pgfplotsset{width=8cm,compat=1.5.1}         \usetikzlibrary{decorations.markings}    % Arrows          \usepackage{caption}          \begin{document}          \noindent     \begin{minipage}{\linewidth}              \centering         \begin{tikzpicture}[scale=1]         \begin{axis}[ axis lines=left,                       xmin=-.1, xmax=1.9,   ymin=-1, ymax=22,                       xlabel={$v$},         ylabel={$p$},                       xtick =\empty,        ytick=\empty,                     ]             % Compression (Work in)             \addplot[blue, domain=0.85:0.1,    samples = 20, postaction={decorate},                     decoration={markings, mark=at position 0.6 with {\arrow{>}}}                    ] { (0.85/x)^(1.4) }                    [sloped, font=\small]                    node[below, pos=0.7] {$s =$ const.};                  % Heat addition             \addplot[ red, postaction={decorate},                       decoration={markings, mark=at position 0.65 with {\arrow{>}}}                     ]                     coordinates{ (0.1,20) (0.2,20)}                     [ every node/.style={font=\small, text = black} ]                         node[ left, pos = 0] {2}                         node[right, pos = 1] {3};                  % Expansion (Work out)             \addplot[ blue,domain=0.2:1.7, samples = 40, postaction={decorate},                       decoration={markings, mark=at position 0.32 with {\arrow{>}}}                     ] { (1.7/x)^(1.4) }                    [sloped, font=\small]                    node[above, pos=0.3] {$s =$ const.};                  % Heat removal             \addplot[ red, postaction={decorate},                       decoration={markings, mark=at position 0.6 with {\arrow{>}}}                     ]                     coordinates{ (1.7,1) (0.85,1) }                     [ every node/.style={font=\small, text = black} ]                         node[below, pos = 0] {4}                         node[below, pos = 1] {1};                  \draw[blue, -latex, line width = 1pt] (axis cs:0.15,5.5) -- (axis cs:0.35,7)             node[anchor = north east, pos=0.5, font=\footnotesize] {$\dot{W}_{\textrm{in}}$};                  \draw[blue, -latex, line width = 1pt] (axis cs:0.4,5.5) -- (axis cs:0.6,7)             node[anchor = west, pos=0.9, font=\footnotesize] {$\dot{W}_{\textrm{out}}$};              \end{axis}         \end{tikzpicture}         \captionof{figure}{Ideal Brayton cycle}     \end{minipage}          \end{document}      ![enter image description here](http://i.stack.imgur.com/aFMro.png)   1. How can I get the annotation arrows (the one that indicate power e.g. `\dot{W}` to be of same length?   2. Right now I am specifying the start and end point co-ordiantes of the arrows. This means that if I need to move the arrow, I need to tweak the co-ordinates correctly. Is there a way to specify based on `pos` on the curve like that other annotations?   3. How can I adjust the spacing between the `s = const.` annotation and the corresponding curve? I would like to increase the spacing from the 3-to-4 path.


After finishing my thesis in LaTeX (I am an absolute newcomer) I've been asked to format it in a specific design matching a doc-file I received. I've managed to change titles and fonts and margins successfully, but I'm having trouble with the header. Here's what I am trying to achieve: ![Page header with gray background and without margin](http://i.imgur.com/fHelk.png) I've tried messing around with `fancyhdr` \- but after spending an hour on the documentation, I'm not sure it gives me what I need. Can you give me a nudge into the right direction? Particular questions: \- What package should I be using to achieve this? \- How do I create this floating box that ignores the page margin?


title: I do not know how I change `cls` unconsciously

text: I use 'cls' of a conference. Two adjacent pages, one flushes right, the other flushes left. I mean `the blank space of right` is smaller than `the blank space of left` in one page. Then, the following page is inverse. But I add my content in the `submission.tex`. Then the left and right space of every page are `equal`. I do not know what's the problem? I only use this `cls`.               \documentclass[review]{OAGM}     %% For the accepted, final version, set this to the correct value:     %%\OAGMarXiv{0000.0000}          \usepackage{setspace}      \usepackage{ulem}      \usepackage{float} % fix the table     \usepackage{bold-extra}     \usepackage{amsmath,bm}     \usepackage[margin=1in]{geometry}      \usepackage{color}     \usepackage{amsmath,amsopn}     \usepackage{bbm}     \usepackage{import}     \usepackage{hyperref}      \usepackage[Sonny]{fncychap}     \usepackage{mathrsfs}     \usepackage{tikz,pgfplots}     \usepackage{listings}     \usepackage{fancyhdr}     \usepackage{color}     %\usepackage{breqn}      \usepackage{caption}     \usepackage{subcaption}     \usepackage{epstopdf}     \usepackage[titletoc,toc,title]{appendix}     \usepackage{mathtools}      \usepackage{tabularx}     \usepackage{booktabs}          \usepackage{graphics}     \usepackage{amsfonts}     \usepackage[bottom]{footmisc}     \usepackage{achemso}      \setkeys{acs}{articletitle}     \begin{filecontents*}{\klkl.bib}     % This file was created with JabRef 2.9.2.     % Encoding: UTF8          @INPROCEEDINGS{conf/icml/AvronKKS12,       author = {Avron, Haim and Kale, Satyen and Kasiviswanathan, Shiva Prasad and         Sindhwani, Vikas},       title = {Efficient and Practical Stochastic Subgradient Descent for Nuclear         Norm Regularization.},       booktitle = {ICML},       year = {2012},       publisher = {icml.cc / Omnipress},       added-at = {2013-01-25T00:00:00.000+0100},       biburl = {http://www.bibsonomy.org/bibtex/2b9ed7719ec246e3629d4b41b5515c7f9/dblp},       crossref = {conf/icml/2012},       ee = {http://icml.cc/discuss/2012/617.html},       interhash = {afa43f2081a8e76fd4ceeca426a7dc66},       intrahash = {b9ed7719ec246e3629d4b41b5515c7f9},       keywords = {dblp},       timestamp = {2013-01-25T00:00:00.000+0100},       url = {http://dblp.uni-trier.de/db/conf/icml/icml2012.html#AvronKKS12}     }               \end{filecontents*}                                   %\newcommand{\eq}[1]{\hyperref[#1]{Equation \eqref{#1}}}     \let\originaleqref=\eqref     \renewcommand{\eqref}{Equation~\originaleqref}          \newcommand{\dataset}{{\cal D}}     \newcommand{\fracpartial}[2]{\frac{\partial #1}{\partial  #2}}     \DeclareMathOperator*{\newarg}{arg}      \newcommand{\abs}[1]{\left\lvert #1 \right\rvert}                  % for absolute value     \newcommand{\avg}[1]{\left\langle #1 \right\rangle}           % for average     \newcommand{\norm}[1]{\left\lVert #1 \right\rVert}            % for norm     \newcommand{\bra}[1]{\left\{ #1 \right\}}            % for {}     \newcommand{\sbra}[1]{\left[ #1 \right]}            % for []     \newcommand{\lbra}[1]{\left( #1 \right)}            % for ()     \newcommand{\reffig}[1]{Figure \ref{#1}}     \renewcommand{\d}[2]{\dfrac{\mathrm{d} #1}{\mathrm{d} #2}}       % for derivatives     \newcommand{\pd}[2]{\dfrac{\partial #1}{\partial #2}}            % for partial derivatives     \let\underdot=\d                             % rename builtin command \d{} to \underdot{}     \title{Margin?}                    \begin{document}     \maketitle          \begin{abstract}     Today is 3/14/2014.      \end{abstract}     \newpage     Here is a new page.     \bibliography{\klkl}          \end{document}


title: Biblatex and entries with no date

text: I have a bibliographic entry with no date. I would like this to be printed both in the citation (i.e. in the text) and in the references with "n.d.", otherwise it shouldn't be different from a regular entry. In the example below, I would like the citations to be > Lennon (n.d.); Lennon (1972) and the references to be > Lennon, John (n.d.). _Peace on earth_. > > Lennon, John (1972). _More peace on earth_.               \documentclass{article}     \usepackage{csquotes,filecontents}     \usepackage[style=authoryear,dashed=false]{biblatex}     \begin{filecontents}{\jobname.bib}     @BOOK{lennon,         AUTHOR = "John Lennon",         TITLE = "Peace on earth"}     @BOOK{lennon1972,         AUTHOR = "John Lennon",         TITLE = "More peace on earth",         YEAR = "1972"}     \end{filecontents}     \addbibresource{\jobname.bib}     \begin{document}     \textcites{lennon}{lennon1972}.     \printbibliography     \end{document}      ![enter image description here](http://i.stack.imgur.com/dOIaq.png)


title: Endnote to bibtex issue

text: I have quite a few references in endnote and I want to convert them to BibTeX for a report I am writing in LyX. Endnote has a BibTeX export feature and I now have a `.txt` file with all my references sitting on my desktop, but I am now at a loss as how to go about actually accessing it for my work. Any help would be greatly appreciated


## My custom class The purpose of this class is to create a single PSTricks diagram in a tight paper size.               \ProvidesClass{pst-xport}[2011/07/23 v 0.01 class for creating a single PStricks diagram]     \DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}     \ProcessOptions\relax     \LoadClass[]{article}     \RequirePackage{pstricks}               \newcommand\LL{-1}     \newcommand\RR{1}     \newcommand\BB{-1}     \newcommand\TT{1}          \newlength\LPad\setlength{\LPad}{1cm}     \newlength\RPad\setlength{\RPad}{1cm}     \newlength\BPad\setlength{\BPad}{1cm}     \newlength\TPad\setlength{\TPad}{1cm}               \topmargin=\dimexpr\TPad-72.27pt\relax     \oddsidemargin=\dimexpr\LPad-72.27pt\relax     \paperwidth=\dimexpr\RR\psxunit-\LL\psxunit+\RPad+\LPad\relax     \paperheight=\dimexpr\TT\psyunit-\BB\psyunit+\TPad+\BPad\relax     \special{papersize=\the\paperwidth,\the\paperheight}               \headheight=0pt     \headsep=0pt     \parindent=0pt     \pagestyle{empty}          %%%%%%%%%%%%%%%%%%%     %%%% INTERFACE %%%%     %%%%%%%%%%%%%%%%%%%          \newcommand\SetCanvas[4]     {         \renewcommand\LL{#1}         \renewcommand\BB{#2}         \renewcommand\RR{#3}             \renewcommand\TT{#4}     }          \newcommand\SetCan[1]     {         \SetCanvas{-#1}{-#1}{#1}{#1}     }          \newcommand\SetPadding[4]     {         \setlength{\LPad}{#1}         \setlength{\BPad}{#2}         \setlength{\RPad}{#3}         \setlength{\TPad}{#4}     }          \newcommand\SetPad[1]     {         \SetPadding{#1}{#1}{#1}{#1}     }          \endinput       ## Consumer The consumer uses `pst-xport` class as follows.               \documentclass{pst-xport}          %\SetCanvas{-2}{-2}{2}{2}     \SetCan{2}          %\SetPadding{1cm}{1cm}{1cm}{1cm}     \SetPad{1cm}          \psset     {         xunit=1cm,         yunit=2cm     }          \begin{document}     \begin{pspicture}[showgrid=true](\LL,\BB)(\RR,\TT)     \psframe[linecolor=red](\LL,\BB)(\RR,\TT)     \end{pspicture}     \end{document}      ## Problem However, the consumer settings cannot affect because they come last. How to configure a custom class such that consumer settings must be loaded before the class settings? Bonus question: How to translate those settings to key-value settings that are more sophisticated?


title: Specific blockmatrices

text: I would like to put some block matrices in LaTeX: in the end they should look like this; The first matrix that I need looks like this, sorry I know it does not look very clear this way (for a better view, check out the following image). The larger dots indicate that the blocks have to be repeated. The smaller dots indicate that the matrices can be larger in size. I dont need to have it like this exactly in latex, just dots in the below left corner is also okay.) ![Matrices](http://i.stack.imgur.com/SMes4.jpg)                2 -1  0  0  0  0  0  0      -1  2  0  0  0  0  0  0       0 -1  2 -1  0  .  .  .       0  0 -1  2 -1  0  0  .       0  0  0 -1  2 -1  0  0      and so on...      and the second one looks like this:               1 0  0  0 0  0 0      0 1 -1  0 0  0 0      0 -1 1  0 0  0 0      0 0  0  1 -1 0 0      0 0  0  -1 1 0 0      0 0  0  0  0 . .      0 .  .  .  . ...       I tried to do it like this using the `easybmat` package.               \[     \left(     \begin{BMAT}(rc){c:c}{c:c}     \begin{BMAT}(rc){cc}{cc}     1 & -1\\     -1 & 1     \end{BMAT} &\begin{array}{cc}     0 & . \\     0 & 0 \\     \end{array}\\     \begin{array}{cc}     0& 0 \\     . & 0 \\     \end{array} & \begin{BMAT}(rc){cc}{cc}     1 & -1\\     -1 & 1     \end{BMAT}      \end{BMAT}     \right)     \]       But this gives the right idea, but I don't know how to adjust this to a bigger size. And I also don't know how to put in the extra cells which I need for the second matrix.


title: Why does the `&` reset grouping?

text: In this answer, I used `\tikzmark` to mark the extent of a typeset piece of text, so I could draw changebars next to it. But it initially seemed that the changebars "disappear" with math-mode content. After some debugging, I whittled it down to the following MWE:               \documentclass{article}          \usepackage{etoolbox}     \usepackage{amsmath}     \newlength\aLength     \newcommand{\tester}[1]{%       \setlength{\aLength}{50pt}%       \def\aMacro{Hello}%       \typeout{Before: \the\aLength, and \aMacro}%       #1%       \typeout{After: \the\aLength, and \ifdef{\aMacro}{\aMacro}{undefined!!}}     }%          \begin{document}     \begin{align*}       \tester{0}       \tester{ 0 & 1 }     \end{align*}     \end{document}      This yields the following behavior:               Before: 50.0pt, and Hello     After: 50.0pt, and Hello     Before: 50.0pt, and Hello     After: 0.0pt, and undefined!!     Before: 50.0pt, and Hello     After: 50.0pt, and Hello     Before: 50.0pt, and Hello     After: 0.0pt, and undefined!!      I have two questions on this output:   1. Why are there four sets of output? The MWE calls `\tester` only twice.   2. What exactly is `&` doing to cause `\aLength` and `\aMacro` to revert to their previous values?


title: What is the TikZ equivalent for ([offset=2]{A}B)?

text: Based on the answer given here, `($(A)!1cm!(B)$)` in TikZ is equivalent to `([nodesep=1]{B}A)` in PSTricks. It is just about the "radial" distance specified by two points. How about the "transverse" distance specified by two points? More precisely, in PSTricks, the syntax `([offset=2]{A}B)` represents a new point (namely `C`) which is 2 unit apart from the line joining `A` and `B` such that `BC` is perpendicular to `AB`.               \documentclass[pstricks,border=12pt]{standalone}     \usepackage{pst-eucl}     \begin{document}     \begin{pspicture}(6,6)         \pstGeonode(1,1){A}(4,5){B}         \pcline[nodesep=-1](A)(B)         \pstGeonode([offset=2]{A}B){C}         \psline[linecolor=blue](B)(C)     \end{pspicture}     \end{document}      ![enter image description here](http://i.stack.imgur.com/GMiR8.png) What is the TikZ equivalent for such a syntax? ## Miscellaneous `([offset=2]{A}B)` can also be written as `([nodesep=2,angle=90]{A}B)`. Other approaches are also possible with, for example, transformations provided by `pst-eucl`.


title: Center \chapter (book class)

text: Using the document class book, chapters headings ( _Chaper 1_ ) are aligned on the left. How to center them?


title: How can I display date information in document class "amsproc"?

text: I tried to display the date information by the command `\date{June, 2013}` in document class "amsproc", but failed. How to fix this problem? Here is my LaTeX code:               \documentclass{amsproc}          \begin{document}          \title{This is a title}          %    Remove any unused author tags.          %    author one information     \author{Shan Zhang}     \address{Department of Economics, University of Pennsylvania}     \curraddr{Philidelphia, PA}     \email{szhang@upenn.edu}     \thanks{This is thanks 1}          %    author two information     \author{Si Li}     \address{Department of Economics, UToronto}     \curraddr{Toronto}     \email{sili@utoronto.edu}     \thanks{This is thanks 2}          \date{June, 2013}          \dedicatory{To our families}          \begin{abstract}     This is abstract.     \end{abstract}          \maketitle          \section{Section 1}          Let's do section 1.          \end{document}


title: autoref to graphics inside a subfloat inside a figure

text: I have the following figure, which displays 3 graphics horizontally:               \begin{figure}[bth]         \myfloatalign         \subfloat[A]{\label{fig:a}%         \includegraphics[width=.31\linewidth]{a}} \enskip         \subfloat[B]{\label{fig:b}%         \includegraphics[width=.31\linewidth]{b}} \enskip         \subfloat[C]{\label{fig:c}%         \includegraphics[width=.31\linewidth]{c}}         \caption{Stackexchange example.}         \label{fig:timer}     \end{figure}      I then go on to use `\autoref{fig:b}`, which outputs only **1a**. Usually when I autoref to figures, I get **Figure1**. I use arsclassica, which is derived from classicthesis. Is there any way to make LaTeX output **Figure 1a** , **Figure 1b** , etc. instead of just **1a** , **1b**? Here's my preamble:               \documentclass[10pt,a4paper,twoside,openright,titlepage,fleqn,headinclude,,footinclude,BCOR5mm,numbers=noenddot,cleardoublepage=empty]{scrreprt}          \usepackage[american]{babel}     \usepackage[applemac]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{amsmath,amssymb,amsthm}     \usepackage{varioref}     \usepackage[style=numeric,natbib,hyperref,maxbibnames=99]{biblatex}     \usepackage{chngpage}     \usepackage{calc}     \usepackage{listings}     \usepackage{csquotes}     \usepackage{graphicx}     \usepackage{subfig}     \usepackage{multicol}     \usepackage{makeidx}     \usepackage{fixltx2e}     \usepackage{relsize}     \usepackage{lipsum}     \usepackage[scaled]{beramono}     \usepackage[eulerchapternumbers,subfig,eulermath,pdfspacing,listings]{classicthesis}     \usepackage{arsclassica}     \usepackage{todonotes}     \usepackage{pgfplots}     \usepgfplotslibrary{dateplot}     \pgfplotsset{compat=1.7}          \usepackage{tabularx}          \input{arsclassica-settings}          \usepackage{xcolor}          \newcommand\Small{\fontsize{8}{8.2}\selectfont}     \newcommand*\LSTfont{\Small\ttfamily\SetTracking{encoding=*}{-60}\lsstyle}          \colorlet{punct}{red!60!black}     \definecolor{delim}{RGB}{20,105,176}     \colorlet{numb}{magenta!60!black}          \lstdefinelanguage{json}{         basicstyle=\LSTfont,         columns=fixed,         numbers=left,         numberstyle=\scriptsize,         stepnumber=1,         numbersep=8pt,         showstringspaces=false,         literate=          *{:}{{{\color{punct}{:}}}}{1}           {,}{{{\color{punct}{,}}}}{1}           {\{}{{{\color{delim}{\{}}}}{1}           {\}}{{{\color{delim}{\}}}}}{1}           {[}{{{\color{delim}{[}}}}{1}           {]}{{{\color{delim}{]}}}}{1},     }          \newcommand\chap[1]{%       \chapter*{#1}%       \addcontentsline{toc}{chapter}{#1}}          \begin{document}     \pagenumbering{roman}     \pagestyle{plain}          \end{document}      Many thanks!


title: Simple expression throws "Undefined control sequence"

text: I have a simple expression in my text which refuses to compile and I don't know why:               ...\textit{isInterestedIn(Class$\<$? extends ContentChange$\>$ changeClass)}...      The complete error statement goes like this:               ! Undefined control sequence.     <recently read> \<     l.298 ...? extends ContentChange$\>$ changeClass)}     mit einem der \textit{Tex...     The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spelling (e.g., `I\hbox'). Otherwise just continue,     and I'll forget about whatever was undefined.      I don't really understand, what's the problem here.


title: I can't move my box I made

text: Here is the problem, I made a box using               \begin{tabular}[b]{|l|}     \hline     example \\     \hline     \end{tabular}      I have the `[b]` meaning bottom, but the position never changes ... In general how do I manipulate the box to where I want it to be? Please no fancy packages to install, I am new to this stuff **EDIT** : Does anyone know how to add the boxes within `\begin{align*} ... \end{align*}`?


title: Configuring pdflatex for labels in Asymptote

text: Asymptote now works just fine except for when I try to add labels (that are created using LaTeX). In that case, I get > Process started > > Cannot execute C:\MiKTeX 2.9\miktex\bin\x64\pdflatex.exe/pdflatex Please put > in a file config.asy: import settings; texpath="LOCATION"; where LOCATION > specifies the location of the directory containing your pdflatex engine > (pdflatex). Alternatively, set the environment variable ASYMPTOTE_TEXPATH or > use the command line option -texpath="LOCATION". For further details, see > http://asymptote.sourceforge.net/doc/Configuring.html > http://asymptote.sourceforge.net/doc/Search-paths.html > > Process exited with error(s) My Asymptote command in Texmaker is set to > "C:/Program Files (x86)/Asymptote/asy.exe" -gs="C:/Program > Files/gs/gs9.07/bin/gswin64.exe" -texpath="C:\MiKTeX > 2.9\miktex\bin\x64\pdflatex.exe" %.asy (Nothing works without specifying the ghostscript location.) But I am also specifically stating the pdflatex location as the error says I should do, and I am still getting the error. What should I do? (Btw, yes, all the paths are correct, my pdflatex.exe really is at that location.)


title: How to increase size of the diacritic/accent mark selectively without changing the alphabet size

text: I am using a typeface that has limited support for letters with diacritics. I am looking to use the features in latex (I'm using xetex on ubuntu) for providing the glyphs I am missing. My font has precomposed glyphs for dot-over-letters (like `ȯ`) but not for dot-under-letters (like `ḍ`). I know I can produce a dot under a d using `\d{d}` However the size of the dot in the precomposed glyph is much bigger than the size of the dot manually placed under by latex. This creates a bad look in cases where both diacritics occur in the same word. Is is possible that I can tell latex to increase the size of the dot by some metric without affecting the size of the alphabet? Ideally I want to be able to do something like `\bigger_dot_under{d}` instead of `\d{d}` where `\bigger_dot_under{}` is somehow defined to be 2x or 3x of `\d{}`, or in absolute mm/em metrics, point sizes or HUGE/Large terminology


title: How to put the block title at the center in beamer?

text: In my beamer block the title always comes left alined. Is that possible to make the title of the block centered?               \documentclass[final, 12pt]{beamer}         \usepackage[size=custom,width=120,height=120,scale=1.7,orientation=portrait]{beamerposter}      \usepackage{ragged2e}      \usepackage{graphicx}      \usepackage{lipsum}      \usepackage{etoolbox}           \apptocmd{\frame}{\justifying}{}{}          \usebackgroundtemplate{\centering \includegraphics[width=\paperwidth, height=\paperheight]{Figure/LG_PKL.jpg}}      \addtobeamertemplate{block begin}{\pgfsetfillopacity{0.65}}{\pgfsetfillopacity{1}}      \addtobeamertemplate{block beamercolorbox begin}{\pgfsetfillopacity{0.65}}{\pgfsetfillopacity{1}}          \newenvironment<>{varblock}[2][\textwidth]{%        \setlength{\textwidth}{#1}        \begin{actionenv}#3%        \def\insertblocktitle{#2}%        \par%        \usebeamertemplate{block begin}}      {\par%        \usebeamertemplate{block end}%        \end{actionenv}}          \usecolortheme{rose}          \begin{document}           \begin{frame}               \begin{textblock}{}(0.2,1.15)%      \begin{varblock}[35cm]{\textbf{1. Introduction}}      \justifying Space for discussion.      \end{varblock}      \end{textblock}          \end{document}


title: TikZ - Two Colored Circle Split

text: I need to draw a two-colored `circle split`, exactly as is specified in the section 39.6 of the manual for `rectangle splits`, meaning that one half of the `circle split` has one fill color and the other half a different fill color. I have to rotate it afterwards, but that is not a problem. For rectangle splits is seems to be as easy as adding the option `rectangle split part fill={red, blue}` in the definition. Is there a similar way to multiple-color circle splits? Greetings from Chile,   Marcelo.


title: problem with creating list of longtables

text: I'm using the `longtables` for my document without `\begin{table} ... \end{table}`. How can I create the list of tables? Command `\listoftables` doesn't work.


title: How to make partially transparent beamercolorbox

text: In my poster, I added a background picture and make the blocks partially transparent, using the following code               \documentclass[final, 12pt]{beamer}     \usepackage[size=custom,width=120,height=120,scale=1.7,orientation=portrait]{beamerposter}      \usepackage{ragged2e}     \usepackage{graphicx}      \usepackage{lipsum}      \usepackage{etoolbox}     \apptocmd{\frame}{\justifying}{}{}          \usebackgroundtemplate{\centering \includegraphics[width=\paperwidth, height=\paperheight]{Figure/LG_PKL.jpg}}     \addtobeamertemplate{block begin}{\pgfsetfillopacity{0.65}}{\pgfsetfillopacity{1}}     \addtobeamertemplate{block beamercolorbox begin}{\pgfsetfillopacity{0.65}}{\pgfsetfillopacity{1}}          \newenvironment<>{varblock}[2][\textwidth]{%       \setlength{\textwidth}{#1}       \begin{actionenv}#3%         \def\insertblocktitle{#2}%         \par%         \usebeamertemplate{block begin}}       {\par%         \usebeamertemplate{block end}%       \end{actionenv}}          \usecolortheme{rose}               \begin{document}     \begin{frame}          \begin{textblock}{}(0.55,0.05)     \begin{center}     \setlength{\textwidth}{113cm}     \begin{beamercolorbox}{block body}     gdsghfdhdfgh     \end{center}     \end{beamercolorbox}     \end{center}     \end{textblock}               \begin{textblock}{}(0.2,1.15)%     \begin{varblock}[35cm]{\textbf{1. Introduction}}     \justifying      Space for discussion.     \end{varblock}     \end{textblock}          \end{document}      It works nice with block,but I need to make the beamercolorbox's also partially transparent.Can any one please help me?


title: WinEdt assign hotkey or icon to compile project

text: I have several files open in winedt that are all related in a sort of project. I have the main file that includes the other files. Is there any way to set it up so when I compile any one of the files it compiles the main one instead(and saves the others)? I don't mind hard coding the file names if necessary. I'd like to have a custom icon for this so that any time I'm working on a large multifile project I can modify the icon to compile the main file.


title: Emacs - Predictive mode

text: I am trying to setup the Predictive Mode of Emacs and to use it with the LaTeX-mode. I have one problem: as soon as LaTeX-mode is loaded, it loads "auto-overlays" and it takes up to two minutes before I can begin to work, which is very annoying. I believe that this "auto-overlays" is used to switch between dictionaries according to where I am in the LaTeX document. Here is the part of my .emacs that concerns the predictive mode:               (require 'predictive)     (autoload 'predictive-mode "predictive" "predictive" t)     (set-default 'predictive-auto-add-to-dict t)     (setq predictive-main-dict 'dict-english           predictive-auto-learn t           predictive-add-to-dict-ask nil           predictive-use-auto-learn-cache nil           predictive-which-dict t)     (add-hook 'latex-mode-hook 'predictive-mode)     (setq completion-use-hotkeys nil)     (setq predictive-ignore-initial-caps t)     (custom-set-variables        '(auto-completion-syntax-alist (quote (accept . word))))      Do you have a solution?


title: Change caption width together with subfloat

text: In the following code the package that give the problems is               \usepackage[font=small,format=plain,labelfont=bf,up,textfont=it,up,width=0.85\textwidth]{caption}      What I want to do is change `captionwidth` so that it is less wide than the normal text. The problem comes when I want to use `subfloat` to put several pictures next to each other. The `subcaptions` don't stay underneath the pictures, but overlay or swap or... do things they shouldn't be doing. My question is, if there is a way to change `captionwidth`, without this problem in `subfloat`?               \documentclass[a4paper,11pt,twoside]{book}     \usepackage[dutch,british]{babel}     \usepackage{hyperref}     \usepackage{url}     \usepackage{amssymb,amsmath}     \usepackage{amsthm}     \usepackage[width=0.85\textwidth]{caption} %THIS IS THE PACKAGE WITH THE PROBLEM     \usepackage[margin=3cm]{geometry}     \usepackage{float}     \usepackage{subfig}     \usepackage{graphicx}          \selectlanguage{british}          \begin{document}          \begin{figure}[!ht]       \centering      \subfloat[fig1, not ok]{\label{fig1}\includegraphics[height=0.15\textwidth]{fig1}}\quad      \subfloat[fig2, not ok]{\label{fig2}\includegraphics[height=0.15\textwidth]{fig2}}       \caption{This caption is ok \cite{cursus, cd}.}       \label{figTotal}     \end{figure}          \end{document}


title: Compile HTML from tex file

text: I have installed TexMaker 3.1 on Windows 7. I can compile in pdf without problem. I would try to compile in HTML, what can I do? If I try to gave directly `latex2html %.tex` I get `Error : could not start the command`. Any idea?


title: On a problem related to UML class diagram using pgf-umlcd

text: I use the pgf-umlcd package written by Xu Yuan (see http://code.google.com/p/pgf-umlcd/) in order to write UML class diagrams. It is easy to use - however there is a bug which I don't know how to fix. In the below snippet there is a description of a package System.Lang Compiling the file leads to the Error message:               !Package pgf Error: No shape named System is known....                    \documentclass{minimal}     %%%% Tikz pictures     \usepackage{tikz}      %%%% UML Class Diagrams     \usepackage[simplified]{pgf-umlcd}      \begin{document}     \begin{tikzpicture}%[show background grid]     \begin{package}{System.Lang} % <<<<-------- The problem is here!              \begin{interface}{ISet}{7,0}             \attribute{NoOfItems}             \operation{Add(element)}         \end{interface}          \end{package}     \end{tikzpicture}      \end{document}      * * * I have tried inconvenient work arounds, like drawing up the System package too - but that did not work either. At the moment I only use the sub-folder name instead of System.Lang, which leads to new problems because the name of the "reversed root" is not unique in the system I work with. Any ideas?


title: Automatically change cref name on non-first mention

text: I'm using cleveref to make a references in format "img. NN". My university's instructions require to use "img. NN" format on the first reference and to write something like "see img. NN" on the second and further references. It seems, cleveref provides no such functionality. So I wonder, is it possible to do it automatically with the help of any other package? Below is MWE, which shows what I would like to have.               \documentclass{article}     \usepackage{cleveref}     \begin{document}     First introduction of the image \cref{fig:1}. It should look like "fig. 1" (without quotes).          \begin{figure}[htb]         \caption{\label{fig:1}The first test image}     \end{figure}          Second mention of our figure (\cref{fig:1}) after its introduction.     The reference should look like "see fig. 1" instead of "fig. 1".      \end{document}


title: Include custom text in glossary

text: I'd like to include a disclaimer like "This list of acronyms only specifies the most important ones" underneath the caption of the acronym page. I'm currently inserting the page using               \printglossary[type=\acronymtype,style=list]      Is there any way to include custom paragraphs using this command?


title: \footcite and \footcitetext produce empty citation in beamer

text: I'm using `biblatex` with `bibtex` in the beamer document class. In a very weird way the `\footcite` produces a rather empty citation "2." In the example, whereas `\footcitefull` gives a very nice citation. My problem now is that I would like to place a citation within a column and/or block environment, where according to other posts I would have to use `\footnotemark` and `\footcitetext`, which would simply write "3." in the footer. For image, see: ![enter image description here](http://i.stack.imgur.com/KaxZc.png) My question would be:   1. Is there an error in my TeX or   2. is there an equivalent to `\footcitefull` in `\footcitetext`?              documentclass[8pt]{beamer}     \usepackage[utf8]{inputenc}     %\usepackage[ngerman]{babel}     \usepackage{hyperref}     \usepackage{graphicx}     %\usepackage[pdftex]{color}     %\usepackage{colortbl}     %\usepackage{listings}     \usepackage{xcolor}     \usepackage[lf]{venturis}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}     \usepackage{subcaption}     %\usepackage{multirow}     \usepackage[version=3]{mhchem}     %\usepackage{longtable}     \usepackage{pgf}     \usepackage{tikz}     \usepackage[citetracker=true,sorting=none,backend=bibtex,autocite=footnote]{biblatex}     \bibliography{../literature.bib}      \frame{     \frametitle{Introduction -- Electron Magnetic Chiral Dichroism}          \begin{itemize}         \item Discovered due to analogies between polarization and scattering vector in theoretical treatment.\footfullcite{emcd_nature}         \item Recent research focused on: signal enhancement, electron ``vortex'' beams.\footcite{emcd_theory}     \end{itemize}          \begin{block}{Intrinsic Setup}         \begin{columns}[m]             \column{.4\textwidth}             \begin{figure}[h]                 \includegraphics[width=.8\columnwidth]{images/apertures_0.pdf}                 \caption{Schematic}             \end{figure}                  \column{.4\textwidth}             \begin{itemize}                 \item The ``usual'' setup.                 \item Phase shift of $\pi/2$ of one Bragg beam due to dynamical diffraction effects.                 \item Dependent on sample thickness, orientation and crystal quality.                 \item Other setup to overcome dynamical diffraction effects?                 \item \textbf{Candidates:}                 \begin{itemize}                     \item Electron vortex beams (fork aperture, stigmator).                     \item Twin aperture with electrostatic phase plates.                 \end{itemize}             \end{itemize}         \end{columns}     \end{block}      }


title: titlesec messin' up my hyperref'd table of contents

text: Please consider the following multipage MWE, which contains page number restarting; made to compile with `pdflatex test.tex`:               \documentclass[12pt]{article}          \usepackage{geometry}     \geometry{twoside,inner=50bp,outer=30bp,top=50bp,bottom=50bp}               % \usepackage{titlesec}     % \titleformat{\section}{\centering\normalsize}{\thesection}{1em}{}     % \titleformat{\subsection}{\centering\small}{\thesubsection}{1em}{}               \usepackage{layouts}     \usepackage{etoolbox}     \patchcmd{\drawpage}{\ifdrawparameters}{\iftrue}%       {\typeout{^^J*******\string\drawpage fixed*******^^J}}%       {\typeout{^^J*******\string\drawpage not fixed*******^^J}}          \usepackage{hyperref}     \usepackage{tikz,enumitem}     \usepackage{fix-cm}          \usepackage{lipsum}                    \begin{document}                 \pagestyle{empty} % no page numbers on next few pages          % pg 1         \begin{tikzpicture}[overlay,remember picture,yscale=-1, inner sep=0pt, outer sep=0pt,anchor=north west]                \path (current page.center) node[anchor=center] (textX) {%                  Physical page 1 / Title                };              \end{tikzpicture}            \clearpage          % pg 2       Physical page 2 / Empty            \clearpage          % pg 3       Physical page 3 / TOC            \tableofcontents            \clearpage          % pg 4       %Physical page 4 / Empty       \ \\            \clearpage            \pagenumbering{arabic} % restart page numbering from 1       \pagestyle{plain} % show page numbers          % pg 5       Physical page 5            \section*{Section One}       \addcontentsline{toc}{section}{Section One}            \subsection*{Subsection One}       \addcontentsline{toc}{subsection}{Subsection One}            \lipsum[1]            \clearpage          % pg 6       Physical page 6            \subsection*{Subsection Two}       \addcontentsline{toc}{subsection}{Subsection Two}            \lipsum[2]            \clearpage          % pg 7       Physical page 7            \section*{Section Two}       \addcontentsline{toc}{section}{Section Two}            \lipsum[3]            \clearpage          % pg 8       Physical page 8            \subsection*{Subsection Two}       \addcontentsline{toc}{subsection}{Subsection Two}            \lipsum[4]            \clearpage               \end{document}      When this is compiled (twice), there is absolutely no problems in the PDF - table of contents clickable links in PDF work as expected; note that for this correct case, we have `test.toc`:               \contentsline {section}{Section One}{1}{section*.2}     \contentsline {subsection}{Subsection One}{1}{section*.3}     \contentsline {subsection}{Subsection Two}{2}{section*.4}     \contentsline {section}{Section Two}{3}{section*.5}     \contentsline {subsection}{Subsection Two}{4}{section*.6}      and `test.out`:               \BOOKMARK [1][-]{section*.2}{Section One}{}% 1     \BOOKMARK [2][-]{section*.3}{Subsection One}{section*.2}% 2     \BOOKMARK [2][-]{section*.4}{Subsection Two}{section*.2}% 3     \BOOKMARK [1][-]{section*.5}{Section Two}{}% 4     \BOOKMARK [2][-]{section*.6}{Subsection Two}{section*.5}% 5      Now, uncomment the three lines around `\usepackage{titlesec}`, and recompile (deleting `*.{out,toc,aux}` previously if so desired). Eventually you can see `pdflatex` spitting:               Package hyperref Warning: The anchor of a bookmark and its parent's must not     (hyperref)                be the same. Added a new anchor on input line 72.          pdfTeX warning (ext4): destination with the same identifier (name{page.1}) has      been already used, duplicate ignored      Now, basically the first link in the TOC (to "Section One") points to physical page 1 (start of document) - instead of physical page 5 (logical page 1, after restart), where it should be! In this case, `test.toc` is:               \contentsline {section}{Section One}{1}{Doc-Start}     \contentsline {subsection}{Subsection One}{1}{section*.1}     \contentsline {subsection}{Subsection Two}{2}{section*.1}     \contentsline {section}{Section Two}{3}{section*.1}     \contentsline {subsection}{Subsection Two}{4}{section*.2}      ... and `test.out` is:               \BOOKMARK [1][-]{Doc-Start}{Section One}{}% 1     \BOOKMARK [2][-]{section*.1}{Subsection One}{Doc-Start}% 2     \BOOKMARK [2][-]{section*.1}{Subsection Two}{Doc-Start}% 3     \BOOKMARK [1][-]{section*.1}{Section Two}{}% 4     \BOOKMARK [2][-]{section*.2}{Subsection Two}{section*.1}% 5      My question is - can I somehow use the `titlesec` package in the above example, and yet still get correct hyperlinks for the table of contents in the PDF? Many thanks in advance for any answers,   Cheers!


I want to define a macro `\create` that accept a single mandatory argument from which another new macro is created and named. The following code snippet may speak clearer what I want to achieve. But the following code cannot be compiled because it is wrong. :-)               \documentclass{article}          \newcommand\create[1]{%     \newcommand\#1{My name is #1}}          \begin{document}     \create{test}     \test     \end{document}      How to define a macro to create a new macro with a name passed as its argument?


title: Producing a Document Template

text: I wanted to know how could one produce this template with borders where it has **Problem Set #5** and **18.085** and all besides the actual mathematical text within the actual document. I do want to also know how to create the **boxes** around the solutions like within the body of the document. And lastly, how to create the **date** and **page numbers** at the bottom corners of the page. I like the style of this document for writing math work and want to incorporate this for my own mathematical papers. Another thing in mind was how can you insert code such as `MATLAB` or any other program language neatly into the document as so, seen on (Page. 8 and 9). Is that a picture snapshot of the code and then saved as a file then inserted as a graphics float?? Never seen it before in a TeX document. Another side note would be how do one strike out text in TeX, that looks to be pretty useful. Can one include that as well with your solution. This document is here below: Math Document Thanks.


title: Indent first paragraph inside memoir's adjustwidth

text: In machine-generated LaTeX that produces endnotes in `memoir`, I put (generate) each paragraph inside an `adjustwidth` environment to get the paragraph indented `26pts` to line up with something else. Works fine, but I also want the first line of each of these paragraphs indented (additionally) by whatever the normal paragraph indent is. None of the crazy ideas I've tried, like:               \begin{adjustwidth}{26pt}{0pt}\par\setlength{\parindent}{1cm}\indent ...      produces success. Seems like the `adjustwidth` environment really doesn't want to indent that first paragraph (or my general LaTeX knowledge is too weak). Any ideas where I'm going wrong or what else I might try?


title: What's the name of this timeline package in LaTeX?

text: I tried searching through many resources to identify the package that allows to create this type of time lines: ![Timeline](http://i.stack.imgur.com/dHwyh.jpg) but all in vain. Could anyone, please, point in the right direction?


title: latexdiff compiles broken file

text: I am using latexdiff for diffing 2 versions of a document and the file created breaks whenever there is as change to chapters, sections, subsections, etc, or when this chapters,sections are added or removed entirely from the text. latexdiff creates this when a section is added:               \DIFaddbegin \section{\DIFadd{Scope of the document}}     \DIFaddend       it creates this when a section is different:               \section{\DIFdelbegin \DIFdel{Scipe }\DIFdelend \DIFaddbegin \DIFadd{Scope }\DIFaddend of the document}      Both these lines break when compiling, giving the following statement: > ! Argument of \UL@word has an extra }. Can anyone help with my problem? Does anyone know of a better diff tool for latex files? PS: I use the command: > perl latexdiff old.tex new.tex > diff.tex


title: cleveref and marginfigure in memoir

text: I'm running into a problem when using cleveref to refer to marginfigures in memoir. The following code illustrates the problem (apologies for the somewhat long preamble, but I need the space in the margin to illustrate the problem):               \documentclass[a4paper,10pt]{memoir}     %%% formatting     \setstocksize{29.7cm}{21.0cm} % A4 stock     \settrimmedsize{27.94cm}{21.0cm}{*} % 27.94cm = 11in     \setlength{\trimtop}{0.0cm}     \setlength{\trimedge}{\stockwidth}     \addtolength{\trimedge}{-\paperwidth}     \settypeblocksize{23.94cm}{12.3cm}{*}     \setlrmargins{2.0cm}{*}{*}     \setulmargins{2.0cm}{*}{*}     \setmarginnotes{\onelineskip}{5.28cm}{\onelineskip}     \sidecapmargin{outer}     \setsidecaps{\onelineskip}{5.28cm}      \setsidecappos{t}     %%% clever referencing (should be loaded last)     \usepackage{cleveref}     \crefname{equation}{equation}{equations}     \Crefname{equation}{Equation}{Equations}     \crefname{figure}{figure}{figures}     \Crefname{figure}{Figure}{Figures}     %%%       \checkandfixthelayout        %%%        \begin{document}     \begin{equation}\label{eq:pyth}       a^2 + b^2 = c^2     \end{equation}       \Cref{eq:pyth} is known as Pythagoras' theorem.      \begin{marginfigure}       \rule{1.0cm}{1.0cm}       \label{fig:dummyfig}       \caption{dummyfig1}     \end{marginfigure}     This should be a reference to figure 1, but it comes out as      \cref{fig:dummyfig}.     \begin{equation}\label{eq:circ}       x^2 + y^2 = r^2     \end{equation}     \begin{equation}\label{eq:ell}       \left(\frac{x}{a}\right)^2 + \left(\frac{y}{b}\right)^2 = 1     \end{equation}     \Cref{eq:circ} describes a circle, \cref{eq:ell} an ellipse.      \begin{marginfigure}       \rule{2.0cm}{2.0cm}       \label{fig:dummyfig2}       \caption{dummyfig2}     \end{marginfigure}     This should be a reference to figure 2, but it comes out as      \cref{fig:dummyfig2}.     \end{document}      When you run this, the references to the figures turn out as references to the equations. Do I need to tell cleveref about the marginfigure environment in some way (I could not find anything in the newest manual) or is the marginfigure not supported yet by cleveref?


title: How to implement book style notes/usage fields?

text: I would like to implement Note style fields like in here (excerpt from https://developer.android.com/training/graphics/opengl/environment.html#manifest for demonstration) ![enter image description here](http://i.stack.imgur.com/gx6wv.png) How can I do this in LaTeX ? P.S. Please change the tags if I have chosen the wrong ones. **EDIT** I have came up with something more or less like this:               \vspace{1em}\hspace{1.5em}     \hbox{%     \vrule\hspace{.5em}\parbox{.9\textwidth}%     {     \textbf{Note:}     Text.....     }     }     \vspace{1em}      Which produces: ![enter image description here](http://i.stack.imgur.com/fRr7i.png) But I am having problems to define an environment with this.


title: pgfplots@y@inverseveclength ->infty

text: I'm experiencing problems with pgfplots. The following piece of code was automatically generated by a piece of software I'm working on.               \documentclass {standalone}     \errorcontextlines 10000     \usepackage{pgfplots, pgfplotstable}     \pgfplotsset{compat=1.10}      \pgfplotsset{single xbar legend/.style={legend image code/.code={\draw[##1,/tikz/.cd,bar width=6pt,bar shift=0pt,xbar] plot coordinates {(0.8em,0pt)};}}}     \begin{document}     \definecolor{fillbkgeleWjets}{rgb}{0.200000,0.600000,0.200000}     \definecolor{fillbkgeleZjets}{rgb}{0.600000,0.800000,0.600000}     \definecolor{fillbkgeletopttbar}{rgb}{1.000000,0.800000,0.200000}     \definecolor{fillbkgeletopsingletop}{rgb}{0.800000,0.600000,0.200000}     \definecolor{fillbkgeleDiBoson}{rgb}{0.400000,0.600000,0.800000}     \definecolor{fillsigeleSherpa}{rgb}{0.600000,0.800000,1.000000}     \definecolor{drawsigeleSherpa}{rgb}{1.000000,0.000000,0.000000}     \begin{tikzpicture}     \pgfplotstableread[col sep=comma]{     label,{dataele},{bkgeleWjets},{bkgeleZjets},{bkgeletopttbar},{bkgeletopsingletop},{bkgeleDiBoson},{sigeleSherpa}     {afterPresel},{0.605647},{0.265529},{0.0879903},{0.0320347},{0.0050964},{0.000518178},{0.00318414}     {mT > 40GeV w/ dphi/mjj cuts},{0.540969},{0.39966},{0.0377578},{0.0124966},{0.00496115},{0.000191084},{0.00396388}     }\datatable     \begin{axis}[         height=3*1.5em+2*5pt,  % this line is faulty, replace the '3' with '4' have it render without problem         enlarge y limits={abs=5pt},         xmin=0,         tick align=outside,         axis x line*=bottom,         axis y line*=left,         every y tick/.style={draw=none},         xbar stacked,            y dir=reverse,         scaled x ticks=false,         x tick label style={/pgf/number format/fixed},         enlarge x limits=false,         bar width=10pt,         ytick=data,         yticklabels from table={\datatable}{label},     ]     \addplot[] table [x=dataele, y expr=\coordindex] {\datatable};     \addplot[fill=fillbkgeleWjets] table [x=bkgeleWjets, y expr=\coordindex] {\datatable};     \addplot[fill=fillbkgeleZjets] table [x=bkgeleZjets, y expr=\coordindex] {\datatable};     \addplot[fill=fillbkgeletopttbar] table [x=bkgeletopttbar, y expr=\coordindex] {\datatable};     \addplot[fill=fillbkgeletopsingletop] table [x=bkgeletopsingletop, y expr=\coordindex] {\datatable};     \addplot[fill=fillbkgeleDiBoson] table [x=bkgeleDiBoson, y expr=\coordindex] {\datatable};     \addplot[fill=fillsigeleSherpa,draw=drawsigeleSherpa] table [x=sigeleSherpa, y expr=\coordindex] {\datatable};     \end{axis}     \end{tikzpicture}%     \end{document}      It seems like the exact value of the `height` parameter is causing problems - replacing the `3` with a `4` in the code causes the rendering to be fine, while the current version produces the following error - it seems like some of the math inside pgfplots produces `infty` as a result, which then fails to classify as a number.               ! Missing number, treated as zero.     <to be read again>                         i     \pgfplots@y@inverseveclength ->i                                     nfty     \pgfplotsconvertunittocoordinate ...gth\endcsname                                                        \pgf@xa \edef \pgfmathresu...          \pgfplots@scaling@apply@enlargelimits@by@dimension ...                                                       \edef \pgfplots@loc@TMPa {...          \pgfplots@initsizes ...argelimits@by@dimension {y}                                                       \ifpgfplots@threedim \pgfp...          \pgfplots@determinedefaultvalues ...ots@initsizes                                                        \pgfplots@check@and@apply@...          \endpgfplots@environment@opt ...minedefaultvalues                                                        \pgfplots@BEGIN@cell@pictu...          \end #1->\csname end#1\endcsname                                       \@checkend {#1}\expandafter \endgroup \if@e...     l.44 \end{axis}      Interestingly, replacing the `3` with a `2` causes a different error, which makes much more sense to me:               ! Package pgfplots Error: Error: Plot height `30.00003pt' is too small. This ca     nnot be implemented while maintaining constant size for labels. Sorry, label si     zes are only approximate. You will need to adjust your height..      Since the document is automatically generated, I only have limited control over the contents of the value of `height`. currently, the value is generated as follows: `(Number of barcharts + 1 [for axis labels]) * (lineheight [user input, default 1.5em]) + 2 * margin [user input, default 5pt])` I can change this calculation to anything sensible if neccessary, but I would like to keep it such that the user can control the size of the plot independently of the number of barcharts (because the program will spit out several such documents in each go with different numbers of barcharts which should have a consistent scaling for the same user input). If there's an option inside pgfplots that allows to do this, I'm happy to abandon the current procedure in favour of whatever works. While I would prefer to find a solution that makes the document render successfully in all cases, I would already be happy with something that works for sensible defaults in a sensible range of barcharts (1-20).


title: Braces in equations

text: This resembles what I want: ![enter image description here](http://i.stack.imgur.com/ORdn0.png) Unfortunately, both braces are too big. I would like the brace on the top to enclose the variables, that is, span from `(x_0` to `\x_i)`. The brace on the right should enclose only the equations. How can I fix this? * * * Code:               \begin{equation}       \left.       \overbrace{       \begin{array}{l@{\,}l}         F_1(x_0, x_1) & =0 \\         \vdots \qquad\qquad \ddots & \\         F_i(x_0, x_1, \dots ,x_i) & =0 \\       \end{array}       }^\textrm{$d_0+\cdots+d_i$\mbox{~variables}}       \right\} \quad d_1 + \cdots + d_i \mbox{~equations}     \end{equation}


title: How to define LyX to switch from Hebrew to English automatically when I pass to Math mode?

text: I am working in Hebrew in LyX and I want it to switch to English automatically when I pass to Math mode. Is it possible?


title: Why can't I renew the \label command in math mode?

text: When I'm writing a paper and want to refer to a section, figure or equation in a different part of the document, I end up spending a lot of time scrolling through my source code so that I can see what label I gave it. Since it's easier to scan through my pdf output than the text source, I had the idea to make this task a lot easier by temporarily overriding the `\label` command to display the label in the margin. This would save me a lot of cognitive load when working on the draft, and I could change it back once it's time to submit the final version. The `marginnote` package can put notes in the margin even within math mode, so I tried this:               \usepackage{marginnote}          \let\oldlabel\label     \renewcommand{\label}[1]{\marginnote{\scriptsize #1}\oldlabel{#1}}      This works great for section titles and figures, but for equations I don't see any note in the margin. Moreover, if I do               \renewcommand{\label}[1]{HELLO}      cross-references to equations are still correctly generated, and the "HELLO" doesn't appear in the equation. I tried putting this `\renewcommand` after the `\begin{document}`, but this doesn't make any difference. So what's going on here? Why can't I redefine `\label` in math mode, and is there a way to get around it? ## Addendum As @Werner points out in a comment, there are packages `showkeys` and `showlabels` that do what I was trying to do here. However, neither package offers the control over the labels' appearance that I would like, so I'm still interested in a way to roll my own version.


title: Is there a right way to do combined conditionals in LaTeX3?

text: I have some LaTeX3 code and I want to add a new feature. This will involve choosing between various actions at a particular point. There are two choices to be made, and these choices are independent. The times when I read in the choice and the time when the choice is acted upon are distinct, so I need to store the choice for a bit before reading it back. As there is one choice for each term in a list, I need to store the choices in a similar list. I can think of a variety of ways of doing this and am wondering if there is a current proper way (couldn't find it in `texdoc interface3`) or, if not, a particular way that is better than the others. Here are some ideas:   1. This is how I would do it in a language like lua: store an integer or string in the range 0-3 and test the bits. This is, though, a bit messy with integers (`if i%2 == 0 then` is simple enough but the second bit is more like `if (i/2)%2 < 1 then`) and easier with strings `if s:sub(1,1) == 0 then`).   2. Define two new booleans and store the requisite "setting" macros. So in a token list, I store the tokens `\bool_set_true:N \l_bool_a \bool_set_false:N \l_bool_b` and then execute it before doing `\bool_if:NTF` to figure out the actions to take. Here's what I might do in a LaTeX2 scenario in a one-shot version:               \documentclass{article}          \newif\ifchoicea     \newif\ifchoiceb          \def\saveifs{%       \edef\restoreifs{\expandafter\noexpand\csname choicea\ifchoicea     true\else false\fi\endcsname\expandafter\noexpand\csname     choiceb\ifchoiceb true\else false\fi\endcsname}     }          \def\stateofifs{%       Choice A is \ifchoicea true\else false\fi,       choice B is \ifchoiceb true\else false\fi.     }     \begin{document}          \stateofifs          \choiceatrue     \saveifs          \stateofifs          \emph{You wait.     Time passes}          \choicebtrue     \choiceafalse          \stateofifs          \restoreifs          \stateofifs     \end{document}      This produces:               Choice A is false, choice B is false.     Choice A is true, choice B is false.     You wait. Time passes     Choice A is false, choice B is true.     Choice A is true, choice B is false.      In my real use case, I'll store the "states" in an array. So in pseudo-code it might be something like:               while (getting_data) do         process_data         convert_choice_to_storable_form         push(choice_array,storeable_form)     end          do         something_complicated     end          while (rendering_data) do         pop(choice_array,storeable_form)         convert_storable_form_to_choices         foreach choice do             if choice then                 do_something_stupid             else                 do_something_clever             fi         end     end


title: Missing Fonts on OSX

text: I appear to have absolutely nothing but this ugly default font and a few common styles from the Palatino family. I'm a newbie at LaTeX, so I hope you can bear with me. But I'm running Mac OS 10.7.5 with TeX Live. I'm using XSLT to compose my `.tex` file, and I can access Palatino by inserting `\usepackage{palatino}`. The listing here suggests that Palatino is supposed to have its own styles for both small caps and old style numbering - and that LaTeX should support dozens more font families - but for the life of me I can't obtain any of these in my output PDF. It would seem that I need to install a whole bunch of fonts, but now I'm just groping in the dark. Please help! ## Example 1: Missing Small Caps in Palatino My small-caps are simulated by scaling the full-caps glyphs; they're apparently not the separate font style listed for Palatino. This produces unbalanced text weight. (See http://theworldsgreatestbook.com/book-design- part-5/.) This becomes obvious if I alternate between small-cap letter and explicitly scaled full-cap letter. They are 100% identical: ![Small-cap letters are NOT supposed to be identical to scaled-down full-cap characters!](http://i.stack.imgur.com/43qvv.png)               \documentclass[12pt]{book}     \usepackage{palatino}     \usepackage{fix-cm}     \def\switchcaps{\fontsize{8pt}{12pt}\selectfont}     \begin{document}     \fontsize{10pt}{12pt}\selectfont     \textsc{a}{\switchcaps{A}}\textsc{b}{\switchcaps{B}}\textsc{c}{\switchcaps{C}}\textsc{n}{\switchcaps{N}}\textsc{u}{\switchcaps{U}}     \end{document}      Log file: http://pastebin.com/43YHxqkg ## Example 2: Missing Oldstyle Numbers in Palatino When I use `\oldstylenums`, I get the proper style but in a default font, not in Palatino. I found this as a way to access Palatino's oldstyle numbering directly: [Utilizing oldstyle figures without resorting to \oldstylenums], but it doesn't work.               \documentclass[12pt]{book}     \usepackage{palatino}     \begin{document}     \renewcommand*\rmdefault{pplj}     Testing \textsc{Testing} 0123456789     \end{document}      Log file: http://pastebin.com/8ebHB1EE ## Example 3: Missing Font Families (e.g. Day Roman) Any other font I try is missing altogether. If it compiles at all it resorts to the default font. Here is an example following the "Usage" directions here: http://www.tug.dk/FontCatalogue/dayrom/               \documentclass[12pt]{book}     \renewcommand*\rmdefault{dayrom}     \usepackage[T1]{fontenc}     \begin{document}     Testing \textsc{Testing} \oldstylenums{0123456789}     \end{document}      Log file: http://pastebin.com/vj7hgdmf


title: How do I change the color of one axis in pgfplots?

text: I know how to change the color for all axis in pgfplots:               \begin{axis}[blue]     \end{axis}      This makes all four edges of the plot blue. Another example is there: PGFPlots: Change the color of axis lines Question: How do I only change the color on one of the axis, for example the left y-axis?


title: Environment prints same character at beginning of each output line

text: I am writing a Latex document with pseudocode interspersed with theorems and discussion. Some of the comments in the pseudocode are long. I would like to automatically start (and end) each output line of the comment with a hash sign, or an asterisk or a percentage sign, the way people often do when, for example, they write C++ or Matlab. The only way I know how to do this is to use \obeylines and put the desired character into the latex source. However, this leads to lines that are undesirably short or long. Is there a convenient way to achieve what I'm after?


title: Vertical spacing between character and \hat

text: I am trying to typeset `\hat{V}` but it turns out not looking right. The hat is too close to the V so it is difficult to decipher the hat on the V. Is there a way to increase the vertical space between the V and the hat? Thanks


title: How to treat verbatim as a block that can be referenced just like a figure?

text: This code for example:               \begin{verbatim}     int main()     {     }     \end{verbatim}      How to add a label below it to be referenced?               int main()     {     }       [code 1]


title: Multiple paragraphs break custom command

text: first of all sorry if the question seems repetitive: I have tried to find a solution in previously asked questions but none of the hints provided seems to work for me. Here is my situation. I am writing a new class to typeset my thesis (and hopefully help other students who would like to use LaTeX instead of Hangul) by customizing the memoir package. Everything ran smoothly until I became stuck in this: I have a number of custom commands that define variables which are then output by the command `\prelims` (see code below).               \newcommand*{\supervisor}[1]{\gdef\KNUsupervisor{#1}}     \newcommand*{\department}[1]{\gdef\KNUdepartment{#1}}     \newcommand*{\major}[1]{\gdef\KNUmajor{#1}}     \newcommand*{\degree}[1]{\gdef\KNUdegree{#1}}          %%% \asbtractEN     \newcommand*{\abstractEN}[1]     {       \gdef\KNUabstractEN       {         {           \begin{center}           \@title           \vspace{1em}                \@author           \vspace{1em}                School of \KNUdepartment \\           Major in \KNUmajor \\           The Graduate School \\           (Supervised by Professor \KNUsupervisor)           \end{center}           \vspace{2em}                (Abstract)           \vspace{1em}               \mbox{#1}         }       }     }          \newcommand{\prelims}{     \frontmatter     \tableofcontents \newpage     \listoffigures \newpage     \listoftables \newpage     \cleardoublepage     \phantomsection     \addcontentsline{toc}{chapter}{Abstract}     \KNUabstractEN          \mainmatter     \setcounter{secnumdepth}{2}     }      My problem is that when specifying an abstract consisting of multiple paragraphs, such as               \abstractEN{     Par1          Par2     }      the compiler kindly spits at me with the "usual" `Paragraph ended before \abstractEN was complete.` I have tried putting the argument in a separate block, in a box, and even in a minipage, but the error persists. Any helpful soul around? P.S. Any errors in English in the abstract command are strictly required by our University's template -.-


title: Change footer and header background color for style simple in powerdot

text: I am using the style _simple_ for creating slides with powerdot:               \documentclass[style=simple]{powerdot}          \begin{document}          \begin{slide}{First slide}       Hello world!     \end{slide}          \end{document}      While the style is otherwise good, I would like to use different background color than white for the header and the footer (match the color to my university's logo). How could I do this?


title: Babel + Hebrew + aeguill incompatiblility

text: (Question split off from here.) If you try to use the aeguill package (which adds some guillemets to the ae fonts) with Babel and Hebrew:               \documentclass{standalone}     \usepackage[english,hebrew]{babel}     \usepackage{aeguill}          \begin{document}     Blah.     \end{document}      you get: > LaTeX Font Warning: Font shape `HE8/aer/m/n' undefined (Font)   >  using `HE8/cmr/m/n' instead on input line 2. > > ("C:\Documents and Settings\All Users.WINXP\Application > Data\MiKTeX\2.9\tex\gen eric\babel\he8cmr.fd")) ! Corrupted NFSS tables. > wrong@fontshape ...message {Corrupted NFSS tables} error@fontshape else let > f... l.6 \begin{document} How can this be overcome? Notes:   * The guillemets are not so interesting for English of course.   * The commented-out inputenc line is what you'd need to actually insert any Hebrew, but it's not necessary to trigger the error.   * Suggestions to switch to XeLaTeX are not relevant.   * For the sake of completeness, here's an MWE with guillemets:              \documentclass{article}     \usepackage[english,hebrew]{babel}     \usepackage{aeguill}     \begin{document}     \selectlanguage{hebrew}     שלום עולם.     \selectlanguage{english}     Some guillemets: « Le quicqe brun Foxe a jumpee sur le laizie      Chien. » ... these should look nicer with \texttt{aeguill}.     \end{document}


title: Interline spacing

text: What TeX/LaTeX parameter specifies the distance between:   * the bottom of one line and   * the top of another line I don't think baseline skip is what I want (since it measures the distance between the baseline of of two lines). I want to make sure that there is at least a 2pt margin between the bottom of one line and the top of another line.


title: Additional author information

text: Is it possible to add additional information like date of birth and death to an author index which is generated by MakeIndex? When possible, how can I do this?


title: Navigation frames in sidebar

text: I am writing a beamer presentation and I want to show a circle for each frame on the navigation sidebar. Can this be done? Here's a MWE:               \documentclass{beamer}          % Set Theme     \usetheme{Marburg}     \usecolortheme{beaver}          % Set sections in sidebar color     \makeatletter{}         \setbeamercolor{section in sidebar}{fg=yellow}         \setbeamercolor{section in sidebar shaded}{fg=white}     \setbeamercolor{title in sidebar}{fg=yellow}     \setbeamertemplate{section in toc}[sections numbered]     \setbeamertemplate{section in sidebar right}[sections numbered]     \makeatother{}          \begin{document}          \begin{frame}{Outline}         \tableofcontents     \end{frame}          \section{sec1}     \begin{frame}{frame1.1}             blah, blah, blah         \end{frame}     \begin{frame}{frame1.2}             blah, blah, blah         \end{frame}          \section{sec2}     \begin{frame}{frame2.1}             blah, blah, blah         \end{frame}     \begin{frame}{frame2.2}             blah, blah, blah         \end{frame}          \end{document}      any ideas?


title: How do I prevent LyX from loading fontspec automatically?

text: I would like to use non-TeX fonts in LyX. To do this, I use the **Document->Setting->Use non-TeX fonts** setting. This setting causes LyX to insert the `\usepackage{fontspec}` statement automatically into the preamble. However, I would like to load the **fontspec** with specific options. I have tried to do `\usepackage[LY1,T1]{fontspec}` for example. Even with this LyX still does `\usepackage{fontspec}` and I end up with two statements which both load `fontspec` in the preamble. I have tried using the command `Provides fontspec 1` in the layout file in the hope that LyX would not load `fontspec` automatically. It still does. What is interesting is that LyX does the automatic package loading on a line that precedes the one on which I ask it to load `fontspec` with specified options. Does somebody have an idea of how I could condition LyX to let me load `fontspec` with the required options without it loading `fontspec` automatically?


title: Italic greek letters, upright operators and working partial sign with unicode-math and TeX Gyre Pagella

text: I need upright math operators such as `\sin`, `\tan` etc., italic uppercase greek letters and a working `\partial` operator. With the code below I was able to get two out of three, but I was told that it's not the recommended way of achieving what I need (see comments). And I still need a `\partial` sign.               \documentclass[convert]{standalone}          \usepackage[math-style=ISO]{unicode-math}     \usepackage{amsmath}          \usepackage{fontspec}     \setmainfont[Ligatures=TeX]{TeX Gyre Pagella}     \setsansfont[Ligatures=TeX,Scale=.9]{TeX Gyre Heros}     \setmonofont[Scale=MatchLowercase]{TeX Gyre Cursor}     \setmathfont[Ligatures=TeX]{TeX Gyre Pagella Math}     \setmathfont[range=\mathup]  {TeX Gyre Pagella}     \setmathfont[range=\mathbfup]{TeX Gyre Pagella Bold}     \setmathfont[range=\mathbfit]{TeX Gyre Pagella Bold Italic}     \setmathfont[range=\mathit]  {TeX Gyre Pagella Italic}          \begin{document}          $x\partial x$          \end{document}      How can I get all three things working?


I want to draw a trimmed ruler, for example, from `2.3cm` to `3.9cm` where the distance between two consecutive marks is `1mm`. I have difficulty to efficiently check whether or not the counter is a multiple of 5 or 10. If the counter is a multiple of 5 then the mark is `6pt` long else if the counter is a multiple of 10 then the mark is `9pt` long plus printing the quotient as a label. The following is my complete code.               \documentclass[pstricks,border=12pt]{standalone}     \usepackage[nomessages]{fp}     \usepackage{multido}     \newcommand\Ruler[2]{%     \FPeval\start{round(10*#1:0)}%     \FPeval\stop{round(10*#2:0)}%     \FPeval\width{round(stop-start:0)}%     \FPeval\count{round(\width+1:0)}     \psset{xunit=\dimexpr\psxunit/10}     \begin{pspicture}[linecap=2](\width,1)         \psline(\width,0)         \multido{\ix=0+1,\i=\start+1}{\count}{%             \FPeval\quo{trunc(\i/5:0)}             \FPeval\rem{round(\i-5*quo:0)}             \psline(\ix,0)(\ix,3pt)             \FPifzero\rem                 \psline(\ix,0)(\ix,6pt)% if \i can be defined by 5             \fi             \FPeval\quo{trunc(\i/10:0)}             \FPeval\rem{round(\i-10*quo:0)}             \FPifzero\rem                 \psline(\ix,0)(\ix,9pt)% if \i can be defined by 10                 \uput[90](\ix,6pt){\quo}% if \i can be defined by 10 and put the result of \i divided by 10             \fi         }     \end{pspicture}\ignorespaces     }          \begin{document}     \Ruler{2.3}{3.9}     \end{document}      ![enter image description here](http://i.stack.imgur.com/qRloa.png) Is there a better way to check divisibility in LaTeX?


title: Biblatex, Use of prefixnumber changes indentation of all subbibliographies

text: I have a problem with my three subbibliographies. I am using two styles numeric and alphabetic. In one of the subbibliographies I would like to use a prefixnumber. Unfortunately this affects also the other two in the way, that the margin is being shifted by the length of the prefixnumber. Here is a MWE of my problem.                 \documentclass[a4paper,oneside]{article}            \usepackage{filecontents}       \begin{filecontents*}{bib.bib}       @Article{aksin,         author       = {Aks{\i}n, {\"O}zge and T{\"u}rkmen, Hayati and Artok, Levent                         and {\k{C}}etinkaya, Bekir and Ni, Chaoying and                         B{\"u}y{\"u}kg{\"u}ng{\"o}r, Orhan and {\"O}zkal, Erhan},         title        = {Effect of immobilization on catalytic characteristics of                         saturated Pd-N-heterocyclic carbenes in Mizoroki-Heck                         reactions},         journaltitle = jomch,         date         = 2006,         volume       = 691,         number       = 13,         pages        = {3027-3036},         indextitle   = {Effect of immobilization on catalytic characteristics},       }            @Article{angenendt,         author       = {Angenendt, Arnold},         title        = {In Honore Salvatoris~-- Vom Sinn und Unsinn der                         Patrozinienkunde},         journaltitle = {Revue d'Histoire Eccl{\'e}siastique},         date         = 2002,         volume       = 97,         pages        = {431--456, 791--823},         hyphenation  = {ngerman},         indextitle   = {In Honore Salvatoris},         shorttitle   = {In Honore Salvatoris},         annotation   = {A German article in a French journal. Apart from that, a                         typical \texttt{article} entry. Note the \texttt{indextitle}                         field},       }            @Article{baez/article,         author       = {Baez, John C. and Lauda, Aaron D.},         title        = {Higher-Dimensional Algebra V: 2-Groups},         journaltitle = {Theory and Applications of Categories},         date         = 2004,         volume       = 12,         pages        = {423-491},         version      = 3,         eprint       = {math/0307200v3},         eprinttype   = {arxiv},         hyphenation  = {english},         annotation   = {An \texttt{article} with \texttt{eprint} and                         \texttt{eprinttype} fields. Note that the arXiv reference is                         transformed into a clickable link if \texttt{hyperref} support                         has been enabled.  Compare \texttt{baez\slash online}, which                         is the same item given as an \texttt{online} entry},       }       \end{filecontents*}                 \usepackage[T1]{fontenc}            \usepackage[polish,ngerman,english]{babel}       \usepackage[babel,german=quotes]{csquotes}       \usepackage[style=numeric,sorting=none,defernumbers,labelalpha,babel=other,backend=biber]{biblatex}       \addbibresource{bib.bib}            \DeclareBibliographyCategory{student_works}       \DeclareBibliographyCategory{own_pubs}       \addtocategory{student_works}{angenendt}       \addtocategory{own_pubs}{baez/article}                 \DeclareCiteCommand{\cite}[\mkbibbrackets]         {\usebibmacro{prenote}}          {\ifcategory{student_works}            {{\usebibmacro{citeindex}%                \printtext[bibhyperref]{%                  \printfield{prefixnumber}%                  \printfield{labelalpha}}}}            {{\usebibmacro{citeindex}%                \printtext[bibhyperref]{%                  \printfield{prefixnumber}%                  \printfield{labelnumber}}}}}%         {\multicitedelim}%         {\usebibmacro{postnote}}%                 \defbibenvironment{student_works_env}         {\list            {\printtext[labelalphawidth]{%             \printfield{prefixnumber}%              \printfield{labelalpha}}}            {\setlength{\labelwidth}{\labelalphawidth}%             \setlength{\leftmargin}{\labelwidth}%             \setlength{\labelsep}{\biblabelsep}%             \addtolength{\leftmargin}{\labelsep}%             \setlength{\itemsep}{\bibitemsep}%             \setlength{\parsep}{\bibparsep}}%             \renewcommand*{\makelabel}[1]{\hss##1}}         {\endlist}         {\item}       \DeclareFieldFormat{labelalphawidth}{\mkbibbrackets{#1}}                 \begin{document}            \cite{aksin}       \cite{angenendt}       \cite{baez/article}            \printbibliography[notcategory=student_works,notcategory=own_pubs,heading=bibintoc]            \printbibliography[title=Second Bib,category=student_works,heading=bibintoc,sorting=ynt,env=student_works_env]            \printbibliography[title=Third Bib,category=own_pubs,heading=bibintoc,sorting=ynt,prefixnumbers={VERYLONGPREFIX--}]            \end{document}      The result looks like this ![enter image description here](http://i.stack.imgur.com/DVUpl.png) I would appreciate any help!


title: Inline citation with BibTeX

text: I'm writing my graduation project in TeX, using a model from my university, which uses BibTeX and natbib for citations. The problem I'm trying to solve is: how to make inline citations like `Author (year)`? By using `\citet{}` I achieved `AUTHOR (year)`, but I wished to make it only first-letter-capitalized instead of all-caps. Unfortunately, I'm looking for solutions which involve only BibTeX and natbib, since I can't change to BibLaTeX due to model constraints.


title: Insert 2 PDF pages presentation per Book page, keeping the header/footer style of the book

text: I would like to insert a presentation pdf (which contains several pages - Landscape format) in my report (book Style) keeping the header and footer of the report, 2 slides per pages. I am wondering if they are some specific packages for that. Thank you in advance for your help.


title: Fontspec warning about lining numbers not being available in font

text: Using the sans serif font Linux Biolinum, I set the `Numbers` option to `Lining`, in order to use normal numbers. This gives the following warning message (twice):               *************************************************     * fontspec warning: "icu-feature-not-exist-in-font"     *      * OpenType feature 'Numbers=Lining' (+lnum) not available for font 'Linux     * Biolinum O/B' with script 'Latin' and language 'Default'.     *************************************************      The output nevertheless correctly prints normal lining numbers. What's going on here? Below a MWE with output.               \documentclass{article}     \usepackage{fontspec}     \setsansfont[Numbers = Lining]{Linux Biolinum O}          \begin{document}     Numbers: \textsf{0123456789}     \end{document}      ![enter image description here](http://i.stack.imgur.com/q54jw.png)


title: Labelling three-column array

text: I got this code:               $$\begin{array}{lcr}     a_{11}\cdot x_1+a_{12}\cdot x_2 &+ … + &a_{1n}\cdot x_n=\alpha_1 \\     a_{21}\cdot x_1+a_{22}\cdot x_2 &+…+&a_{2n}\cdot x_n=\alpha_2 \\     &\vdots & \\     a_{m1}\cdot x_1+a_{m2}\cdot x_2 &+…+&a_{mn}\cdot\ x_n=\alpha_m      \end{array}$$      And I want to put a label outside to the right, giving the following PDF output:               Eq    =    my number     Eq2   =        umber  (2.2)     Eq3   =      two xer       How can I achieve this? It is important that the first column is left-aligned, the middle-column is centered, and the third-column is right-aligned.


title: Journaltitle and journal alias in Biblatex

text: I use Jabref for my `bib` files and even in Biblatex mode, the journal title is still saved under `journal`. Since updating Biblatex, it no longer supports this backwards compatibility so journal titles are not appearing in my bibliography. I could find+replace `journal =` to `journaltitle =` in my `bib` file but then Jabref doesn't recognise the title and I can't manage the journal abbreviations using the built-in functions. So I would like to make Biblatex recognise `journal` as an alias for `journaltitle`. I tried               \renewbibmacro*{journal}{%       \iffieldundef{journal}        {}        {\printtext[journaltitle]{%           \printfield[titlecase]{journal}%           \setunit{\subtitlepunct}%           \printfield[titlecase]{journalsubtitle}}}}      in the `bbx` file but this didn't work. Does anybody have any ideas? ## Edit 1: MWE Here is an example of what I mean. Change `journal` to `journaltitle` and the journal title appears in the references. Otherwise it doesn't.               \documentclass{article}     \usepackage{filecontents}     \begin{filecontents}{\jobname.bib}     @Article{elvis,         author = "Elvis Presley",         title = "Turn Me One More Time",         journal = "Jail House Books",         year = 1963,     }     \end{filecontents}          \usepackage[backend=biber]{biblatex}     \addbibresource{\jobname.bib}          \begin{document}     Here is a citation by \textcite{elvis}.          \printbibliography     \end{document}      ## Edit 2 I have `biber 1.4` and `biblatex 2.3` rather than `2.4`... I've tried updating but the MikTex package manager says everything is up to date. Could this be the problem? Also during the build, a warning appears saying `Found biblatex control file version 2.1, expected version 2.2` Could this also be a problem? Also, I'm using MikTex 2.9 From my last update log (which is when this problem arose), four packages were updated,               extracting files from glossaries.tar.lzma...     extracting files from miktex-biber-bin.tar.lzma...     extracting files from miktex-misc.tar.lzma...     extracting files from miktex-texinfo-base.tar.lzma...      So it seems something in `biber` was updated.


title: Define a (real valued) variable in TikZ/LaTeX

text: I want to generate a TikZ image from a `foreach` loop, where some coordinates change within this loop. How can I do something as simple as               float x = 0.5;     x += 0.1;      in TikZ/LaTeX? I searched on tex.stackexchange and the TikZ manual, but I only found counters (which are integer..). * * * I want to draw a barplot like this one: http://www.statistiker- wg.de/pgf/tutorials/barplot.htm (bottom of the page, pdf file: http://www.statistiker-wg.de/pgf/pics/barplot4.pdf), but I don't want to specify the x coordinates manually.                 \definecolor{myblue}{HTML}{92dcec}            \begin{tikzpicture}            \draw (0cm,0cm) -- (15.5cm,0cm);  %Abzisse       \draw (0cm,0cm) -- (0cm,-0.1cm);  %linkes Ende der Abzisse       \draw (15.5cm,0cm) -- (15.5cm,-0.1cm);  %rechtes Ende der Abzisse            \draw (-0.1cm,0cm) -- (-0.1cm,4.5cm);  %Ordinate       \draw (-0.1cm,0cm) -- (-0.2cm,0cm);  %unteres Ende der Ordinate       \draw (-0.1cm,4.5cm) -- (-0.2cm,4.5cm) node [left] {\%};  %oberes Ende der Ordinate            \foreach \x in {1,...,4}  %Hilfslinien         \draw[gray!50, text=black] (-0.2 cm,\x cm) -- (15.5 cm,\x cm)            node at (-0.5 cm,\x cm) {\x};  %Beschriftung der Hilfslinien              \node at (7.5cm,5cm) {Wachstumsrate des realen BIP für die zehn                                Bevölkerungsreichsten Staaten der EU 2005};  %Überschrift            \foreach \x/\y/\country in {0.5/4.1/Rumänien,  %\x ist Anfang der Säulen                                   2/3.7/Griechenland,  %\y ist Höhe der Säulen                                   3.5/3.5/Spanien,                                   5/3.5/Polen,                                   6.5/1.9/Großbritannien,                                   8/1.5/Niederlande,                                   9.5/1.2/Frankreich,                                   11/0.9/Deutschland,                                   12.5/0.5/Portugal,                                   14/0.1/Italien}         {          \draw[fill=myblue] (\x cm,0cm) rectangle (1cm+\x cm,\y cm) %die Säulen            node at (0.5cm + \x cm,\y cm + 0.3cm) {\y}; %die Prozente über den Säulen          \node[rotate=45, left] at (0.6 cm +\x cm,-0.1cm) {\country}; %Säulenbeschriftung         };          \end{tikzpicture}


title: How do I draw cells around numbers/letters?

text: Given this: 0 1 2 3 t e s t How can I draw cells around numbers and letters as well? Of course they also have to be centered. I tried the table command but I got stuck               \begin{table}[ht]     \caption{Buffer }       \centering          \begin{tabular}{c c c c}


title: How to write a code to find the Pythagorean Triples

text: I want to write a code to make a table contains Pythagorean Triples (see picture) automatically. That is mean from the formulas `$a^2 + b^2 = c^2$` , we can get the Pythagorean Triples ![enter image description here](http://i.stack.imgur.com/XfCMC.jpg) I used Mathematica, convert to TeX, I get ![enter image description here](http://i.stack.imgur.com/ORqg6.jpg) the code of Mathematica is               \left(     \begin{array}{ccc}      3 & 4 & 5 \\      5 & 12 & 13 \\      7 & 24 & 25 \\      8 & 15 & 17 \\      9 & 12 & 15 \\      9 & 40 & 41 \\      11 & 60 & 61 \\      12 & 35 & 37 \\      13 & 84 & 85 \\      15 & 20 & 25 \\      15 & 36 & 39 \\      15 & 112 & 113 \\      16 & 63 & 65 \\      17 & 144 & 145 \\      19 & 180 & 181 \\      20 & 21 & 29 \\      20 & 99 & 101 \\      21 & 28 & 35 \\      21 & 72 & 75 \\      21 & 220 & 221 \\      23 & 264 & 265 \\      24 & 45 & 51 \\      24 & 143 & 145 \\      25 & 60 & 65 \\      27 & 36 & 45 \\      27 & 120 & 123 \\      28 & 45 & 53 \\      28 & 195 & 197 \\      32 & 255 & 257 \\      33 & 44 & 55 \\      33 & 56 & 65 \\      33 & 180 & 183 \\      35 & 84 & 91 \\      35 & 120 & 125 \\      36 & 77 & 85 \\      36 & 105 & 111 \\      39 & 52 & 65 \\      39 & 80 & 89 \\      39 & 252 & 255 \\      40 & 75 & 85 \\      44 & 117 & 125 \\      45 & 60 & 75 \\      45 & 108 & 117 \\      45 & 200 & 205 \\      48 & 55 & 73 \\      48 & 189 & 195 \\      49 & 168 & 175 \\      51 & 68 & 85 \\      51 & 140 & 149 \\      52 & 165 & 173 \\      55 & 132 & 143 \\      55 & 300 & 305 \\      56 & 105 & 119 \\      57 & 76 & 95 \\      57 & 176 & 185 \\      60 & 63 & 87 \\      60 & 91 & 109 \\      60 & 175 & 185 \\      60 & 221 & 229 \\      60 & 297 & 303 \\      63 & 84 & 105 \\      63 & 216 & 225 \\      63 & 280 & 287 \\      65 & 72 & 97 \\      65 & 156 & 169 \\      68 & 285 & 293 \\      69 & 92 & 115 \\      69 & 260 & 269 \\      72 & 135 & 153 \\      75 & 100 & 125 \\      75 & 180 & 195 \\      77 & 264 & 275 \\      81 & 108 & 135 \\      84 & 135 & 159 \\      84 & 187 & 205 \\      84 & 245 & 259 \\      85 & 132 & 157 \\      85 & 204 & 221 \\      87 & 116 & 145 \\      88 & 105 & 137 \\      88 & 165 & 187 \\      93 & 124 & 155 \\      95 & 168 & 193 \\      95 & 228 & 247 \\      96 & 247 & 265 \\      99 & 132 & 165 \\      99 & 168 & 195 \\      100 & 105 & 145 \\      104 & 153 & 185 \\      104 & 195 & 221 \\      105 & 140 & 175 \\      105 & 208 & 233 \\      105 & 252 & 273 \\      108 & 231 & 255 \\      111 & 148 & 185 \\      115 & 252 & 277 \\      115 & 276 & 299 \\      117 & 156 & 195 \\      117 & 240 & 267 \\      119 & 120 & 169 \\      120 & 209 & 241 \\      120 & 225 & 255 \\      123 & 164 & 205 \\      125 & 300 & 325 \\      129 & 172 & 215 \\      133 & 156 & 205 \\      135 & 180 & 225 \\      136 & 255 & 289 \\      136 & 273 & 305 \\      140 & 147 & 203 \\      140 & 171 & 221 \\      140 & 225 & 265 \\      141 & 188 & 235 \\      144 & 165 & 219 \\      147 & 196 & 245 \\      152 & 285 & 323 \\      153 & 204 & 255 \\      159 & 212 & 265 \\      160 & 231 & 281 \\      161 & 240 & 289 \\      165 & 220 & 275 \\      165 & 280 & 325 \\      171 & 228 & 285 \\      175 & 288 & 337 \\      177 & 236 & 295 \\      180 & 189 & 261 \\      180 & 273 & 327 \\      180 & 299 & 349 \\      183 & 244 & 305 \\      189 & 252 & 315 \\      195 & 216 & 291 \\      195 & 260 & 325 \\      201 & 268 & 335 \\      204 & 253 & 325 \\      207 & 224 & 305 \\      207 & 276 & 345 \\      213 & 284 & 355 \\      219 & 292 & 365 \\      220 & 231 & 319 \\      225 & 272 & 353 \\      225 & 300 & 375 \\      240 & 275 & 365 \\      252 & 275 & 373 \\      260 & 273 & 377 \\      6 & 8 & 10 \\      10 & 24 & 26 \\      12 & 16 & 20 \\      14 & 48 & 50 \\      16 & 30 & 34 \\      18 & 24 & 30 \\      18 & 80 & 82 \\      20 & 48 & 52 \\      22 & 120 & 122 \\      24 & 32 & 40 \\      24 & 70 & 74 \\      26 & 168 & 170 \\      28 & 96 & 100 \\      30 & 40 & 50 \\      30 & 72 & 78 \\      30 & 224 & 226 \\      32 & 60 & 68 \\      32 & 126 & 130 \\      34 & 288 & 290 \\      36 & 48 & 60 \\      36 & 160 & 164 \\      40 & 42 & 58 \\      40 & 96 & 104 \\      40 & 198 & 202 \\      42 & 56 & 70 \\      42 & 144 & 150 \\      44 & 240 & 244 \\      48 & 64 & 80 \\      48 & 90 & 102 \\      48 & 140 & 148 \\      48 & 286 & 290 \\      50 & 120 & 130 \\      54 & 72 & 90 \\      54 & 240 & 246 \\      56 & 90 & 106 \\      56 & 192 & 200 \\      60 & 80 & 100 \\      60 & 144 & 156 \\      64 & 120 & 136 \\      64 & 252 & 260 \\      66 & 88 & 110 \\      66 & 112 & 130 \\      70 & 168 & 182 \\      70 & 240 & 250 \\      72 & 96 & 120 \\      72 & 154 & 170 \\      72 & 210 & 222 \\      78 & 104 & 130 \\      78 & 160 & 178 \\      80 & 84 & 116 \\      80 & 150 & 170 \\      80 & 192 & 208 \\      84 & 112 & 140 \\      84 & 288 & 300 \\      88 & 234 & 250 \\      90 & 120 & 150 \\      90 & 216 & 234 \\      96 & 110 & 146 \\      96 & 128 & 160 \\      96 & 180 & 204 \\      96 & 280 & 296 \\      100 & 240 & 260 \\      102 & 136 & 170 \\      102 & 280 & 298 \\      108 & 144 & 180 \\      110 & 264 & 286 \\      112 & 180 & 212 \\      112 & 210 & 238 \\      114 & 152 & 190 \\      120 & 126 & 174 \\      120 & 160 & 200 \\      120 & 182 & 218 \\      120 & 288 & 312 \\      126 & 168 & 210 \\      128 & 240 & 272 \\      130 & 144 & 194 \\      132 & 176 & 220 \\      132 & 224 & 260 \\      138 & 184 & 230 \\      144 & 192 & 240 \\      144 & 270 & 306 \\      150 & 200 & 250 \\      156 & 208 & 260 \\      160 & 168 & 232 \\      160 & 300 & 340 \\      162 & 216 & 270 \\      168 & 224 & 280 \\      168 & 270 & 318 \\      170 & 264 & 314 \\      174 & 232 & 290 \\      176 & 210 & 274 \\      180 & 240 & 300 \\      186 & 248 & 310 \\      192 & 220 & 292 \\      192 & 256 & 320 \\      198 & 264 & 330 \\      200 & 210 & 290 \\      204 & 272 & 340 \\      210 & 280 & 350 \\      216 & 288 & 360 \\      222 & 296 & 370 \\      238 & 240 & 338 \\      240 & 252 & 348 \\      260 & 288 & 388 \\      280 & 294 & 406 \\     \end{array}     \right)


title: What makes the following expression produce a wrong rotated point?

text: I want to rotate point `B` 30 degrees counterclockwise about `A` to produce a new point `C`. However, I failed to get the correct `C` as illustrated below. The red circle helps us to notice the issue easily.               \documentclass[pstricks,border=12pt]{standalone}     \usepackage{pst-eucl}     \psset{saveNodeCoors}     \begin{document}     \begin{pspicture}[showgrid](6,6)         \pstGeonode             (1,1){A}             (5,3){B}             (!N-B.y N-A.y sub 2 exp  N-B.x N-A.x sub 2 exp add sqrt N-B.y N-A.y sub N-B.x N-A.x sub atan 30 add PtoC){C}         \pstCircleOA[linecolor=red]{A}{B}     \end{pspicture}     \end{document}      ![enter image description here](http://i.stack.imgur.com/iuMVu.png) ## Notes Don't suggest me to use `\pstRotation` as I already know it and it is not my interest. You might suggest me to use `([angle=30,nodesep=]{B}A)`, but the problem is that `nodesep` must be assigned with an absolute value. It might be a good idea to add a new key, for example, `relnodesep` to `([angle=30,...]{B}A)` syntax so we can solve this problem by just writing `([angle=30,relnodesep=1]{B}A)`.


title: How to combine LaTeX fonts with system fonts in XeLaTeX

text: I am using URW Palladio L for my main text font. I have no math font of URW Palladio L on my system installed, but I like the math font of Bitstream Charter. Alternateively I could also use the URW Palladio font of LaTeX. This is how I set my main font               \setmainfont{URW Palladio L}      What about the math font? Should I use `\setmathfont`, but to what value, it's not a system font. If I simply add the package, it looks like I get the behavior I want, except that the font for the Bibliography heading, title etc. becomes a font I have not seen yet.               \usepackage[bitstream-charter]{mathdesign}      This seems really bogus, how I solve this properly?


title: Adding the date of adding todo-note

text: As is -I suspect- usual is that while writing documents sometimes one skips writing certain parts for a cornucopia of reasons. For me that is usually because I am too lazy at the moment. In an case, then I have the following command to make a todo-note (can look better, I know):               \newcommand{\todo}[1]{ \vspace{5 mm} \par     \noindent \framebox{     \begin{minipage}     [c]{0.94 \textwidth}     \tt #1 \flushright  TODO     \end{minipage}     }     \vspace{5 mm} \par     }      I have obtained this some time ago from here. My question is how I add the date of adding the todo-note? One can assume that at least I compile the file on the same day as I added the todo-note, so to me, this sounds like the LaTeX process should store this in an auxiliary file (preferable one that already exists). How do I do this?


title: TikZ: Printing press cannot print document due to RGB colors, layers and transparency

text: The place I print my thesis needs the PDF file to conform to certain demands. Demands I was not aware of prior to sending them the document. So, here is the challenge: Using PGF/TikZ how can I bulk change colors to CMYK and, if possible, flatten layered figures while retaining the visual properties I have made them with? I am, for example, placing scale bars on images and spy nodes of images in a foreground layer and the images themselves on the main layer.


title: Place chapter heading in margin

text: I'm using the memoir class. I would like the \chapter{xxx} command to place the chapter heading in the margin instead of above the text. Like this: ![Chapter heading in margin](http://i.stack.imgur.com/bTGud.png) This question is somewhat similar, but in that question the person wanted the chapter title in the margin of _every_ page. My request is simpler (I hope). I want the chapter title in the margin of the first page instead of above the text. Do I need to use a similar complex mechanism, or is there a simpler way to achieve what I want?


title: Pulling up the whole text body

text: ![enter image description here](http://i.stack.imgur.com/LX49n.jpg) I want to pull up the whole text body nearer to the header so that I can have some spacing below. Please suggest how to do this. I am using the following coding -               \pagenumbering{arabic}     \pagestyle{fancy}     \chapter{$\Lambda$-Modules}      \label{ch:lambda}     \rhead{$\Lambda$-Modules}     \lhead{Chapter \ref{ch:lambda}}     \cfoot{\thepage}