title: Problem in sciposter and \input command with figures

text: I'm making an a0 `sciposter` in LaTeX. I'm having problems when adding figures in tex+pdf files with the `\input` command. The problem is that the figure's text is too big for my figure. For example, the same figure in `beamer` (or a common LaTeX document) appears as the following image: ![Skeleton figure in beamer](http://i.stack.imgur.com/u6MFA.png) But the same image in my `sciposter` is as follows: ![Skeleton figure in sciposter](http://i.stack.imgur.com/GRjOa.png) The figure insertion code for both (`sciposter` and `beamer`/LaTeX) is as follows:               \begin{figure}         \centering         \scalebox{0.90}{\input{Images/esqueleto.pdf_tex}}         \caption{Esqueleto virtual de 15 articulaciones de \emph{OpenNI}/\emph{NITE}}                                                     \end{figure}         Is there any way to solve the problem and to generate the figure in the `sciposter` with the same proportions of the original image (in `beamer` for my example)? * * * The figure tex file is the next code (also for both, `sciposter` and `beamer`) exported from Inkscape:               %% Creator: Inkscape inkscape 0.48.2, www.inkscape.org     %% PDF/EPS/PS + LaTeX output extension by Johan Engelen, 2010     %% Accompanies image file 'esqueleto.pdf' (pdf, eps, ps)     %%     %% To include the image in your LaTeX document, write     %%   \input{<filename>.pdf_tex}     %%  instead of     %%   \includegraphics{<filename>.pdf}     %% To scale the image, write     %%   \def\svgwidth{<desired width>}     %%   \input{<filename>.pdf_tex}     %%  instead of     %%   \includegraphics[width=<desired width>]{<filename>.pdf}     %%     %% Images with a different path to the parent latex file can     %% be accessed with the `import' package (which may need to be     %% installed) using     %%   \usepackage{import}     %% in the preamble, and then including the image with     %%   \import{<path to file>}{<filename>.pdf_tex}     %% Alternatively, one can specify     %%   \graphicspath{{<path to file>/}}     %%      %% For more information, please see info/svg-inkscape on CTAN:     %%   http://tug.ctan.org/tex-archive/info/svg-inkscape     %%     \begingroup%       \makeatletter%       \providecommand\color[2][]{%         \errmessage{(Inkscape) Color is used for the text in Inkscape, but the package 'color.sty' is not loaded}%         \renewcommand\color[2][]{}%       }%       \providecommand\transparent[1]{%         \errmessage{(Inkscape) Transparency is used (non-zero) for the text in Inkscape, but the package 'transparent.sty' is not loaded}%         \renewcommand\transparent[1]{}%       }%       \providecommand\rotatebox[2]{#2}%       \ifx\svgwidth\undefined%         \setlength{\unitlength}{134.56256226bp}%         \ifx\svgscale\undefined%           \relax%         \else%           \setlength{\unitlength}{\unitlength * \real{\svgscale}}%         \fi%       \else%         \setlength{\unitlength}{\svgwidth}%       \fi%       \global\let\svgwidth\undefined%       \global\let\svgscale\undefined%       \makeatother%       \begin{picture}(1,1.28819087)%         \put(0,0){\includegraphics[width=\unitlength]{Images/esqueleto.pdf}}%         \put(0.63961372,1.17326261){\color[rgb]{0,0,0}\makebox(0,0)[cb]{\scriptsize{Cabeza}}}%         \put(0.78648125,0.90165272){\color[rgb]{0,0,0}\makebox(0,0)[cb]{\scriptsize{Torso}}}%         \put(0.79518277,0.76070166){\color[rgb]{0,0,0}\makebox(0,0)[cb]{\scriptsize{Codo der.}}}%         \put(0.81356486,0.50269197){\color[rgb]{0,0,0}\makebox(0,0)[cb]{\scriptsize{Mano der.}}}%         \put(0.77404193,0.33459856){\color[rgb]{0,0,0}\makebox(0,0)[cb]{\scriptsize{Rodilla der.}}}%         \put(0.72218005,0.07502538){\color[rgb]{0,0,0}\makebox(0,0)[cb]{\scriptsize{Pie der.}}}%         \put(0.82068961,1.0126202){\color[rgb]{0,0,0}\makebox(0,0)[cb]{\scriptsize{Hombro der.}}}%         \put(0.7226059,1.09835082){\color[rgb]{0,0,0}\makebox(0,0)[cb]{\scriptsize{Cuello}}}%         \put(0.86809471,0.6181998){\color[rgb]{0,0,0}\makebox(0,0)[cb]{\scriptsize{Cadera der.}}}%         \put(0.17688348,0.76070166){\color[rgb]{0,0,0}\makebox(0,0)[cb]{\scriptsize{Codo izq.}}}%         \put(0.17148466,0.50269197){\color[rgb]{0,0,0}\makebox(0,0)[cb]{\scriptsize{Mano izq.}}}%         \put(0.21519443,0.33459856){\color[rgb]{0,0,0}\makebox(0,0)[cb]{\scriptsize{Rodilla izq.}}}%         \put(0.27034587,0.07502538){\color[rgb]{0,0,0}\makebox(0,0)[cb]{\scriptsize{Pie izq.}}}%         \put(0.15482862,1.0126202){\color[rgb]{0,0,0}\makebox(0,0)[cb]{\scriptsize{Hombro izq.}}}%         \put(0.13391934,0.61845517){\color[rgb]{0,0,0}\makebox(0,0)[cb]{\scriptsize{Cadera izq.}}}%       \end{picture}%     \endgroup%


title: How to control the indent in endnotes?

text: I want to use endnotes in my document. I use, of course, {endnotes} packages, but still don't know how to control the indent. I tried this, but it doesn't work:               \documentclass{book}          \usepackage{endnotes}     \let\footnote=\endnote          \begin{document}          Some text. Some text. Some text. Some text.\footnote{Some text. }          \begingroup     \parindent 0pt     \theendnotes     \endgroup          \end{document}      Thanks for any help.


title: Forbid hyphenations for a particular text

text: How can I temporarily forbid hyphenations (or make them more "expensive"), for a particular piece of text? One or two paragraphs.


title: Problems with overriding the values in a cls file

text: I'm writing a thesis and I'm trying to make the Table of Contents single spaced. This question was asked before and I tried the following solution in my `.tex` file:               \begin{singlespace}     \tableofcontents     \end{singlespace}      but it didn't work (everything compiles fine but the Table of Contents is still double spaced). I looked into the `.cls` file I'm using - `iitthesis.cls` - which prefer not to change; I found this:               % \ssp : single-spacing     % \dsp : double-spacing     % \tsp : triple-spacing     \renewcommand{\normalsize}{\@normalsize}     \def\ssp{\def\baselinestretch{1.0}\large\normalsize}     \def\dsp{\def\baselinestretch{1.66}\large\normalsize}     \def\tsp{\def\baselinestretch{2.6}\large\normalsize}     ...     \def\tableofcontents{      \begin{center}      \dsp{TABLE OF CONTENTS\\}      \end{center}      \ssp     \hfill Page\@starttoc{toc}}       So, is it the case that `\dsp{TABLE OF CONTENTS\\\\}` is overriding `\begin{singlespace}`? And if yes, how do I solve this? Should I define `\tableofcontents` in my `.tex` file as a new command that will override the one in the `.cls` file?


title: How do I put a table (float) two spaces away from the left margin?

text: I need to align the left edges of my tables such that they are two spaces off of the left margin (i.e. just like the first letter of an indented paragraph). Any ideas?


title: Tikz : node filling with text

text: Here is a minimal working example               %!TEX TS-program = xelatex     \documentclass{article}          %%%%%%%%%%     % Colors %     %%%%%%%%%%     \usepackage{xcolor}     \definecolor{green}{HTML}{C2E15F}     \definecolor{gray}{HTML}{4D4D4D}          %%%%%%%%%     % Fonts %     %%%%%%%%%     \usepackage{fontspec}     \defaultfontfeatures{Mapping=tex-text}     \setmainfont[Mapping=tex-text, Color=gray]{Helvetica Neue Light}          %%%%%%%%%%%%%%%%%     % Graphic tools %     %%%%%%%%%%%%%%%%%     \usepackage{tikz}     \usetikzlibrary{positioning}          \begin{document}               %%%%%%%%%%     % Header %     %%%%%%%%%%      \begin{tikzpicture} [remember picture,overlay]        \node[](name)[align = left, inner sep = 0] {\fontsize{42pt}{0pt}\selectfont{My Name} \\        \fontsize{20}{5pt}\selectfont{My function}};        \draw (name.north west) -- +(20cm, 0);        \draw (name.south west) -- +(20cm, 0);        \node[](about)[align=left,inner sep=0, right=5.0cm of name.north east, anchor=north west]{%        \fontsize{12pt}{12pt}\selectfont{mymail@mail.com} \\        \fontsize{12pt}{12pt}\selectfont{+45 555 555} \\%        \fontsize{12pt}{12pt}\selectfont{my adress} \\           \fontsize{12pt}{12pt}\selectfont{zipcode City} \\        };      \end{tikzpicture}          \end{document}      gives the following result ![latex1](http://i.stack.imgur.com/SrbOe.png) I would like the text in the rightmost node to "fill" the node i.e. to be perfectly aligned on the two lines I draw on the picture. Is it possible? Maybe using a minipage? In the same idea, is it possible to force the text to fill the node horizontally so that the text is justified both right and left ? EDIT: it seems the justified text can be obtained playing with the node options _text width_ , _minimum width_ and _justified text_. However, those options do not seem to work as soon as a "." characted is entered in the character screen as illustrated by the two following pictures. ![justifiedtext1](http://i.stack.imgur.com/YHMWB.png) ![justifiedtext2](http://i.stack.imgur.com/L2x44.png) The related codes adaptations are the following ones.                \begin{tikzpicture} [remember picture,overlay]        \node[](name)[align = left, inner sep = 0] {\fontsize{42pt}{0pt}\selectfont{My Name} \\        \fontsize{20}{5pt}\selectfont{My function}};        \draw (name.north west) -- +(20cm, 0);        \draw (name.south west) -- +(20cm, 0);        \node[](about)[draw=black, thin, align=left,inner sep=0, right=5.0cm of name.north east, anchor=north west, text width=4cm, minimum width=4cm, text justified]{%        \fontsize{12pt}{12pt}\selectfont{mymail@mailcom}         \fontsize{12pt}{12pt}\selectfont{+45 555 555}         \fontsize{12pt}{12pt}\selectfont{my adress}           \fontsize{12pt}{12pt}\selectfont{zipcode City}         };      \end{tikzpicture}                \begin{tikzpicture} [remember picture,overlay]        \node[](name)[align = left, inner sep = 0] {\fontsize{42pt}{0pt}\selectfont{My Name} \\        \fontsize{20}{5pt}\selectfont{My function}};        \draw (name.north west) -- +(20cm, 0);        \draw (name.south west) -- +(20cm, 0);        \node[](about)[draw=black, thin, align=left,inner sep=0, right=5.0cm of name.north east, anchor=north west, text width=4cm, minimum width=4cm, text justified]{%        \fontsize{12pt}{12pt}\selectfont{mymail@mail.com}         \fontsize{12pt}{12pt}\selectfont{+45 555 555}         \fontsize{12pt}{12pt}\selectfont{my adress}           \fontsize{12pt}{12pt}\selectfont{zipcode City}         };      \end{tikzpicture}


title: Circuit lines not completed in tikz using circuits library

text: Please forgive me if the answer to this question should be obvious. I have read the TikZ manual, and ordinarily one would address this issue with cycle, but cycle behaves funny with the circuits library. When I have a circuit with a fork in it, I have to draw the forked section in two steps. The trouble is that the second path never actually contacts the path which is actually on the node I am referencing. Here is my minimal working example:               \documentclass{standalone}          \usepackage{amsmath}          \usepackage{tikz}     \usetikzlibrary{arrows,circuits.ee.IEC,positioning}          \begin{document}          \begin{tikzpicture}[circuit ee IEC,x=2cm,y=1.5cm,     every info/.style={font=\footnotesize},     small circuit symbols,     set inductor graphic=var inductor IEC graphic,     set diode graphic=var diode IEC graphic,     set make contact graphic= var make contact IEC graphic]          \foreach \contact/\x in {0/0,2/3}     {     \node [contact] (upper contact \contact) at (\x,4) {};     \node [contact] (lower contact \contact) at (\x,0) {};     }     \draw (upper contact 0) to [current direction={near start,info=$I_1$},resistor={info={$\text{R}_1$}},inductor={near end,info={$\text{jX}_1$}}] (upper contact 2);     \draw (upper contact 2) to[inductor={info={$\text{jX}_2$}}] (5,4)         to[resistor={info={$\frac{\text{R}_2}{\text{s}}$}}] (5,0)         to (lower contact 2)         to ++(0,1) node (lower fork) {}         -- ++(-1,0) to[resistor={info={$\text{R}_\text{m}$}}] ++(0,2)         to ++(1,0) node (upper fork) {}         to (upper contact 2);     \draw (upper fork) -- ++(1,0)         to[inductor={info={$\text{jX}_\text{m}$}}] ++(0,-2)         to (lower fork);          \end{tikzpicture}          \end{document}      ![enter image description here](http://i.stack.imgur.com/S1emY.png) I could draw over existing lines and do the same thing on the way down that I did on the way up, but like the solution offered in this post, that just seems like a kludge. What is the right way to solve this problem? Does a "right way" even exist?


title: mathtt with iwona font

text: I'm trying to use typewriter font in math mode using iwona fonts, but the result ends up being typeset in the iwona text font. Here's an example:               \documentclass{article}     \usepackage[math]{iwona}     \usepackage[T1]{fontenc}     \begin{document}     \noindent     Math: $x^2+y^2=z^2$.\\     Texttt: \texttt{abcdefghijklmnopqrstuvwyz} \\     Mathtt: $\mathtt{abcdefghijklmnopqrstuvwyz}$     \end{document}      I would like the Mathtt line to look just like the Texttt line. Any ideas how to achieve this?


title: LaTeX-Font with all UTF8 symbols defined

text: I'm writing a program in Java which generates a PDF for something using LaTeX. In this PDF I have to include arbitrary Unicode Characters which I get from a File.               \documentclass[11pt,a4paper]{scrartcl}          \usepackage[english]{babel}     \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc} % or \usepackage[utf8x]{inputenc} for mor characters     \usepackage{eurosym}     \usepackage{textcomp}          \begin{document}          ¢ £ ¤ ¥ ¦ § ¨ © ª « ¬ ® ¯ ° ± ² ³ ´ µ ¶  · ¸ ¹ º » ¼ ½ ¾ ¿ À Á Â Ã Ä Å Æ Ç È É Ê Ë Ì Í Î Ï Ð Ñ Ò Ó Ô Õ Ö × Ø Ù Ú Û Ü Ý Þ ß à á â ã ä å æ ç è é ê ë ì í î ï ð ñ ò ó ô õ ö ÷ ø ù ú û ü ý þ ÿ           le\#bla\%dd\@\euro{}i9pi\{\_\}d    dsa ddd4(ozfertig          \char"2200          \end{document}      This provides me with a lot of UTF-8-Characters but not all. In the example above the line with `\char"2200` doesn't work everything else does. If I could find a Font which includes every UTF-8-Symbol (even if its just mapped to a ?) this should work. Is there such a font? If not, is there a document which lists the range of defined Symbols with the packages I am using, such that I can replace the rest with some defined character? I cannot use XeTeX or LuaTeX, I'm stuck with pdfLaTeX.


title: BibLaTeX: Making verbose-authoryear fullbibliography at once

text: Because @Andy found that my question has an inconsequence, I rewrote my question with new style (cbx) file (thanks!). Verbose is a good style in our research field, in so far as books are cited only in footnote. But I want to refer some books (some elementary sources and some secondary) also in body with the following way. A current popular citation style in humanities is: ![enter image description here](http://i.stack.imgur.com/7gNC1.gif) Notice that citation forms of the books, one of which has "Im folgenden Zitat..." (henceforth cited as...) and the other one does not have. Some sources in my .bib file have a definition of the shorthand field, the other have no definition. Classical books, such as Kant's _Kritik der praktischen Vernunft_ , have an abbreviation. In this case the source should be display with it (neither "Kant, 1788" nor "Kant, _KpV_ ", but just " _KpV_ "), while the other sources are cited as author-year (I need no declaration "henceforth cited as..." in this case). As I found http://www.latex-community.org/forum/viewtopic.php?f=4&t=852 , I'd want to do like this. Following code, which is modified from verbose.cbx, is saved as " **verbose-authoryear.cbx** ". The file, which ist named " **verbose-authoryear.bbx** ", is same as verbose-authoryear.bbx.               \ProvidesFile{verbose.cbx}     [\abx@cbxid $Id: verbose.cbx,v 1.6 2011/07/29 19:21:28 lehman stable $]          \InitializeCitationStyle{\numgdef{\cbx@resetcount}{\cbx@resetcount+1}}     \DeclareFieldFormat{bibhyperlink}{%       \bibhyperlink{\iffootnote{f}{t}:\cbx@resetcount:\thefield{entrykey}}{#1}}     \DeclareFieldFormat{bibhypertarget}{%       \bibhypertarget{\iffootnote{f}{t}:\cbx@resetcount:\thefield{entrykey}}{#1}}     \newcommand*{\cbx@resetcount}{0}     \newbibmacro*{cite:citepages}{}     \newbibmacro*{cite:full:citepages}{}     \newbibmacro*{cite:postnote}{}          \DeclareBibliographyOption{citepages}[permit]{%       \ifcsdef{cbx@opt@citepages@#1}         {\csuse{cbx@opt@citepages@#1}}         {\PackageError{biblatex}            {Invalid option 'citepages=#1'}            {Valid values are 'permit', 'suppress', 'omit', 'separate'.}}}          \providebibmacro*{cite:citepages}{}     \providebibmacro*{cite:full:citepages}{}     \providebibmacro*{cite:postnote}{}          \def\cbx@opt@citepages@permit{%       \renewbibmacro*{cite:citepages}{}%       \renewbibmacro*{cite:full:citepages}{}%       \renewbibmacro*{cite:postnote}{\usebibmacro{postnote}}}          \def\cbx@opt@citepages@suppress{%       \renewbibmacro*{cite:citepages}{}%       \renewbibmacro*{cite:full:citepages}{%         \clearfield{pages}%         \clearfield{pagetotal}}%       \renewbibmacro*{cite:postnote}{\usebibmacro{postnote}}}          \def\cbx@opt@citepages@omit{%       \renewbibmacro*{cite:citepages}{}%       \renewbibmacro*{cite:full:citepages}{%         \ifboolexpr{           test {\ifnumequal{\value{citecount}}{\value{citetotal}}}           and           test {\iffieldpages{postnote}}         }           {\clearfield{pages}%            \clearfield{pagetotal}}           {}}%       \renewbibmacro*{cite:postnote}{\usebibmacro{postnote}}}          \def\cbx@opt@citepages@separate{%       \providetoggle{cbx:fullcite}%       \renewbibmacro*{cite:citepages}{%         \global\togglefalse{cbx:fullcite}}%       \renewbibmacro*{cite:full:citepages}{%         \global\toggletrue{cbx:fullcite}}%       \renewbibmacro*{cite:postnote}{%         \ifboolexpr{           togl {cbx:fullcite}           and           test {\iffieldpages{postnote}}           and           test {\ifnumequal{\value{citecount}}{\value{citetotal}}}           and           (         not test {\iffieldundef{pages}}         or         not test {\iffieldundef{pagetotal}}           )         }           {\usebibmacro{cite:postnote:pages}}           {\usebibmacro{postnote}}}       \providebibmacro*{cite:postnote:pages}{%         \setunit{\postnotedelim}%         \bibstring{thiscite}%         \setunit{\addspace}%         \printfield{postnote}}}          \ExecuteBibliographyOptions{citetracker=context,autocite=footnote,citepages=permit}          %\newbibmacro*{cite}{%     %  \usebibmacro{cite:citepages}%     %  \ifciteseen     %    {\iffieldundef{shorthand}     %       {\usebibmacro{cite:short}}     %       {\usebibmacro{cite:shorthand}}}     %    {\usebibmacro{cite:full}}}          %replaced the last section with the following section     %by asblom http://www.latex-community.org/forum/viewtopic.php?f=4&t=852              \newbibmacro*{cite}{%           \ifciteseen             {\iffieldundef{shorthand}                {\ifnameundef{author}{\usebibmacro{cite:title}}{\usebibmacro{cite:name}}%                 \usebibmacro{cite:year}}                {\usebibmacro{cite:shorthand}}}             {\usebibmacro{cite:full}}}          \newbibmacro*{cite:full}{%       \usebibmacro{cite:full:citepages}%       \printtext[bibhypertarget]{%         \usedriver           {\DeclareNameAlias{sortname}{default}}           {\thefield{entrytype}}}%       \usebibmacro{shorthandintro}}          \newbibmacro*{cite:short}{%       \printnames{labelname}%       \setunit*{\nametitledelim}%       \printtext[bibhyperlink]{%         \printfield[citetitle]{labeltitle}}}          \newbibmacro*{cite:shorthand}{%       \printtext[bibhyperlink]{\printfield{shorthand}}}          %added by asblom         \newbibmacro*{cite:year}{%           \printfield{year}%           \setunit*{\addcomma\space}}          %assumed adding by akira ueda (from verbose-trad1.cbx)     \newbibmacro*{cite:name}{%       \printnames{labelname}%       \setunit*{\nametitledelim}}               \DeclareCiteCommand{\cite}       {\usebibmacro{prenote}}       {\usebibmacro{citeindex}%        \usebibmacro{cite}}       {\multicitedelim}       {\usebibmacro{cite:postnote}}          \DeclareCiteCommand{\parencite}[\mkbibparens]       {\usebibmacro{prenote}}       {\usebibmacro{citeindex}%        \usebibmacro{cite}}       {\multicitedelim}       {\usebibmacro{cite:postnote}}          \DeclareCiteCommand{\footcite}[\mkbibfootnote]       {\usebibmacro{prenote}}       {\usebibmacro{citeindex}%        \usebibmacro{cite}}       {\multicitedelim}       {\usebibmacro{cite:postnote}}          \DeclareCiteCommand{\footcitetext}[\mkbibfootnotetext]       {\usebibmacro{prenote}}       {\usebibmacro{citeindex}%        \usebibmacro{cite}}       {\multicitedelim}       {\usebibmacro{cite:postnote}}          \DeclareCiteCommand{\smartcite}[\iffootnote\mkbibparens\mkbibfootnote]       {\usebibmacro{prenote}}       {\usebibmacro{citeindex}%        \usebibmacro{cite}}       {\multicitedelim}       {\usebibmacro{cite:postnote}}                    \endinput      But as I wrote the following TeX document,               \documentclass{report}     \usepackage[dvips]{graphicx}     \usepackage[ngerman]{babel}     \usepackage[     style=verbose-authoryear,     ]{biblatex}     \usepackage[babel,german=quotes]{csquotes}           \renewcommand\mkbibnamelast[1]{\textsc{#1}}     \renewcommand\mkbibnamefirst[1]{\textsc{#1}}          \begin{filecontents*}{biblatex-examples.bib}     @Book{kant:kpv,       shorthand   = {KpV},       hyphenation     = {german},       author      = {Kant, Immanuel},       bookauthor      = {Kant, Immanuel},       title       = {Kritik der praktischen Vernunft},       shorttitle      = {Kritik der praktischen Vernunft},       booktitle   = {Kritik der praktischen Vernunft. Kritik der Urtheilskraft},       year        = {1788},     }          @Book{adorno-probleme,       hyphenation     = {german},       author      = {Adorno, Theodor W.},       title       = {Probleme der Moralphilosophie},       shorttitle      = {Probleme},       location    = {Frankfurt am Main},       year        = {1996},          \end{filecontents*}          \bibliography{biblatex-examples}               \begin{document}          Als Kant in der \cite{kant:kpv}, es geschrieben hat, war die Lage anders. Er schrieb,      "`Handle so, dass die Maxime deines Willens..."'.\footnote{\cite{kant:kpv}, S.54.}     Theodor W.Adorno erkl"art diesen Satz so, dass diese kategorische Imperativ die moderne     Vernunft voraussetzt.\footnote{Vgl. \cite{adorno-probleme}, S.30ff. Er tat Vorlesung      nach Kant.}       Nach Adornos Ansicht ist die Trennung von Antik und Moderne ansichtig.     \footnote{Schrieb er so deutlich. Siehe \cite{adorno-probleme}, S.30f.} Adorno:      "`In der modernen Zeit ist die Vernunft sowohl gemeinsam als auch pers"onlich"'      (\cite{adorno-probleme}, S.50).          \printshorthands     \printbibliography     \end{document}      I found a problem. Full bibliography emerges two times, if I cited not only in the footnote but also in the body. I'd like to put in the full bibliography in the footnote, even if I cited firstly on the body. How can I solve? P.S. This verbose-authoryear.cbx was made, as I've just started to learn LaTeX (one week ago). Now I'm informed that I should make new citation style with writing in preamble rather than making new cbx. file. I'm wondering I can do it.


title: Angle quotes with csquotes and T2A encoding

text: I'd like to get this: ![result I want](http://i.stack.imgur.com/UgvB6.png) I can easily get this via `\usepackage[T1]{fontenc}` and the use of `\usepackage[german=guillemets]{csquotes}` But for Russian I need `[T2A]{fontenc}` and the inner quotes get messed up. It then looks like this: ![result as I don't want it](http://i.stack.imgur.com/WADy3.png) Here's a minimal example:               \documentclass[12pt,a4paper]{article}     \usepackage[T1, T2A]{fontenc} % T2A messes up inner quotes     \usepackage[utf8]{inputenc}     \usepackage[english,russian,german]{babel}     \usepackage[german=guillemets]{csquotes}          \begin{document}          Someone said: \enquote{The other one told me: \enquote{Don't bother!}}          \end{document}      I already tried it with: `\usepackage[style=russian]{csquotes}` and other settings I don't remember ... Thanks in advance!


title: Why are \new... defined as \outer in the plain TeX format?

text: In `plain.tex`, D.E.Knuth decided to define as `\outer` all the macros which allocate registers: `\newcount`, `\newdimen`, `\newskip`, `\newread`, `\newwrite`. This forbids them from entering the argument of macros, or definitions: they can only appear at the outer-most level. On the other hand, Leslie Lamport has mostly dropped the `\outer` primitive when writing the LaTeX format. In particular, the allocation macros are not `\outer` anymore in his approach. What are the advantages and drawbacks of both choices? What about other formats (ConTeXt, LaTeX3)? As a side question: is there some historical piece of folklore associated to the `\outer` primitive?


title: Is there a way to speed up the use of ucharclasses?

text: The `ucharclasses` package is very helpful for automatic font switching based on Unicode blocks. However, it is very, very slow. One way to speed it up is to restrict its scope on certain Unicode blocks/scripts by giving the blocks or block ranges as an option. Unfortunately, this can have negative side effects when blocks are encountered, that are not selected at package load time. (see also the discussion around my previous question here: How can I use ucharclasses to change the font for a special script and then restore to what it was before?) Ideally, I'd like to avoid restricting `ucharclasses` to certain Unicode blocks and load the package without any options. Is there any way conveivable to speed up the usage of the package? Potentially by rewriting parts of the package?


title: How to get float numbers as parameter of \newcommand

text: I have defined a `\newcommand` function like into this code:               \documentclass{scrartcl}     \usepackage{pbox,calc}          \newcounter{pointsExo}     \setcounter{pointsExo}{4}     \newcounter{pointsSousTotal}     \setcounter{pointsSousTotal}{0}          \newcounter{souspointsExo}     \newcommand{\sousPoints}[1]{         \setcounter{souspointsExo}{#1}         \setcounter{pointsSousTotal}{\value{pointsSousTotal} + #1}         {\scriptsize{(#1~\ifthenelse{#1<2}{point}{points}}/\arabic{pointsExo})}     }          \newcommand{\subexo}[2]{         #1\hfill\sousPoints{#2}% Points         \medskip     }     \begin{document}     \subexo{Anything}{2}          \subexo{Something}{0.5}     \end{document}      I would like to be able to call the command with both **real** or **integer** numbers:               \subexo{Anything}{2}      or               \subexo{Something}{0.5}      But I have errors like this with my current code:               ! Package calc Error: `.' invalid at this point.      What should I modify into my `\newcommand` definition to do this ?


title: Selecting optical sizes for all fonts in a family

text: XeTeX and LuaTeX are able to assign optical sizes to fonts when they are provided. In those situations where XeTeX or LuaTex are unable to correctly assign optical sizes I am able to specify them but only for the regular font, not for italics, bold, or bold italics. I'm looking for a way to assign all of them. The specific example I'm using is for Minion Pro and I know a package exists for it but I'm looking for a general solution I can apply as a regular user whenever something like this comes up again. Here's the MWE:               \documentclass[openleft,12pt]{memoir}     \usepackage{fontspec}     \setmainfont[ItalicFont={MinionPro-It},BoldFont={MinionPro-Bold},BoldItalicFont={MinionPro-BoldIt}]{Minion Pro}          \begin{document}     Regular\\     \textit{Italic}\\     \textbf{Bold}\\     \textit{\textbf{Bold Italic}}\\          {\tiny tiny}\\          {\normalsize normal}\\      {\Large Large}\\            {\LARGE LARGE}\\            {\HUGE HUGE}\\                   {\tiny{       \textit{tiny italic} \textbf{tiny bold} \textbf{\textit{tiny bold italic}}}}\\     {\Large{     \textit{Large italic} \textbf{Large bold} \textbf{\textit{Large bold italic}}}}\\     {\HUGE{     \textit{HUGE italic} \textbf{HUGE bold} \textbf{\textit{HUGE bold italic}}}}          \end{document}      Both XeLaTeX and LuaLaTeX need the italic, bold, and bold italic fonts declared. After that XeLaTeX uses all the correct optical sizes for this example. LuaLaTeX does not use any of them (except as before for the regular font). If you change the `\setmainfont` section to look like this:               \setmainfont[ItalicFont={MinionPro-It},BoldFont={MinionPro-Bold},BoldItalicFont={MinionPro-BoldIt},     SizeFeatures={      {Size={-8.4},OpticalSize=8},     {Size={8.4-13},OpticalSize=11},     {Size={13-19.9},OpticalSize=19},     {Size={19.9-},OpticalSize=72}}     ]     {Minion Pro}      Then everything still works for XeLaTeX and now the optical sizes (Caption, Regular, SubHeader, Display) work with LuaLaTeX for the regular fonts but not for italics, bold, and bold italics. I had thought that maybe something like:               \setmainfont[ItalicFont={MinionPro-It},BoldFont={MinionPro-Bold},BoldItalicFont={MinionPro-BoldIt},     SizeFeatures={      {Size={-8.4},OpticalSize=8,ItalicFont={MinionPro-ItCapt},     {Size={8.4-13},OpticalSize=11},     {Size={13-19.9},OpticalSize=19,ItalicFont={MinionPro-ItSubH},     {Size={19.9-},OpticalSize=72,ItalicFont={MinionPro-Disp}}}      ]      {Minion Pro}      Would work (obviously filling in the bold and bold italic fonts and the other sizes) but that results in an error. I've tried several variations on that idea and nothing works. I keep reading over the fontspec and luaotfload manuals but can find nothing on how to do this thing specifically (I did find a reference to a "goodies" file for ConTeXt but was unable to figure out how to load it into a LuaLaTeX document). **Update** Some more experimentation with Adobe fonts. I just did the same experiment with Garamond Premier Pro (also has optical sizes). And the results are similar. LuaLaTeX will just not load the Caption/Subheading/Display versions of Italic/Bold/Bold Italic though it handles the Regular font without even having to specify the optical sizes (thanks to a fix supplied when I asked a similar question before about Garamond specifically). XeLaTeX will but uses the SemiBoldItalic versions for the different optical sizes instead of just BoldItalic.


title: How can I center align subsection heading in an AMSBOOK document

text: In an amsbook based document A subsection heading seems to be left aligned with some indentation in the beginning. Chapter and section headings are center aligned. How can I make subsections also center aligned?


I'm using biblatex with the historian style, and everything's been working smoothly until I tried the `@letter` entry type. I'm also redefining the `\smartcite` macro to get the footnotes to look more like I prefer. Here's a MWE:               \documentclass{article}       \usepackage{filecontents}     \usepackage{csquotes}     \usepackage[backend=biber,style=historian,autocite=footnote]{biblatex}          \begin{filecontents}{literature.bib}     @letter{saganA,         author = {Sagan, Naomi},         namec = {Greenpeace},         Year = {24 February, 1990},     }     \end{filecontents}          \bibliography{literature.bib}          %% redefine the \smartcite macro so that it does not add parentheses in footnotes     %% see http://tex.stackexchange.com/questions/68175/biblatex-autocite-in-case-of-would-be-nested-footnotes     \DeclareCiteCommand{\smartcite}[\iffootnote\textnormal\mkbibfootnote]       {\usebibmacro{prenote}}       {\usebibmacro{citeindex}%        \usebibmacro{cite}}       {\multicitedelim}       {\usebibmacro{postnote}}          \DeclareMultiCiteCommand{\smartcites}         [\iffootnote\textnormal\mkbibfootnote]{\smartcite}{\multicitedelim}          \AtEveryBibitem{       \clearlist{address}       \clearlist{location}     }          \begin{document}       This is a test.\autocites{saganA}     \end{document}        I'm getting a warning:               Package biblatex Warning: Bibliography string 'letterto' undefined     (biblatex)                at entry 'saganA' on input line 35.      (where 35 is the last line "\end{document\") And the output looks like this: ![enter image description here](http://i.stack.imgur.com/S2QCu.gif) How can I replace " **letterto** " with "letter to" (not bold, with blank space) or get rid of it?


title: Customize page numbering so all pages are equally formatted in book class

text: The title says it all. A friend is working on her thesis and we cannot figure out how to ensure that the page numbering is equally formatted on all the pages that display page numbers. Default positioning has the page numbers altering left and right on even and odd pages, and at the bottom of the first page of every chapter. Ideally she wants the the page numbers on every page printed on the top right corner of her book with no special formatting added for the first page of a chapter. Any experience with this kind of customization? * * * Edit: An MWE was requested and is therefore supplied.               \documentclass{book}     \begin{document}     \chapter{foo}     Special chapter title page. Page number positioned at bottom of page               \pagebreak     Normal body text. Page number positioned at top left corner of page.     \end{document}


title: How to create a figure of our own

text: I want to create the following picture in LaTeX. How can I do this?![enter image description here](http://i.stack.imgur.com/a6ZOX.png)


title: How to mark whole line or part of line with background color in a listing (listings package)?

text: I want to highlight either a whole line of code in a listing, or a part of line (a subexpression) using background color (to not interfere with syntax highlighting). I use `lstlistings` environment from 'listings' package.


title: inserting special border to tikz mindmap

text: Hi I would like to mark certain nodes of tikz-mindmap just an example is illustrated in the figure. Thanks in advance![enter image description here](http://i.stack.imgur.com/oUM3Z.png) The minimal working code is here * * *               \documentclass[]{article}     \usepackage{tikz}     \usepackage{pgfplots}     \usepackage{tikzpagenodes}     \usepackage{graphicx}     \usetikzlibrary{decorations.pathmorphing}     \usetikzlibrary{decorations.text}     \tikzset{>=latex}     \usetikzlibrary{mindmap,trees,shadows}     \usetikzlibrary{decorations.text}     \usetikzlibrary{shapes.multipart}     \usepgfplotslibrary{patchplots}     \pgfplotsset{compat=1.8}     \begin{document}     \definecolor{CIR}{RGB}{255,0,35}     \definecolor{PN}{RGB}{97,189,64}     \definecolor{CFO}{RGB}{92,219,101}     \definecolor{DCO}{RGB}{255,131,211}     \definecolor{AN}{RGB}{72,163,235}     \definecolor{IQ}{RGB}{234,193,137} %253,224,158     \definecolor{IQTx}{RGB}{255,173,45} %241,88,21     \definecolor{IQRx}{RGB}{216,182,145}     \definecolor{IQFs}{RGB}{252,221,153}%206,165,75     \definecolor{IQFi}{RGB}{252,218,23}     \definecolor{baige}{RGB}{226,230,156}     \usetikzlibrary{backgrounds}     \usetikzlibrary{calc}          \begin{figure}[H]     \begin{center}     \begin{tikzpicture}[very thick, scale=0.8,      every node/.style={scale=0.8},      decoration={start radius=1cm, end radius=.15cm,amplitude=2mm,angle=30},      outer sep=1pt       ]       \path[mindmap,concept color=red,text=white]         node[concept] {\bf Root}         [clockwise from=0]         child[concept color=IQ] {           node[concept] {\textcolor{white}{\bf A}}           [clockwise from=120]           child [concept color=IQTx,text=white] { node[concept] {{\bf A1}} }           child [concept color=IQRx,text=white] { node[concept] {{\bf A2} }  }           child [concept color=IQFs,text=white] { node[concept] {{\bf A3} }  }           child [concept color=IQFi,text=white]{ node[concept] {\bf A4} }           }               child[concept color=DCO, grow=75, level distance=4.5cm,text=white ] {node[concept] {\bf B} }     child[concept color=PN, grow=150,level distance=4.5cm,text=white] { node[concept] {\bf C} }      child[concept color=CFO, grow=215, level distance=4.5cm,text=white] { node[concept] {\bf D} }     child[concept color=AN, grow=290, level distance=4.5cm,text=white] { node[concept] {\bf E} };     \end{tikzpicture}     \caption{Mindmap Problem}     \label{fig:mindmap}     \end{center}     \end{figure}     \end{document}      * * * Any help would be much appreciated. Muhammad Ali


title: Breqn and amsmath intlimits option clash

text: When the intlimits option of the amsmath package is set along with breqn package, the subscripts and superscripts of integral symbols are not placed above and below in displayed equations as they should. Try for instance the following MWE:               \documentclass{article}     \usepackage[intlimits]{amsmath}     \usepackage{breqn}           \begin{document}          \begin{equation}         \int_{a}^{b}\!f(x)\;\mathrm{d}x     \end{equation}          \end{document}


title: Alignments by means of the tikzmark macro

text: This is a follow up of my previous question Issues and potentiality of the tikzmark macro: dynamic box adaptation. I thought should have been better to ask two questions although they are related to the same argument because problems are different. In a recent answer Horizontal alignment within an equation using Tikz, I derived a slightly different version of the macro to align text. My solution is a bit fragile, in the sense that it strongly depends on the `\textdim` parameter, used to set the `text width` option. Here are the examples. With this code:               \documentclass[11pt]{article}     \usepackage{xparse}     \usepackage{tikz}     \usepackage{amsmath,amssymb}          \newlength\textdim     \setlength{\textdim}{2cm}          %% code by Andrew Stacey      % http://tex.stackexchange.com/questions/51582/background-coloring-with-overlay-specification-in-algorithm2e-beamer-package#51582          \makeatletter     \tikzset{%          remember picture with id/.style={%            remember picture,            overlay,            save picture id=#1,          },          save picture id/.code={%            \edef\pgf@temp{#1}%            \immediate\write\pgfutil@auxout{%              \noexpand\savepointas{\pgf@temp}{\pgfpictureid}}%          },          if picture id/.code args={#1#2#3}{%            \@ifundefined{save@pt@#1}{%              \pgfkeysalso{#3}%            }{              \pgfkeysalso{#2}%            }          }        }             \def\savepointas#1#2{%       \expandafter\gdef\csname save@pt@#1\endcsname{#2}%     }          \def\tmk@labeldef#1,#2\@nil{%       \def\tmk@label{#1}%       \def\tmk@def{#2}%     }          \tikzdeclarecoordinatesystem{pic}{%       \pgfutil@in@,{#1}%       \ifpgfutil@in@%         \tmk@labeldef#1\@nil       \else         \tmk@labeldef#1,\pgfpointorigin\@nil       \fi       \@ifundefined{save@pt@\tmk@label}{%         \tikz@scan@one@point\pgfutil@firstofone\tmk@def       }{%       \pgfsys@getposition{\csname save@pt@\tmk@label\endcsname}\save@orig@pic%       \pgfsys@getposition{\pgfpictureid}\save@this@pic%       \pgf@process{\pgfpointorigin\save@this@pic}%       \pgf@xa=\pgf@x       \pgf@ya=\pgf@y       \pgf@process{\pgfpointorigin\save@orig@pic}%       \advance\pgf@x by -\pgf@xa       \advance\pgf@y by -\pgf@ya       }%     }     \makeatother          \NewDocumentCommand{\tikzmarkin}{m O{white} m}{%           \tikz[remember picture,overlay,baseline]           \draw[line width=1pt,rectangle,rounded corners,fill=#2,draw=none,outer sep=1pt,inner sep=1pt]           (pic cs:#1) ++(0.065,-0.32) rectangle (-0.05,0.6);           \tikz[baseline=(current bounding box.-7)] \node [align=center,text width=\textdim]at(pic cs:#1){\ensuremath{#3}}           ;}          \newcommand\tikzmarkend[2][]{%     \tikz[remember picture with id=#2] #1;}               \begin{document}     \begin{alignat*}{3}     A &= \tikzmarkin{a}[red!20]{\dfrac{\partial u}{\partial x} + \lambda}\tikzmarkend{a}&&+ \dfrac{\partial f}{\partial y}\dfrac{\partial f}{\partial z}\\     B &= \tikzmarkin{b}[blue!20]{\dfrac{\partial u}{\partial z} + \dfrac{\partial^2 u}{\partial x}} \tikzmarkend{b}&&+ \gamma  \\     CD &=\tikzmarkin{c}[green!20]{\dfrac{\partial f}{\partial x}}\tikzmarkend{c}&& + \dfrac{\partial f}{\partial z} \\     E &= \tikzmarkin{d}[orange!20]{\Gamma(x)}\tikzmarkend{d} &&+ \Xi(y)     \end{alignat*}               \end{document}      it is possible to get: ![enter image description here](http://i.stack.imgur.com/s9kna.jpg) Let's now do a simple modification:               \setlength{\textdim}{4cm}      After having compiled twice, you get: ![enter image description here](http://i.stack.imgur.com/wWvsR.jpg) which is really unexpected. This behavior could be corrected by setting:               \tikz[baseline=(current bounding box.-3)]...      to achieve: ![enter image description here](http://i.stack.imgur.com/Zv1oX.jpg) Is there any particular reasons for which an horizontal change affects the vertical positioning?


title: How can I vertically align the labels in a tikz diagram

text: ![enter image description here](http://i.stack.imgur.com/Jh3Ex.png) * * * I have drawn the above diagram with diagonal arrows in TikZ, but the labels look like they have been placed on a curve instead of next to each other. I think I understand why they are placed like that: TikZ puts the labels in the middle of the arrows and the diagonal arrows end slightly lower. But I'm unable to fix this. The code I have written for this diagram is:               \documentclass[border=1]{standalone}     \usepackage{tikz}     \usetikzlibrary{matrix,arrows}          \begin{document}     \begin{tikzpicture}     [       arr/.style={->,font=\scriptsize},       description/.style={fill=white,inner sep=2pt}     ]     \matrix (m) [       matrix of math nodes, row sep=3em, column sep=4em, text height=1.5ex, text depth=0.25ex     ]      {A[f]_0:=A & A[f]_1 & A[f]_2 & \cdots \\                         &        & B      \\};     \draw[arr] (m-1-1) -- node[above]       {$\pi_0$}  (m-1-2);      \draw[arr] (m-1-1) -- node[description] {$f_0:=f$} (m-2-3);     \draw[arr] (m-1-2) -- node[above]       {$\pi_1$}  (m-1-3);     \draw[arr] (m-1-2) -- node[description] {$f_1$}    (m-2-3);     \draw[arr] (m-1-3) -- node[above]       {$\pi_2$}  (m-1-4);     \draw[arr] (m-1-3) -- node[description] {$f_2$}    (m-2-3);     \draw[arr] (m-1-4) -- node[description] {$f_3$}    (m-2-3);     \end{tikzpicture}     \end{document}      So the question is: how can I put the labels `$f_0:=f$`, `$f_1$`, `$f_2$` and `$f_3$` at the same height, preferably the height of `$f_2$`?


title: How to draw a diagram for packets scheduling in networks or task scheduling?

text: I would like to draw a diagram for packets scheduling in networks similar to the this one: ![enter image description here](http://i.stack.imgur.com/Fgy8W.png) The same type of diagram (or very similar) can be used also for tasks scheduling. Can you please indicate a template for this? Or a resource I could use. Thanks a lot. The copyright for the image belongs to the authors from here.


title: Beamer: \framezoom with overlay target

text: Is it possible to use `\framezoom` to zoom pictures that have overlay specifications? In other words, I want to have a frame with several pictures, each having a zoom-box (or even several zoom boxes). Here is a simple example:               \documentclass{beamer}     \usepackage{mwe}     \begin{document}     \begin{frame}<1-2>[label=zoom]         \frametitle<1-2>{Test zoom}         \framezoom<1><3>[border](0cm,1cm)(3cm,2cm)         \framezoom<2><4>[border](1cm,1cm)(3cm,2cm)         \includegraphics<1>[width=0.5\textwidth]{example-image-a}         \includegraphics<2>[width=0.5\textwidth]{example-image-b}     \end{frame}     \againframe<3->[plain]{zoom}     \end{document}      When compiled with pdfLaTeX, this produces four pages: the first two overlays are as expected, including the zoom boxes with working hyperlinks; but overlays 3 and 4 are empty, though they have working hyperlinks back. Is there some easy way to make this work, or do I need to split it into one picture per frame? (The reason I prefer single frame is that I do this for 12 numbered images, so I can use the `\foreach` loop to include them.) Thanks.


title: Produce PDFs with only the figures/tables without captions and with only the captions without figures/tables

text: I'm submitting the final copy of a journal paper and got the following requirements: >   * Camera-ready copies of all figures and tables in a single pdf/ps file > (that is, produce a single ps/pdf file with all the figures and table > contained in the manuscript). >   * Figure and table captions in a single pdf/ps file (that is, produce a > single ps/pdf file with all the figures and table captions). >   * [..] >   * Soft copy of figures and tables, that is one file per each figure or > table. > I read that the way that I need to have:   * one PDF with only the figures and tables, but apparently without the captions. I presume one figure or table per page.   * one PDF with the captions alone. One per page as well maybe?   * one PDF or other file per figure or table.   This is fine because all my figures or tables are either direct PDFs or done using the `standalone` class. Is there an easy way to suppress everything but the `figure`s and `table`s without the `\caption`? Then do the same but only with the captions? I guess using `endfloat` and then cutting the last pages of the PDF would work once the captions are dealed with, but a way which produces a PDF with only the figures directly would be nicer!


title: Package for more creative text formatting in latex

text: What is a reasonable package to be used for realizing something like the following example (including image altered): ![Included image altered](http://i.stack.imgur.com/SvlKw.png) The source is http://blog.azubiyo.de/bewerbungstipps/deckblatt- bewerbung/attachment/deckblatt-muster-4/ (a PDF file can be downloaded from there) and this belongs to a blog entry in German AZUBIYO-Blog: Deckblatt in der Bewerbung? Vorlagen und Muster, where the following copy rights are given: > Bildnachweise: © lev dolgachov-fotolia, © Minerva Studio-fotolia; Urheber > Design 1 & 2: Designbewerbung


title: Issues and potentiality of the tikzmark macro: dynamic box adaptation

text: Since I discovered the `tikzmark` macro I've been enthusiastic about it. I think that it is possible to distinguish at least two versions of the command:   * a _basic_ one (two examples: http://tex.stackexchange.com/a/35719/13304 and tikzmark to have different behaviour if first run (and mark locations not yet available))   * an _improved_ version (two examples: http://tex.stackexchange.com/a/50054/13304 and Highlight a column in equation or math environment) One answer in which both versions are used is http://tex.stackexchange.com/a/51590/13304. Assume to use now the _improved_ version. For what concern Highlight a column in equation or math environment the basic definition is:               \newcommand{\tikzmarkin}[1]{%           \tikz[remember picture with id=#1]           \draw[line width=1pt,rectangle,rounded corners,fill=\fillcol]           (pic cs:#1) ++(0.065,-0.15) rectangle (-0.05,0.32)           ;}      while in http://tex.stackexchange.com/a/51590/13304:               \newcommand<>{\boxto}[1]{%     \only#2{\tikz[remember picture,overlay]     \draw[myframe,line width=1pt,fill=mybrown,,rectangle,rounded corners]     (pic cs:#1) ++(1.4,-.25) rectangle (-.2,0.4)     ;}%     }      They have in common one thing, the fact that the rectangle is defined a priori. In the following example I will point out that this could be not convenient when used multiple times:               \documentclass{article}     \usepackage{amsmath}     \usepackage{tikz}          % to change colors     \newcommand{\fillcol}{white}     \newcommand{\bordercol}{red}          %% code by Andrew Stacey      % http://tex.stackexchange.com/questions/51582/background-coloring-with-overlay-specification-in-algorithm2e-beamer-package#51582          \makeatletter     \tikzset{%          remember picture with id/.style={%            remember picture,            overlay,            draw=\bordercol,            save picture id=#1,          },          save picture id/.code={%            \edef\pgf@temp{#1}%            \immediate\write\pgfutil@auxout{%              \noexpand\savepointas{\pgf@temp}{\pgfpictureid}}%          },          if picture id/.code args={#1#2#3}{%            \@ifundefined{save@pt@#1}{%              \pgfkeysalso{#3}%            }{              \pgfkeysalso{#2}%            }          }        }             \def\savepointas#1#2{%       \expandafter\gdef\csname save@pt@#1\endcsname{#2}%     }          \def\tmk@labeldef#1,#2\@nil{%       \def\tmk@label{#1}%       \def\tmk@def{#2}%     }          \tikzdeclarecoordinatesystem{pic}{%       \pgfutil@in@,{#1}%       \ifpgfutil@in@%         \tmk@labeldef#1\@nil       \else         \tmk@labeldef#1,(0pt,0pt)\@nil       \fi       \@ifundefined{save@pt@\tmk@label}{%         \tikz@scan@one@point\pgfutil@firstofone\tmk@def       }{%       \pgfsys@getposition{\csname save@pt@\tmk@label\endcsname}\save@orig@pic%       \pgfsys@getposition{\pgfpictureid}\save@this@pic%       \pgf@process{\pgfpointorigin\save@this@pic}%       \pgf@xa=\pgf@x       \pgf@ya=\pgf@y       \pgf@process{\pgfpointorigin\save@orig@pic}%       \advance\pgf@x by -\pgf@xa       \advance\pgf@y by -\pgf@ya       }%     }     \makeatother          \newcommand{\tikzmarkin}[1]{%           \tikz[remember picture,overlay]           \draw[line width=1pt,rectangle,rounded corners,fill=\fillcol, draw=\bordercol]           (pic cs:#1) ++(0.065,-0.42) rectangle (-0.05,0.52) node [anchor=base] (#1){}           ;}               \newcommand\tikzmarkend[2][]{%     \tikz[remember picture with id=#2] #1;}               \begin{document}     \begin{align*}     &x+\tikzmarkin{a}\dfrac{z}{y}\tikzmarkend{a}=100 \hspace{1cm} \text{perfect alignment}\\     &x+\tikzmarkin{z}y\tikzmarkend{z}=100 \hspace{1cm} \text{bad behaviour}     \end{align*}          \end{document}      This leads to: ![enter image description here](http://i.stack.imgur.com/w58j3.png) This is due to the fact that the rectangle has been defined to be suitable for the fraction and not for a single term. > _To improve the method proposed based on the`\tikzmark`, my question is: it > is possible to make those dimensions dynamic?_ I mean not only for a math case, but also for simple text. For example:               \begin{document}          \begin{itemize}     \item this is a text to be \tikzmarkin{a}highlighted\tikzmarkend{a}     \item \tiny{this is a text to be \tikzmarkin{b}highlighted\tikzmarkend{b}}     \end{itemize}          \end{document}      where the `tikzmark` has been defined as:               \newcommand{\tikzmarkin}[1]{%           \tikz[remember picture,overlay]           \draw[line width=1pt,rectangle,rounded corners,fill=\fillcol, draw=\bordercol]           (pic cs:#1) ++(0.065,-0.16) rectangle (-0.05,0.32) node [anchor=base] (#1){}           ;}      leads to: ![enter image description here](http://i.stack.imgur.com/5CZ8z.png) but when the text is `\tiny`, the rectangle dimensions could have been reduced a bit.


title: TikZ multipart nodes: How to set text attributes (opacity) for some/all parts

text: I am using TikZ with the `rectangle split` multipart node (detailed on pp 450ff in the PGF 2.1 documentation). I need to influence the text opacity of all parts, but whatever I try seems to work only on the `text` (=first) part of the multipart node:               \documentclass{article}     \usepackage[T1]{fontenc}     \usepackage{tikz}     \usetikzlibrary{shapes.multipart}          \begin{document}       \begin{tikzpicture}         \node[rectangle split, rectangle split parts=2, draw, text opacity=0.5]{%           transparent :-)           \nodepart{two}           not transparent :-(         };       \end{tikzpicture}     \end{document}      results in: ![enter image description here](http://i.stack.imgur.com/vuUbS.gif) I have also tried `\nodepart[text opacity=0.5]{two}` and even Heiko Oberdiek's `transparent` package to set the text transparency manually, which, however does not seem to play together with PGF. There also seem to be no `every ...` styles for the additional parts of the `rectangle split` node. I must be overlooking something.


title: Texmaker Hangs on Process started

text: When I try to run my script in Texmaker, Texmaker gives me the message "Process started" but hangs on it forever and never actually finishes compiling. I know these are long equations, but Texmaker should be able to handle an entire dissertation. Also, I need to use breqn, because I need to break the equations across lines despite the fact there are groups (I need \left( and \right) on different lines sometimes). I am also using Texmaker PDFLaTeX, if that is relevant. Anyway, I am new to Texmaker and LaTeX, and any help would be very much appreciated! This is what I try to run:               \documentclass[fleqn,12pt]{article}     \usepackage[margin=1in]{geometry}     \usepackage{times, amsmath, setspace, breqn}          \doublespace          \begin{document}          \noindent          \setlength{\mathindent}{0pt}          \begin{dmath}[style={\mathindent=0pt}]     \left((-1-n) \left(-1/((-2+n) \sigma_{i} )k^2 x_{\alpha,i,j}  \left|\frac{y_{i} -\mu_{i} }{\sigma_{i} }\right|^{-1+k} \left(\left(\frac{k}{-2+n}\right)^{\frac{1}{k}} \\     \times \sqrt{B\left[\frac{1}{k},\frac{n}{k}\right]}\right)^{-k} \left(\sqrt{1+\frac{12 tan^{-1}[\phi_{i} ]^2}{\pi ^2}-\frac{16 tan^{-1}[\phi_{i} ]^2 B\left[\frac{2}{k},\frac{-1+n}{k}\right]^2}{\pi ^2 B\left[\frac{1}{k},\frac{n}{k}\right] B\left[\frac{3}{k},\frac{-2+n}{k}\right]}} \\     \times \sqrt{B\left[\frac{3}{k},\frac{-2+n}{k}\right]}\right)^k \left(1+\frac{2 tan^{-1}[\phi_{i} ] sgn[y_{i} -\mu_{i} ]}{\pi}\right)^{-k} \sgn\left[\frac{y_{i} -\mu_{i} }{\sigma_{i} }\right] \\     +1/((-2+n) \pi )2 k^2 x_{\alpha,i,j}  \left|\frac{y_{i} -\mu_{i} }{\sigma_{i} }\right|^k tan^{-1}[\phi_{i} ] \left(\left(\frac{k}{-2+n}\right)^{\frac{1}{k}} \sqrt{B\left[\frac{1}{k},\frac{n}{k}\right]}\right)^{-k} \\     \times \left(\sqrt{1+\frac{12 tan^{-1}[\phi_{i} ]^2}{\pi ^2}-\frac{16 tan^{-1}[\phi_{i} ]^2 B\left[\frac{2}{k},\frac{-1+n}{k}\right]^2}{\pi^2 B\left[\frac{1}{k},\frac{n}{k}\right] B\left[\frac{3}{k},\frac{-2+n}{k}\right]}} \sqrt{B\left[\frac{3}{k},\frac{-2+n}{k}\right]}\right)^k \\     /\left(k\left(1+1/(-2+n)k \left|\frac{y_{i} -\mu_{i} }{\sigma_{i} }\right|^k \left(\left(\frac{k}{-2+n}\right)^{\frac{1}{k}} \sqrt{B\left[\frac{1}{k},\frac{n}{k}\right]}\right)^{-k} \\     \times \left(\sqrt{1+\frac{12 tan^{-1}[\phi_{i} ]^2}{\pi ^2}-\frac{16 tan^{-1}[\phi_{i} ]^2 B\left[\frac{2}{k},\frac{-1+n}{k}\right]^2}{\pi^2 B\left[\frac{1}{k},\frac{n}{k}\right] B\left[\frac{3}{k},\frac{-2+n}{k}\right]}}    \sqrt{B\left[\frac{3}{k},\frac{-2+n}{k}\right]}\right)^k \\     \times \left(1+\frac{2 tan^{-1}[\phi_{i} ] sgn[y_{i} -\mu_{i} ]}{\pi }\right)^{-k}\right)\right)     \end{dmath}          \end{document}      Note that breqn allows you to break across lines. For instance, this runs fine:               \documentclass[fleqn,12pt]{article}     \usepackage[margin=1in]{geometry}     \usepackage{times, amsmath, amssymb, graphics, setspace, breqn}          \doublespace          \begin{document}          \noindent          \setlength{\mathindent}{0pt}          \begin{dmath}[style={\mathindent=0pt}]     -\text{Log}[2]+\text{Log}[k]-\text{Log}[\beta  \psi ]-\frac{3}{2}\text{Log}\left[\text{Beta}\left[\frac{1}{k},\frac{n}{k}\right]\right]+\frac{1}{2} \text{Log}\left[1+\frac{12 \text{ArcTan}[\gamma  \omega ]^2}{\pi ^2}-\frac{16 \text{ArcTan}[\gamma  \omega ]^2 \text{Beta}\left[\frac{2}{k},\frac{-1+n}{k}\right]^2}{\pi^2 \text{Beta}\left[\frac{1}{k},\frac{n}{k}\right] \text{Beta}\left[\frac{3}{k},\frac{-2+n}{k}\right]}\right]+\frac{1}{2} \text{Log}\left[\text{Beta}\left[\frac{3}{k},\frac{-2+n}{k}\right]\right]+\frac{1}{k}(-1-n) \text{Log}\left[1+1/(-2+n)k \text{Abs}\left[\frac{x-\alpha  \chi }{\beta  \psi }\right]^k \left(\left(\frac{k}{-2+n}\right)^{\frac{1}{k}} \sqrt{\text{Beta}\left[\frac{1}{k},\frac{n}{k}\right]}\right)^{-k} \\      \left(\sqrt{1+\frac{12 \text{ArcTan}[\gamma  \omega ]^2}{\pi ^2}-\frac{16 \text{ArcTan}[\gamma  \omega ]^2 \text{Beta}\left[\frac{2}{k},\frac{-1+n}{k}\right]^2}{\pi^2 \text{Beta}\left[\frac{1}{k},\frac{n}{k}\right] \text{Beta}\left[\frac{3}{k},\frac{-2+n}{k}\right]}} \sqrt{\text{Beta}\left[\frac{3}{k},\frac{-2+n}{k}\right]}\right)^k \\     \left(1+\frac{2 \text{ArcTan}[\gamma  \omega ] \text{Sign}[x-\alpha  \chi ]}{\pi }\right)^{-k}\right]     \end{dmath}     Alpha     \end{document}      and the output is: ![and this looks just like I need it to](http://i.stack.imgur.com/VAHKo.jpg)


title: Using LyX bibliography sorting order is not working

text: I am new to Lyx and have spent the better part of a week getting things to work correctly. I am stumped how to fix the problem of the bibliography sorting order not working. I have a LyX file like this: > Mary had a little lamb. I insert a citation so now I have: > Mary had a little lamb [1]. I then realize that I needed to cite Mary so I insert again: > Mary [2] had a little lamb [1]. No matter what I do in settings etc, I can not get it to print: > Mary [1] had a little lamb [2]. My set up: LyX version 2.0.4 MiKTex 2.9 I am using Zotero in conjunction with LyX to build BibTeX database. I have tried different styles: `unsrt`, `plain`, `ieeter` LyXserverPipe: \.\pipe\lyxpipe I am totally tired of trying to get this up and working. I am sure the effort will be repaid, but what a pain. Any help is appreciated.


title: How to create a conditional which checks the value of written text in plain TeX?

text: I need to create a conditional in plain TeX like this:               IF #1 = "N"     THEN         PRINT "TRUE"     ELSE         PRINT "#1"      I tried various ways in TeX. The solution must be simple, but none of the ways I tried worked, e.g.:               \if#1="N"         N     \else         #1     \fi      There is never any other code inside `#1` when "#1" is set to "N", e.g., `\macro{N}`, it is never `\macro{\emph{N}}`. How can I create a conditional which checks the value of written text?


title: Sizing for 'given that' symbol - vertical bar

text: I want to write an equation with `$\mid$`, but it is too small, can i make it bigger in any way? I am kinda new to TeX so i have no idea how to do it.


title: Name, address, email Template (sort of empty table) for the attendees of a seminar?

text: I want a three column "Name", "Address", "email" template with appropriate spacing. I know how to do this in MS word. But I am just curious how to do it in Latex? I might need space in the heading for including the details of the seminar. EDIT: My poor writing skills has made it impossible for people to answer on this. I tried to make a minimal working example.               \documentclass{article}     \usepackage{longtable}     \begin{document}           \begin{longtable}{|c|c|c|}     \hline     Name & Affliation & Email \\     \hline     \endhead       &  &  \\     \hline      &  &  \\     \hline     &  &  \\     \hline     &  &  \\     \hline     &  &  \\     \hline     \end{longtable}     \end{document}      Now I want to adjust the size of rows and columns coming out of this table. I hope that clears it.


title: How to replace a mathfrak uppercase letter by a "large" lowercase

text: My students find it difficult to read (and reproduce) `\mathfrak{S}`. I'd like to replace it with a large `\mathfrak{s}`. Here is what I've done so far               \documentclass{article}     \usepackage[T1]{fontenc}     \usepackage[utopia]{mathdesign}     \usepackage{graphicx,amsmath}     \begin{document}     \begin{gather}     \mathfrak{s}(t) = \mathfrak{S}\cos(\omega t) \\     \mathfrak{s}(t) = \scalebox{1.6}{$\mathfrak{s}$}\cos(\omega t)     \end{gather}     \end{document}        1. Is there a cleaner way to scale the `\mathfrak{s}`?   2. Is it possible to make `\mathfrak{S}` expands to `\scalebox{1.6}{$\mathfrak{s}$}`?   3. Is there a better aproach?


title: Beamer - Multiple Authors - Formatting the title page

text: I have 4 authors for the beamer presentation. I tried to put them but its not properly aligned. Here is a snapshot: ![enter image description here](http://i.stack.imgur.com/fy371.png) Here is the MWE:               \documentclass{beamer}     \usetheme{CambridgeUS}     \useoutertheme{infolines}     \author[Subham Soni S. \& Mithun C.K. \& Karthikeyan \& Shantikumar L.]     {%        \texorpdfstring{             \begin{columns}                 \column{.45\linewidth}                 \centering                 Subham Soni S.\\                 \href{mailto:subhamsoni0049@pec.edu}{subhamsoni0049@pec.edu}                 \column{.45\linewidth}                 \centering                 Mithun C.K.\\                 \href{mailto:subhamsoni0049@pec.edu}{subhamsoni0049@pec.edu}                 \column{.45\linewidth}                 \centering                 Karthikeyan\\                 \href{mailto:subhamsoni0049@pec.edu}{subhamsoni0049@pec.edu}                 \column{.45\linewidth}                 \centering                 Shantikumar L.\\                 \href{mailto:subhamsoni0049@pec.edu}{subhamsoni0049@pec.edu}             \end{columns}        }        {John Doe \& Jane Doe}     }     \title{Work Culture}     \begin{document}     \begin{frame}     \titlepage     \end{frame}     \end{document}      If the authors can be arranged vertically I feel that would be better and down below in the pdf in the 3 boxes , the author names are concatenated in the first box, I saw in of the beam ppts that the authors were separated in another row. How to do that ?


title: Error when installing TexLive from the internet. Unexpected EOF in archive

text: I'm a new user of Texlive, and I'm trying to download it from the internet using the first link provided by this page: https://www.tug.org/texlive/ When I get to the installation of the cm-super package, I get this error               ./tlpkg/installer/xz/xzdec.i386-linux: (stdin): File is corrupt     tar: Unexpected EOF in archive     tar: Unexpected EOF in archive     tar: Error is not recoverable: exiting now     untar: untarring /usr/local/texlive/2013/temp/cm-super.tar failed (in         /usr/local/texlive/2013/texmf-dist)     untarring /usr/local/texlive/2013/temp/cm-super.tar failed, stopping install.     Installation failed.     Rerunning the installer will try to restart the installation.     Or you can restart by running the installer with:       install-tl --profile installation.profile [EXTRA-ARGS]     ./install-tl: Writing log in current directory: /home/josh/Downloads/install-tl-20140407/install-tl.      I get the same everytime I try to restart the installation. I have read other posts about it and they recommend downloading the .iso file, but since my internet connection is very slow, it'd be hard for me to get it. Is there any way to fix it, like downloading the package manually and then tell the installer to skip that package, or something like that? P.S: I'm using Linux Mint 15 Olivia Thanks a lot.


title: Drawing vertical arrow to a table column

text: I would like to draw an arrow to the center of a table column as the following. How can I do that? ![enter image description here](http://i.stack.imgur.com/Dc8ZN.png)


title: not always et al, sometime full author list

text: I am having an odd problem; sometimes the full list of authors is inserted in the text, ie. the citation is not shortened to `name et al.` (which is what I want). I am confident it is not an error in the bibtex entry, as it happens for the same citation, when the cite key is simply copied and pasted from the bib file. The only potential pattern I can spot as to when full author list is cited, is sometimes it does it for the first citation in a new `\section` environment. I am using the `natbib` package with the `report` document class. Any thoughts would be appreciated.


title: How can systems be side by side with an arrow between them

text: Here's my problem : I'd like to a write many equivalent systems of equations. Therefore, I'd like the first to be at the left, then an arrow (\Leftrightarrow, for example, since they're equivalent :)), a second one on the right, and then, the others vertically aligned with the second. Basically, I want to do the same thing that can be done with the align environment, but with systems. Nevertheless, I didn't figure it out. Here's what I tried :               \documentclass[11pt]{article}     \usepackage{envmath}     \begin{document}      \[     \begin{System}        x + y = 3 \\        x - y = 1     \end{System} \Leftrightarrow      \begin{System}      x=2\\       y=1     \end{System}     \]     \end{document}      Would you have any solution ?


title: How to create a conditional which checks if one or another condition is true in plain TeX?

text: I need to make a conditional like this:               IF #1 > \variable OR #1 = 0     THEN        PRINT "True"     ELSE        PRINT "False"      If `#1` is greater than `\variable` or is equal to `0`, then it it true. The value only contains integers of 0 or greater. There are never any decimals. I have this conditional in plain TeX, which checks if `#1` is greater than `\variable`, but I do not know how to add the `#1 = 0` part.               \ifnum0#1>\variable         True     \else         False     \fi      How can I create a conditional that checks if at least one of these conditionals is true?


title: Part navigator in beamer?

text: I have a 2 hour presentation, which contains 3 parts. I'm using `Warsaw` theme, which have a top bar of two vertical lists: section list at the left, and the subsection list at the right. Can I add a vertical part list to the left-most of the top bar (like 1), or, a horizontal part list to the bottom-left of the frame (like 2)? Or anywhere? ![screenshot](http://i47.tinypic.com/30kac89.png) MWE:               \documentclass{beamer}          \usetheme{Warsaw}     \usecolortheme{spruce}          \title { Example Beamer }     \subtitle { Sub Title }     \author { Ray J. Stomach }          \AtBeginPart{         \begin{frame}             \partpage         \end{frame}     }     \AtBeginSection{         \begin{frame}             \tableofcontents[currentsection]         \end{frame}     }          \newcommand\testsubsection[1]{         \subsection{#1}         \begin{frame}             \begin{itemize}                 \item A black cat                 \item jumps over a big                 \item a blat fox             \end{itemize}         \end{frame}     }          \begin{document}          \frame{\maketitle}          \part{Part 1}         \section{Section 1}            \testsubsection{Subsection A}            \testsubsection{Subsection B}            \testsubsection{Subsection C}              \section{Section 2}            \testsubsection{Subsection A}            \testsubsection{Subsection B}            \testsubsection{Subsection C}              \section{Section 3}            \testsubsection{Subsection A}            \testsubsection{Subsection B}            \testsubsection{Subsection C}          \part{Part 2}         \section{Section 1}            \testsubsection{Subsection A}            \testsubsection{Subsection B}            \testsubsection{Subsection C}              \section{Section 2}            \testsubsection{Subsection A}            \testsubsection{Subsection B}            \testsubsection{Subsection C}              \section{Section 3}            \testsubsection{Subsection A}            \testsubsection{Subsection B}            \testsubsection{Subsection C}          \part{Part 3}         \section{Section 1}            \testsubsection{Subsection A}            \testsubsection{Subsection B}            \testsubsection{Subsection C}              \section{Section 2}            \testsubsection{Subsection A}            \testsubsection{Subsection B}            \testsubsection{Subsection C}              \section{Section 3}            \testsubsection{Subsection A}            \testsubsection{Subsection B}            \testsubsection{Subsection C}          \end{document}


title: Putting an equal sign both at the end and at the beginning of the line (dmath)

text: I'm using dmath for my equations, because it breaks lines automatically. I've been taught that if I have two formulae separated by an equal sign and they are on different lines then the equal sign should be present both at the end of the first line and at the beginning of the second one. (And it looks prettier, too, in my opinion.) dmath puts the equal sign only at the beginning of the second line. When I put two equal signs between the equaltions it breaks the line twice and the first equal sign ends up as a separate line. I suppose I could solve this problem by using equation instead of dmath and forcing line breaks but I like automatic line breaks. Is there any way to tell dmath to put the equal sign on both lines? (I also have the same problem with +, it appears only at the beginning of the second line.)


title: Font name in LuaTeX's fontspec

text: I have a document using `fontspec` which works fine with XeTeX, but a the Linux Libertine Initialis O font is not found when compiling with LuaTeX: Here is a MWE reproducing the problem:               \documentclass{scrbook}          \usepackage{fontspec}     \usepackage{xunicode}     \defaultfontfeatures{Ligatures=TeX}     \setmainfont{Linux Libertine O}     \newfontfamily\lettrinefont{Linux Libertine Initials O}          \usepackage{blindtext}          \begin{document}          \blinddocument          \end{document}      With `lualatex` (TL2011), it returns:               !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!     !     ! fontspec error: "font-not-found"     !      ! The font "LinuxLibertineInitialsO" cannot be found.     !      ! See the fontspec documentation for further information.     !      ! For immediate help type H <return>.     !...............................................            l.7 ...ly\lettrinefont{Linux Libertine Initials O}      Here is the font in `fc-list`:               Linux Libertine Initials O:style=Initials      My `~/.texlive2011/texmf-var/luatex-cache/generic/names/otfl-names.lua` also contains an entry for this font:                 {        ["familyname"]="Linux Libertine Initials O",        ["filename"]={ "fxli.otf", false },        ["fontname"]="LinLibertineIO",        ["fullname"]="Linux Libertine Initials O",        ["names"]={         ["family"]="Linux Libertine Initials O",         ["fullname"]="Linux Libertine Initials O",         ["psname"]="LinLibertineIO",         ["subfamily"]="Initials",        },        ["size"]={},        ["slant"]=0,        ["weight"]=400,        ["width"]=5,       },      Am I missing something?


title: Emacs Predictive Mode does not work for LaTeX documents

text: After installing the Predictive Mode package for Emacs 23.3 on Windows 7, it will not load the LaTeX libraries when I run the Predictive-Mode function. I get the following message:               Warning (emacs): Predictive major-mode setup function predictive-setup-latex failed; latex-mode support disabled      Predictive mode is functional for non-Latex documents. Has anyone run into this before? How do I get predictive mode to work for Latex documents, which is why I wanted to install it anyway? The path to the predictive folder and the latex folder is `C:\Program files (x86)\emacs\\.emacs.d\predictive\latex`. Any thoughts?


title: Showing ISBN using IEEEtran.bst

text: I saw BibTex - Show ISBN number? where it says that `IEEEtran.bst` will show the ISBN data. I am using this in my thesis, but it does not show the ISBN data. Can you suggest what could be wrong or what changes are required?


title: problem with "crop circles" in tikz knot library

text: Using the knots library for tikz, I get very thin outlines of the circumferences of the clipping circles. How do I make them disappear? Here is a MWE:               \documentclass{minimal}     \usepackage{tikz}     \usetikzlibrary{knots}          \newcommand*\anglei{68}     \newcommand*\radiusi{3.25}          \newcommand*\angleii{37}     \newcommand*\radiusii{5}          \begin{document}     \begin{tikzpicture}       \begin{knot}%       [%         draft mode=off,%         flip crossing/.list={4,5,8,9},%         clip width=0,%         clip radius=15pt,%         line width=1pt,%         background color=white,%         only when rendering/.style={%             draw=black,%             double distance=12pt,%         }%       ]%         \strand[double=red] (0,1) arc[start angle=270,delta angle=\anglei,radius=\radiusi] (3,3)           arc[start angle={90+\anglei},delta angle=-\anglei,radius=\radiusi] (6,5);         \strand[double=orange] (1,6) arc[start angle=180,delta angle=\anglei,radius=\radiusi] (3,3)           arc[start angle=\anglei,delta angle=-\anglei,radius=\radiusi] (5,0);         \strand[double=yellow] (0,5) arc[start angle=90,delta angle=-\angleii,radius=\radiusii] (3,4)           arc[start angle={270-\angleii},delta angle=\angleii,radius=\radiusii] (6,3);         \strand[double=green] (0,3) arc[start angle=90,delta angle=-\angleii,radius=\radiusii] (3,2)           arc[start angle={270-\angleii},delta angle=\angleii,radius=\radiusii] (6,1);         \strand[double=blue] (3,6) arc[start angle=0,delta angle=-\angleii,radius=\radiusii] (2,3)           arc[start angle={180-\angleii},delta angle=\angleii,radius=\radiusii] (1,0);         \strand[double=violet] (5,6) arc[start angle=0,delta angle=-\angleii,radius=\radiusii] (4,3)           arc[start angle={180-\angleii},delta angle=\angleii,radius=\radiusii] (3,0);       \end{knot}%     \end{tikzpicture}     \end{document}      ![Note the arcs of the clipping circles at each crossing.](http://i.stack.imgur.com/bGGzE.png)


title: Problem with tilde in \bibliography using BibTeX and RefTeX

text: I have a problem using a tilde in the `\bibliography{}`. Consider the following code               \documentclass{article}     \begin{document}     \cite{ref09:man}          \bibliographystyle{plain}     \bibliography{~/bug.bib}     \end{document}      with "bug.bib" located in my home directory "~/" and defined as > @Manual{ref09:man, title = {Reftex user manual, Version 4.34}, year = 2009 } Now running "pdflatex" and then "bibtex", give then following error from BibTeX               White space in argument---line 4 of file d.aux      : \bibdata{\protect      :                   \unhbox \voidb@x \penalty \@M \ {}/bug.bib}     I'm skipping whatever remains of this command     I found no database files---while reading file d.aux     Warning--I didn't find a database entry for "ref09:man"      This error can be fixed by using `\string~` instead of `~`, i.e.               \bibliography{\string~/bug.bib}      However, now there is a problem with RefTeX not finding the BibTeX database. When I enter `\cite` and hit return in emacs I get: > No valid bibliography in this document, and no default available (An absolute path would have solved this issue, e.g. `\bibliography{/home/userName/bug.bib}`, but I cannot use that since I use two machines one at home and one at work with different absoulte path to the home directory)


title: LyX: Question mark [?] instead of reference number after installing new .bst file

text: Hello I'm new in using LyX 2.0.6 with MacTex, and I'd try to import a citation style (file named `plos2009.bst` from http://www.ploscompbiol.org/static/latexGuidelines) into the BibTex style folder. I added the `.bst` file with reference to the way suggested: http://www.flukylogs.blogspot.com/2009/09/install-style-files-in-lyx.html (I have tried both methods of directly dragging the .bst file to the folder and using the terminal). After reconfigure LyX the new citation style of "plos2009" appeared under the "style" scroll bar in "insert -> citation". However the PDF document generated only contain [?] instead of the reference number. Instead there is no such problem if the `.bst` file was moved to the desktop and linking it by pressing "Browse" in "insert -> citation". There was no problem in using the pre-exist citation style inside LyX like Vancouver style. I would like to know the reason.


title: PgfPlots with labeled plots extend outside the graph box

text: Sorry for the confusing title. The MWE               \documentclass{standalone}     \usepackage{pgfplots}          \begin{document}              \begin{tikzpicture}[scale=0.75]             \begin{axis}[ylabel=Y-Axis, xlabel=X-Axis, xmin=0, xmax=10, ymin=0, ymax=12, clip=false, yticklabel pos=right, ylabel near ticks]             \pgfplotsinvokeforeach{0.01,0.1,0.9}{                 \addplot[mark=none, domain=0.0:10, thick] {-ln(#1/5^x)/ln(5)} node [pos=0,left] {$c_x=#1$};             }             \end{axis}         \end{tikzpicture}          \end{document}      produces the following graph ![Graph showing plot extending outside of the box.](http://i.stack.imgur.com/ZjTu7.png) This is just what I want... except that the c_x=0.01 line is extending outside of the box! Setting `clip=false` is necessary to get the `c_x=` labels to show up, but I think that it's producing this side-effect. How can I have my cake and eat it too? That is, how can I have my automagically-positioned labels on the left and my graph nicely contained on the right?


title: Compute the x distance between two nodes

text: Is there a way to define a macro which would _evaluate to_ the x part of the distance between two nodes? I know there are the point registers `\p` and the correspoding `\x` commands, but I find them rather cumbersome.               \documentclass{article}     \pagestyle{empty}     \usepackage{tikz}     \usetikzlibrary{positioning}          \newcommand{\xdist}[2]{%       % Should compute a parseable representation of the       % x part of the distance between two nodes       1cm     }          \begin{document}         \begin{tikzpicture}             \node[rectangle,draw] (a) {a\strut};             \node[rectangle,draw,below right=0.2cm of a] (b) {b\strut};             \node[rectangle,draw,below=0.2cm of b.south east,                   anchor=north east,                   minimum width=\xdist{b.east}{a.west}] (ab) {ab\strut};         \end{tikzpicture}     \end{document}      ![Result of compilation](http://i.stack.imgur.com/tCUTY.png) In the above MWE, the `\xdist` command is supposed to compute the minimum width of the `ab` node, but the value is currently hard-coded. I am looking for a better way of Creating a node fitting the horizontal width of two other nodes.


title: Using @set entries in biber --> No author display in second entry

text: I'd like to shorten the bibliography by combining entries of the same authors and years (but different articles) by using **biber** 's @set-function. If combining two bibliography entries (Bringmann.2005 and Bringmann.2005b to Bringmann_2005), the output looks like: ![enter image description here](http://i.stack.imgur.com/ZKr28.jpg) To shorten this a bit, the author-list of Bringmann.2005b should disappear. Like: G. Bringmann, A. J. Price Mortimer, P. A. Keller, M. J. Gresser, J. Garner, M. Breuning, Angewandte Chemie International Edition **2005** , _44_ , 5384–5427; Angewandte Chemie **2005** , _117_ , 5518–5563. My .bib-file is updated very often. Therefore, I combine one entryset.bib file (containing **@set-entries** ; not beeing updated regularly) and one testbib.bib (containing all articles, books etc.; updated very often). Here some code:               \documentclass[%     paper=A4,     twoside=true,     openright,     parskip=full,     chapterprefix=true,     11pt,     headings=normal,     bibliography=totoc,     listof=totoc,     titlepage=on,     captions=tableabove,     draft=false,     ]{scrreprt}%               \usepackage[ansinew]{inputenc}     \usepackage[T1]{fontenc}     \usepackage[ngerman]{babel}     \usepackage{csquotes}     \usepackage[backend=biber,bibencoding=ascii,style=chem-angew]{biblatex}     \bibliography{entryset,testbib}                    \begin{document}     This is the text.\cite{Bringmann_2005}          \printbibliography     \end{document}      the _entryset.bib_ -file looks like:               @Set{Bringmann_2005,     entryset = {Bringmann.2005, Bringmann.2005b},     }      the _testbib.bib_ -file looks like:               @article{Bringmann.2005,      author = {Bringmann, Gerhard and Price Mortimer, Anne J. and Keller, Paul A. and Gresser, Mary J. and Garner, James and Breuning, Matthias},      year = {2005},      title = {Atroposelective Synthesis of Axially Chiral Biaryl Compounds},      pages = {5384--5427},      volume = {44},      number = {34},      issn = {1433-7851},      journal = {Angewandte Chemie International Edition},      doi = {10.1002/anie.200462661}     }               @article{Bringmann.2005b,      author = {Bringmann, Gerhard and Price Mortimer, Anne J. and Keller, Paul A. and Gresser, Mary J. and Garner, James and Breuning, Matthias},      year = {2005},      title = {Atropselektive Synthese axial-chiraler Biaryle},      pages = {5518--5563},      volume = {117},      number = {34},      issn = {00448249},      journal = {Angewandte Chemie},      doi = {10.1002/ange.200462661}     }      Is there a way to manipulate the @set entry or something else to fix this problem? Thank you very much in advance, guys! Greetings, Bernd


title: Using `environ` to make a list of environments?

text: In my document I use an `amsthm` environment called `question`, which I use to, well, pose questions to myself for later reference. However, they are spread out in the text. I know `ntheorem` has a `\listoftheorems` command or something like that which does exactly what I want. However, I have quite some bad experiences with `ntheorem`concerning the use of `ntheorem`together with other packages (it only occured when I used `mathtools` and something which I have forgotten about...) which introduced quite strange bugs, so I would want to avoid `ntheorem` altogether for the moment. So, is this possible to do this with `environ` as it provides some useful hooks? Preferably it would be nice if the list also allows me (optionally) to include a short description and of course a page number. The environment is defined as `\newtheorem{question}{Question}`. **Edit:** I have found `thmtools` which apparently also has a command `\listoftheorems` (and a way to redefine the heading). Would it be possible to extend this command such that I am able to add a small description?


title: Problem with fourier package and expert option

text: I am compiling some documents using pdfLaTeX and I have installed the expert Type1 files (.pfb and .pfm) for the Adobe Utopia fonts in order to use the `fourier` package with the expert option, which makes available small caps and text ("oldstyle") figures. I think the files have been installed correctly, since I get the titling face, true small caps, and text figures, but I have found that I have some problems with the ligatures ff and ffi, being replaced in the resulting pdf with V and Y, correspondingly (the ligature fl is available, though). Besides, if I use the oldstyle option when loading the package, the lining figures do not get the right spacing, as can be seen when a number starts with the digit 1 (see 2012 in my MWE below). If I don't use that option, I don't get the text figures either with the `\textsc` command (text figures are in the same file as small caps) or with the command `\oldstyle`, or with any of the other usual approaches based on `textcomp` or `fontaxes`. EDIT: I have changed my MWE to load the package `fonttable` and check the table of faces provided by the family I'm using. I have also added to this post my .map file for the package `fourier` with the option `expert`. While slots 28 and 29 in the table contain the ligatures for fi and ff, slots 30 and 31 - where I guess other ligatures should appear -, contain Y and Z. I have checked that the OpenType face includes the ligature ff and the triple ligature ffi. Shouldn't they be also in the "expert" set for T1 encoding?               \documentclass[12pt]{memoir}          \usepackage[expert,oldstyle]{fourier}     \usepackage{texttable}     %\usepackage{textcomp}     %\usepackage{fontaxes}          \begin{document}     \pagestyle{empty}          \pdfmapline{=futr8x UtopiaExp-Regular <putr8x.pfb}     \xfonttable{T1}{\rmdefault}{m}{n}     \newpage          Use of ligatures at the office for this affair.          \textsc{0123456789}          \textsc{2012}          0123456789  17 18 2012          \end{document}      My .map file is fourier-utopia-expert. It is located in the path `\fonts\map\dvips\fourier` in the main folder of the MikTeX 2.9 distribution.               %%     %% Here is utopia-expert (commercial)     %%     futb8x UtopiaExp-Bold <putb8x.pfb     futbi8x UtopiaExp-BoldItalic <putbi8x.pfb     futbo8x UtopiaExp-Bold " .167 SlantFont " <putb8x.pfb     futr8x UtopiaExp-Regular <putr8x.pfb     futri8x UtopiaExp-Italic <putri8x.pfb     futro8x UtopiaExp-Regular " .167 SlantFont " <putr8x.pfb     futs8r Utopia-Semibold "TeXBase1Encoding ReEncodeFont " <8r.enc <puts8a.pfb     futs8x UtopiaExp-Semibold <puts8x.pfb     futsi8r Utopia-SemiboldItalic "TeXBase1Encoding ReEncodeFont " <8r.enc <putsi8a.pfb     futsi8x UtopiaExp-SemiboldItalic <putsi8x.pfb     futso8r Utopia-Semibold " .167 SlantFont TeXBase1Encoding ReEncodeFont " <8r.enc <puts8a.pfb     futso8x UtopiaExp-Semibold " .167 SlantFont " <puts8x.pfb     futrc8r Utopia-RegularSC "TeXBase1Encoding ReEncodeFont " <8r.enc <putrc8a.pfb     futsc8r Utopia-SemiboldSC "TeXBase1Encoding ReEncodeFont " <8r.enc <putsc8a.pfb     futrd8r Utopia-Titling "TeXBase1Encoding ReEncodeFont " <8r.enc <putrd8a.pfb     futc8r Utopia-Black "TeXBase1Encoding ReEncodeFont " <8r.enc <putc8a.pfb     futc8x UtopiaExp-Black <putc8x.pfb     futco8r Utopia-Black " .167 SlantFont TeXBase1Encoding ReEncodeFont " <8r.enc <putc8a.pfb     futco8x UtopiaExp-Black " .167 SlantFont " <putc8x.pfb


title: Table Vertical Alignment not functioning

text: So I'm creating some tables and trying to use the array package to vertically align the text in some of my columns. Unfortunately whether I use `p{xcm}`, `m{xcm}` or `d{xcm}` the column is always aligned to the top of the cell. My code is like this                   \begin{center}         \begin{tabularx}{\textwidth}{|m{4cm} X|}         \hline         Text that should center align & Lorem ipsum dolor sit amet,         eros elitr dolore sea et, vel ut enim vocent eligendi, quem maluisset urbanitas in               mei. Cu mea stet vivendum. Vis agam salutatus laboramus no.          Usu natum laboramus ullamcorper an.         Lorem ipsum dolor sit amet, eros elitr dolore sea et, vel          ut enim vocent eligendi, quem maluisset urbanitas in mei.          Cu mea stet vivendum. Vis agam salutatus laboramus no. Usu natum         laboramus ullamcorper an. \bigstrut \tabularnewline         \hline         \end{tabularx}         \end{center}      As you can see, the size of the each row (There is only one in my example to save space here) swells to increase the height of the row, and I would like the left hand column to center align vertically, but without a functioning array package this doesn't happen.


title: Add a field to BibLaTeX output when \ifciteseen is true

text: I use `biblatex` with verbose and cite via `\footcite{...}` throughout the document. Problem is: if citing the same source twice, the verbose style outputs author surname and booktitle - but i need it to output author surname and year. I tried to fix it myself and got so far to change the `verbose.cbx` in `\\\MiKTeX 2.9\tex\latex\biblatex\cbx` What I figured out is that (IMHO) is if citeseen is true `cite:short` or `cite:shorthand` bibmacro will be used. And I tried to modify               \newbibmacro*{cite:short}{%       \printnames{labelname}%       \setunit*{\nametitledelim}%       \printtext[bibhyperlink]{%         \printfield[citetitle]{labeltitle}}}      in this file, using `\printfield{year}` and whatnot. However there's no effect, even if I delete all these lines. So I might be on the wrong track after all... If someone knows more and is willing to help - i'd be glad glad glad :)). Minimal example (or what I consider to be minimal in my case) below:               \documentclass[12p]{scrartcl}     \usepackage[citestyle=verbose, bibstyle=verbose]{biblatex}     \usepackage[ngerman]{babel}     \usepackage[babel,german=quotes]{csquotes}     \bibliography{test}     \renewcommand*{\labelnamepunct}{\addcolon\addspace}     \DeclareFieldFormat     [article,inbook,incollection,inproceedings,patent,thesis,unpublished]     {title}{#1\isdot}     \begin{document}     blala needs a quote \footcite{Schaefers2}\\     quote schaefers2 againt\footcite{Schaefers2}     \printbibliography          \end{document}       with `test.bib` containing               @INCOLLECTION{Schaefers2,     author = {Weis, Kurt},     title = {Recht},     editor = {Schäfers, Bernhard},     booktitle = {Grundbegriffe der Soziologie},     publisher = {Leske und Budrich},     adress = {Opladen},     year = {2003},     }


title: How do I display symbols in the editor instead of text?

text: Whenever I click a symbol to insert into the editor it just inserts a description of the symbol, instead of the actual symbol image that's displayed on the left in the symbols panel. If we wish to use LaTeX as simply a comprehensive MathType tool and not to compile code, how may this be done?