title: How can I show base-2 long division?

text: I am writing a report in Latex and need to represent the CRC computation. So basically, I need to show the Paper-n-Pencil Method of Long Division in LaTeX. Any idea how I can approach this problem ? Any good reference would be highly appreciated. I plan to write similar thing in LaTeX. ![CRC Computation](http://i.stack.imgur.com/souCS.gif)


title: titling (pkg): bug or feature? (\maketitle in titlingpage works only if first text in page)

text: The `titling` package allows users to customise the appearance of the document title, to include multiple titles etc. In addition to allowing customisation of `\maketitle`, it defines a new environment, `titlingpage`, which is similar to `titlepage` but allows the use of `\maketitle` within the environment to typeset the title, author, date etc. Here's an example based on code from page 5 of the manual:               \documentclass{article}     \usepackage{titling}     \title{Title}     \author{Author}          \begin{document}       \begin{titlingpage}         \setlength{\droptitle}{30pt}% lower the title         \maketitle         A few words\dots         \begin{abstract}A few more words\dots\end{abstract}       \end{titlingpage}     \end{document}      ![titlingpage environment](http://i.stack.imgur.com/8nOd4.png) In trying to answer this question, I tried to use `titlingpage` to typeset the title _below_ an image to be typeset first. When this failed, I produced the following modification of the above example:               \documentclass{article}     \usepackage{titling}     \title{Title}     \author{Author}          \begin{document}       \begin{titlingpage}         A few words\dots         \setlength{\droptitle}{30pt} % lower the title         \maketitle         \begin{abstract}A few more words\dots\end{abstract}       \end{titlingpage}     \end{document}      ![bug or feature?](http://i.stack.imgur.com/gxLMY.png) Not what I expected based on the documentation.... Obviously, it is possible to use `titlingpage`, like `titlepage`, to typeset the title below other things here. But I cannot figure out how to do so **_using`\maketitle`_**. Is this a bug or a feature? Either way, is there a workaround? (If a feature, is this a bug in the documentation?!) Note that on page 4, the manual says that it defines `\maketitle` 'essentially' as follows:               \renewcommand{\maketitle}{%     \vspace*{\droptitle}     \maketitlehooka     {\pretitle \title \posttitle}     \maketitlehookb     {\preauthor \author \postauthor}     \maketitlehookc     {\predate \date \postdate}     \maketitlehookd     }      So, again, nothing to suggest that `\maketitle` will itself start a new page - especially in the `titlingpage` environment. I'm assuming this is not really how it is defined. (And, indeed, the actual code when the `titlepage` option is not active and the document is in one- column mode includes a suspicious-looking `newpage`...) It seems to me that `titlingpage` ought to do something like               \let\oldnewpage\newpage     \let\newpage\relax      and               \let\newpage\oldnewpage      at the beginning and end of the environment if `titlingpage` is to work as advertised. (But I'm sure this particular suggestion would either not work at all or have horrible side-effects or both.)


title: How to add Creative Commons licence to bottom of the page in the tufte-handout class?

text: I can't find a way to add a notice to the bottom of the first page. I tried this but it just flushes all content to the second page and adds the box at the bottom of the first. EDIT: some sample code.               \documentclass{tufte-handout}     \usepackage{amsmath}     \usepackage{graphicx}     \setkeys{Gin}{width=\linewidth,totalheight=\textheight,keepaspectratio}     \usepackage[brazilian]{babel}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{minted}     \makeatletter     \minted@define@extra{label}     \makeatother     \usepackage[ddmmyyyy]{datetime}     \usemintedstyle{tango}     \newminted{cpp}{}     \newmint{cpp}{}     \usepackage[portuguese,ruled]{algorithm2e}     \usepackage{tikz}          \newcommand\copyrighttext{%       \footnotesize text text text text text text text text text text text text       text text text text text text text text text text text text text text text text       text text text text text text text text text text text text text text text text       text text}     \newcommand\copyrightnotice{%       \begin{tikzpicture}[remember picture,overlay]         \node[anchor=south,yshift=10pt] at (current page.south) {\fbox{\parbox{\dimexpr\textwidth-\fboxsep-\fboxrule\relax}{\copyrighttext}}};       \end{tikzpicture}%     }               \title{Best title ever}     \author{Me}     \begin{document}     \copyrightnotice     \maketitle     \section{Things}     text text text text text text     \section{Stuff}     text text text text      \end{document} Generates these two pages: ![Page 1](http://i.stack.imgur.com/wXDx3.jpg) ![Page 2](http://i.stack.imgur.com/OyfxA.jpg)


title: How do I customise my section numbering to start from 2.1?

text: So these sections are to occur at the same level using only `\section`. Except section numbering will start from 1, and go to 2, 3, 4... etc. which is not what I want. What I was is: > 2.1 Summary 2.2 Inventors 2.3 Innovation 2.4 World Patent Coverage 2.5 > Advantages 2.6 Limitations 2.7 Patent Challenges 2.8 Market applications and > opportunities 2.9 Exploitation 2.10 Clinical Trials 2.11 References               \documentclass[a4paper,12pt]{article}     \usepackage[a4paper]{geometry}     \date{April 1, 2012}     \begin{document}     \title{Patrys}     \maketitle          \section{Summary}     \section{Inventors}     \section{Innovation}     \section{World Patent Coverage}     \section{Advantages}     \section{Limitations}     \section{Advantages}     \section{Patent Challenges}     \section{Market Applications and Opportunities}     \section{Exploitation}     \section{Clinical Trials}     \section{References}          \end{document}


title: Positioning in TikZ flow chart?

text: Hi I'm new to the TikZ package (so I apologize if this is an easy question) and I'm having trouble with some formatting. Here's what I have so far:                   \documentclass{article}         \usepackage[latin1]{inputenc}         \usepackage{tikz}         \usetikzlibrary{shapes,arrows}         \usepackage{caption}              \begin{document}                \sffamily           \footnotesize           \begin{tikzpicture}[auto,            block_full/.style ={rectangle, draw=black, thick, fill=white,               text width=20em, text ragged, minimum height=4em, inner sep=6pt},             block_left/.style ={rectangle, draw=black, thick, fill=white,               text width=20em, text ragged, minimum height=4em, inner sep=6pt},             block_noborder/.style ={rectangle, draw=none, thick, fill=none,               text width=18em, text centered, minimum height=1em},             block_assign/.style ={rectangle, draw=black, thick, fill=white,               text width=12em, text centered, minimum height=3em, inner sep=6pt},               line/.style ={draw, very thin, -latex', shorten >=0pt}]             % outlining the flowchart using the PGF/TikZ matrix funtion                       \matrix [column sep=3mm,row sep=3mm] {               % row 1               \node [block_full] (presub) {Pre-Submission:\\                  -  \\                 -  \\                 - }; \\                    %  row 2               \node [block_noborder] (input) {Input data};\\                    % row 3               \node [block_full] (routine) {Routine Checks:\\                  -  \\                -   };  \\                    %  row 4                     \node [block_noborder] (bad1) {Bad result};                     &  \node [block_noborder] (good1) {Good result}; \\                    % row 5               \node [block_left] (influence) {Influence: \\                 -  \\                 -  \\ }; &      \\                    % row 6               \node [block_left] (inliers) {Inliers:\\                -  \\               -  \\ }; &      \\                    % row 7               \node [block_left] (multiple) {Multiple: \\               -  \\               -  \\ }; &      \\                    % row 8               \node [block_left] (cat) {Categorical Variables:\\                  -  \\                 -  \\  }; &    \\                    %  row 9               \node [block_noborder] (bad2) {Bad Result};               & ;     \node [block_noborder] (good2) {Good Result}; \\                                   % row 10                  \node [block_left] (digit) {Digits:\\                  -  \\                 -  \\  }; &    \\                  % row 11                \node [block_assign] (concludeyes) {Conclude yes};               & \node [block_assign] (concludeno) {Conclude no}; \\             };% end matrix           \end{tikzpicture}         \end{document}      Which outputs this: ![enter image description here](http://i.stack.imgur.com/xGs67.png) I haven't added in the pathways yet, but I was wondering if there is a way to enlarge center the first two boxes but keep the two column branches below the Routine box? I drew a little picture of what I'm envisioning for the final chart for clarity. ![enter image description here](http://i.stack.imgur.com/1wVbT.jpg)


title: ModernCV phone symbol

text: I'm trying to build a CV on LaTeX using the `moderncv` template. I have a phone symbol added at the top of the CV for my own telephone number as this was part of the program template, however I would like to use the same symbol for the telephone numbers of my references. LaTeX simply won't process my further `\phone` command. Is there any workaround for this?


title: Writing first part of my thesis

text: \documentclass[a4paper,12pt]{report}      \usepackage{amssymb}     \usepackage{amsmath}      \usepackage{latexsym}     \usepackage{amsthm}      \usepackage{eucal}      \usepackage{eufrak}      \usepackage{graphicx}     \graphicspath{{Pictures/}}     \usepackage[square, numbers, comma, sort&compress]{natbib}     \title{\ttitle}      \linespread{1.375}     \graphicspath{ {images/} }     \usepackage[utf8]{inputenc}     \graphicspath{ {images/} }          \begin{document}          \centerline{ \textbf{Universit\`{a} degli studi di xxxx}}          \vspace{4cm}           \centerline{\textbf{Ph.D  thesis}}          \vspace{2cm}      \centerline{ \textbf{XXVII CICLO}}     \vspace{2cm}      \bigskip     \centerline{ \textbf{Italy is a beautiful country Applications}}     \vspace{4cm}       \centerline{\textbf{NSA}}      \vspace{2cm}      \centerline{\textbf{Academic years : 2011-2014 }}     \newpage          \chapter*{Declaration}          This thesis has been submitted to the university of xxx in fullfilment of the     requirements for the Doctoral degree in Economics, Applied Mathematics and     Operational Research.          \chapter*{Dedication}     To my friends     \newpage     \chapter*{Acknowledgements}          \author{Author Name}     \date{Day Month Year}          \let\cleardoublepage\clearpage     \newpage     \tableofcontents     \newpage     \listoftables          \end{document}      I'm writing my doctoral thesis and this is the cover above. Normally as you can see the size is 12 for the whole thesis but i need a help for increasing to 14 the caracter size of the title which is "Italy is a beautiful country Applications". Please can you tell me how can i increase the size of the title to 14? and also the name of my university which is " Universit`{a} delgi studi di xxx? at the same size(14). Further question: How can i remove the number of pages? As you see it start from the first page. I want to number( with number 1) it starting from the page of contents(which is here page 5). I want to get the page number 1 on the page related to table of contents. thanks


title: How to display special symbols in ConTeXt which are processed by Lua?

text: I have a ConTeXt document containing many special characters. I have followed the instructions at Which symbols need to be escaped in ConTeXt? to ensure they can all display properly in the document, however, as most of my text is processed by Lua, I found some problems. When `\\#` appears in the document, because I want the symbol "#" to be displayed, Lua cannot compile. Also, when double quotes appear in the document, e.g. `"`, Lua cannot compile.   * How can I get these symbols to be displayed in ConTeXt when used with Lua?   * What other special characters need special treatment when used with Lua? Update: Here is some example code:               \define[2]\showtext{%         \startlua             if #1 < 2 then                 context("#2")             end         \stoplua%     }          \starttext         \showtext{1}{This is text \#1.}     \stoptext


title: How do I set up two independent tables of contents

text: I am editing a novel in `memoir` class that requires a table of contents for the whole book (introduction, preface, chronology, bibliography, etcetera) and another independent table of contents for just the original novel (author's preface, chapters). I have been trying to use the `shorttoc` for the book material and the regular toc for the original novel material, but I cannot get the introduction and whatnot to appear in the `shorttoc` alone. This is the structure that I want:               \shorttoc     Introduction      Note on the Text     Chronology     Novel        \toc        Author's Preface        Book One        Chapter One        Etcetera     Bibliography      I am not married to the `shorttoc` approach, so any solution would be welcome, especially if there is a way to create two completely independent tables of contents where I could just `\addcontenstline` to one or the other or both. Update: Using Caramdir's solution, I can get the two tables of contents to appear, but I cannot get them to populate. Here is my code. The individual `\addcontents` lines are in the included files, but I have also tried them in the main file with the same results:               \documentclass{memoir}          \title{The Napoleon of Notting Hill}     \author{G. K. Chesterton}     \date{2012}          \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{ccicons}     \usepackage{graphicx}     \usepackage{natbib}     \usepackage{titletoc}          \begin{document}          \frontmatter          \pagestyle{empty}          \include{maintitle}          \newpage          \include{license}          \newpage          \include{dedication}          \newpage          \pagestyle{simple}          \startcontents     \printcontents{}{-1}{\chapter*{Table of Contents}}          \newpage          \include{introduction}          \newpage          \include{chronology}          \newpage          \mainmatter          \include{title}          \endcontents          \newpage          \startcontents     \printcontents{}{-1}{\chapter*{Contents}}          \include{chapterx} %etcerera          \endcontents          \endmatter          \nobibintoc     \include{bibliography}          \end{document}      Caramdir - The solution at Two independent TOCs would work as well, but neither solution will populate for me. I even cut the code straight from each into a test file, compiled twice, and still got empty headers. I am using ScribTeX to compile online. Might this have something to do with it?


title: increase vertical space between lines

text: I want to increase the vertical space between each of the lines. I know you can use \arraystretch but i am struggling with the package. here is my source:               \documentclass{article}     \usepackage[fleqn]{amsmath}     \usepackage{stix}     \usepackage[shortlabels]{enumitem}     \everymath{\displaystyle}     \begin{document}     \begin{enumerate}       \item Express $0.\dot{3}$ as a fraction. \\             Let $x=0.\dot{3}$ \\             then $10x=3.\dot{3}$ \\             $10x-x=3.\dot{3}-0.\dot{3}$ \\             $9x=3$ \\             $9x=\frac{3}{9}$     \end{enumerate}     \end{document      and the output: ![1](http://i.imgur.com/WC92Bmp.png)


title: Beamer, Singapore Theme Follow up – line above footline and hide footline for single frame

text: I have two follow up questions to an earlier post: Singapore Beamer Theme - add bottom bar with author info.   1. How do I add a horizontal line just above the footline contents?    2. If I add a footline to all slides, how do I remove it from the first slide without removing the original theme's properties?


title: How can I use \lVert and \rVert norm symbols (‖x‖) with the Iwona math font?

text: I want to use `\lVert` and `\rVert` to denote the vector norm. !["Testing ||x||." in CM](http://i.stack.imgur.com/UFIFT.png) With Computer Modern this works quite fine. But when trying to use Iwona as a math font, I run into trouble:               \documentclass{standalone}     \usepackage[math]{iwona}     \usepackage{mathtools}     \DeclarePairedDelimiter\norm{\lVert}{\rVert}     \begin{document}     Testing $\norm{x}$.     \end{document}      !["Testing x." in Iwona](http://i.stack.imgur.com/tJ17A.png) I never had any problems using Iwona as a math font, even with much more exotic symbols. I'm a bit surprised this occurs at this point and of course I'd like to know how to fix it.


title: Biblatex \textcite using a superscript reference number

text: I would like to typeset the citation number produced by `\textcite` as a superscript number, rather than enclosed by brackets, in line with the rest of my document. Is it possible to typeset "Author ^1" when `autocite` is set to `superscript` rather than the default "Author 1"?               \documentclass{report}          \usepackage[backend=bibtex8,autocite = superscript]{biblatex}     \usepackage{filecontents}          \begin{filecontents}{ABib.bib}     @article {article1,      AUTHOR = {Author, A. N.},      TITLE = {A sample paper},      JOURNAL = {Sample journal},      VOLUME = {1},      YEAR = {2013},      NUMBER = {1},      PAGES = {1--2}}     \end{filecontents}          \addbibresource{ABib.bib}          \begin{document}     Someone saw something \autocite{article1}.          \textcite{article1} saw something.     \end{document}      ![The problem: references are different](http://i.stack.imgur.com/fb3XL.png)


title: mdframed in lists

text: I am using a frame environment defined with `mdframed` to write annotations in my documents. When I use this environment as the first thing after a `\label` in a list, the following happens: ![enter image description here](http://i.stack.imgur.com/kHzcp.png) Source:               \documentclass{article}          \usepackage[xcolor]{mdframed}     \newmdenv[hidealllines=true, backgroundcolor=gray!30]{env}          \begin{document}          \begin{enumerate}         \item text              \item \begin{env}             foo         \end{env}              \item more text          \end{enumerate}          \end{document}      The Space before list element 2 is missing and its label is misaligned. Can this be prevented?


title: Crawler Resistance Email Address

text: So I have my CV publicly available on my website and it has both my email address on it, and the email addresses of my references. In the interest of protecting my self and them from spam, I was wondering if there was a good way of adding extra resistance to email addresses when in PDF form. Currently to display the email addresses I use:               \href{mailto:name@domain.tld}{\nolinkurl{name@domain.tld}}      Can I change this somehow to make things a little bit more secure?


My institute requires to put three logos to all presentations. How can I add more than one logo to my beamer presentation?


title: How to output math environment code alongside typeset math?

text: I have a preamble which defines lots of symbols and a LaTeX document for testing them. In particular, I have source like this:               \[\wlength{abc} = 3\]     \[\lang{A} = \lang{\varphi}\]     \[\kplus{L} \defeq \kstar{L} \setminus \emptyword\]      Which faithfully creates this: ![Default output](http://i.stack.imgur.com/RNSy1.png) Now I would like to use the same PDF also as a reference which requires the source code to show up. That is, I want something like that: ![enter image description here](http://i.stack.imgur.com/YFC8y.png) Ideally, what I did by hand here (copy source into a `Verbatim` environment from `fancvrb`) would be done automatically; why write the same thing down twice, blowing up everything? Can this be done and if, how? I guess you would have to rewrite how math environments are translated, but that is beyond me. _Solutions using`pdflatex` are preferred._


title: How to switch between two margin sizes?

text: > **This question led to a new package:**   >  `fullwidth` This is a followup to a similar question. The idea is to switch between two different margin sizes. The answer provided by @godbyk work very well. However, it is difficult if you are using an asymmetric page layout (e.g. `\documentclass[twoside]{article}` and the `fullwidth` environment spans over two pages. Is it possible to make it work in these cases, too? The memoir manual states: > Note that the `adjustwidth` environment applies to complete paragraphs; you > can’t change the width of part of a paragraph except for hanging paragraphs > or more esoterically via `\parshape`. Further, if the adjusted paragraph > crosses a page boundary the margin changes are constant; a paragraph that > is, say, wider at the right on the first page will also be wider at the > right as it continues onto the following page. So, how to do it esoterically ;) MWE:               \documentclass[twoside]{article}          \usepackage{changepage}% provides the adjustwidth environment          % The following code should be used *after* any changes to the margins and     % page layout are made (e.g., after the geometry package has been loaded).     \newlength{\fullwidthlen}     \setlength{\fullwidthlen}{\marginparwidth}     \addtolength{\fullwidthlen}{\marginparsep}          \newenvironment{fullwidth}{%       \begin{adjustwidth*}{}{-\fullwidthlen}%     }{%       \end{adjustwidth*}%     }          \usepackage{lipsum}% provides dummy text          \begin{document}          \lipsum[1]          \begin{fullwidth}         \lipsum[2-10]     \end{fullwidth}          \lipsum[3]          \end{document}


title: Text size in decorate path

text: I use this code to generate text along a path (here, a simple circular path):               % ---  ---   ---   ---   --- QUELQUES TEXTES          \path [postaction={decoration={text along path, text={Tympan d'un astrolabe dans lequel les lignes horaires in{\'e}gales de 1{$^{\text{{\`e}re}}$} esp{\`e}ce     sont des cassiniennes {\`a} 1 p{\^o}le},text align=fit to path,pre length=2em, post length=2em},decorate}]  { (175:\RCapricorne+.15) arc (175:5:\RCapricorne+.15) } ;          \path [postaction={decoration={text along path, text={D. Collin {\copyright} {$2012$}},text align=center},decorate}]   { (200:\RCapricorne+.35) arc (200:228:\RCapricorne+.35) } ;          \path [postaction={decoration={text along path, text={Latitude: {$43^{\circ} 43^{\prime}$} N.},text align=fit to path,pre length=2em, post length=2em},decorate}]     { (252:\RCapricorne+.35) arc (252:290:\RCapricorne+.35) } ;      But I do not know how to change the text size inside this postaction procedure. For example, as the first text is quite long, I want to resize the text. So it is possible? And in what way? Ci-dessous le code utilisé. Rien n'est optimal car je suis un néophyte de TikZ. (Here the code in use. Nothing is optimal under this code, because I'm just a newer in TikZ...)                  % Tracé complet  du tympan d'un astrolabe planisphérique         % Author: Dominique COLLIN         %==============================================================================================         % MATERIEL :         % COMPILATION : nécessite un système Tex complet installé sur le disque dur.         %   Tex Live 2012 pour macintosh intel. (http://www.tug.org/mactex/)         %   pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012)         %   LaTeX2e version < 2011/06/27 >         %   TikZ and PGF sont des packages TeX pour la création de graphiques et dessins programmables.         %   PGF 2012-05-18 CVS build.         %   GNUPLOT version 4.4 patchlevel 3 pour macintoh intel         %   Manuel TikZ = http://www.texample.net/media/pgf/builds/pgfmanualCVS2012-05-18.pdf         %   TeXample.net is a web site dedicated to the wonderful world of TeX and friends.         %   EDITEUR DE TEXTE = TexShop Version 3.11 pour macintosh Intel. (http://www.texshop.org)         % ==============================================================================================         %\documentclass[9pt]{article}%           autres choix : report, book         \documentclass[8pt,article]{memoir}         %\documentclass[8pt]{standalone}         % ==============================================             \usepackage{etex}%             \usepackage[T1]{fontenc}             \usepackage[utf8,applemac]{inputenc}             \usepackage{lmodern, textcomp}             \usepackage{mathrsfs,bm}             \usepackage{amsmath,amssymb,amscd}             \usepackage{comment,relsize}             \usepackage[frenchb]{babel}             % ==============================================             \usepackage[babel=true,kerning=true]{microtype}%pour le package tikZ et les deux points``:''             % ------- TikZ packages.             \usepackage{tikz}             \usepackage{pgfplots}             \usetikzlibrary{arrows,calc,fit,through,intersections}             \usetikzlibrary{decorations} % LATEX and plain TEX when using TikZ             \usetikzlibrary{decorations.text}% texte le long d'un chemin....             \pgfplotsset{compat=newest}             %             %\pagestyle{empty}                 % ==============================================         \begin{comment}         :Title: Tracé du tympan d'un Astrolabe planisphérique         :Tags: mathematical engine;geometry;mathematics;ancient astronomy         :Author: Dominique COLLIN         :Slug: astrolabe         \end{comment}         % -- -- -- -- -- -- -- -- -- --          \begin{document}         % -- -- -- -- -- -- -- -- -- --          \begin{tikzpicture}[line cap=round,line join=round, scale=1]         % ---  ---   ---   ---   --- ---  ---   ---   ---   --- ---  ---   ---   ---   --- ---  ---   ---   ---   ---         % DEFINITIONS DES CONSTANTES / PARAMETRES MODIFIABLES         %  (Define a few constants for easy configuration and computation)         % ---  ---   ---   ---   --- ---  ---   ---   ---   --- ---  ---   ---   ---   --- ---  ---   ---   ---   ---              \pgfmathparse{ 43 + 43/60 +50/3600 }         \let\latitude\pgfmathresult% Latitude du lieu         % --             \pgfmathparse{ 23 + 26/60 }         \let\epsilon\pgfmathresult% Déclinaison du soleil au solstice d'été         % --         \def\rayon{2}% Rayon de la sphère céleste servant à la projection stéréographique         % ---  ---   ---   ---   --- ---  ---   ---   ---   --- ---  ---   ---   ---   --- ---  ---   ---   ---   ---         % CALCULS INITIAUX ET DIVERS         % ---  ---   ---   ---   --- ---  ---   ---   ---   --- ---  ---   ---   ---   --- ---  ---   ---   ---   ---          % -- Les rayons des cercles principaux, des colures des solstices, longueur des divers segments...             \pgfmathparse{ -cot(\latitude) }         \let\K\pgfmathresult% Constante pour le calcul de l'arc semi-diurne             \pgfmathparse{ 2*\rayon*tan((180-\latitude)/2) + 2*\rayon*tan(\latitude/2) }         \let\RHorizon\pgfmathresult% Rayon du cercle horizon             \pgfmathparse{ 2*\rayon*tan((90-\epsilon)/2) }         \let\RCancer\pgfmathresult% Rayon du colure d'ete             \pgfmathparse{ 2*\rayon*tan((90+\epsilon)/2) }         \let\RCapricorne\pgfmathresult% Rayon du colure d'hiver             \pgfmathparse{ 2*\rayon*tan((180-\latitude)/2) }         \let\Rmax\pgfmathresult% Rayon maximal de l'Astrolabe (ou limite des hectémories)             \pgfmathparse{ 2*\rayon*tan(\latitude/2) }         \let\Rmin\pgfmathresult% Rayon minimal de l'Astrolabe             \pgfmathparse{ (\RCapricorne+\RCancer)/2 }         \let\REcliptique\pgfmathresult% Rayon du cercle de l'écliptique             \pgfmathparse{ \RHorizon/2-2*\rayon*tan(\latitude/2) }         \let\yHorizon\pgfmathresult% Ordonnée du centre du cercle horizon             \pgfmathparse{ \rayon*(1/tan((\latitude+90)/2)-tan((\latitude-90)/2))) }         \let\yZenith\pgfmathresult% Ordonnée du Zénith             \pgfmathparse{ -2*\rayon*tan((90+\latitude)/2) }         \let\yNadir\pgfmathresult% Ordonnée du Nadir             \pgfmathparse{ -\epsilon+\epsilon/100 }%         \let\pas\pgfmathresult% Pour créer un pas en déclinaison dans l'intervalle [-epsilon;+epsilon].         % ---  ---   ---   ---   --- ---  ---   ---   ---   --- ---  ---   ---   ---   --- ---  ---   ---   ---   ---     % TRACES DES CERCLES, DES COURBES ET DES SEGMENTS     % ---  ---   ---   ---   --- ---  ---   ---   ---   --- ---  ---   ---   ---   --- ---  ---   ---   ---   ---      \begin{scope}% usage de "scope" afin de limiter l'effet de la commande \clip sur le reste de la figure générale     % -- -- -- -- -- -- -- -- -- --      \clip circle(\RCapricorne+1/150); % limitations de tous les tracés à l'intérieur du cercle du tropique du Capricorne (Hiver)     % -- -- --      %\draw [color=black] (0,0) circle(\Rmax); % Cercle maximal     %\draw [color=blue] (0,0) circle(\Rmin); % Cercle minimal     \draw [color=black] (0,0) circle(\RCancer); % Cercle du solstice d'été     \draw [color=black] (0,0) circle(\RCapricorne); % Cercle du solstice d'hiver     \draw [color=red] (0,0) circle(2*\rayon); % Cercle de l'équateur     \draw [color=black] (0, \yHorizon ) circle(\RHorizon/2); % Cercle de l'horizon du lieu     %\draw [color=green] (0, \REcliptique-\RCancer ) circle(\REcliptique); % Cercle de l'écliptique     % -- -- --     \draw [ ] (0,-\RCapricorne)--(0,\RCapricorne);% Méridien (ligne nord-sud)     \draw [ ] (-\RCapricorne,0)--(\RCapricorne,0);% ligne Est-Ouest     % -- -- --     \coordinate (H0) at (0, \RHorizon-\Rmax); % Centre du cercle horizon     \coordinate (Zenith) at (0, \yZenith);% Zénith     \coordinate (Nadir) at (0, \yNadir);% Nadir     % -- -- --     \fill [black] (0,0) circle (1.5pt); % Marquage de l'origine, centre du tympan     %\fill [black] (H0) circle (2pt); % Marquage du centre du cercle horizon     \fill [black] (Zenith) circle (1.5pt); % Marquage du Zéntih     %\fill [black] (Nadir) circle (3pt); % Marquage du Nadir     \end{scope}     %-----------------     % ---  ---   ---   ---   --- QUELQUES TEXTES     \path [postaction={decoration={text along path, text={Tympan d'un astrolabe dans lequel les lignes horaires in{\'e}gales de 1{$^{\text{{\`e}re}}$} esp{\`e}ce     sont des cassiniennes {\`a} 1 p{\^o}le},text align=fit to path,pre length=2em, post length=2em},decorate}]  { (175:\RCapricorne+.15) arc (175:5:\RCapricorne+.15) } ;     \path [postaction={decoration={text along path, text={D. Collin {\copyright} {$2012$}},text align=center},decorate}]   { (200:\RCapricorne+.35) arc (200:228:\RCapricorne+.35) } ;     \path [postaction={decoration={text along path, text={Latitude: {$43^{\circ} 43^{\prime}$} N.},text align=fit to path,pre length=2em, post length=2em},decorate}]     { (252:\RCapricorne+.35) arc (252:290:\RCapricorne+.35) } ;     % -- -- -- -- -- -- -- -- -- --      \end{tikzpicture}     % -- -- -- -- -- -- -- -- -- --      \end{document}     % -- -- -- -- -- -- -- -- -- --


title: Behaviour of the align environment

text: I'm writing a manuscript with long equations. In order to break the equations I prefer the `align` environment, provided by the `amsmath` package, over the `eqnarray` one. In the below example I show the kind of align I need. The `eqnarray` gives the correct behaviour, will the `align` one drops a space after the `&` symbol.               \documentclass{article}     \usepackage{amsmath}          \begin{document}          \begin{eqnarray}       \vec{F} &=& m\vec{a}\\               && + \frac{dm}{dt} \vec{v}     \end{eqnarray}            \begin{align}       \vec{F} =& m\vec{a}\\               & + \frac{dm}{dt} \vec{v}     \end{align}            \end{document}      **Question** Is it possible to replicate the first example using `align`?


title: delimiters with exact size

text: I'm looking to get a delimiter at an exact and user specified (point) size, rather than the default "a discrete size big enough to hold the contents" of `\left(` etc. Is this possible? I've tried futzing around with the definitions of `\big*`,               \newlength{\vbraceheight}     \setlength{\vbraceheight}{50pt}     \def\vbig#1{{\hbox{$\left#1\vbox to\vbraceheight{}\right.\n@space$}}}     \def\vbigl{\mathopen\vbig}     \def\vbigr{\mathclose\vbig}      but these still have jumps as one varies `\vbraceheight` continuously (and I'm not really sure why).


title: Look for a bigger delimiter than \Bigg

text: \documentclass{article}     \usepackage{amsmath}     \begin{document}     \[\left.     \begin{vmatrix}     a_{11}&a_{12}&a_{13}\\     a_{21}&a_{22}&a_{23}\\     a_{31}&a_{32}&a_{33}     \end{vmatrix}\middle/\begin{vmatrix}     b_{11}&b_{12}&b_{13}\\     b_{21}&b_{22}&b_{23}\\     b_{31}&b_{32}&b_{33}\\     b_{41}&b_{42}&b_{43}     \end{vmatrix}     \right.\]     \[     \begin{vmatrix}     a_{11}&a_{12}&a_{13}\\     a_{21}&a_{22}&a_{23}\\     a_{31}&a_{32}&a_{33}     \end{vmatrix}\Bigg/\begin{vmatrix}     b_{11}&b_{12}&b_{13}\\     b_{21}&b_{22}&b_{23}\\     b_{31}&b_{32}&b_{33}\\     b_{41}&b_{42}&b_{43}     \end{vmatrix}     \]      The solidus is not fit for matrix. How can I fix it?


title: How do I put a circle around an operator?

text: For example, I want to put a circle around `\land`, just like one can put a circle around `+` by writing `\oplus`. Is there a general method to do this?


title: Best way to produce a graph similar to one generated by Maple

text: I wish to produce the following graph from Maple in my Latex document, here is my Maple code:               p := x -> (6-(10/3)*sqrt(Pi))*x^4+((79/3)*sqrt(Pi)-142/3)*x^3+(269/2-(224/3)*sqrt(Pi))*x^2+(-973/6+(269/3)*sqrt(Pi))*x+70-38*sqrt(Pi):     plot([GAMMA(x), p(x)], x = 1..3, legend = [GAMMA(x), P(x)]);      I'm fairly new to Latex and so I am not aware of the different packages that can be used for plotting graphs.


title: Is there an incompatibility between the packages breqn and subcaption

text: When I try to typeset with both the packages `subcaption` and `breqn`, I get the following error: > ! Package caption Error: The `subcaption' package does not work > correctly(caption) in compatibility mode.See the caption package > documentation for explanation.Type H for immediate help.... \begin{document} However, if I deactivate either package, the document can typeset. My preamble is as follows               \documentclass[a4paper]{article}     \usepackage[english]{babel}     \usepackage[utf8]{inputenc}     \usepackage{amsmath,amssymb}     \usepackage{lmodern}     \usepackage{graphicx}     \usepackage{float}     \graphicspath{{figures/}}     \includeonly{intro}     \usepackage{pstool}     \usepackage{epstopdf}     \usepackage{subcaption}     \usepackage{breqn}          \listfiles          \epstopdfDeclareGraphicsRule{.gif}{png}{.png}{%      convert #1 \OutputFile     }     \AppendGraphicsExtensions{.gif}               \newcommand{\vect}[1]{\boldsymbol{#1}}     \newcommand{\vectornorm}[1]{\left|\left|#1\right|\right|}     \newcommand{\pic}[5]{     \begin{figure}[H]     \centering     \includegraphics[width=#2\textwidth]{#1}      \caption[#3]{#4}     \label{#5}     \end{figure}     }          \title{\textbf{report\newline}}     \author{     \begin{tabular}{l c r}     First Middle Surname     \end{tabular}     }     \date{\today}          \setcounter{secnumdepth}{-1}               \begin{document}     \maketitle     \newpage     \begin{dmath}     x=5     \end{dmath}          \end{document}      Let me know if you wanna see file listing


title: TikZ graph with interesting vertices

text: I'd like to use TikZ to typeset some graphs like this one: ![graph with interesting vertices](http://i.stack.imgur.com/S3PLE.png) (Sorry for the crappy camera-phone pic) I am familiar with `\node`, `\path` and `edge`, as well as with getting different arrowhead styles. The bit that's tripping me up is getting the vertices of the graph to be these little triangular number diagrams. This one is relatively simple (the number diagrams are only 2x2), but I have others where the diagrams are 3x3 and bigger. Would it be best to use an `array` environment inside each `\node`? Is that even possible? Or is there a better way? Thanks!


title: Place the citation flush right csQuotes

text: I very much like the way the citations are done in this answer here Quote environment with reference at the end right Is there any way to get the same effect using csQuotes? Beneath is a somewhat minimal example =)               \begin{filecontents}{biblio.bib}     @book{Feynman,             author = "Richard P. Feynman",             title = "Surely You're Joking, Mr.Feynman!",             publisher = "WW.Norton Company, Inc",             year = "1985"     }     \end{filecontents}          \documentclass[12pt,a4paper]{article}     \usepackage[sort,numbers,square]{natbib}     \usepackage[norsk]{babel}     \usepackage[autostyle]{csquotes}     \usepackage[lipsum]          \begin{document}          \textquote[Feynman \citep[s39-41]{Feynman}]{\lipsum[1]}{}{}          \bibliographystyle{plain}     \bibliography{biblio}              \end{document}      Here is what I get ![What I get](http://i.stack.imgur.com/fKxNt.png) And here is what I want =) ![What I want](http://i.stack.imgur.com/DvMNu.png) I did try a few dirty fixes, such as defining new environments and what not. But most likely the people here are far more experienced in using these packages =)


title: How to put source code in a LaTeX table?

text: I am comparing source in a paper and I would like to put them in a table, so the differences are easily spotted. I used the following LaTeX code:               \begin{tabular}{ | l | l | l |}     Option 1  &  Option  2 & Option 3 \\     \begin{lstlisting}     Code A     \end{lstlisting} &     \begin{lstlisting}     Code B     \end{lstlisting} &     \begin{lstlisting}     Code C     \end{lstlisting} \\     \end{tabular}       When compiled, this becomes a mess, so that is why I would like to know what I can do to improve the outcome.


title: How to expand \ifthenelse so that it can be used in \parshape?

text: How do I get the following MWE to work:               \documentclass{article}     \usepackage{xifthen}     \usepackage{lipsum}          \newboolean{bar}     \setboolean{bar}{true}     \def\foo{\parshape = 2        \ifthenelse{\boolean{positionLeft}}{%          0pt 0.5\textwidth%        }{%          0.5\textwidth 0.5\textwidth%        }%       0pt \textwidth     }          \begin{document}          \foo     \lipsum[1]          \end{document}      I believe it has something to do with the `\ifthenelse` not being expanded, but I never seem to get the hang of that (I really need to get the TeXbook any time soon)...


title: How to set beamer Berkeley margins?

text: Could I know how to set the width of the left margin of the Berkeley theme please? (that is where the section titles appear)


title: “Hobby” library stopped working after updating to TeXLive 2014

text: After upgrading to TeXLive 2014 compiling my TikZ pictures prepared with the `hobby` library stopped working. Consider the following MWE:               \documentclass{article}          \usepackage{tikz}     \usetikzlibrary{hobby,positioning}          \begin{document}         \begin{tikzpicture}[%             scale=1,              % circlenodes/.style={circle, draw, font=\footnotesize},             circlenodes/.style={circle, draw, font=\footnotesize, inner sep=0.1em,                 minimum width=1.5em},             % midnodes/.style={midway, circle, fill=white, font=\tiny},             midnodes/.style={midway, font=\tiny, above},             >=latex,             ]             \fill[gray!20](-3, 3) to[curve through={%                 (-2, 1.5) (0,0) (0.5, 0.5) (1, 1.5) (3,3)              }] (4, 4) --(4,-0.5) -- (-3, -0.5) -- (-3, 3);             \draw[thick, ->] (-3,-0.5) -- (4, -0.5) node[at end, anchor=west] {$tgo$};             \draw[thick, ->] (-3,-0.5) -- (-3, 4) node[at end, anchor=south] {$J(tgo)$};             \draw[very thick] (-3, 3) to[curve through={%                 (-2, 1.5) (0,0) (0.5, 0.5) (1, 1.5) (3,3)              }] (4, 4);             \node[circlenodes, fill=red!20] (one) at (-3,3) {$a_0$};             \node[circlenodes, fill=green!20, below=0pt of one] (a1) {$a_1$};             \node[circlenodes, fill=yellow!20] (five)  at (-2,1.5) {$a_2$};             \node[circlenodes, fill=blue!20, below=0pt of five] (a3) {$a_3$};             \node[circlenodes, below=0pt of one] {$a_1$};             \node[circlenodes, fill=red!20] (three) at (0.5,0.5) {$c_0$};             \node[circlenodes, fill=green!20, right=0pt of three] (c1) {$c_1$};             \node[circlenodes, fill=yellow!20, right=0pt of c1] (c2) {$c_2$};             \node[circlenodes, fill=blue!20, right=0pt of c2] (c3) {$c_3$};             \node[circlenodes, fill=green!20] (four)  at (3,3) {$b_1$};             \node[circlenodes, fill=yellow!20, below=0pt of four] (b2) {$b_2$};             \node[circlenodes, fill=blue!20,] (six)   at (1,1.5) {$b_3$};             \node[circlenodes, fill=red!20] (two)  at (4,4) {$b_0$};             \path[->] (two) edge[bend left=30]  node[midnodes] {1} (four);             \path[->] (b2) edge[bend left=30] node[midnodes] {3} (six);             \path[->] (a1) edge[bend right=30] node[midnodes] {2} (five);         \end{tikzpicture}     \end{document}      This gives the following error message with the `lualatex` compiler:               ! Undefined control sequence.     <argument> \fp_if_undefined:NTF                           \l_hobby_out_angle_fp {\array_put:Nnx \l_hobby_matrix_b_ar     l.18         }] (4, 4)                          --(4,-0.5) -- (-3, -0.5) -- (-3, 3);     ?       With a deadline drawing close, I am getting nervous `:-)`. The wise man might say: ¨Never change a running system.“ I should have listened, but here I am: Do you have any idea how to fix this?


title: Linebreak followed by bracket

text: I tried to find a topic here on this (possible problem) but I didn't. I reported it at TeXstudio SF but Tim Hoffmann pointed me that it is not a problem of editor. After tested with `nano` and `pdflatex` I'm posting here. The minimal code produces errors. OK, we can solve it using `\\\\{}`. But is this a problem with TeXlive 2014 or there are some good reasons to have that behavior.               \documentclass{report}     \begin{document}     test\\ [foo]          test\linebreak [foo]          test\newline [foo]     \end{document}      > ! Missing number, treated as zero. f l.3 test\ [foo]


title: Why acrobat is telling me the font is CMSSBX10?

text: Through this site I learned how to extract font information from pdf and found out that it might be mathdesign. But why adobe acrobat pro tells me it is CMSSBX10? I want to use the same font in my latex document and when using mathdesign it seems to be the one I want.


title: How to buffer the extreme value of f(x) to draw a line representing a range of f(x)?

text: Please consider the following animation.               \documentclass[pstricks,border=12pt]{standalone}     \usepackage{pst-plot}     \def\f{x^2-x-6}     \psset{unit=3,algebraic}          \def\Atom#1{%     \begin{pspicture}(-1.5,-6.5)(2,-2.5)         \psplot[linecolor=blue]{-1}{1}{\f}         \psline[linecolor=green,linewidth=5\pslinewidth](-1,-3.5)(#1,-3.5)         \psline[linecolor=green,linewidth=5\pslinewidth](0,0|*-1 {\f})(0,0|*#1 {\f})         \psline[linecolor=orange,linestyle=dashed](#1,-3.5)(*#1 {\f})(0,0|*#1 {\f})         \pscircle*[linecolor=red](*#1 {\f}){2pt}         \psaxes[linecolor=lightgray,Oy=-3.50,Dy=.25,Dx=.5]{->}(0,-3.5)(-1.49,-6.49)(1.5,-3)[$x$,0][$y$,90]     \end{pspicture}}          \begin{document}     \multido{\r=-1.0+.125}{17}{\Atom{\r}}     \end{document}      ![enter image description here](http://i.stack.imgur.com/G2v9o.gif) The vertical green line is supposed to be a range of `f(x)` in `-1<=x<=1`. When `x>.5` I want to prevent the vertical green line (range) from shrinking. My rough idea is as follows, but it will not compile as `\ifnum` cannot be a fraction.               \ifnum#1>.5         \psline[linecolor=green,linewidth=5\pslinewidth](0,0|*-1 {\f})(0,0|*.5 {\f})     \else         \psline[linecolor=green,linewidth=5\pslinewidth](0,0|*-1 {\f})(0,0|*#1 {\f})     \fi      Actually `fp` package can help but I want to avoid using it. In order to accommodate more general function, I want to buffer the minimum value of `f(x)` for each iteration in `-1<=x<=1` and use this buffer against which the current value of `\f` is compared. What do you think?


title: pdflatex: encoding problems for macros defined before documenclass

text: I use `pdflatex` to create a bunch of personalised documents. From a list of names I generate tex files for each John and Jane Doe of the form:               \newcommand{\firstname}{John}     \newcommand{\lastname}{Doe}     \input{thedocument.tex}      and then simply run `pdflatex` on each resulting tex file. However, I'm experiencing encoding problems with this approach if the people are for example `Jöhn` and `Jäne` and their names will come out as `Jhn` and `Jne`, respectively. I don't know how to fix this.   * `file johndoe.tex` says `TeX document, ISO-8859 text, with no line terminators`   * `file thedocument.tex` says `LaTeX 2e document, ISO-8859 text` In `thedocument.tex` I have a line `\usepackage[latin1]{inputenc}`. I tried it with the `utf8` option but then `pdflatex` fails at the first not ascii character in `thedocument.tex`. I tried a few other options; every `latinN` results in broken names and everything else results in `pdflatex` failing. As all the other special characters in `thedocument.tex` work and the file types seem identical, I'm guessing that my problem has to do with `\firstname` and `\lastname` being specified before `\documentclass`. Could that be the case? How can I fix this?


title: Line break and text arent working

text: I am new to LaTeX and I am having trouble with \text and line breaks. My code is as such               $$\text{if} y^{(t)} \neq h(x; \theta, \theta_{0}) \text{then} \\      \theta^{(k+1)} = \theta^{k}+ y^{(t)}*x^{(t)}\\      \theta_{0} = \theta_{0}^{(k+1)}  + y^{(t)}$$      When I try to compile in TexWorks I get an error, then when I take out the `\text` parts it compiles but without the line breaks. If any one could explain these two occurences it would be greatly appreciated, Thanks.


title: Nominal values for \parindent and other paragraph metrics

text: In memoir, when I run               \documentclass{memoir}     \begin{document}     \showthe\parindent     \end{document}      I get:               17.62482 pt      My questions are :   1. Why that value? This number seems to capture something with high precision. Was it adjusted manually? If not, how do `memoir` or LaTeX compute it?   2. Is there a reference on what are "good-looking" values for parameters like `parindent`, `parskip`, etc? What values are typically used/recommended?


title: Force full line height in footer text

text: I am having problems with a custom footer in my document. On pages "v" and "x" in the front matter, the text shifts up slightly. The best I can figure is that the whitespace above those two page numbers is being absorbed for some reason. How do I force the page numbers to occupy the full height of a character, so that the footer does not shift from page to page? Currently my footer is defined in a custom page style as:               \newcommand{\my@footer}{%     \parbox{\textwidth}{%         \medskip         \textcolor{blue}{             \hrule width\textwidth height 1pt%             \vskip 3bp%             \hrule width\textwidth height 1.5bp}         \smallskip              \scriptsize Version X\hfill\small\thepage              \hfill\textbf{\large Boilerplate}\hfill\null     }}      I previously tried creating this footer with fancyhdr, but was unable to figure out how to get everything in the right place on the page. This approach works, other than the slight vertical shift on the two pages in question. (This is a reproduction of someone else's MS Word template.)


title: difference between pdfLaTeX and LaTeX outputs

text: I am trying to render the following:               \documentclass[10pt]{article}     \usepackage{chemfig}     \usepackage{tikz}     \usepackage{etoolbox}     \usepackage{float}     \usepackage{xkeyval}     \usepackage{chemmacros}     \usepackage{amsmath}     \usepackage{amssymb}     \usetikzlibrary{arrows}     \usetikzlibrary{automata}     \usetikzlibrary{backgrounds}     \usetikzlibrary{calc}     \usetikzlibrary{calendar}     \usetikzlibrary{chains}     \usetikzlibrary{decorations}     \usetikzlibrary{er}     \usetikzlibrary{intersections}     \usetikzlibrary{mindmap}     \usetikzlibrary{matrix}     \usetikzlibrary{folding}     \usetikzlibrary{patterns}     \usetikzlibrary{plothandlers}     \usetikzlibrary{plotmarks}     \usetikzlibrary{positioning}     \usetikzlibrary{scopes}     \usetikzlibrary{shapes}     \usetikzlibrary{topaths}     \usetikzlibrary{trees}     % Uncomment these lines for colored equations     \usepackage{color}     %\usepackage[usenames]{color}     %\definecolor{myColor}{RGB}{0,0,255}     %\pagecolor{white}\color{myColor}          \pagestyle{empty}     \begin{document}     \begin{tikzpicture}[scale=3]     \draw (0 cm,1pt) -- (0 cm,-1pt) node[anchor=north,fill=white] {A};     \draw (0.5 cm,1pt) -- (0.5 cm,-1pt) node[anchor=north,fill=white] {B};     \draw (1 cm,1pt) -- (1 cm,-1pt) node[anchor=north,fill=white] {C};     \end{tikzpicture}     \end{document}      LaTeX ("This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012/Debian)") outputs a malformed DVI with all letters crowded on top of each other, at the origin. ![image](http://i.imgur.com/DzVk7fa.png) On the same Linux system ("This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012/Debian) (format=latex 2013.4.5)"), pdfLaTeX works great. You can see I added any TikZ library that I could find. What do I need to do to make TikZ work?


title: Double-bar notation for second-order tensors

text: I want to use the double-bar notation for second-order tensors, which is common in continuum mechanics (e.g. for the strain and stress tensors). I've searched the Comprehensive LATEX Symbol List but failed to find anything conclusive in there. I've found this discussion, in which Stefan and Thorsten propose the alternatives below. **Is there a preferred way of typesetting this accent?** Subsidiary question: what is the difference between `\bar` and `\Bar`?               \documentclass{article}     \usepackage{amsmath}     \begin{document}     $\bar{\bar\tau} \quad     \Bar{\Bar\tau} \quad     \overline{\overline\tau}$     \end{document}      ![enter image description here](http://i.stack.imgur.com/mmzG9.png)


title: hyperlink name with biblatex authoryear (biblatex 1.4b)

text: I'm new here so I'm not sure if this is the right way to express my question: I'm using the excellent biblatex package with the author-year style and want the links in my citations to include the name of the author as well as the parentheses. The answer presented at hyperlink name with biblatex authoryear did exactly what I wanted but it seems the solution is broken with the newest biblatex version 1.4b. Can anyone help me by adapting the code to the newest biblatex version?


title: Dependent node size in TikZ

text: I'm producing some control theory flow sheets in `TikZ` where I have specified the node box size. Since I'm making a lot of these flow sheets, I have set global styles for them, for instance the `box` style I'm currently using:               box/.style={rectangle, draw, minimum width = 8ex,                 minimum height = 4ex, inner sep = 1ex}      The amount of text in the nodes varies. The problem is that if a node text is demanding more space than `minimum`, the rest of the nodes in that picture should keep the same size as the largest node. How can I do this? The solution in this question is one I would like to avoid, as it in my opinion is far too "manual", I need automation. An MWE:               \documentclass[12pt]{standalone}     \usepackage{tikz}     \usetikzlibrary{calc}     \tikzset{         box/.style={rectangle, draw, minimum width = 8ex,                     minimum height = 4ex, inner sep = 0},         split/.style={circle, draw, minimum size = 2.5pt, fill=black,                     inner sep = 0},     }     \begin{document}     \begin{tikzpicture}[         every path/.style={>={stealth}, ->, draw, node distance = 1pt, inner sep = 0pt},         ]         \node[split] (split)  {};         \node[box] (I) at ($(split) + (4,0)$) {Short};         \node[box] (P) at ($(I)+(0,1)$) {This node has long node text};         \node[box] (D) at ($(I)+(0,-1)$) {Short};         \draw (split.north) |-(P);         \draw (split.east) -- (I) ;         \draw (split.south) |-(D);          \end{tikzpicture}     \end{document}


title: Latex and PDF: rangecheck error in pdfmark using ghostscript

text: I am trying to generate a pdf from a latex-generated ps document. _(Note: I can not use pdflatex because of pstricks.)_ In the tex file I load               \usepackage[dvips,         a4paper,         bookmarksopen=true,         bookmarksnumbered=true,         pdfborder=0 0 0]{hyperref}      After running latex I generate the ps file with `dvips -Ppdf -GO input.dvi` and my gs command is:               gs -dPDFX -dBATCH -dNOPAUSE -dPDFSETTINGS=/screen -sDEVICE=pdfwrite \        -sPAPERSIZE=a4 -sOutputFile=output.pdf input.ps      After running that command `output.pdf` contains the first three pages. The error output is:               GPL Ghostscript 9.01 (2011-02-07)     Copyright (C) 2010 Artifex Software, Inc.  All rights reserved.     This software comes with NO WARRANTY: see the file PUBLIC for details.     Error: /rangecheck in --pdfmark--     Operand stack:        --nostringval--   Subtype   Link   Dest   chapter.1   H   I   Border   --nostringval--   Color   --nostringval--   Rect   --nostringval--   ANN     Execution stack:        %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1910   1   3   %oparray_pop   1909   1   3   %oparray_pop   1893   1   3   %oparray_pop   1787   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   1917   14   5   %oparray_pop   --nostringval--     Dictionary stack:        --dict:1160/1684(ro)(G)--   --dict:0/20(G)--   --dict:87/200(L)--   --dict:196/300(L)--   --dict:36/200(L)--     Current allocation mode is local     Last OS error: 2     Current file position is 758023     GPL Ghostscript 9.01: Unrecoverable error, exit code 1     GPL Ghostscript 9.01: ERROR: A pdfmark destination page 4 points beyond the last page 3.      Does anybody know this error and could help me please? _**EDIT:_** I found out that it always breaks at the page before the first `\footnote{}` or `\tableofcontents`. So the produced PDF contains all pages before the first occur of those objects and the links to all chapters as pdfmarks, displayed in the sidebar. So I guess those in-document links cause the error. Any ideas?


title: Latex! not in outer par mode - includegraphics - figure

text: I'm getting that after certain number of figures, with few ones it works but went I add the last seven ones, I got this, please help. Here is the structure of each figure, and here the link to the entire code: https://gist.github.com/stellamiranda/9358223               \begin{figure}     \begin{subfigure}[b]{0.24\textwidth}              \includegraphics[width=\textwidth]{PlotsInstances/insa280}         \caption{a280}         \label{fig:a280}     \end{subfigure}     \begin{subfigure}[b]{0.24\textwidth}              \includegraphics[width=\textwidth]{PlotsInstances/insberlin52}         \caption{berlin52}         \label{fig:berlin52}     \end{subfigure}     \begin{subfigure}[b]{0.24\textwidth}              \includegraphics[width=\textwidth]{PlotsInstances/insbier127}         \caption{bier127}         \label{fig:bier127}     \end{subfigure}     \begin{subfigure}[b]{0.24\textwidth}              \includegraphics[width=\textwidth]{PlotsInstances/insd1291}         \caption{d1291}         \label{fig:d1291}     \end{subfigure}     \begin{subfigure}[b]{0.24\textwidth}              \includegraphics[width=\textwidth]{PlotsInstances/insd198}         \caption{d198}         \label{fig:d198}     \end{subfigure}     \begin{subfigure}[b]{0.24\textwidth}              \includegraphics[width=\textwidth]{PlotsInstances/insd493}         \caption{d493}         \label{fig:d493}     \end{subfigure}     \begin{subfigure}[b]{0.24\textwidth}              \includegraphics[width=\textwidth]{PlotsInstances/insd657}         \caption{d657}         \label{fig:d657}     \end{subfigure}     \begin{subfigure}[b]{0.24\textwidth}              \includegraphics[width=\textwidth]{PlotsInstances/insfl1400}         \caption{fl1400}         \label{fig:fl1400}     \end{subfigure}     \begin{subfigure}[b]{0.24\textwidth}              \includegraphics[width=\textwidth]{PlotsInstances/inskroA150}         \caption{kroA150}         \label{fig:kroA150}     \end{subfigure}     \begin{subfigure}[b]{0.24\textwidth}              \includegraphics[width=\textwidth]{PlotsInstances/inskroA200}         \caption{kroA200}         \label{fig:kroA200}     \end{subfigure}     \begin{subfigure}[b]{0.24\textwidth}              \includegraphics[width=\textwidth]{PlotsInstances/inskroB100}         \caption{kroB100}         \label{fig:kroB100}     \end{subfigure}     \begin{subfigure}[b]{0.24\textwidth}              \includegraphics[width=\textwidth]{PlotsInstances/inskroB150}         \caption{kroB150}         \label{fig:kroB150}     \end{subfigure}                \begin{subfigure}[b]{0.24\textwidth}              \includegraphics[width=\textwidth]{PlotsInstances/inskroB200}         \caption{kroB200}         \label{fig:kroB200}     \end{subfigure}     \begin{subfigure}[b]{0.24\textwidth}              \includegraphics[width=\textwidth]{PlotsInstances/inskroC100}         \caption{kroC100}         \label{fig:kroC100}     \end{subfigure}     \begin{subfigure}[b]{0.24\textwidth}              \includegraphics[width=\textwidth]{PlotsInstances/inskroD100}         \caption{kroD100}         \label{fig:kroD100}     \end{subfigure}     \begin{subfigure}[b]{0.24\textwidth}              \includegraphics[width=\textwidth]{PlotsInstances/inskroE100}         \caption{kroE100}         \label{fig:kroE100}     \end{subfigure}              \caption{Algunas instancias de TSPLib}     \label{fig:Algunas instancias de TSPLib}     \end{figure}


title: Unicode works in mkii but not in mkiv

text: I have been using `texexec` which, as I understand it, is mkii. I have several documents that have unicode in them and typeset perfectly using `texexec`. However, `texexec` seems to have trouble with metapost and I would like to use mkiv. However, when I use `context` only a handful of the unicode characters actually typeset, namely the capital greek characters. Any ideas why? How can I fix this? **Example** In the following, the alpha typesets using `texexec` but not `context`.               \starttext       α     \stoptext


title: Inserting a frame every n frames

text: I am using `beamer` for a presentation (of sorts) and want to add a frame every _n_ frames (let's keep things general). As an additional challenge, I want these extra slides to _not_ be counted in the regular numbering (although this is maybe better solved by using a custom counter? See below). ## What I've tried I'm really close to getting this done, but my approach I guess can be improved. What I've been trying so far is to use `everypage` to perform a check at every page to see if an extra slide should go after (I do this check using `pgf`), and if it is, I insert a frame with `afterpage`. This _works_ , but it adds one too many additional slides, because in a 10 page presentation it adds an extra one at the end (after page 10, which technically is not wrong, but is not what I want). Also, it means I need to add **two** packages, just for this (and that's just because I get `pgf` for free with `beamer`)! Also, for this I've been using `framenumber`, but it's very possible that it would be better to use a different, custom counter (since `beamer`, you know... _uses_ `framenumber`).               \documentclass{beamer}          \usepackage{afterpage}     \usepackage{everypage}          % Regular slide     \newcommand{\baseslide}[1]{       \begin{frame}{\phantom{bg}}         \begin{center}%           \LARGE #1         \end{center}       \end{frame}     }          % Extra slide     \newcommand{\extraslide}{       \baseslide{This slide was inserted}       \addtocounter{framenumber}{-1}     }          % Modulo test using pgfmathparse     % Based on http://tex.stackexchange.com/a/15303/18982     \newcommand\modulo[4]{        \begingroup       \pgfmathsetmacro{\a}{#1}       \pgfmathsetmacro{\b}{#2}       \pgfmathparse{mod(\a,\b)==0}        \ifdim\pgfmathresult pt= 1 pt          #3       \else          #4       \fi        \endgroup     }          % At every page, check if the next should come before an inserted slide     \AddEverypageHook{       \modulo{\value{framenumber}+1}{5}{         % If so, add a slide after that page         \afterpage{\extraslide}       }{}     }          \begin{document}          \baseslide{This is test \insertframenumber}     \baseslide{This is test \insertframenumber}     \baseslide{This is test \insertframenumber}     \baseslide{This is test \insertframenumber}     \baseslide{This is test \insertframenumber}     % Slide should go here     \baseslide{This is test \insertframenumber}     \baseslide{This is test \insertframenumber}     \baseslide{This is test \insertframenumber}     \baseslide{This is test \insertframenumber}     \baseslide{This is test \insertframenumber}     % But it also goes here, and it shouldn't!          \end{document}      So, my questions:   1. Is there a better way to do this?   2. How can I make sure that these pages are only added _within_ the document (not as the first or last page)? ## Additional, perhaps not necessarily useful background I'm using beamer to generate a series of slides with some text that I can show to people one at a time to elicit certain responses. In this particular case, they are sentences to be read during a recording session. The extra slides I'm inserting are "breaks", so that I can give the participant (performer?) some time to rest, drink some water, or do whatever it is people do when they relax.


title: All about \shipout

text: While reading about packages that allow to _hook_ macros to certain events, I came across this command, `\shipout`. Searching on the internet didn't help a lot but if I'm not so wrong it's somehow related to creating new pages (or is it?). My question is, what is exactly `\shipout`, what does it do and how it does what it does? (i.e. what is happening on the low-level in the background)


title: Extremely-Newbie chicago-biblatex question

text: I am very new to LaTeX and the world of programming in general, and I am writing my M.A. thesis using LaTeX. The Chicago style is required for my thesis, so I got the `biblatex-chicago` package. this is an outline of my document:               \documentclass[12pt]{article}          \usepackage[style=chicago-authordate]{biblatex}          \bibliography{refs}          \begin{document}          --then the body of the paper with some citations and the \printbibliography command--          \end{document}      When I run it through BibTeX, I get the following errors:               This is BibTeX, Version 0.99d (TeX Live 2013)          The top-level auxiliary file: Bodhi Ch. 1.aux          I found no \citation commands---while reading file Bodhi Ch. 1.aux          I found no \bibdata command---while reading file Bodhi Ch. 1.aux          I found no \bibstyle command---while reading file Bodhi Ch. 1.aux      (There were 3 error messages) Also, the bibliography and the citations don't come out, presumably because BibTeX was not able to process the file. The name of my project is "Bodhi Ch. 1" Anyone know what this is about?


title: algorithmic + babel with Hebrew conflict: Numbering missing

text: If I use algorithmic with babel, having both Hebrew and English, the line numbers go missing. Using MikTeX 2.9.               \documentclass{article}     \usepackage[hebrew,english]{babel}     \usepackage{algorithm}     \usepackage{algorithmic}          \begin{document}     \begin{algorithm}     \caption{A caption}     \begin{algorithmic}[1]     \STATE{A line which should be numbered.}     \end{algorithmic}     \end{algorithm}     \end{document}      ![screenshot](http://i.stack.imgur.com/zQcSy.png)


title: multicols, lstlisting and float

text: Using the following structure, how can I get the listing to stay on the same page, be it at the top or the bottom?               \documentclass{scrartcl}     \usepackage[ngerman]{babel}          \usepackage{multicol}     \usepackage{listings}          \usepackage{lipsum}          \begin{document}         \begin{multicols}{2}             \lipsum[1]                  \begin{lstlisting}[float=*htp, frame=tb]     very     long     listing     spanning     several     lines             \end{lstlisting}             \lipsum[2-7]         \end{multicols}     \end{document}


title: Writing a negative number in text mode: $-$9 or $-9$?

text: If we want to produce -9, typing `-9` in an input file is not correct because `-` is intentionally designed for hyphenation so its glyph is bad to represent the minus sign. To produce the minus sign, we use `$-$` instead of `-`. My question is, should a number be enclosed in `$` together with the `-` if we want to render a negative number? In other words, which one is recommended in text mode: `$-$9` or `$-9$`? In other words, which one is recommended out of: ## Option A               $-$9 is a negative number.      or ## Option B               $-9$ is a negative number.      ?


title: Embedding images with an encoding algorithm

text: Friends, sometimes I had to create a self-contained PHP script. That means the PHP script could have any files within it due to some encoding/decoding algorithm, like Base64. For example, this code is a Base64 encoding of this tiny image: ![Brazil](http://i.stack.imgur.com/INZH4.gif) Of course, in this particular case, PHP can handle that huge encoded string because it has a bundled base64_decode() function. I was wondering if this idea is possible to achieve somehow in TeX/LaTeX. I need to point out that I'm just curious on this subject, not that I want to embed whatever in code. Besides, as you noted, the encoded string is _huge_ , so that'd surely make people cry blood. One possible solution I see is if somebody implement an encoding/decoding algorithm in TeX/LaTeX, like `\base64_decode`, so it would be possible to use something like this: `\includegraphics{\base64_decode{\myhugeunreadablestring}}`. Sorry for the acid trip ticket, but I'm really curious on how this insane code would work. =)


title: Embed image data (png or pdf) inside tex document

text: Is there a way to include (or "inline") raw image data or pdf data inside the tex document itself, such that it becomes stand-alone? Something like this:               \inlinedata[base64]{theimage}{AJDeafg82asd34z8BNFKW(...more base64...)SKJWKUFr=}     ...     \includegraphics[width=0.5\linewidth]{theimage}      That would sure come very handy for some super-portable documents, where two or three small external images would too easily get lost. (Please try to keep the lectures why external resources are _always_ so much better as brief as possible ;)


title: Directly embedded images

text: > **Possible Duplicate:**   >  Embedding images with an encoding algorithm I'd like to embed an image (e.g. JPG, PNG) directly in my document. In HTML it's possible with a base64-encoded src attribute.               <img src="data:image/png;base64,iVBORw0KGgokIA..." />      Is this also possible in LaTeX?


title: Frame for a title page

text: The cover of **Gonzalo Medina** from here : Presentation Beamer [title page] is beautiful and bright i tried to do it like him but in `\documentclass[a4paper,12pt]{report}` here is my try               \PassOptionsToPackage{demo}{graphicx}     \documentclass[a4paper,12pt]{report}     \usepackage{tikz}     \usetikzlibrary{calc}     \newcommand\HRule{\rule{\textwidth}{1pt}}     \begin{document}          \begin{titlepage}          \titlegraphic{\includegraphics[height=1cm,width=2cm]{logo1}}     \titlegraphicii{\includegraphics[height=1cm,width=2cm]{logo2}}     \begin{center}          % Upper part of the page     \textsc{\LARGE University}\\[2.5cm]          \textsc{\Large Project}\\[3cm]          % Title     \HRule \\[0.4cm]     { \huge \bfseries Title}\\[0.1cm]     { \large \bfseries subTitle}\\[0.4cm]     \HRule \\[2cm]          \textsc{\normalsize Defended on : December day,year.}\\[1cm]          {\centering\itshape Jury Members\par}     President: president\par\medskip     \begin{tabular}[t]{@{}l@{\hspace{3pt}}p{.32\textwidth}@{}}     Examiners: & examiner 1 \\     & examiner 2 \\     & examiner 3 \\     & examiner 4     \end{tabular}%     \footnotesize     \begin{tabular}[t]{@{}l@{\hspace{3pt}}p{.3\textwidth}@{}}     Supervisor 1: & supervisor \\     Supervisor 2: & supervisor     \end{tabular}%          \end{center}          \end{titlepage}          \end{document}      produce : ![enter image description here](http://i.stack.imgur.com/tpWTv.jpg) I wonder if you could help me with that to get the same thing for document{report}


title: Multiple lists of theorems with different titles (any TeX, in my case XeLaTeX)

text: I've found out how to use the `thmtools` package to make lists of theorems. My questions on this are:   1. How do I change the title, given that `\renewcommand{\listoftheoremname}{...}` gives a `LaTeX error: \listoftheoremname undefined` error?    2. How do I make multiple lists of different kinds of theorems with different titles?    3. Adding `[name=xxx,label=thm:...]` after `\begin{yyy}` (xxx is a title for the theorem, ... a label appearing in the list, yyy the theorem kind) labels a theorem. If I try to put any maths beyond superscript and subscript (for now I've only tried `\mathbb`) into a label, I get a `missing \endcsname inserted` error related to a line of the .aux files. How do I solve that? MWE:              \documentclass[a4paper]{report}       \usepackage{thmtools,amssymb}       \declaretheorem[name=Definizione]{defi}       \begin{document}       \begin{defi}[name=$\mathbb R$,label=thm:$\mathbb R$definizione]       Ah beh, s\`i beh.       \end{defi}       \listoftheorems       \end{document}        which gives:   ![Error message in TeXShop Console](http://i.stack.imgur.com/qPxwl.png).   The same error is obtained by placing a `\ref` in a label. In fact, `\mathbb` gives problems anywhere in those [], just like trying to put $(0,1)$ there, because of that comma.   1. (should be 4) And finally, I'm using theorems with `[subsection]` numbering. Now, in the list, the number overlaps the theorem kind (i.e. I get `1.2.1.1` overlapping `Definizione (Spazio Metrico)`). How do I solve that?


title: How to redefine environment that has arguments?

text: To produce html and pdf files from the same set of sources I need to transform all wrapfigure environments (package wrapfig) to standard figure environments. One example is:               \begin{wrapfigure}[15]{i}{0pt}     \includegraphics[width=0.40\textwidth]{parabola}     \caption{La traiettoria bla bla.}     \label{fig:parabola}     \end{wrapfigure}      Defining something like this (and not loading wrapfig package):               \newenvironment{wrapfigure}[3]{\begin{figure}[htb]\centering}{\end{figure}}      works but leaves an annoying ']i0pt' between image and caption. Any idea (except manual editing of the resulting html...) Thanks!


title: Transparent text in beamer overlay

text: I have a large paragraph of text where I'd like on of the words to become bold and the rest semi-transparent. Getting one word bold is easy with `\textbf<2>{word}` but getting the rest semi-transparrent is tricky. MWE:               \documentclass[aspectratio=169]{beamer}     \usepackage[utf8]{inputenc} % UFT8x - danske bogstaver     \usepackage[T1]{fontenc}     \usepackage{siunitx}     \usepackage{textcomp}     \usepackage{lmodern}          \usepackage{color}     \usepackage{transparent}          \begin{document}               \begin{frame}          \frametitle{Problemformulering}     %     %\setbeamercovered{transparent}     \footnotesize     {     Vi vil lave en organisk syntese, hvor produktet er det aktive aromastof i vanilje, vanillin. Vores mål for produktet er, at det vil have den karakteristiske duft af vanilje og smagen deraf.     \\[\baselineskip]     Udgangspunktet for vores syntese er eugenol. Dette stof isomeriseres ved hjælp af en basekatalysator til isoeugenol, derefter PTC-oxideres det til vanillin, hvorefter stoffet også isoleres og oprenses. Vi har taget udgangspunkt i to forskellige synteseveje af Gery M. Lampman, som vi har kombineret, fordi oxidationen af eugenol i den ene syntese indeholdt kræftfremkaldende stoffer. Vi forventer et udbytte på \SI{20}{\percent} til \SI{30}{\percent}.     \\[\baselineskip]     Til at teste vores produkts renhed og beregning af udbyttet laver vi en række analyser. Her i blandt TLC, IR, \textbf<2>{NMR}, smeltpunkt- og kogepunktsbestemmelse og bestemmelse af indholdet af vanillin i vores produkt. Resultaterne vil vi se i forhold til, hvilke optimeringer som vi har lavet undervejs i syntesen. Vi vurderer også vores resultater i forhold til pris, kvalitet, tid og sikkerhed – herunder miljøforhold.     }               \end{frame}          \end{document}      I'd like all the text (except for the frametitle and the bolded word (NMR in this case) to become semi-transparrent like the way beamer does it with `\setbeamercovered` ![what the MWE gives](http://i.stack.imgur.com/Gz0UU.png)


title: TiKZ and color filling with word spacing on multiple lines

text: I am attempting to make a figure in TikZ which I want to look like this: ![fig](http://i.stack.imgur.com/T0Go2.png) I have been able to come up with something close in TikZ, but I would really like to have the above figure instead of my solution.               \usepackage[usenames,dvipsnames]{color}     \usepackage{tikz}     \usepackage{booktabs}     \usetikzlibrary{shapes,arrows}          \tikzstyle{block3} = [rectangle, draw, fill=green!20,     text width=15em, text centered, minimum height=4em]     \tikzstyle{block4} = [rectangle, draw, fill=purple!20,     text width=12em, text centered, minimum height=4em]     \tikzstyle{block5} = [rectangle, draw, fill=red!20,     text width=9em, text centered, minimum height=4em]          \begin{document}          \begin{figure}[h!]     \begin{center}     \begin{tikzpicture}     % Place nodes     \node [block3,align=center,xshift=-30em] (as) {ASSETS \hline \\{\color{cyan}Cash + Accounts Receivable + Prepaid Insurance + Equipment + Truck}};     \node [draw=white] at (-7.5,0) (equal) {=};     \node [block4,align=center,right of=as,xshift=13em] (li) {LIABILITIES \hline\\{\color{purple}Bank Loan + Accounts Payable + Unearned Revenue}};     \node [draw=white] at (-2.3,0) (plus) {+};     \node [block5,align=center,right of=li,xshift=11em] (eq) {EQUITY \hline     \\{\color{red}Share Capital + Retained Earnings}};     % Draw edges     \end{tikzpicture}     \end{center}     \end{figure}          \end{document}      ![assets](http://i.stack.imgur.com/tfOTV.png)


title: graph paper size, format of the page?

text: I have a big graph and have a problem with paper size\format of the page. On my .pdf file I can see only 1\4 of this graph. i tried to "play" with size of the page but couldnot do anything. Are there methods to zoom out my graph or to do something with page size?                 \documentclass[a4paper,14pt]{extarticle}     \usepackage{tikz}     \usepackage[papersize={500mm, 1000mm}, text={90mm, 90mm}]{geometry}          \begin{document}     \begin{center}     \begin{tikzpicture} [           line/.style = {draw, semithick, -latex},           dot/.style = {draw, fill=black},           ]                            \coordinate (0) at (0cm, 0cm);                  \coordinate (1) at (-20cm, 9cm);                  \coordinate (9) at (20cm, 9cm);                     \coordinate (2) at (-40cm, 30cm);           \coordinate (8) at (40cm, 30cm);                \coordinate (3) at (-40cm, 50cm);           \coordinate (7) at (40cm, 50cm);                                \coordinate (4) at (-30cm, 70cm);                 \coordinate (6) at (30cm, 70cm);                           \coordinate (5) at (0cm, 85cm);                           \coordinate (10) at (0cm, 5cm);                            \coordinate (11) at (-15cm, 15cm);                  \coordinate (16) at (15cm, 15cm);                     \coordinate (12) at (-10cm, 22cm);                       \coordinate (15) at (10cm, 22cm);                     \coordinate (13) at (-25cm, 26cm);                 \coordinate (14) at (25cm, 26cm);                     \coordinate (22) at (-30cm, 57cm);           \coordinate (18) at (30cm, 57cm);                           \coordinate (19) at (0cm, 43cm);                      \coordinate (20) at (0cm, 55cm);                           \coordinate (21) at (-20cm, 45cm);                 \coordinate (17) at (20cm, 45cm);                            \coordinate (23) at (-12cm, 40cm);           \coordinate (24) at (12cm, 40cm);                     \coordinate (25) at (8cm, 51cm);                           \coordinate (26) at (-30cm, 34cm);                 \coordinate (27) at (30cm, 34cm);                \draw (0) -- (1);           \draw (0) -- (9);           \draw (0) -- (10);           \draw (0) -- (16);           \draw (0) -- (11);                \draw (1) -- (10);           \draw (1) -- (2);           \draw (1) -- (11);                     \draw (2) -- (4);           \draw (2) -- (3);           \draw (2) -- (22);                     \draw (3) -- (4);           \draw (3) -- (22);                     \draw (4) -- (5);           \draw (4) -- (6);      \draw (4) -- (20);       \draw (4) -- (22);                     \draw (5) -- (6);           \draw (5) -- (20);                     \draw (6) -- (20);             \draw (6) -- (7);           \draw (6) -- (18);            \draw (6) -- (8);                  \draw (7) -- (18);           \draw (7) -- (8);                      \draw (9) -- (8);                      \draw (9) -- (16);                 \draw (9) -- (10);              \draw (16) -- (15);                     \draw (10) -- (11);             \draw (10) -- (16);           \draw (11) -- (12);            \draw (12) -- (13);                \draw (12) -- (27);           \draw (12) -- (23);            \draw (13) -- (27);           \draw (13) -- (23);                     \draw (14) -- (26);           \draw (14) -- (24);            \draw (14) -- (15);           \draw (15) -- (26);           \draw (15) -- (24);                 \draw (17) -- (18);           \draw (17) -- (25);           \draw (17) -- (27);                \draw (18) -- (25);           \draw (18) -- (27);                 \draw (19) -- (20);           \draw (19) -- (24);           \draw (19) -- (23);           \draw (21) -- (25);           \draw (21) -- (26);                      \draw (22) -- (25);           \draw (22) -- (26);                \draw (21) -- (22);                 \draw (27) -- (23);           \draw (24) -- (26);                \draw (26) -- (25);           \draw (27) -- (25);                \draw (27) -- (13);           \draw (27) -- (12);                     \draw (9) -- (8);           \draw (3) -- (2);                \draw (24) -- (26);           \draw (27) -- (23);                 \draw (19) -- (20);           \draw (20) -- (4);            \draw (20) -- (6);           \draw (20) -- (5);                      \draw (4) -- (6);                       \draw (25) -- (18);           \draw (25) -- (17);            \draw (25) -- (22);           \draw (25) -- (21);                         \end{tikzpicture}     \end{center}          \end{document}


Latex, place page number in specific custom position. I am writing my thesis in the memoir style. My institution regulations stipulate that all page numbers must be placed in the top right corner of the page, 3/4 of an inch down and 3/4 of an inch inwards. I am trying different things including trying to use the fancyhdr package but still not getting those specifications on all pages. Can someone assist, it will be greatly appreciated.


title: Error using \string

text: Consider               \documentclass{article}          \usepackage{lmodern}          \usepackage[T1]{fontenc}          \begin{document}          \texttt{\string\iftrue}          %% \texttt =\long macro:     %% #1->\ifmmode     %%       \nfss@text{\ttfamily#1}     %%     \else     %%       \hmode@bgroup\text@command{#1}\ttfamily\check@icl#1\check@icr\expandafter\egroup     %%     \fi          \end{document}      Processing this minimal example with `pdflatex` results in a rather nasty `Incomplete \ifmmode` error during the expansion of `\texttt{\string\iftrue}`. It seems to me that `\string` does not totally prevent TeX from taking account of `\iftrue` as a conditional. (The same is true for `\detokenize`, by the way.) Can anybody explain what is precisely going on? * * * **Addendum:** Note that the error would disappear if `\texttt` stored its argument in an auxiliary macro before processing it.


title: How do I control the font of the item text in an enumitem list?

text: \documentclass{article}     \usepackage{enumitem}     \begin{document}          \begin{description}[style=nextline]     \item[Label 1] {\sffamily\LARGE item text 1}          \item[Label2] Item text 2     \end{description}          \end{document}      My issue is that I would like `\LARGE` to change the size of the item text but not the label. I know I can control the label with `font=<commands>`. Is there a smart way to control the item text?


title: Is there a LaTeX class specifically for generating License Agreements?

text: Is there a LaTeX class designed, or adaptable, to generate License Agreements easily? For example, it should be easy to generate sections: Terms, Conditions, etc., with numbered/unnumbered subsections/paragraphs. In addition, for license agreements that need to be signed and delivered, it should have sections for licensee and licensor (similar to author sections?) with the option of having underlining areas where someone would fill in their info and signature by hand.


title: Two hyphenation problems with non-language items

text: The first hyphenation problem occurs with the double-word "algébrico- géometriques", which is in French, and I'm writing in English. Unfortunately, I already tried different variants of `\hyphenation{...}` which never do anything. Is there a way to teach LaTeX how to break this word? The second problem is with the polynomial ring               $k[x_1,\dots,x_n]$.      It often produces overfull boxes on the right side of the text, and I don't really know how to deal with it except for reformulating text in the area. Is there a way to make those boxes "breakable"?


title: How can I change the spacing before theorems with amsthm?

text: I have a spacing problem. Whenever I include a theorem environment, `\begin{theorem}\end{theorem}`, the theorem appears very close to the previous line. The spacing is much less than the normal spacing between lines. Do any one have any idea to change this? I don't just ad hoc add `\vskip` at each theorem environment. Thank you very much for your help! EDIT: Here is the style files that I included:               \usepackage[top=2.3cm, bottom=1.8cm, left=3.3cm, right=3.2cm]{geometry}          % -------------------------------------------------     % Common packages.     % -------------------------------------------------          \usepackage{graphicx,subfigure,url,psfrag}          \usepackage{amsmath}          \usepackage{amssymb,amsthm,amscd}          \usepackage{bibcontents}          \usepackage{natbib}          \usepackage[notref,notcite]{showkeys}          \usepackage[noxcolor,usenames]{pstricks}          \usepackage{multirow}          % \setlength{\textwidth}{6in}          \usepackage{parskip}


title: \bm{p} in the section title or subsection title produces error?

text: When I do this it says (my file is named Test.tex):               ./Test.tex:397: TeX capacity exceeded, sorry [input stack size=5000].     <to be read again>                         \HyPsd@@LetCommand      l.397 \subsection{Here the error occurs $\bm{p}$}          ./Test.tex:397:  ==> Fatal error occurred, no output PDF file produced!     Transcript written on Test.log.      `\mathbf{p}` and `\vec{p}` works and do not produce errors when written instead of `\bm` above. Some minor info: **I want p bold in the title because that would represent a vector in my case**. p has a subscript that I don't want bolded.


title: How to center cells vertically in sideways table?

text: I'm trying to build a comparison table, I want to center the symbols vertically on the cells and I tried a lot of methods that I found here unsuccessfully. This is the last code:                   \documentclass{report}         \usepackage{color}         \usepackage{array}         \usepackage{rotating}         \usepackage{diagbox}              \begin{document}                \newcolumntype{C}[1]{>{\centering\arraybackslash}m{#1}}                \newcommand{\myRed}[1]{{\color[RGB]{237,27,35}#1}}           \newcommand{\myGreen}[1]{{\color[RGB]{0,166,79}#1}}           \newcommand{\myBlue}[1]{{\color[RGB]{0,157,220}#1}}                \newcommand{\amark}{\multicolumn{1}{c|}{\myBlue{\text{\sffamily *}}}}           \newcommand{\cmark}{\multicolumn{1}{c|}{\myGreen{\text{\sffamily O}}}}           \newcommand{\xmark}{\multicolumn{1}{c|}{\myRed{\text{\sffamily X}}}}                \newcommand*\rot{\rotatebox{270}}                \begin{sidewaystable}[ht]              \caption{Project comparison.}              \label{table:pComparison}              \centering              \scalebox{0.7}{               \begin{tabular}{| C{50mm} | C{15mm} | C{15mm} | C{15mm} | C{15mm} | C{15mm} |}                 \hline                  \diagbox[width=54mm, height=80mm]{\raisebox{20pt}{\hspace*{15mm}Projects}}{\raisebox{-87pt}{\rot{Features}}} & \rot{Feature 1} & \rot{Feature 2} & \rot{Feature 3} & \rot{Feature 4} & \rot{Feature 5} \\                 \hline                  Project 1 & \xmark & \cmark & \xmark & \cmark & \cmark \\[5ex]                 \hline                 Project 2 & \cmark & \cmark & \cmark & \cmark & \xmark \\[5ex]                 \hline                 Project 3 & \xmark & \cmark & \amark & \cmark & \xmark \\[5ex]                 \hline                 Project 4 & \xmark & \cmark & \amark & \cmark & \xmark \\[5ex]                 \hline                 Project 5 & \xmark & \cmark & \xmark & \xmark & \cmark \\[5ex]                 \hline                 \hline                 My project & \cmark & \cmark & \cmark & \cmark & \cmark \\[5ex]                 \hline                \end{tabular}             }            \end{sidewaystable}               \end{document}      And this is the result: ![Table](https://lh5.googleusercontent.com/-hA_AooNROOE/U1sRmGkJ7bI/AAAAAAAAFDY/Sdue6y17xOw/w539-h488-no/Screen+Shot+2014-04-25+at+20.51.20.png) Everything in the table is perfect, except that I need the symbols centered in the cells vertically and horizontally, also I would like to center the names of the projects at the first column. Could you help me? Thanks in advance. **EDIT: ** Sorry for not including the full code, I'm using a special template. I'm using MacTex and I'm compiling the latex using the command `pdflatex table.tex`


title: Cyrillic in (La)TeX

text: What are different ways to use Cyrillic in (La)TeX? What are their pros and cons?


title: Cyrillic support

text: > **Possible Duplicate:**   >  Cyrillic in (La)TeX I'm typesetting a bilingual dictionary, which includes a number of words written in the Cyrillic script. I've tried everything recommended on support sites and in the guides, but I cannot get any Cyrillic text to come out. Using the `babel` package has failed, specifying font encodings, `\foreignlanguage{}{}` ... nothing seems to work. Any suggestions?


title: Is there a \text... command for Cyrillic characters?

text: I am trying to get the Cyrillic variant of the Serbian alphabet and was wondering if there was an easy `\text` command for Cyrillic characters? For example, I can easily get the letter З by typing `\textrevepsilon`, but is there a similar operation for the letters Б б, Г г, Д д, Ђ ђ, Ж ж, Л л, Љ љ, Њ њ, П п, Ћ ћ, Ф ф, Ц ц, Ч ч, Џ џ, Ш ш? I realise this is _most_ of the alphabet, but some of the symbols may be used in, e.g., maths, and someone may have a simple command for that symbol.


title: Russian, Cyrillic in TeX

text: > **Possible Duplicate:**   >  Cyrillic in (La)TeX I want to add a quote in Russian to my thesis. It is pretty long, so I wouldn't like to use as input any transliteration based method, basically because I wouldn't get the right hyphenation (and because writing in Cyrillic should be very possible). Codes like               \usepackage[T2A]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage[russian,english]{babel}      didn't do the trick. Neither did it by changing the input encoding. Am I missing something before compiling? Can somebody post a short TeX-code? If it helps, I'm using Kile.


title: can't adjust header/footer width to text width APA6 class

text: I'm using the `\documentclass[doc]{apa6}` class to create a document, I decided to use the `fancyhdr` package but can't make it work, I tried with packages `anysize` and `geometry` but still not working.![Picture](http://i.stack.imgur.com/58Gip.png) Previos Picture shows an example of my problem. I have try:               \usepackage{geometry}     \usepackage{fancyhdr}     \pagestyle{fancy}          %\usepackage{anysize} % Para el margen     %\marginsize{3cm}{3cm}{1cm}{3cm}     \geometry{paper=a4paper,left=40mm,right=20mm,top=30mm, bottom=30mm}      but none of the two possibilities (the one active and the other commented work.


title: Authors on the same line, change after authblk is loaded

text: Without loading the authblk package, if a document has 2 authors they are put next to each other (unless wide) on a titlepage. After loading the authblk package, the 2 authors are above each other. Is there a way to retain the next-to-each-other arrangement even with the authblk package loaded.               \documentclass[a4paper,11pt]{article}     %\usepackage{authblk}     \title{title}%     \date{\today}%     \author{%     author 1 \\ author 1 university%     \and     author 2 \\ author 2 university}%     \date{ ~ \\ \today }%     \begin{document}     \maketitle%     \end{document}      Thank you


title: why "ff" displays strange using unicode encoding vs. iso-8859-1 in HTML output from tex4ht?

text: I understand that one should (?) be using UNICODE for html. But using this with tex4ht, always makes "ff" look strange. Why does this happen for "ff"? and based on this test below, should one instead use iso-8859-1 encoding when using htlatex to generate HTML from Latex, or may be I am not using the correct combination of options? Given this latex file               \documentclass{article}%     \begin{document}     \title{Kamke differential equations}     \maketitle     \end{document}      Here are 5 different htlatex commands: 3 used utf8, one does not use any encoding (default), and finally one uses iso-8859-1. The iso option generated the best result. This is on windows using firefox. ![enter image description here](http://i.stack.imgur.com/7H2zA.png) references http://www.tug.org/applications/tex4ht/mn-commands.html using texlive 2012 debian to compile latex files. * * * **Update** Result using provided test below is shown in this image. It shows a problem. I've put the zip file which contains all output and the HTML file in this folder http://12000.org/tmp/061613/ I am using firefox 20, windows 7 ![enter image description here](http://i.stack.imgur.com/b8P6p.png)


title: Using newcommand with math environment

text: I defined a new command as:               \newcommand{\eq}[2]{\begin{equation}\begin{split}#1\end{split}\label{#2}\end{equation}}      so to make a new equation I do:                \eq{equation stuff here}{label here}       But since I've not used the equation environment explicitly, texstudio highlights every math symbol in the equation. It is really annoying. Is there a way around this?


title: Make items disappear in beamer presentations

text: I want to show three items to evaluate the features of each one and then select one of them, so I need to show all of them first and then I need that two of them disappear, or at list become transparent. How can I do that? **Edit: (by Sigur)** Those answers were really helpful, but I have 3 items with several subitems in 3 columns. The method number 2 works with the subitems, but when I try to use it with the items, the tex has errors `(missing } or \endgroup)`. This is the code:               \begin{frame}         \frametitle{\LARGE{TITLE}}     %   \vspace{4pt}         \begin{itemize}         \leftmarginii=0.8\leftmargini\relax             \begin{columns}[t]                 \column{0.3\textwidth}                 \item<1> Item1:                     \begin{itemize}                         \justifying                         \vspace{4pt}                         \item<1> \footnotesize{Subitem1}                         \item<1> \footnotesize{Subitem2}                     \end{itemize}                 \column{0.3\textwidth}                 \item<1-2> Item2:                     \begin{itemize}                         \justifying                         \vspace{4pt}                         \item<1-2> \footnotesize{Subitem1}                         \item<1-2> \footnotesize{Subitem2}                     \end{itemize}                 \column{0.3\textwidth}                 \item<1> Item3:                     \begin{itemize}                         \justifying                         \vspace{4pt}                         \item<1> \footnotesize{Subitem1}                         \item<1> \footnotesize{Subitem2}                     \end{itemize}             \end{columns}            \end{itemize}     \end{frame}      The new code:               \begin{frame}         \frametitle{\LARGE{Title}}         Antena para recepción APT         \noindent%         \begin{minipage}[t]{.27\textwidth}             \begin{itemize}                 %\leftmarginii=0.8\leftmargini\relax                 \item<1> Antena Yagi:                 \begin{itemize}                     %\justifying                     \vspace{4pt}                     \item<1>[\color{red}\ding{55}] \footnotesize{Requiere un sistema de seguimiento por ser directiva.}                     \item<1>[\color{verde}\ding{51}] \footnotesize{Ganancia alta ($>$10 dB). Incrementable si se añaden más elementos.}                     \item<1>[\color{red}{\ding{55}}] \footnotesize{Polarización lineal.}                     \item<1>[\color{red}{\ding{55}}] \footnotesize{Gran tamaño y carga al viento.}                 \end{itemize}             \end{itemize}         \end{minipage}                    \begin{minipage}[t]{.29\textwidth}             \begin{itemize}                 %\leftmarginii=0.8\leftmargini\relax                 \item<1-2> Antena QHA:                 \begin{itemize}                     %\justifying                     \vspace{4pt}                     \item<1-2>[\color{verde}\ding{51}] \footnotesize{No se necesita un sistema de seguimiento al ser poco directiva.}                      \item<1-2>[\color{red}{\ding{55}}] \footnotesize{Ganancia baja ($<$5 dB).}                      \item<1-2>[\color{verde}\ding{51}] \footnotesize{Polarización circular.}                     \item<1-2>[\color{verde}\ding{51}] \footnotesize{Anchura reducida.}                 \end{itemize}             \end{itemize}         \end{minipage}              \begin{minipage}[t]{.29\textwidth}             \begin{itemize}                 %\leftmarginii=0.8\leftmargini\relax                 \item<1> Antena DCA:                 \begin{itemize}                     %\justifying                     \vspace{4pt}                     \item<1>[\color{verde}\ding{51}] \footnotesize{No se necesita un sistema de seguimiento al ser poco directiva.}                     \item<1>[\color{red}{\ding{55}}] \footnotesize{Ganancia baja (Entre 4 y 6 dB).}                       \end{itemize}                \end{itemize}         \end{minipage}     \end{frame}