title: How do I make page numbers skip note slides

text: I am putting together a beamer presentation. I have notes for each page so that when I send the slides to my co-authors they have an idea of what I am going to say on each slide, what I am going to emphasize, etc. so they can give me feedback. Some prefer the notes, some do not, so I send them out according to the preference. However, when I compile with notes on and `\setbeamertemplate{footline}[page number]` in the preamble, the notes are numbered along with the slides, so that when I get notes back saying "fix the typo in slide 6", or when I want to discuss the slides with more than one person, the slide numbers are different. How can I set the template such that the page/slide numbers only show up on the slides and skip the notes? MWE:               \documentclass{beamer}     \usetheme{Pittsburgh}     \setbeameroption{show notes}     \setbeamertemplate{footline}[frame number]          \begin{document}     \frame{     \frametitle{Title}     \framesubtitle{Subtitle}     This is some text     \note{This is a note}     }     \end{document}      The result I would like is for the notes to not be numbered, but to keep the style. If I use samcarter's solution below, the note template (defined in `beamerouterthemedefault.sty`) gets redefined and all of the formatting gets wiped out. Alternatively, I can go into `beamerouterthemdefault.sty` and copy/paste the entire definition into my preamble, adding in the page counter line. I can also edit the default style file to include this line, which will get overwritten the next time beamer is updated. It may be that what I want is not possible with `beamer`, in which case I'll stick with copying the entire definition into my preamble and adding the one line, or else writing a new theme that incorporates these changes when I am not against a deadline. Last edit: The above actually gets me very close to what I want. Taking out the re-definition of the notes page keeps the style, takes the page numbers off the notes, and only increments each frame. The only minor quibble is that now if I have multiple parts within a frame (using `only` or `uncover`, for instance) they all show up as the same frame number. I can work with this, but would still like to know if there is a way to do this with page numbers.


title: ConTeXt: Keep title on same page with next paragraph

text: I have a document with many chapters and sections. All my chapters starts with new page, but sections does not. Sometimes section title appears at the bottom of page alone, next paragraph starts with new page.               -----------------     |               |     | page content  |     |               |     |               |     | section title |     -----------------          -----------------     | paragraph of  |     | the section   |      How to prevent this for all titles authomatically? Section title must be placed on same page with next paragraph.


title: How to extract/convert tikz to a format suitable for powerpoint

text: I am trying to extract/convert a `tikzpicture` to a format that is suitable for powerpoint without losing quality. The code that I have found and adjusted is the following:               \documentclass[a4paper]{scrartcl}     \usepackage{pgfplots, tikz}          \pgfrealjobname{mytikzpicture}          \begin{document}     \beginpgfgraphicnamed{outputpicture}%          \begin{tikzpicture}     \begin{axis} [height=7cm, width=10cm, title=\textbf{Title}, xlabel= XYZ, ylabel = ABC]     \addplot coordinates {(0,-30) (30,-30) (60, 0) (90, 30) (120, 60) (150, 90) (200, 140)} node[pos=0.115,pin=-360:{A}] {};     \addplot coordinates {(0, -40) (30, -40) (30, 60) (60, 60) (90, 60)(120, 60) (150, 60) (200, 60)} node[pos=0.734,pin=-90:{B}] {};     \legend {{XYZ}, {ABC}}     \end{axis}     \end{tikzpicture}     \endpgfgraphicnamed     \end{document}      `mytikzpicutre` is the name of the file with the initial graph. I named the output as `outputpicture`; the entire code is saved under the name output. However I get an error:               pgf: Sorry, image externalization failed: the resulting image wdpgfgraphicnamed'.       Could anybody help me with this problem?


title: Add current section to beamer headline

text: I am currently using the standard Pittsburgh theme for my presentation in LaTeX beamer. Is there a way to include the current section into the headline of my slides?


title: customization of TOC

text: How to set a TOC in which only appears sections without subsections? **EDIT:** And on the beginning of a new section it shows only the content of it without displaying the header? MWE:               \documentclass{beamer}     \usetheme{CambridgeUS}     \useoutertheme{infolines}     \author{Co.}     \title{Work Culture}     \AtBeginSubsection[]     {     \begin{frame}<beamer>     \frametitle{Outline}     \tableofcontents[       currentsection     ]     \end{frame}     }     \begin{document}     \begin{frame}{Plan}       \tableofcontents     \end{frame}     \begin{frame}     \titlepage     \end{frame}     \end{document}      Any good suggestion, please? Thanks a lot!


title: Biblatex: Indent second line of Inproceedings title?

text: I customized the numeric style of biblatex, in order to reduce the `\newblock` commands for entry types of inproceedings. The next step is that long titles of inproceedings, which create a second line, should be indented, so that the second line starts aligned with the start of the title in the first line. The indentation is necessary (I think), because of the "In:" label in the first line. So on the one hand I need to know the length of the "In:" label and on the other hand want to indent the second and following lines by this length. Here is what I have: ![enter image description here](http://i.stack.imgur.com/5RE23.png) And what I want: ![enter image description here](http://i.stack.imgur.com/5FfYM.png) Edit: I forgot to mention, that there are several different labels like "In:". For example "doi:" and "URL:". Furthermore, not all blocks, which have a second line should be indented. Instead only special chosen ones should. Sorry, that I forgot that.


title: autonum does not like \ref in a \caption

text: The following is a minimal non-working example of a reference to some label within a caption while using the autonum package.               \documentclass{article}     \usepackage{autonum}     \begin{document}          \begin{align}         E = mc^2 \label{eq::label}     \end{align}          \begin{figure}         y \caption{ \ref{eq::label} }     \end{figure}          \end{document}      Upon compiling I get the following errors:               ! Argument of \@caption has an extra }.     ! Paragraph ended before \@caption was complete.      I get the same result, if I refer to, say another figure, instead of an equation. How can I avoid this error?


title: Help in acm style

text: Hello I am using `acm` package for my bibliography. In my report the reference numbers are being displayed in simple brackets i.e. `()`. However, i want them in square brackets i.e. `[]`. Also, multiple citations are separated by ";" not by ",".


title: Change Spacing Between Internal TOC numbering and subsection titles

text: In my Supporting Info `chapter`, I have my `subsections` defined as `\renewcommand{\thesubsection}{\thechapter-\Roman{section}.\arabic{subsection}}` Which is the format requested of me by my professor. This makes my subsection numbering quite wide, once I'm at the 3rd section (because of the roman numerals). This is only a problem in my internal 2nd `toc` which I generate with the `titletoc` package. Following the answer here using:               \makeatletter     \renewcommand{\l@subsection}{\@dottedtocline{2}{4.0em}{3.9em}}     \makeatother      I followed the same route to change the spacing betweeen the `section number` and the `title` in my `toc`, but found that it changes both the spacing between the `section number` and `subsection title` for both my main `toc` and my internal one. I only want it to change the spacing for the 2nd, smaller `toc` within my chapter. I using other tricks shown to me earlier such as adding the command to the `toc` with `protect` and `addtocontents` but was not successful. Here is my MWE:               \documentclass{memoir}     \setlength{\parskip}{12pt plus2pt}     \def\baselinestretch{1.6}     \linespread{1.3}     \usepackage{titletoc}     \usepackage{lipsum}     \setpnumwidth{2.5em}     \setrmarg{3.5em}     \makeatletter     \renewcommand{\l@subsection}{\@dottedtocline{2}{4.0em}{3.9em}}     \makeatother     \begin{document}     \addtocontents{toc}{\protect\setlength{\parskip}{0pt}\protect\OnehalfSpacing}     \frontmatter     \tableofcontents     \setsecnumdepth{subsection}     \maxsecnumdepth{subsection}     \settocdepth{subsection}      \mainmatter     \DoubleSpacing        \chapter{Chap1}     \section{Chap1Sec1}     \section{Chap1Sec2}     \chapter{Chap2}     \section{Chap2Sec1}     \section{Chap2Sec2}     \subsection{Chap2Sec2Subsec1}     \SingleSpacing     \chapter{Chap3}     \settocdepth{section}     \renewcommand{\thesection}{\thechapter-\Roman{section}}     \renewcommand{\thesubsection}{\thechapter-\Roman{section}.\arabic{subsection}}     \renewcommand{\thepage}{S-\arabic{page}}     \section{Chap3Sec1}     \clearpage     \section{Chap3Sec2}     \bigskip     \startcontents     \printcontents{}{2}{\addtocontents{ptc}{\setcounter{tocdepth}{2}}}     \lipsum[1-2]     \subsection{Chap3Sec2Subsec1}\clearpage     \subsection{Chap3Sec2Subsec2}\clearpage     \subsection{Chap3Sec2Subsec3}\lipsum[1]     \subsection{Chap3Sec2Subsec4}     \stopcontents     \section{Chap3Sec3}\clearpage     \section{Chap3Sec4}\clearpage     \section{Chap3Sec5}\clearpage     \section{Chap3Sec6}\clearpage     \renewcommand{\thepage}{A-\arabic{page}}     \setcounter{page}{9}     \chapter{Chap4}     \settocdepth{subsection}     \section{Chap4Sec1}\clearpage     \section{Chap4Sec2}\clearpage     \subsection{Chap4Sec2Subsec1}          \end{document}


title: 3D solids with Tikz - or an alternative?

text: I want to draw 3D shapes in latex. I have tried out different strategies, but nothing has led me to a good solution yet. First what I want to do, then what I have done so far. **In prioritized order, these are my constraints:**   1. Output (the figure) must be vector graphics   2. I would REALLY like to compile my main document with `pdflatex`   3. Text should preferably be scalable, i.e., the text stays the same, even if I decide to make the figure bigger in my document.   4. Objects should have a shading that makes them look like they are lighted from somewhere (otherwise I cannot distinguish between a circle and a sphere).   5. I want to use colors defined in my main files preamble - thus dynamic use of main file's preamble content (this is in an individual file). This is probably not possible at the same time, but a trade off is welcome. What works for you when drawing 3D objects? **My progress so far** I've made friends with `Tikz`, but when familiarizing myself with its shortcomings (such as 3d solids it seems), I've flirted with `PStricks` \- but this was a messy first date, so unless you guys REALLY advocate her as a part of the solution, I'd rather stay with `Tikz` (but hey, beggars can't be choosers). I've made a MWE, where everything is included (in my case it is split in many different files (a PhD-thesis becomes quite large, after all). This is the code that generates a sphere using the trick of implementing the "ball", which is not inherent 3D:               \documentclass{standalone}     \usepackage{pgfplots}     \pgfplotsset{compat=1.4}     \usepackage{tikz-3dplot}     \tdplotsetmaincoords{60}{-30}     \tdplotsetrotatedcoords{0}{90}{90}%          %\usepackage[rgb]{xcolor}     \definecolor{c1}{rgb}{0.2,0.4,0.6} % Blue-ish     \definecolor{c2}{rgb}{1.0,0.0,0.6} % Pink-is     \definecolor{c3}{rgb}{0.6,0.0,0.0} % Red          \begin{document}          \begin{tikzpicture}       [tdplot_rotated_coords,         scale=3,         cube/.style={color=c1,thick,draw=gray, fill opacity=0.5,line join=round},         mds/.style={ball color=c2, c2, opacity=.8},         helplines/.style={gray,line cap=round},         length/.style={<->,thick,line cap=round},         axis/.style={->,c3,ultra thick,line cap=round},         textlabel/.style={fill opacity=.7,text opacity=1,fill=white,rounded corners}]       \def\d{1}       \def\r{\d*.45}       \def\af{\d*.5}              % Draw backside of the cube         \fill[cube] (0,0,\d) -- (0,\d,\d) -- (\d,\d,\d) -- (\d,0,\d) -- cycle;         \fill[cube] (0,0,0) -- (0,0,\d) -- (\d,0,\d) -- (\d,0,0) -- cycle;         \fill[cube] (\d,0,0) -- (\d,0,\d) -- (\d,\d,\d) -- (\d,\d,0) -- cycle;              % Draw helplines       \foreach \t in {0,12,...,348} % circle         \draw[helplines] ({cos(\t   )*\r+\d/2}, \d/2, {sin(\t   )*\r+\d/2})                           -- ({cos(\t+12)*\r+\d/2}, \d/2, {sin(\t+12)*\r+\d/2});       \draw[helplines] (\d/2,\d/2-\r,\d/2) -- (\d/2,\d/2+\r,\d/2); % vertical line              % Cylinder        \shade[mds] (\d/2,\d/2,\d/2) circle (\r cm); % <= the little " cm" is needed to "trick" (?) everything into working...              % Draw front of cube         \fill[cube,fill=none] (0,0,0) -- (0,\d,0) -- (\d,\d,0) -- (\d,0,0) -- cycle;         \fill[cube,fill=none] (0,\d,0) -- (0,\d,\d) -- (\d,\d,\d) -- (\d,\d,0) -- cycle;         \fill[cube,fill=none] (0,0,0) -- (0,0,\d) -- (0,\d,\d) -- (0,\d,0) -- cycle;              % Draw the axis arrows and annotations         \draw[axis] (0,0,0) -- (\af,0,0) node[textlabel,anchor=east]{$x$};         \draw[axis] (0,0,0) -- (0,\af,0) node[textlabel,anchor=south]{$y$};         \draw[axis] (0,0,0) -- (0,0,\af) node[textlabel,anchor=west]{$z$};              % Draw radius arrow         \draw[mds,length,draw] (\d/2,\d/2,\d/2) -- (\d/2,\d/2,\d/2+\r) node[textlabel,pos=0.5, auto=above]{$r$};              % Draw cube lattice length measures         \draw[cube,length,c1] (0,0,\d*5/6) -- (0,\d,\d*5/6) node[textlabel,pos=0.5, auto=above]{$d$};         \draw[cube,length,c1] (\d*5/6,0,0) -- (\d*5/6,\d,0) node[textlabel,pos=0.5, auto=above]{$d$};         \draw[cube,length,c1] (\d*5/6,\d,0) -- (\d*5/6,\d,\d) node[textlabel,pos=0.5, auto=above]{$d$};              % Material parameters label         \draw[mds] (\d/2,\d/2+\r/2,\d/2) node[textlabel]{$\varepsilon_c,\mu_c$};     \end{tikzpicture}          \end{document}      Which produces: ![Sphere with tikz](http://i.stack.imgur.com/lMZCX.png) I have worked on some code for manually coding a cylinder, but I encounter two main problems:   1. I cannot dynamically change the fill, to create a shading effect.   2. I cannot draw the top/bottom circles (ellipses in the viewpoint perspective) Here's my code:               \documentclass{standalone}     \usepackage{pgfplots}     \pgfplotsset{compat=1.4}     \usepackage{tikz-3dplot}     \tdplotsetmaincoords{60}{-30}     \tdplotsetrotatedcoords{0}{90}{90}%          %\usepackage[rgb]{xcolor}     \definecolor{c1}{rgb}{0.2,0.4,0.6} % Blue-ish     \definecolor{c2}{rgb}{1.0,0.0,0.6} % Pink-is     \definecolor{c3}{rgb}{0.6,0.0,0.0} % Red          \begin{document}          \begin{tikzpicture}       [tdplot_rotated_coords,         scale=3,         cube/.style={color=c1,thick,draw=gray, fill opacity=0.5,line join=round},         mdc/.style={fill=c2, color=c2,draw=none, opacity=.4,line join=round},         helplines/.style={gray,line cap=round},         length/.style={<->,thick,line cap=round},         axis/.style={->,c3,ultra thick,line cap=round},         textlabel/.style={fill opacity=.7,text opacity=1,fill=white,rounded corners}]       \def\d{1}       \def\r{\d*.45}       \def\af{\d*.5}              % Draw backside of the cube         \fill[cube] (0,0,\d) -- (0,\d,\d) -- (\d,\d,\d) -- (\d,0,\d) -- cycle;         \fill[cube] (0,0,0) -- (0,0,\d) -- (\d,0,\d) -- (\d,0,0) -- cycle;         \fill[cube] (\d,0,0) -- (\d,0,\d) -- (\d,\d,\d) -- (\d,\d,0) -- cycle;              % Draw helplines       \foreach \t in {0,12,...,348} % circle         \draw[helplines] ({cos(\t   )*\r+\d/2}, \d/2, {sin(\t   )*\r+\d/2})                           -- ({cos(\t+12)*\r+\d/2}, \d/2, {sin(\t+12)*\r+\d/2});       \draw[helplines] (\d/2,\d/2-\r,\d/2) -- (\d/2,\d/2+\r,\d/2); % vertical line              % Cylinder        \foreach \t in {0,12,...,348}         \draw[mdc] ({cos(\t   )*\r+\d/2},  0, {sin(\t   )*\r+\d/2}) % side vertice of cylinder                 -- ({cos(\t+12)*\r+\d/2},  0, {sin(\t+12)*\r+\d/2})                 -- ({cos(\t+12)*\r+\d/2}, \d, {sin(\t+12)*\r+\d/2})                 -- ({cos(\t   )*\r+\d/2}, \d, {sin(\t   )*\r+\d/2})                 -- cycle;              % Draw front of cube         \fill[cube,fill=none] (0,0,0) -- (0,\d,0) -- (\d,\d,0) -- (\d,0,0) -- cycle;         \fill[cube,fill=none] (0,\d,0) -- (0,\d,\d) -- (\d,\d,\d) -- (\d,\d,0) -- cycle;         \fill[cube,fill=none] (0,0,0) -- (0,0,\d) -- (0,\d,\d) -- (0,\d,0) -- cycle;              % Draw the axis arrows and annotations         \draw[axis] (0,0,0) -- (\af,0,0) node[textlabel,anchor=east]{$x$};         \draw[axis] (0,0,0) -- (0,\af,0) node[textlabel,anchor=south]{$y$};         \draw[axis] (0,0,0) -- (0,0,\af) node[textlabel,anchor=west]{$z$};              % Draw radius arrow         \draw[mdc,length,draw] (\d/2,\d/2,\d/2) -- (\d/2,\d/2,\d/2+\r) node[textlabel,pos=0.5, auto=above]{$r$};              % Draw cube lattice length measures         \draw[cube,length,c1] (0,0,\d*5/6) -- (0,\d,\d*5/6) node[textlabel,pos=0.5, auto=above]{$d$};         \draw[cube,length,c1] (\d*5/6,0,0) -- (\d*5/6,\d,0) node[textlabel,pos=0.5, auto=above]{$d$};         \draw[cube,length,c1] (\d*5/6,\d,0) -- (\d*5/6,\d,\d) node[textlabel,pos=0.5, auto=above]{$d$};              % Material parameters label         \draw[mdc] (\d/2,\d/2+\r/2,\d/2) node[textlabel]{$\varepsilon_c,\mu_c$};     \end{tikzpicture}          \end{document}      Which produces: ![Cylinder with Tikz](http://i.stack.imgur.com/7VVVJ.png) I am definitely open to a whole new approach to my work routine, but it must be advantageous, otherwise I will just drop the shading requirement (which is half the fun though, one looses depth perception without it). Thank you so much for taking the time to read this LOOOONG question.


title: Multiple math fonts in classicalthesis

text: I've already written more than the half of certain text using classicthesis.sty. I love the font I'm working with (whatever its name: Palatino?) but I just realized that I have to use `$\Upsilon$` and, it is displayed as a letter rather closer to a ordinary `$Y$`\--which is not incorrect, but I don't like. I want to change this `$\Upsilon$` to other font, say, the ordinary one. A solution I found is using,               \DeclareSymbolFont{pazoletters}{OML}{zplm}{m}{it}     \DeclareMathSymbol{\Ups}{\mathalpha}{pazoletters}{"7}      as suggested in "two fonts in math mode", but the capital upsilon is still not the font I want. How can I change the pazzoletters into the usual font? I guess there is a way to call another font, without having to install lot of .sty-files, as required by some nice anwers (I don't think I need to use powerful packages) How could I do that?


title: \pdfstrcmp or \strcmp in pure TeX

text: I'm trying to get LaTeX3 working with an old e-TeX kernel, and it fails due to the lack of `\pdfstrcmp` (or XeTeX's `\strcmp` equivalent). Is there a pure TeX definition of `\pdfstrcmp` that I could insert into the top of my file? or is this not possible?


title: BibTeX fields for DOI, MR, Zbl and arxiv?

text: I have seen on several occasions in some texts nicely formatted bibliographies which included hyperlinks to MR, Zbl and arxiv, sometimes doi, for example, something that looked approximately like this (copied from this paper): >   * Boris Albar and Daniel Gonçalves. On triangles in Kr-minor free graphs. > 2013. arXiv: 1304.5468. >   * Ken-ichi Kawarabayashi and Zi-Xia Song. Independence number and clique > minors. J. Graph Theory, 56(3):219–226, 2007. doi: 10.1002/jgt.20268. MR: > 2355127. >   * Alexandr V. Kostochka. The minimum Hadwiger number for graphs with a > given mean degree of vertices. Metody Diskret. Analiz., 38:37–58, 1982. MR: > 0713722, Zbl: 0544.05037. > * * * Which BibTeX style can be used to obtain such thing? Which fields are used and how are they formatted? How would I do this manually (without BibTeX)?


title: How to get and process bitmap graphics at a pixel level on-the-fly?

text: We are trying to solve How to get intersection point(s) of two glyphs? and there are some interesting subtasks. In word cloud algorithms they are converting glyphs (a vector form) to a raster form and they apply some algorithm (using spiral or other path) to position the glyphs/words/terms. Are we able to do the same in the TeX world? We can convert resulting PDF file to raster graphics easily (GhostScript, ImageMagick, GraphicsMagick), or, we could use TikZ+externalization library. Well we are not processing them at a pixel level as we are able to do, e.g. in the GD library + PHP scripting language. I've checked Lua rocks and it doesn't look we have a lot of options there to process bitmapped pictures. The only useful tool seems to be LuaGL, but it looks as a complicated tool. I'm thinking of Python and its packages, but that's a different story if we would like to try calculations on-the-fly. One more time, I'm sorry I'm not providing MWE. It's likely I'm just searching for a proper Lua library. Lua is used in the game industry, they probably have a lot of useful libraries. My very last idea is to use JavaScript which can be loaded into the PDF file. I'm not using this approach as I know it's browser-dependent. For now, after I get a raster graphics I use ImageMagick, I modify the files, and then I'm loading the resulting pictures back at a TeX level.


title: How to make fancyvrb's \DefineShortVerb work in other commands?

text: I'm using the `fancyvrb` package with the `\DefineShortVerb{\|}`. However, using `|` inside of any command doesn't work. MWE:               \documentclass{scrbook}     \usepackage{fancyvrb}          \DefineShortVerb{\|}          \begin{document}          \section{|Pipe| doesn't work here}     THe |pipe| works here just fine. \marginpar{|Pipe| doesn't work here either.}          \end{document}      Is it possible to define a `ShortVerb` and have it work inside of other commands? I wasn't able to find anything about this in the documentation.


title: Non-repository management of TeXLive packages on Ubuntu

text: I am looking to update my version of `beamer` to 3.10 (which supports nonstandard slide aspect ratios), however the Ubuntu main repository only has version 3.07. I was not able to locate `tlmgr`. Is there some other repository that I can include in synaptic to get the latest versions of packages or some other way to manage packages short of manually replacing files? Further information: `TeXLive 2009-10` on Ubuntu 10.10


title: How can I change the increment of the page numbering?

text: I'm trying to create a somewhat specially formatted document, with some text on the recto (right side) and a graphic on the verso (left side). This is for a brochure of sorts. See below:               ---------    ---------     |       |    |       |     | text  |    |  fig  |       |       |    |       |     |   n   |    |  n+1  |     --------     ---------      My idea is to compile two separate documents -- one will have the text, and the other the graphics, and these are easy to create. With some `pdftk` wizardry, I can easily mix the pages together in the order they should appear, together with some additional front and back matter. Now, I want to have page numbers on each page, and for this, they need to be incremented by two for each document. I guess I could try to do this manually, but I was kinda hoping there could be a better way to do it. All kinds of ideas welcome. I'm using LaTeX, but ConTeXt solutions will be interesting to see as well. If you think of another way to do the whole thing, feel free to give it a go. Bonus points for specifying arbitrary page increment.


title: PSTricks with Geogebra

text: This is the code generated by Geogebra, and when I try to compile the code with TeXmaker, using LaTeX, I get a pdf with a small picture. Please, understand that I don't have any knowledge of PSTricks, and I just want to be able to put the pictures I make with Geogebra into LaTeX. The intent was to draw a quadrangle. Please, help me fix this code.               \documentclass[10pt]{article}     \usepackage{pstricks-add}     \pagestyle{empty}     \begin{document}         \newrgbcolor{ffqqtt}{1 0 0.2}         \psset{xunit=1.0cm,yunit=1.0cm,algebraic=true,dimen=middle,dotstyle=o,dotsize=3pt 0,linewidth=0.8pt,arrowsize=3pt 2,arrowinset=0.25}         \begin{pspicture*}(-5.89,-1.06)(7.25,5.78)             \psline[linecolor=ffqqtt](2.04,0.22)(0.75,3.33)             \psline[linecolor=ffqqtt](-3.26,0.3)(2.69,2.23)             \psline[linecolor=ffqqtt](0.75,3.33)(2.69,2.23)             \psline(2.69,2.23)(6.32,0.16)             \psline[linecolor=ffqqtt](0.75,3.33)(-3.26,0.3)             \psline[linecolor=ffqqtt](-3.26,0.3)(2.04,0.22)             \psline[linecolor=ffqqtt](2.04,0.22)(2.69,2.23)             \psline(3.8,5.64)(0.75,3.33)             \psline(3.8,5.64)(2.69,2.23)             \psline(2.04,0.22)(6.32,0.16)             \begin{scriptsize}                 \psdots[dotstyle=*,linecolor=blue](3.8,5.64)                 \rput[bl](3.87,5.57){\blue{$D$}}                 \psdots[dotstyle=*,linecolor=red](-3.26,0.3)                 \rput[bl](-3.56,0.5){\red{$A$}}                 \psdots[dotstyle=*,linecolor=blue](6.32,0.16)                 \rput[bl](6.19,-0.16){\blue{$B$}}                 \psdots[dotstyle=*,linecolor=red](0.75,3.33)                 \rput[bl](0.54,3.44){\red{$C$}}                 \psdots[dotstyle=*,linecolor=red](2.04,0.22)                 \rput[bl](1.94,-0.21){\red{$E$}}                 \psdots[dotstyle=*,linecolor=red](2.69,2.23)                 \rput[bl](3.13,2.21){\red{$F$}}             \end{scriptsize}         \end{pspicture*}     \end{document}


title: How to achieve double border line between some columns of tikz matrix?

text: I've read TikZ matrix as a replacement for tabular which nicely explained how to get table with borders in the first place. Now, I'd like to have let's say thicker border (or double border line) between 2 & 3 columns of my multicolumn matrix. As far as I understand _column sep_ is specified for entire matrix. So is it possible to mimic at least appearance of different border between some columns? I want this to visually show on example how data was normalized in DB and I want to separate superkey from other columns.


title: Simple alignment question

text: So I want to align my 'equals' sign and inequality signs. So I have done,                  \begin{align}        \Rightarrow d(\mathbf x',\mathbf 0) & \geq d(\mathbf x,\mathbf 0) - d(\mathbf x',\mathbf x) \\        &=  \varepsilon + \delta - d(\mathbf x',\mathbf x)        \end{align}      This works fine, it aligns the signs however it also centres the whole equation. I don't want it to be centred, I just want it to start from the left and move to the right as normal text should. Any ideas?


title: Wrapfig pushes section text out of the page

text: `wrapfig` works perfectly with all text except the sections. It seems to push the section text out of the page to the left. The only section text that is still showing is the one the `wrapfig` command is inside of.               \documentclass[margin,line]{res}               \oddsidemargin -.5in     \evensidemargin -.5in     \textwidth=6.0in     \itemsep=0in     \parsep=0in     % if using pdflatex:     %\setlength{\pdfpagewidth}{\paperwidth}     %\setlength{\pdfpageheight}{\paperheight}      \usepackage[utf8]{inputenc}     \usepackage{floatflt}     \usepackage{graphics}     \usepackage{graphicx}     \usepackage{color,hyperref}     \usepackage[T1]{fontenc}     \usepackage{wrapfig}     \usepackage[icelandic]{babel}     \newenvironment{list1}{       \begin{list}{\ding{113}}{%           \setlength{\itemsep}{0in}           \setlength{\parsep}{0in} \setlength{\parskip}{0in}           \setlength{\topsep}{0in} \setlength{\partopsep}{0in}            \setlength{\leftmargin}{0.17in}}}{\end{list}}     \newenvironment{list2}{       \begin{list}{$\bullet$}{%           \setlength{\itemsep}{0in}           \setlength{\parsep}{0in} \setlength{\parskip}{0in}           \setlength{\topsep}{0in} \setlength{\partopsep}{0in}            \setlength{\leftmargin}{0.2in}}}{\end{list}}          \newenvironment{innerlist}[1][\enskip\textbullet]%             {\begin{itemize}[#1,leftmargin=*,parsep=0pt,itemsep=0pt,topsep=0pt,partopsep=0pt]}             {\end{itemize}}     \begin{document}          \name{Eiríkur Rafn Björnsson \vspace*{.1in}}          \begin{resume}               \section{\sc Persónu upplýsingar}       \begin{wrapfigure}{r}{0.2\textwidth}              \vspace{-1cm}             \begin{center}             \includegraphics[width=0.2\textwidth]{eg.jpg}             \end{center}              \vspace{-1cm}         \end{wrapfigure}     \vspace{.05in}     \begin{tabular}{@{}p{2in}p{4in}}     {\it Heimilisfang:}   Álfheimar 72            & {\it Sími:}   5685024 / 6902898  \\                 {\it Póstnúmer:}  104 Reykjavík   & {\it Fax:}    (412) 268-7828 \\              {\it Kennitala:} 3107902659 & {\it E-mail:}  eirikurrb10@ru.is\\  \\               \end{tabular}


title: How would you name these fraction macros?

text: I've got four macros now for typesetting fractions in text mode. The first writes them horizontally (shilling style, with a hyphen), the second writes them diagonally, the third writes them vertically, and the fourth chooses the style automatically based on the number of digits in the numerator and denominator. What would you name each of the four macros? For now, I'm calling them `\texthfrac`, `\textdfrac`, `\textvfrac`, and `\textfrac`, respectively. Each takes 2 or 3 arguments (2 if given just a fraction; 3 if given an integer followed by a fraction). Special care in kerning is needed for the 3-arguement case. The reason I'm asking is because what's going through my head now is wondering how much work would be involved in releasing these as a LaTeX package. I'm really happy with how these all turned out. * * * ![sample](http://i.stack.imgur.com/ihPqq.png)


title: \renewcommand with \caption*

text: I'd like to redefine `\caption*` as               \renewcommand{\caption*}[1]{\vspace{\abovecaptionskip}\caption*{\textbf{Note:} #1}\vspace{-\abovecaptionskip}}      but keep getting an error when I try to compile. My work-around is to just define the new command `\floatnote` and use that instead of `\caption*`. It's a perfectly fine work-around, but I'm left with the question: Q: Why doesn't the above `\renewcommand` code work?               \documentclass{article}     \usepackage{booktabs}     \usepackage[margin=10pt,font=small,labelfont=bf,labelsep=colon,tableposition=top,figureposition=bottom]{caption}     %\renewcommand{\caption*}[1]{\vspace{\abovecaptionskip}\caption*{\textbf{Note:} #1}\vspace{-\abovecaptionskip}}     \newcommand{\floatnote}[1]{\vspace{\abovecaptionskip}\caption*{\textbf{Note:} #1}\vspace{-\abovecaptionskip}}     \begin{document}     Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet.          \begin{table}[h]       \centering       \caption{Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet.}       \begin{tabular}{ll}         \toprule         foo & bar \\         \midrule         baz & qux \\         \bottomrule       \end{tabular}       %\caption*{Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet.}       \floatnote{Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet.}     \end{table}          Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet.     \end{document}      ![tab1](http://i.stack.imgur.com/GV0KZ.jpg)


title: Incompatibility between classicthesis and afterpage

text: It looks like there is an incompatibility between `afterpage` and `classicthesis` :( I successfully run this example: How to wrap text around landscape page. But as soon as I incorporate it in my classic thesis document it does not work anymore (float error)… Any idea on how to fix this?


title: pgfplot same size font in figures and same size figures

text: Hi I've created figures with standalone and pgfplot package. The figures output size are different to one another but more importantly the font size are different. I would like all figures to be of same output size and font size. Should this be controlled in the individual figure files or the main.tex file? My text file of data can be found here data_files First figure file.................                   \documentclass{standalone}         \usepackage{tikz}         \usepackage{pgfplots}         \pgfplotsset{compat=newest}         \begin{document}         \providecommand{\plotdataDir}{plotdata}         \begin{tikzpicture}         \begin{loglogaxis}[xlabel={$Aspect\:Ratio$},         ylabel={$\mu_c$},ymajorgrids,xmax=1e7,         ytick={0.1,1,10,100,1e3,1e4,1e5,1e6},ymax=1e7,ytick pos=left,xtick pos=left]         % G14         \addplot[blue,thick] table[x=AspectR,y=G14] {\plotdataDir/effectivemu.txt}         node[fill=white,pos=0.85,font=\tiny]{$1,250,000$};          G15         \addplot[blue,thick] table[x=AspectR,y=G15] {\plotdataDir/effectivemu.txt}         node[fill=white,pos=0.52,font=\tiny]{$\mu_r=\infty$};         \end{loglogaxis}         \end{tikzpicture}         \end{document}      ![fig1 output](http://i.stack.imgur.com/7nQAo.png) Second figure file                   \documentclass{standalone}         \usepackage{tikz}         \usepackage{pgfplots}         \pgfplotsset{compat=newest}         \begin{document}         \providecommand{\plotdataDir}{plotdata}         \begin{tikzpicture}         \pgfplotsset{set layers}         \begin{semilogxaxis}[scale only axis,         xlabel={$turns \times I \left(n \cdot A\right)$},         ylabel={$B_z \left(T\right)$},xmin=1,ymin=0,xmax=100000,         xtick pos=left,         ytick pos=left,xmajorgrids,legend entries={$Supermendur         \:2V$,$Metallic\:Glass$},legend pos=north west]         \addplot[blue,ultra thick] table[x=nxI,y=Bfield1] {\plotdataDir/ellipbmoment.txt}         node[fill=white, fill opacity=0.7, text opacity=1,anchor=south east,font=\tiny]        {$\mu_r=80,000$};         \end{semilogxaxis}         \end{tikzpicture}         \end{document}      ![fig2 output](http://i.stack.imgur.com/WEfPd.png) And the main document.............                   \documentclass{article}         \usepackage{standalone}         \usepackage{tikz}         \usepackage{pgfplots}         \pgfplotsset{compat=newest}              \begin{document}              \providecommand{\plotdataDir}{tikdir/plotdata}         \begin{figure}[here]         \centering         \includestandalone{tikdir/effectivemu}         \caption{test}         \end{figure}              \providecommand{\plotdataDir}{tikdir/fig1}         \begin{figure}[here]         \centering         \includestandalone{tikdir/fig2}         \caption{test}         \end{figure}              \end{document}      If the main document.tex file is run as above fig1 and fig2 are different sizes. I am aware I can control the width and height of image by using \includestandalone[width=\textwidth] but doesn't solve the font size differences between the plots. You can see I adjusted the font size for nodes as \tiny but \tiny is different for both plot. Should this be adjusted globally if so how? Ideally the preferred structure I would like is of fig2. It seems fig1 has smaller width than fig2 thereby stretching the font size.


title: apa6 title page formatting problems

text: So I'm using `apa6` to write in APA format for a school project, and I'm having trouble with the title page. On sources like OWL the format for the title page looks like this: ![Proper Format](http://i.stack.imgur.com/5WSx4.jpg) However, what I get looks like this: ![Incorrect Format](http://i.stack.imgur.com/KP11E.png) The problem is the new line character that appears between the title and the author's name. The code I'm using is as follows:               \documentclass[man]{apa6}     \title{test}     \shorttitle{test}     \author{weirdesky}     \affiliation{University}     \begin{document}       \maketitle     \end{document}      I've taken a look at the documentation on `apa6`, but the formatting for the title page seemed to only be mentioned in passing, and I was unable to find any formatting options. Does anyone know how this could be fixed?


title: Option for envlab to put envelopes first?

text: I've recently started on trying to create letters to send using LaTeX, and I would also like to generate envelopes for those letters at the same time. I discovered the `envlab` package which looks like it does an excellent job at that. The only issue that I'm having is that this puts the envelope content at the end of the document. For my use it would work out better if the envelope were created as the first page of the resulting document. That would allow me to put an envelope into the manual slot of my printer to have that printed and then the printer would pull the paper from the automatic feeder. With the envelope last, my printer just prints the envelope content onto a plain sheet of paper pulled from the tray. Is there some option that I'm missing which would allow me to reorder the output so that the envelope content would come first? I'm using pdfTeX 3.1415926-2.4-1.40.13 (TeX Live 2012/Debian).


title: Wrong Page Numbering using hepthesis

text: I am using the `hepthesis` document class, which is built on `scrbook`, and it produces incorrect page numbering for the following code:               \documentclass[oneside]{hepthesis}     \begin{document}          \begin{frontmatter}         \tableofcontents         \listoffigures     \end{frontmatter}          \begin{mainmatter}         \chapter{First Chapter}         Chapter 1 Text.         \begin{figure}             Empty Figure             \caption{My Empty Figure}         \end{figure}     \end{mainmatter}          \end{document}      The list of figures ends up on page 1 not page iii. If I add `\newpage`, `\clearpage` or `\cleardoublepage` then the list of figures is page iii but page 1 is blank. How do I keep the list of figures numbered as with the rest of the front matter without introducing superfluous blank pages?


title: Gummi Not Using TexLive 2012

text: I use Gummi was LaTeX document editing. I recently installed TeX Live 2012 as per instructions here. Also I previously had TeX Live installed from Ubuntu Software Center which I uninstalled. Now, when I start Gummi and load some old LaTeX documents, it seems Gummi doesn't know anything about new TeX Live 2012 installation and uses old TeX program (I don't understand where it loads this old program from since I uninstalled TeX Live from Software Center). This is the first line in Gummi's build log:               This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian)      Does it come with its own `TeX Live`? How do I make it use `TeX Live 2012`? In fact when I type in command `pdflatex` in the terminal, I get:               This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian)      where as when I `cd /usr/local/texlive/2012/bin/i386-linux` and type in `./pdflatex`, I get:               This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012)      restricted \write18 enabled.      I had properly exported `PATH` variable after installing `TeX Live 2012` by adding following entry in my `~/.pam_environment` file:               PATH            DEFAULT=${PATH}:/usr/local/texlive/2012/bin/i386-linux      When I `echo $PATH` above directory can be seen added to `PATH`. Looks like some old TeX Live program is taking preference over TeX Live 2012.


title: How to introduce a line break in a TikZ node label?

text: I need to introduce line breaks into the label of a node. This is what I've tried so far, but none of it worked: 1:               \node[node, label={[split parts = 4]alpha \nodepart{two} bravo \nodepart{three} charlie nodepart{four} delta }, below of = 5] (8) {$8$};      2:               \node[node, label={alpha\\bravo\\charlie\\delta}] below of = 5] (8) {$8$};      3:               \node[node, label={alpha \newline bravo \newline charlie \newline delta}] below of = 5] (8) {$8$};      All of those approaches are fairly similar. I found solutions on line breaks inside nodes, and on labels on edges, but not in labels of nodes. In fact, I've tried the suggestions I found on labels of nodes, but it didn't work as well.


title: Unnumbered section not showing title

text: I've got a custom style that is almost 100% working, but there's a few bugs I've noticed, and this one I can't seem to figure out.               \titleformat{\section}       {\color{cyan}\itshape\LARGE}       {\llap{\thesection\ }#1}       {1em}       {}       [\titleline{\color{cyan}\titlerule[1pt]}]      In my cls file, I've got many bits of code, some of which may be conflicting here. When I make a new empty document based on the `book` class (and appending the above code into the preamble), everything works fine. But with my own class, the section text for an unnumbered section doesn't show. Here's my cls file:               \LoadClass[10pt,letterpaper]{book}     \let\cleardoublepage\clearpage          \RequirePackage[       left=2.25in,       right=0.75in,       top=1.25in,       bottom=1.25in,       marginparwidth=1.75in,       marginparsep=.25in,       asymmetric]{geometry}          \RequirePackage{graphicx}     \RequirePackage[hidelinks]{hyperref}     \RequirePackage{amsthm, amsfonts, amsmath}     \RequirePackage{thmtools}     \RequirePackage{paralist}     \RequirePackage{tikz}     \RequirePackage[explicit]{titlesec}     \RequirePackage{blindtext, xcolor}     \RequirePackage[T1]{fontenc}     \RequirePackage{mdframed}     \RequirePackage{DejaVuSansCondensed}     \RequirePackage[normalem]{ulem}     \RequirePackage{environ}     \RequirePackage[strict]{changepage}     \RequirePackage{fancyhdr}     \RequirePackage{calc}     \RequirePackage{titletoc}          \renewcommand*\familydefault{\sfdefault} % Set default font          \newcounter{definition}     \setcounter{definition}{0}          %%% Table of Contents ----------------------------------------------------------     \setcounter{tocdepth}{1} % Show only Chapters and Sections          % this stuff moved here for clarity     \makeatletter     \g@addto@macro{\appendix}{%       \addtocontents{toc}{\protect\renewcommand*{\protect\@chapapp}{\protect\appendixname}}}          %%% Change font/color/layout of TOC          % START OF MODIFIED CODE          \contentsmargin{1.5cm} % global right margin, perhaps also global left          \titlecontents{chapter}[3cm] % <-- seems to set some specific left margin     {\color{cyan}\bfseries\LARGE\addvspace{3mm}}     {\makebox[0cm][r]{\@chapapp\hspace{.5em}\thecontentslabel\hspace{.75cm}}}     {} %     ^^^ pretendously zero width box puts its contents in the left margin     {\hfill\makebox[-3cm]{\thecontentspage}}  % 3cm = twice 1.5cm          \titlecontents{section}[3cm] % <-- again this left (additional?) margin     {\color{cyan}\large\itshape\addvspace{3mm}}     {\makebox[0cm][r]{\thecontentslabel\hspace{.75cm}}} % box pushed to the left     {}     {\hfill\makebox[-3cm]{\thecontentspage}}  % 3cm = twice 1.5cm     [\addvspace{0mm}]          % END OF MODIFICATIONS          \makeatother          \makeatletter     % Basically the same as for `\l@section` etc, just `\@nodottedtocline` instead of `\@dottedtcline`:     \newcommand*\l@chapterinfo{\@nodottedtocline{0}{7em}{2.1em}}     \newcommand*\l@sectioninfo{\@nodottedtocline{1}{7em}{2.1em}}          % Copied from the book class macro `\@dottedtocline`. Removed the dots and page number     \def\@nodottedtocline#1#2#3#4#5{%       \ifnum #1>\c@tocdepth \else         \vskip \z@ \@plus.2\p@         {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip          \parindent #2\relax\@afterindenttrue          \interlinepenalty\@M          \leavevmode          \@tempdima #3\relax          \advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip          {#4}\nobreak          \leaders\hbox{$\m@th             \mkern \@dotsep mu\hbox{\,}\mkern \@dotsep             mu$}\hfill          \nobreak          \hb@xt@\@pnumwidth{\hfil\normalfont \normalcolor }%          \par}%       \fi}     \makeatother          %%% New commands to add custom description to Chapter and Section.     \def\chapterinfo#1{%         \addcontentsline{toc}{chapterinfo}{%         \noexpand\numberline{}#1}}%          \def\sectioninfo#1{%         \addcontentsline{toc}{sectioninfo}{%         \noexpand\numberline{}#1}}%          %-------------------------------------------------------------------------------     %%% Header and Footer ----------------------------------------------------------          \pagestyle{fancy}     \fancyhf{} % sets both header and footer to nothing     \lhead[\textbf{\thepage}\hspace{7mm}\leftmark]{}     \rhead[]{\rightmark\hspace{7mm}\textbf{\thepage}}     \renewcommand{\headrulewidth}{0pt}     \fancyhfoffset[L]{1.5in}     \fancyhfoffset[R]{0in}          %-------------------------------------------------------------------------------     %%% Sction Styles --------------------------------------------------------------          \makeatletter     \titleformat{\chapter}       {\normalfont\sffamily\Huge\scshape}       {}       {0pt}       {       \thispagestyle{empty}    % Remove page number on new chapters       \setcounter{definition}{0}       \begin{tikzpicture}[remember picture,overlay]         \node[yshift=-3cm] at (current page.north west)           {\begin{tikzpicture}[remember picture, overlay]             \draw[fill=cyan] (0,-1) rectangle               (25cm,3cm);             \draw[fill=cyan] (0,-24) rectangle               (25cm,-25cm);             \ifttl@label% <---------------------- Added condition on \ifttl@label               \node[anchor=west,xshift=.21\paperwidth,yshift=-.01\paperheight,rectangle]                   {\color{white}\LARGE \MakeUppercase{\@chapapp} \Huge\thechapter};             \fi% <------------------------------- end condition on \ifttl@label            \end{tikzpicture}           };         \end{tikzpicture}\endgraf         \vskip-.7cm         \color{cyan}\Huge\raggedright\leftskip-1cm         \noindent\MakeUppercase{#1}\endgraf       }     \makeatother     \titlespacing*{\chapter}{0pt}{10pt}{0pt}{}          \titleformat{\section}       {\color{cyan}\itshape\LARGE}       {\llap{\thesection\ }#1}       {1em}       {}       [\titleline{\color{cyan}\titlerule[1pt]}]          \titleformat{\subsection}{\color{cyan}\normalfont\large}{\; #1}{1em}{}          %-------------------------------------------------------------------------------     %%% Custom Environments --------------------------------------------------------          \tikzstyle{cyanbox} = [draw=cyan!50, fill=cyan!10, very thick,         rectangle, rounded corners, inner sep=10pt, inner ysep=20pt]     \tikzstyle{cyanbox2} = [draw=cyan!50, fill=cyan!10, very thick,         rectangle, inner sep=10pt, inner ysep=20pt]          \tikzstyle{whitebox} = [draw=cyan!50, fill=white, very thick,         rectangle, inner sep=10pt, inner ysep=20pt]     \tikzstyle{fancytitle} =[fill=cyan!50, text=white]          \def\thedefinition{\thechapter.\arabic{definition}}     \NewEnviron{definition}[1][Definition]{       \stepcounter{definition}       \begin{center}         \begin{tikzpicture}           \node [cyanbox] (box){%               \begin{minipage}{.9\textwidth}                 \BODY               \end{minipage}           };           \node[fancytitle, right=10pt] at (box.north west) {\bfseries$\bullet$ Definition \thedefinition};           \end{tikzpicture}         \end{center}}          \NewEnviron{emphasis}{       \begin{center}         \begin{tikzpicture}           \node [whitebox] (box){%               \begin{minipage}{.9\textwidth}                 \BODY               \end{minipage}           };           \end{tikzpicture}         \end{center}}          \NewEnviron{fullwidth}{       \begin{adjustwidth}{-1.55in}{0in}         \begin{center}         \begin{tikzpicture}           \node [cyanbox2] (box){%               \begin{minipage}{\paperwidth - 1.8in}                 \BODY               \end{minipage}           };           \end{tikzpicture}         \end{center}       \end{adjustwidth}}          \def\leftmarginshift{\marginparwidth + \marginparsep}     \def\rightmarginshift{\marginparsep}     \def\bodysize{\textwidth + \rightmarginshift}          \NewEnviron{myimage}[2]{       \begin{adjustwidth}{-2.0in}{0.25in}         asdf         \begin{table}[h]           \centering     %           \makebox[0pt][c]{\parbox{\textwidth}{%           \begin{minipage}{2.0in}             #1.#2           \end{minipage}           \begin{minipage}{\textwidth}             \BODY           \end{minipage}     %           }}         \end{table}       \end{adjustwidth}       }          \NewEnviron{notation}{       \begin{tikzpicture}         \node [mybox] (box){%             \begin{minipage}{.9\textwidth}               \BODY             \end{minipage}         };         \node[fancytitle, right=10pt] at (box.north west) {\bfseries Notation};         \end{tikzpicture}}          %-------------------------------------------------------------------------------     %%% Custom Theorems ------------------------------------------------------------          \declaretheoremstyle[         within=section,         spaceabove=10mm,         spacebelow=3mm,         headfont=\color{cyan}\normalfont,         notefont=\normalfont,         bodyfont=\itshape,         headpunct=\newline\newline,         %postheadspace={10pt},         notebraces={}{},         headformat={%             \makebox[-15pt][r]{\normalfont\large\NAME\ \NUMBER\;\;\;\;}\setbox0\hbox{\ }\hspace{-\the\wd0}\large\NOTE%         },     ]{theorem}     \declaretheorem[style=theorem]{theorem}     \declaretheorem[style=theorem]{example}          \declaretheoremstyle[         within=section,         spaceabove=10mm,         spacebelow=3mm,         headfont=\color{cyan}\normalfont,         notefont=\normalfont,         bodyfont=\itshape,         headpunct=\newline\newline,         %postheadspace={10pt},         notebraces={}{},         headformat={%             \makebox[-10pt][r]{}\setbox0\hbox{\ }\hspace{-\the\wd0}\large\NAME%         },     ]{proof}     \let\proof\relax     \declaretheorem[style=proof,qed=\qedsymbol,name=Proof]{proof}     \declaretheorem[style=proof,qed=\qedsymbol,name=Solution]{solution}      Here's a MWE to go with it.               \documentclass{textbook}          \titleformat{\section}       {\color{cyan}\itshape\LARGE}       {\llap{\thesection}}       {1em}       {\sectiontitle}       [\titleline{\color{cyan}\titlerule[1pt]}]          \begin{document}     \section*{Acknowledgement}% This section is not numbered     asdf     \chapter{test}     \end{document}      I can tell that the problem has to do with the #1 in my code. I've tried replacing with `\sectiontitle`, but that didn't work either.


title: Large enough bracket size

text: $$\Sh(E/K)=\ker\textbraceleft WC(E/K)\rightarrow\prod_{\nu\in M_K}WC(E/K_{\nu})\textbraceright$$      How do I make my brackets larger than the `\prod` within it?


title: Itemized list in table, creates an unwanted gap

text: I'm trying to add an itemized list in a `tabular` environment, it does work however it adds an unwanted space above the list... Here's the code...               \documentclass[10pt]{article}          % packages     \usepackage[T1]{fontenc}     \usepackage[margin=3cm]{geometry}     \usepackage{array, xcolor}     \usepackage{titling}     \usepackage{blindtext}          % rules     \definecolor{lightgray}{gray}{0.8}     \newcolumntype{L}{>{\raggedleft}p{0.14\textwidth}}     \newcolumntype{R}{p{0.8\textwidth}}     \newcommand\VRule{\color{lightgray}\vrule width 0.5pt}          \begin{document}          \maketitle     \thispagestyle{empty}     \pagestyle{empty}          \section*{Work Experience}          \begin{tabular}{L! {\VRule} R}     2010-2011 & {\bf Profession}\\     & Job Description\\     & \begin{itemize}       \item The first item       \item The second item       \item The third etc     \end{itemize} \\          \end{tabular}          \end{document}      And the result is this... ![Table with unwanted gap](http://i.stack.imgur.com/D57So.png) Is there anyway to make the itemized list have less of a line break between its start and 'Job Description'?


title: How to assign distinct font, color and style to each sectioning environment of a document?

text: I am trying to compose with *TeX a document that looks like a GDR manual. Basically I need to set a different font, style and color for chapter, section, subsection and subsubsection labels. It is quite easy to change the color and style: I exploited, for instance, specific commands of the `xcolor` and `titlesec` packages (namely `definecolor` and `titleformat`, if you ask). Since I mainly use LaTeX to compose scientific papers (where the font is quite standard), I just recently started to look for ways to have different fonts inside a document. According to the information that I managed to retrieve, the easiest way to change the font is to use XeTeX/LuaTeX and `fontspec`. But how am I supposed to change each single sectioning style? I have only found references about how to change the default, `sf`, `sc`, etc. font. Is there any better way to set font, style and color with respect to my goal? How do I change file size to a give value in points? Moreover, can I place the "Chapter N" and "Name of the Chapter" parts of a chapter sectioning wherever I want? I would like to obtain the same effect as here, where "Trade Dress" should be "Chapter N" and "STATEMENT", instead, the "Name of the Chapter".


title: How can multiple pgfplotstable columns be used in a legend?

text: I'd like to plot a few sets of data using the `groupplots` library of `pgfplots`. On each plot, I'd like to add a few other pieces of data that do not change from plot to plot. So I put the plot commands in a `\foreach` loop, but I can't get the legend entries to come from the input table describing these extra data. I tried something similar to the top answer in Use first row of a table as legend entry in pgfplot graph?, but it would not compile (when resolving references the second time around it did not like `\colname`). Below is an example and the output. The correct answer will rename the labels from 'Model' to the columns from `\modeltable`. (It would also be nice to space the labels a bit further out in the horizontal direction...)               \documentclass[crop]{standalone}          \usepackage[svgnames]{xcolor}     \usepackage{pgfplots}     \usepackage{pgfplotstable}     \usepgfplotslibrary{groupplots}          \pgfplotsset{% global config       compat=newest,       every minor tick={very thin, gray},       minor tick num=4,       enlargelimits=0.02,       group style={         columns=2,         xlabels at=edge bottom,         ylabels at=edge left},       every axis legend/.append style={         legend cell align=left,         legend columns=4       }     }          \pgfplotstableread{       Time      {Model A}   {Model G}   {Model Z}       0         1           1           1       1         1           2           2       2         2           3           3       3         3           4           4       4         5           5           8       5         8           6           10       6         13          7           16     }\modeltable          \pgfplotstableread{       Time      {Data 1}  {Data 2}       0         1.3       2.3       1         2.6       3.6       2         3.8       4.8       3         7.9       5.9       4         6.3       7.3       5         7.5       6.5       6         9.0       8.9     }\datatable          \begin{document}            \begin{tikzpicture}              \begin{groupplot}[           xlabel={Time},           ylabel={Amplitude},           every axis title shift=0,           legend to name=grouplegend]                \pgfplotsinvokeforeach{1,2}{%             \nextgroupplot[title=Data $#1$]                  % Models             \foreach \y in {1, 2, 3} {               \addplot [smooth, dashed, color=DarkRed]                 table[x index=0, y index=\y] {\modeltable};               %\pgfplotstablegetcolumnnamebyindex{\y}\of{\modeltable}\to{\colname}               %\addlegendentry {\colname}               \addlegendentry{Model}             }                  % Data             \addplot [only marks, mark=o]               table[x index=0, y index=#1] {\datatable};             \addlegendentry {Data}           }              \end{groupplot}              \node (dummytitle) at ($(group c1r1.north)!0.5!(group c2r1.north)$)           [above]{};         \node (title) at (dummytitle.north)           [above, yshift=\pgfkeysvalueof{/pgfplots/every axis title shift}]           {Experimental Data};              \node (legend) at ($(group c1r1.south)!0.5!(group c2r1.south)$)           [below, yshift=-2\pgfkeysvalueof{/pgfplots/every axis title shift}]           {\ref{grouplegend}};            \end{tikzpicture}          \end{document}      ![Two-column plot with uninformative legend](http://i.stack.imgur.com/b0HE8.png)


title: How to align rows in Tikz nodes & tabular environment

text: In the attached image, you can see the text is not aligning properly. At the end it started to align as required. Sorry I can not reduce the MWE any more. since the preamble in big so I will put that in the comment section. I draw the redlines to show how the text should be aligned.                   \documentclass{article} \usepackage{setspace}\usepackage[left=1in,right=1in,top=1in,bottom=1in]{geometry} \usepackage{fontspec,xltxtra,xunicode}     \usepackage{fancyhdr} \usepackage{color} \usepackage[svgnames]{xcolor} \usepackage{cmll} \usepackage{tabularx,multicol,ulem,array} \usepackage{placeins}      \usepackage{longtable}     \usepackage{tikz} \usepackage{pgf,pgffor}     \usetikzlibrary{calc} \pagestyle{fancy}     \usetikzlibrary{positioning,shapes,shadows,arrows}     \usetikzlibrary{fit,shapes.geometric}     \newcounter{nodemarkers}     \newcommand\circletext[1]{%         \tikz[overlay,remember picture]              \node (marker-\arabic{nodemarkers}-a) at (0,1.5ex) {};%         #1%         \tikz[overlay,remember picture]             \node (marker-\arabic{nodemarkers}-b) at (0,0){};%         \tikz[overlay,remember picture,inner sep=2pt]             \node[draw,ellipse,fit=(marker-\arabic{nodemarkers}-a.center) (marker-\arabic{nodemarkers}-b.center)] {};%         \stepcounter{nodemarkers}%     }     \hfuzz=45pt     \newcommand\fb\FloatBarrier % to put float barriers     \setmainfont[Script=Devanagari]{Sanskrit2003}     \newcounter{nodecount}     \newcommand\tabnode[1]{\addtocounter{nodecount}{1} \tikz \node (\arabic{nodecount}) {#1};}     \tikzstyle{every picture}+=[remember picture,baseline]     \tikzstyle{every node}+=[inner sep=0pt,anchor=base,     minimum width=1.5cm,align=center,text depth=0.5ex,outer sep=1pt]     \tikzstyle{every path}+=[thick, rounded corners]     \newcommand{\nl}{\\[2mm]}     \begin{document}     .     \vspace{0.5cm} \\     \fb     \begin{table}[!htbp]     \begin{minipage}[b]{1\linewidth}      \begin{tabular}{c c c c c}     & & \tabnode{}& \tabnode{}&  \tabnode{}\\     प्र० & \tabnode{पु० \nl स्त्री० } & \tabnode{स: \nl सा} & \tabnode{तौ \nl ते} &  \tabnode{ते \nl ता:}      \end{tabular}     %\     \hspace{2cm}     \begin{tabular}{l l c l}     & \tabnode{}& \tabnode{}&  \tabnode{} \\     प्र० & \tabnode{गच्छति \nl वदति \nl आगच्छति \nl प्रतिगच्छति \nl प्रत्यागच्छति \nl करोति \nl खादति \nl पिबति \nl अस्ति \nl भवति \nl उपविशति \nl तिष्ठति \nl उत्तिष्ठति \nl ददाति \nl गृह्णाति \nl जानाति} & \tabnode{ गच्छतः \nl वदतः \nl आगच्छतः \nl प्रतिगच्छतः \nl प्रत्यागच्छतः \nl कुरुतः \nl खादतः \nl पिबतः \nl स्तः \nl भवतः \nl उपविशतः \nl तिष्ठतः \nl उत्तिष्ठतः \nl दत्तः \nl गृह्णीतः \nl जानीतः} & \tabnode{ गच्छन्ति \nl वदन्ति \nl आगच्छन्ति \nl प्रतिगच्छन्ति \nl प्रत्यागच्छन्ति \nl कुर्वन्ति \nl खादन्ति \nl पिबन्ति \nl सन्ति \nl भवन्ति \nl उपविशन्ति \nl तिष्ठन्ति \nl उत्तिष्ठन्ति \nl ददति \nl गृह्णन्ति \nl जानन्ति} \\     & \tabnode{}& \tabnode{}&  \tabnode{} \\     \end{tabular}     \vspace{2cm}      \caption{Make simple sentences by joining Nouns \& पठ् धातु forms}     \end{minipage}     \end{table}          \begin{tikzpicture}[overlay]     \draw [Green] (5.west) -- (1.north west) -- (1.north east) -- (5.south east) -- (5.south west) -- cycle;     \draw [red] (6.west) -- (2.north west) -- (2.north east) -- (6.south east) -- (6.south west) -- cycle;     \draw [blue] (7.west) -- (3.north west) -- (3.north east) -- (7.south east) -- (7.south west) -- cycle;          \draw [Green] (14.west) -- (8.north west) -- (8.north east) -- (14.south east) -- (14.south west) -- cycle;     \draw [red] (15.west) -- (9.north west) -- (9.north east) -- (15.south east) -- (15.south west) -- cycle;     \draw [blue] (16.west) -- (10.north west) -- (10.north east) -- (16.south east) -- (16.south west) -- cycle;          \path[-latex] (1.north) edge [bend left,Green] (8.north);     \path[-latex] (2.north) edge [bend left,red] (9.north);     \path[-latex] (3.north) edge [bend left,blue] (10.north);          \end{tikzpicture}     %\doublespacing     it is respectful to address everyone as "त्वम्" in order to address people who are older than you and who deserve respect forms of "भवत्" are used as shown in the image above.      \end{document}      ![enter image description here](http://i.stack.imgur.com/dEEDN.png)


title: What is the difference between \nobreak and \nolinebreak?

text: What is the difference between `\nobreak` and `\nolinebreak`? I noticed that a lot of solutions in TeX.SE use the former, but I thought the latter is LaTeX while the former is plain TeX. And LaTeX macros are often more fleshed-out versions of the more rudimentary TeX equivalents. Which is better for which situations?


title: Custom labelling of variables under an equation TikZ

text: I'd like to make this: (your prerogative as to the approach). It is basically labelling an equation: `\begin{equation} Y\simeq Y(\lambda,\,h,\,A,\,V,\,\beta,n) \end{equation}` ![enter image description here](http://i.stack.imgur.com/ISpBI.jpg) How about `TikZ` do you think that would do it?


title: Dealing with long description environment items

text: I have quite a lot of description environments in Beamer that are having both long and short items, leading to an output like               veryverylongitem description 1         shortitem description 2      which is not really great. So I'm trying to put labels and descriptions on different lines, in something like               veryverylongitem                 description 1     shortitem                 description 2      I've tried two things for that:               \let\origdescription\description     \renewenvironment{description}{     \setlength{\leftmargini}{0em}     \origdescription     \setlength{\itemindent}{0em}     \setlength{\labelsep}{\textwidth}     }     {\endlist}      which seem to do what I'd like, except that things are completely glitchy when using two nested description environment On another hand, puting something like               \begin{description}     \item[veryveryveryverylongitem]\hfill\\          description 1     \item[shortitem]\hfill\\          description 2     \end{description}      will do the job perfectly, except that I can't find a way to do renew the item command so that the hfill would applied document-wide. Is there other way to deal with long description, or have I done something wrong in the two solutions ?


title: siunitx carry error when rounding? \num{89.80} renders as 810

text: I've found what I'm afraid is either a bug or a supremely foolish error on my part: whenever I ask siunitx to render `\num{89.80}`, rounding by figures, it renders it as "810.". Likewise, `\num{898.0}` comes out as "8100.". After a bit of poking around, it appears that this happens whenever rounding a number with more than two digits in such a way that the largest place changes (see other examples below), as if the "9" in "89" is rounded to "10" and then the "8" is incremented to "9" and these are just concatenated. I've included a minimal example below. I'm running pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010) and the version of siunitx included in that TeXLive distribution.               \documentclass{article}     \usepackage{siunitx}          \sisetup{round-mode=figures}         \begin{document}          % these all render very strangely     \num{89.80}                      % 810.     \num[round-precision=3]{89.99}   % 810.0     \num{898.0}                      % 8100.     \num{19.8}                       % 110.     \num{99.8}                       % 910.     \num{9999}                       % 91 000          % these are totally fine     \num{9.98}     \num[round-mode=off]{89.80}     \num[round-mode=places]{89.80}          \end{document}


title: Inline equation in latex with text

text: Hi I want to write an inline equation with some texts like               Amplitude = 0.3 * Max_Amp_Of_Signal      How can I do it with LaTeX?


title: Is it possible to refer to node label and reuse it for labeling other nodes in tikz?

text: I would like to "reuse" some nodes' labels, as in example below               \documentclass[a4paper,12pt,oneside,titlepage]{report}       \usepackage{tikz}       \usetikzlibrary{positioning}            \tikzset{           label node/.style = {               rectangle,                minimum size = 6mm,               rounded corners = 2mm,               very thick,               draw = black!50,                top color = white,               bottom color = black!20,               font = \sffamily,                anchor = east,           }       }       \begin{document}                 \begin{tikzpicture}[line width = 1pt]               \node(A) [label node] at (-1, 0) {Node A};             \node(B) [label node] at (2, 0) {A.label};         \end{tikzpicture}       \end{document}      So, instead of having "A.label" as label for node B, I want "Node A" to be its label without writing it explicitly, i.e. "take" the label text from the node A.


title: How to change the display of subfigures in List of Figures?

text: I'm using the `subcaption` package and I would like to change the display in the List of Figures of the subfigures. Right now, it displays as :               2.1 Caption 1  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6        a      Subcaption 1 . . . . . . . . . . . . . . . . . . . . . . . . . 6        b      Subcaption 2 . . . . . . . . . . . . . . . . . . . . . . . . . 6      I'd like it to have a display as :               2.1  Caption . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6        2.1.a  Subcaption 1 . . . . . . . . . . . . . . . . . . . . . . . . . 6        2.1.b  Subcaption 2 . . . . . . . . . . . . . . . . . . . . . . . . . 6      Is it possible to customize the display ? Here's the a piece of code I'm using :               \documentclass{book}          \usepackage{graphicx}     \usepackage{caption}     \usepackage[list=true]{subcaption}          \begin{document}     \begin{figure}[H]     \centering     \begin{subfigure}{.5\textwidth}     \centering     \includegraphics[width=0.9\textwidth]{subfigure1.jpg}     \caption{subcaption 1}     \label{fig:sub1}     \end{subfigure}%     \begin{subfigure}{.5\textwidth}     \centering     \includegraphics[width=0.3\textwidth]{subfigure2.jpg}     \caption{subcaption 2}     \label{fig:sub2}     \end{subfigure}     \caption{Caption}     \label{fig:fig}      \end{figure}          \end{document}


title: Unexpected hung latex compilation with property list retrieval

text: This is very closely related to a previous question of mine. From the comments to this previous question, I understand that my approach here is completely wrong headed. So why bother post a question, right? I'm posting this question because, in my attempts at debugging and creating a work-around, I have what seem like essentially equivalent approaches but I'm getting different behavior when I run the document through LaTeX. Here's the MWE:               \documentclass{article}     \usepackage{pstricks,pst-node}     \usepackage{xparse}     \ExplSyntaxOn     \prop_new:N \g__sunset_plist     \tl_new:N \l__temporary_tl     \NewDocumentCommand{\setattr}{ mm }         {             \prop_gput:Nnn \g__sunset_plist {#1} {#2}         }     \DeclareExpandableDocumentCommand{\gettr}{ m }         {             \prop_get:Nn \g__sunset_plist { #1 } \l__temporary_tl         }     \DeclareExpandableDocumentCommand{\gettrdebug}{ m }         {             \msg_term:x { I've ~ been ~ passed ~ #1}             \prop_get:NnN \g__sunset_plist { #1 } \l__temporary_tl             \tl_use:N \l__temporary_tl         }     \ExplSyntaxOff     \setattr{my_linestyle}{linestyle=dashed,linecolor=blue}     \setattr{my_line}{\psline[linestyle=dashed,linecolor=blue](A)(B)}     \pagestyle{empty}     \begin{document}          \begin{pspicture}(10,10)              \pnode(0,0){A}         \pnode(10,10){B}         \pnode(10,0){C}         \pnode(0,10){D}                   \gettr{my_line}   %% <-- works as expected         \psline[\gettr{my_linestyle}](C)(D)  %% <-- not working         \psline[\gettrdebug{my_linestyle}](C)(D)  %% <-- not working          \end{pspicture}          \end{document}      In this MWE, `\psline[\gettr{....}]...` generates the error:               ! Package xkeyval Error: `linestyle=dashed,linecolor=blue' undefined in familie     s `,pstricks,pst-node'.          See the xkeyval package documentation for explanation.     Type  H <return>  for immediate help.      ...                                                        l.36     \psline[\gettr{my_linestyle}](                                            C)(D)  %% <-- not working      And as explained to me in my previous approach, this is just wrong headed. But what's perplexing me is that `\psline[\gettrdebug{...}]...` just hangs. Aren't these two functions essentially doing the same thing? Why does one create a recoverable error and the other seem to hang?


title: How to include urldate on bibliography withou using the "note" option?

text: I'm using the natbib package and the plainnat style. Also I'm using the url package.               \usepackage[authoryear,round]{natbib}     \usepackage{url}         \bibliographystyle{plainnat}      My problem is the following: I want to include several online references, with the url and date of access "printed" in my references. I've read some of the answers given to similar questions, and the majority suggest to use write the date of access in the note field, instead of in the urldate fiel. I would like to know if there is another way to do so, because it's a bit complicated for me to change all dates of access from the urldate fiel to note field by hand. Is there a way to create a command in the preamble which automatically print the date of aceess in the references which have the date on the urldate field? This is one example of a biblio entrance (automatically generated by reference manager software) with information on the urldate field, which is not printed in the pdf version:               @misc{REN2013,     author = {REN},     booktitle = {Daily Statistics},     title = {{Electricity Real Time Information}},     url = {http://www.centrodeinformacao.ren.pt/EN/},     urldate = {06-01-2014},     year = {2013}     }      I'm not sure whether I'm using Biblatex. According to my editor I'm using it, but I can't understand. I would appreciate your suggestions to solve my problem. Thank you


title: Problem with \left\langle \right\rangle in continued fractions

text: $$      {\bf A}_3+        \left\langle{\cfrac{\bf I}{{\bf A}_2+          \left\langle\cfrac{\bf I}{{\bf A}_1+           \left\langle\cfrac{\bf I}{{\bf A}_0}\right\rangle_1^{-1}}          \right\rangle_2^{-1}}}        \right\rangle_3^{-1}     $$      Indices 1, 2, 3 should be close to the corresponding brackets (I do not know how to do that) see a picture ![enter image description here](http://i.stack.imgur.com/hFNrP.png)


title: Add logos in upper left and right corner of Malmoe theme in beamer

text: I'm trying to add a logo into the upper left and upper right corners of the Malmoe theme. I'm sure it doesn't matter, but just in case, I'm using the Whale color theme. I've tried several things, but the following is what got me the closest to what I want:               \documentclass{beamer}     \usetheme{Malmoe}     \usecolortheme{whale}     \title{can't get this to work}     \usepackage[absolute,overlay]{textpos}          \begin{document}          \begin{frame}         \titlepage     \end{frame}          \addtobeamertemplate{section in head/foot}{}{         \begin{textblock*}{25mm}(0,0.25cm)             \includegraphics[width=1.5cm,keepaspectratio]{psumarks/pms287-noBorder.png}         \end{textblock*}}          \section{Section 1}     \begin{frame}{Title}          Why isn't this working?     \end{frame}          \end{document}      However, the color in the section of the slide that I want to put the logo in disappears. I've attached an example below. The upper left should be black, not white. And yes, I realize that the logo in this particular example is larger than the section itself would be, but that's not the case for the presentation that I'm trying to use this for. Any help would be much appreciated. Also, ignore the black border around the slide. ![ ](http://i.stack.imgur.com/OeQoP.jpg)


title: Is there a makebst-like style definition helper for creating biblatex styles?

text: I know that there is documentation on `biblatex` and I know that there are loads of answers how to customize the respective `biblatex` configuration files to meet one's needs to achieve a specific layout of citations. However, I think I am not the only one who likes to keep things simple and who likes when things are easy as they can be. There is reference management software out there which does kind of a great job making it easy for the user to define the nitty gritty details of a custom citation style. Citavi is such a kind of software. I would love to see a piece of software which helps me define a `biblatex` style, getting very close to what I need without writing any LaTeX code. Sure, last adjustments have to be made manually. Does anyone know such a tool? CMDline or with gui? (Makebst is far from perfect but somehow it did the job for getting 'close'.)


title: Missing baselineskips?

text: Here are some cases where when there is stuff inside a vbox, the baselineskips are sometimes there and sometimes not. Or maybe it's something else that is producing the differences?               \setbox0\vbox{% halign is vertical mode material?       \halign{& \strut$#\hfil$\cr         a& b& c\cr         d& e& f\cr         g& h& i\cr}}% each cell expands out to \hbox{...     \setbox1\hbox{% valign is horizontal mode material?       \valign{& \hbox{\strut$#\hfil$}\cr         a& d& g\cr         b& e& h\cr         c& f& i\cr}}% each cell expands out to \vbox{\hbox{...     \hbox{\box0\box1}     \vbox{When there is just text inside a \vbox{vbox,}       it uses the whole hsize and indents}     \vbox{\hbox{except when}\hbox{it consists}\hbox{of consecutive}\hbox{hboxes}}     \bye      ![enter image description here](http://i.stack.imgur.com/RsguQ.png) I've run into this on numerous times but never really understood what is happening or how can I fix it. (The question Why is \baselineskip not inserted before an \unvbox? might have something to do with this?)


title: Command for inverse circumflex in text mode

text: I would like to write this name that have an inverse circumflex above letter c: ![enter image description here](http://i.stack.imgur.com/EwVC0.png) I have found the command `\check{c}`, but it is in math mode. I want to find something equivalent but in text mode, to make no difference with the other letter/words of the text. (Using `\check{c}`, I get this: ![enter image description here](http://i.stack.imgur.com/0ddli.png)) Thank you!


title: How to use Fraktur/Gothic fonts in text mode

text: Is there any way to use fraktur font styles in text mode? I cannot enter math and do `\mathfrak` because then spaces are eaten up by LaTeX. Any pointers?


title: Which of these two equivalent macro definitions should be preferred?

text: Consider the following two macro definitions:               \def\setmacro#1{\def\macro{#1}}          \def\setmacro{\def\macro}      Although the two variants of `\setmacro` have a different `\meaning` they are equivalent in what they eventually do (if used correctly). In my opinion, the former definition is easier to read while the latter is more flexible and, possibly, more efficient. So which one should be preferred?


title: number format in pgfplots axis

text: How can I change the type of the decimal/thousand separator from the american one to the european one? More precisely, I want:   * "1000" to be written as is, instead of "1,000"   * "0,1" instead of "0.1"


title: How to avoid the bold version of the caption of the algorithm

text: I am using `algorithm2e` package, but I want to remove **Algorithm 1** in the figure and just say the name in my case as just appear only "The procedure". How we can do that?               \begin{algorithm}     \DontPrintSemicolon     a=1\;     b=2\;     c=2\;     \caption{The procedure}     \label{algo:sj2}     \end{algorithm}      ![enter image description here](http://i.stack.imgur.com/hiuil.png)


title: Table width with ctable

text: i'm having a problem with the width of a table in my thesis. Its my first document with Latex. I have two tables. First table:               \ctable[     caption = {Comparison between $K_D$ values in \citet{SPM_1977} and \citet{SPM_1984} for structure trunk },     label = {tab:KD_SPM_trunk},     mincapwidth = \textwidth,     width = \textwidth,     ]{Xcccccc}{       \tnote[a]{Applicable to slopes ranging from 1:1.5 to 1:5;}       \tnote[b]{These $K_D$ values are unsupported by test results and are only provided for preliminary design purposes;}       \tnote[c]{Refers to no-damage criteria (<5\% displacement, rocking, etc.); if no rocking (<2\%) is desired, reduce KD by 50 percent \citep{Zwamborn_1982};}       \tnote[d]{The use of a single layer of quarrystone armor units is not recommended for structures subject to breaking waves and only under special conditions for structures subject to nonbreaking waves. When used, the stone should be carefully placed;}       \tnote[e]{Special placement with long axis of stone placed perpendicular to structure face;}       \tnote[f]{Parallelepiped-shaped stone: long slab-like stone with the long dimension about 3 times the shortest dimension \citep{Markle_1979}.}     }{ \\         \toprule         \multirow{3}[6]{*}{Armor Units} & \multirow{3}[6]{*}{n} & \multirow{3}[6]{*}{Placement} & \multicolumn{4}{c}{Structure Trunk\tmark[a]} \\               &       &       & \multicolumn{2}{c}{SPM 1977} & \multicolumn{2}{c}{SPM 1984} \\               &       &       & Breaking & Nonbreaking & Breaking & Nonbreaking \\                   \midrule         \multicolumn{3}{c}{\textbf{Quarrystone}} &       &       &       &  \\         Smooth Rounded & 2     & Random & 2.1   & 2.4   & 1.2\tmark[b]  & 2.4 \\         Smooth Rounded & >3    & Random & 2.8   & 3.2   & 1.6\tmark[b]  & 3.2\tmark[b] \\         Rough Angular & 1\tmark[d]    & Random & -     & 2.9   & -     & 2.9\tmark[b] \\         \multirow{3}[2]{*}{Rough Angular} & \multirow{3}[2]{*}{2} & \multirow{3}[2]{*}{Random} & \multirow{3}[2]{*}{3.5} & \multirow{3}[2]{*}{4.0} & \multirow{3}[2]{*}{2.0} & \multirow{3}[2]{*}{4.0} \\               &       &       &       &       &       &  \\               &       &       &       &       &       &  \\         Rough Angular & >3    & Random & 3.9   & 4.5   & 2.2\tmark[b]  & 4.5\tmark[b] \\         Rough Angular & 2     & Speciale & 4.8   & 5.5   & 5.8   & 7.0 \\         Parallelepiped\tmark[f] & 2     & Special & -     & -     & 7.0 - 20.0 & 8.5 - 24.0\tmark[b] \\         \multicolumn{3}{c}{\textbf{Concrete armor units}} &       &       &       &  \\         Tetrapod and Quadripod & 2     & Random & 7.2   & 8.3   & 7.0   & 8.0 \\         Tribar & 2     & Random & 9.0   & 10.4  & 9.0\tmark[b]  & 10.0 \\         Dolos & 2     & Random & 22.0\tmark[c] & 25.0\tmark[c] & 15.8\tmark[c] & 31.8\tmark[c] \\         Modified Cube & 2     & Random & 6.8   & 7.8   & 6.5\tmark[b]  & 7.5 \\         Hexapod & 2     & Random & 8.2   & 9.5   & 8.0\tmark[b]  & 9.5 \\         Toskane & 2     & Random & -     & -     & 11.0\tmark[b] & 22.0 \\         Tribar & 1     & Uniform & 12.0  & 15.0  & 12.0\tmark[b] & 15.0 \\         \bottomrule     }      ![enter image description here](http://i.stack.imgur.com/09cxf.png) Second table:               \ctable[     caption = {Comparison between $K_D$ values in \citet{SPM_1977} and \citet{SPM_1984} for structure head },     label = {tab:KD_SPM_head},     mincapwidth = \textwidth,     width = \textwidth,     ]{Xccccccc}{       \tnote[a]{These $K_D$ values are unsupported by test results and are only provided for preliminary design purposes;}       \tnote[b]{Stability of dolosse on slopes steeper than 1:2 should be substantiated by site-specific model test;}       \tnote[c]{Until more information is available on the variation of $K_D$ value with slope, the use of $K_D$ should be limited to slopes raging from 1:1.5 to 1:3. Some armor units tested on a structure head indicate a $K_D$-slope dependence;}       \tnote[d]{The use of a single layer of quarrystone armor units is not recommended for structures subject to breaking waves and only under special conditions for structures subject to nonbreaking waves. When used, the stone should be carefully placed;}       \tnote[e]{Special placement with long axis of stone placed perpendicular to structure face;}       \tnote[f]{Cotagent of the slope angle that the structure wall makes with the horizontal.}     }{ \\         \toprule          \multirow{3}[6]{*}{Armor Units} & \multirow{3}[6]{*}{n} & \multirow{3}[6]{*}{Placement} & \multicolumn{5}{c}{Structure Head} \\               &       &       & \multicolumn{2}{c}{SPM 1977} & \multicolumn{2}{c}{SPM 1984} & Slope \\               &       &       & Breaking & Nonbreaking & Breaking & Nonbreaking & cot  \\                       \midrule         \multicolumn{3}{c}{\textbf{Quarrystone}} &       &       &       &       &  \\         Smooth Rounded & 2     & Random & 1.7   & 1.9   & 1.1\tmark[a]  & 1.9   & 1.5 to 3.0 \\         Smooth Rounded & >3    & Random & 2.1   & 2.3   & 1.4\tmark[a]  & 2.3\tmark[a]  & c \\         Rough Angular & 1\tmark[d]    & Random & -     & 2.3   & -     & 2.3\tmark[a]  & \tmark[c] \\         \cmidrule(rl){4-8}         \multirow{3}[6]{*}{Rough Angular} & \multirow{3}[6]{*}{2} & \multirow{3}[6]{*}{Random} & 2.9   & 3.2   & 1.9\tmark[a]  & 3.2   & 1.5 \\               &       &       & 2.5   & 2.8   & 1.6\tmark[a]  & 2.8   & 2.0 \\               &       &       & 2.0   & 2.3   & 1.3   & 2.3   & 3.0 \\               \cmidrule(rl){4-8}         Rough Angular & >3    & Random & 3.7   & 4.2   & 2.1\tmark[a]  & 4.2\tmark[a]  & c\tmark[c] \\         Rough Angular & 2     & Special\tmark[e] & 3.5   & 4.5   & 5.3\tmark[a]  & 6.4\tmark[a]  & \tmark[c] \\         \multicolumn{3}{c}{\textbf{Concrete armor units}} &       &       &       &       &  \\         \cmidrule(rl){4-8}         \multirow{3}[6]{*}{Tetrapod and Quadripod} & \multirow{3}[6]{*}{2} & \multirow{3}[6]{*}{Random} & 5.9   & 6.6   & 5.0\tmark[a]  & 6.0   & 1.5 \\               &       &       & 5.5   & 6.1   & 4.5\tmark[a]  & 5.5   & 2.0 \\               &       &       & 3.7   & 4.1   & 3.5\tmark[a]  & 4.0   & 3.0 \\               \cmidrule(rl){4-8}         \multirow{3}[6]{*}{Tribar} & \multirow{3}[6]{*}{2} & \multirow{3}[6]{*}{Random} & 8.3   & 9.0   & 8.3\tmark[a]  & 9.0   & 1.5 \\               &       &       & 7.8   & 8.5   & 7.8\tmark[a]  & 8.5   & 2.0 \\               &       &       & 7.0   & 7.7   & 6.0\tmark[a]  & 6.5   & 3.0 \\               \cmidrule(rl){4-8}         \multirow{2}[4]{*}{Dolos} & \multirow{2}[4]{*}{2} & \multirow{2}[4]{*}{Random} & 15.0  & 16.5  & 8.0\tmark[a]  & 16.0\tmark[a] & 2.0\tmark[b] \\               &       &       & 13.5  & 15.0  & 7.0\tmark[a]  & 14.0\tmark[a] & 3.0 \\         Modified Cube & 2     & Random & -     & 5.0   & -     & 5.0   & \tmark[c] \\         Hexapod & 2     & Random & 5.0   & 7.0   & 5.0   & 7.0   & \tmark[c] \\         Tribar & 1     & Uniform & 7.5   & 9.5   & 7.5   & 9.5   & \tmark[c] \\         \bottomrule     }      ![enter image description here](http://i.stack.imgur.com/1mJgO.png) As seen on figure 2, the table is too wide because I use {ccccccc} instead of {Xcccccc} in the definition. If I use {Xcccccc} in the definition of this second table this happens: ![enter image description here](http://i.stack.imgur.com/v5zMI.png) Can someone help me formatting this table? Best reggards, Diogo Silva


title: Start theorem counter from specific number

text: I have defined a new theorem and I would like it to start from a specific number(let's say 3). At first I thought of using `\addtocounter{\theexe}{3}`(where _exe_ is the new theorem) but I get an error stating that _No counter '0' defined_. What I did next was to (re)define my counter using `\renewcommand*{\theexe}{0}` but I still get the same message. How can my counter be forced to start from 3. My code is               \documentclass[a4paper,11pt]{article}     \newtheorem{exe}{Problem}     \renewcommand*{\theexe}{0}          \begin{document}     \addtocounter{\theexe}{3}     \begin{exe}     This is the third problem     \end{exe}     \end{document}


title: How to doublespace a table using setspace?

text: I have used `setspace` with `\spacing{1.9}` to meet publisher specifications of "3 lines per inch or 12 lines per 10 cm", but it does not affect tables, although the publisher has requested that the spacing be applied to tables. How can I apply this spacing to tables? Here is an example:               \documentclass{article}     \usepackage{amsmath}     \usepackage{lipsum}     \usepackage{setspace}     \begin{document}     \begin{spacing}{1.9}     \lipsum[1]     \begin{table}[ht]     \begin{tabular}{rlll}       \hline      & col1 & col2 & col3 \\        \hline       50 & 19 & 7 & 26 \\        100 & 10 & 20 & 29 \\        150 & 1 & 7 & 2 \\        200 & 0 & 0 & 10 \\      \hline     \end{tabular}     \end{table}     \end{spacing}     \end{document}      ![enter image description here](http://i.stack.imgur.com/Z6Ppo.png)


title: Positioning the beginning of table of content (toc) to the top of the page

text: I managed with great help from here to shift the beginning of the chapter titles to the top of the page, but it doesn't affect the table of content. Why is that? And how could I do that? I don't know, if everything is relevant... I tried to post a minimal version:                   \documentclass[paper=15cm:23cm, headinclude=true, numbers=enddot]{scrbook}         \usepackage[automark]{scrpage2}            \usepackage{tocloft}         \usepackage{titlesec}              %%Position of chapter title         \titleformat{\chapter}                     {\usekomafont{disposition}\usekomafont{chapter}}                     {\thechapter.\hspace{1em}}                     {0pt}                     {}         \titlespacing{\chapter}{0pt}{-50pt}{15pt}             \areaset[10mm]{111mm}{195mm}              \begin{document}         \tableofcontents              \chapter{Einleitung}              \noindent Text Text DADA oooooooooText Text DADA oooooo ooo Text Text DADA ooooooooo Text DADA ooo  oooooo Text Text DADA ooooooooo Text DADA ooooo oooo Text Text DADA ooo oooooo Text DADA ooooo oooo Text Text DADA ooooooooo Text DADA oooo ooooo Text Text DADA oo ooooooo               \chapter{Second}          \noindent Text Text DADA oo ooooooo  Text Text DADA oooooooooText Text DADA oooooooooText Text DADA oooooooooText Text DADA ooo ooooooText Text DADA oo oooooooText Text DADA ooooooooo Text Text DADA ooooo oooo Text  Text DADA ooooooooo           \section{Section}     Text Text DADA oooooooooText Text DADA oooooo ooo Text Text DADA ooooooooo Text DADA ooo  oooooo Text Text DADA ooooooooo Text DADA ooooo oooo Text Text DADA ooo oooooo Text DADA ooooo oooo Text Text DADA ooooooooo Text DADA oooo ooooo Text Text DADA oo ooooooo           \subsection{SubSection}     Text Text DADA oooooooooText Text DADA oooooo ooo Text Text DADA ooooooooo Text DADA ooo  oooooo Text Text DADA ooooooooo Text DADA ooooo oooo Text Text DADA ooo oooooo Text DADA ooooo oooo Text Text DADA ooooooooo Text DADA oooo ooooo Text Text DADA oo ooooooo           \end{document}


title: Misalignment in custom big symbol using mathop

text: Following the advice of this question, I created the \itsep symbol:               \newcommand{\itsep}{\mathop{\scalebox{1.5}{\raisebox{-0.2ex}{$\circledast$}}}}      When used with single character sub/super-scripts, it displays properly, like this:               a \itsep^f_{g} b       ![correct output](http://i.stack.imgur.com/Rrini.png) If I place multiple characters in the sub-script the symbol behaves incorrectly:               a \itsep^f_{g \, a \, b} b       ![incorrect output](http://i.stack.imgur.com/EjqX1.png) Is there a way to make this symbol truly behave like \sum or \bigwedge where the "big" symbol is centered over the subscript and centered under the superscript?


title: Two footnotes shown together with hyperref support

text: I want to place two distinct footnotes² in the text³, which have the same content, work both with hyperref and are explained together: I found some solutions which do that for me by giving the same² footnote² twice. However I want to have two distinct footnotes. Does anyone know how to do that? Cheers, Mil EDIT: The bigger purpose of my question is to _automatically have all footnotes_ (on one output page), _which have the same content, grouped together_. * * * ²,³: content of both footnotes


title: LaTeX: First page blank

text: I just installed LaTeX with TeXworks today. I need to create a simple PDF out of a couple large images, I realize this is likely very crude and roundabout but I somehow managed to get the thing done. However, LaTeX inserts a blank page before the stuff I want, and I can't find a way to get rid of it. I thought it may simply be the title page and tried adding `notitlepage` in `documentclass`, but that's not it. Here's the whole thing:               \documentclass[a4paper]{article}     \usepackage{graphicx}     \setlength{\oddsidemargin}{0pt}     \setlength{\topmargin}{0pt}     \setlength{\headheight}{0pt}     \setlength{\headsep}{0pt}     \setlength{\marginparsep}{0pt}     \setlength{\marginparwidth}{0pt}     \addtolength{\voffset}{-20pt}     \addtolength{\hoffset}{-22pt}     \setlength{\textheight}{25.8cm}     \graphicspath{{A:/Desktop/pdf/1/}}     \DeclareGraphicsExtensions{.png}     \pagenumbering{gobble}     \begin{document}     \centering     \includegraphics[width=17.7cm]{pg1}     \newpage     \includegraphics[width=17.7cm]{pg2}     \newpage     \includegraphics[width=17.7cm]{pg3}     \newpage     \includegraphics[width=17.7cm]{pg4}     \newpage     \includegraphics[width=17.7cm]{pg5}     \end{document}      Thanks in advance!


title: titlesec section font size incorrect

text: My dissertation requires the section title to be of the same font size as the text. I am using the `titlesec` package and I have provided these options:               \usepackage[rm,tiny,center,compact]{titlesec}      I have also provided formats for the headings such as               \titleformat{\chapter}{\centering\normalsize}{\thechapter.}{1em}{}     \titleformat{\section}{\normalsize\bfseries}{\thesection}{1em}{}     \titleformat{\subsection}{\normalsize\bfseries}{\thesubsection}{1em}{}     \titleformat{\subsubsection}{\normalsize\it}{\thesubsubsection}{1em}{}      All the headings, like the subsection headings work fine, they have the same font size as the paragraph text in the document. The section headings however, are larger by default. No matter what formatting specifications I provide in               \titleformat{\section}{..........}{\thesection}{1em}{}      the section headings remain large. Kindly let me know what else I can do to fix this. As requested, here is a list of the packages I am using               \documentclass[12pt]{report}     \renewcommand{\familydefault}{\rmdefault}     \usepackage[latin9]{inputenc}     \usepackage[letterpaper]{geometry}     \geometry{verbose,tmargin=1.25in,bmargin=1.25in,lmargin=1.4in,rmargin=1.15in}     \pagestyle{plain}     \usepackage[onehalfspacing]{setspace}     \usepackage{tocloft}     \usepackage[rm,tiny,center,compact]{titlesec}     \usepackage{indentfirst}     \usepackage{epstopdf}     \usepackage{graphicx,float,wrapfig}     \usepackage{etoolbox}     \usepackage{tocvsec2}     \usepackage[titletoc]{appendix}     \usepackage{tamuconfig}     \usepackage{amsmath}     \usepackage{amssymb}     \usepackage{amsthm}     \usepackage{amsfonts}     \usepackage{placeins}     \usepackage{graphics}     \usepackage{epsfig}     \usepackage{graphicx}     \usepackage{subfig}     \usepackage{mycommands1}     \usepackage{algorithm}     \usepackage{algpseudocode}     \usepackage[hidelinks]{hyperref}     \usepackage{booktabs}     \usepackage{multirow}     \allowdisplaybreaks[2]     \newcommand{\ra}[1]{\renewcommand{\arraystretch}{#1}}          \begin{document}     \pagestyle{plain} % No headers, just page numbers     \pagenumbering{arabic} % Arabic numerals     \setcounter{page}{1}     \chapter{\uppercase{Chapter heading ABC }} \label{chap: introduction}     \section{Section title Abcdefgh}     \subsection{Subsection title Abcdefgh}     \subsubsection{Subsubsection title Abcdefgh}     Paragraph text size Abcdefgh. \\     Paragraph text in bold for comparison \textbf{Abcdefgh}     \end{document}      And here are the details of the `tamuconfig` package where the headings are formatted:               \ProvidesPackage{tamuconfig}     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     %%%   Titlesec Customations      %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \titleformat{\chapter}{\centering\normalsize}{\thechapter.}{1em}{}     \titleformat{\section}{\normalsize\bfseries}{\thesection}{1em}{}     \titleformat{\subsection}{\normalsize\bfseries}{\thesubsection}{1em}{}     \titleformat{\subsubsection}{\normalsize\it}{\thesubsubsection}{1em}{}     \setcounter{secnumdepth}{3}     \addtocontents{toc}{\protect\renewcommand{\protect\cftchapleader}         {\protect\cftdotfill{\cftsecdotsep}}}  % puts leader dots on chapters.      The resulting pdf shows the section headings as in the attached image (unable to upload as I am a new user). As you can see, all the headings work fine, except for the section heading, which is large. Kindly let me know if this information is enough


title: Dynamically count and return number of words in a section

text: I am writing a proposal for which it is required to give the number of words of the main section in the proposal itself. I found this answer on how I can get a word count on a LaTeX document: Is there any way to do a correct word count of a LaTeX document? But this is only for entire documents. I was wondering if it is possible to get a word count in a LaTeX document of a section/part of text and actually return this in the text as well. I am open to suggestions with Sweave. One thing I could think of is to write the entire section in a Sweave block in an R character string. Then simply get the word count from that and return the string. This would however include all LaTeX codes used and not only intended words. Another solution I thought of was to extend this R code to wrap the string in an empty document, compile that and use tools available to get a wordcount from that, then return it. This seems like it could work but I am hoping there is a simpler solution.


title: Turning off and on images in figures

text: Is it possible to prevent the contents of a figure from being rendered? I have a large book document, and to speed up compiling while working on a draft, I would like to have some way of ignoring the content of the images, but ensuring that the figure size remains. In several cases I am using a line like:               \includegraphics[width=\linewidth]{figure.pdf}        so I do not know the actual size of the image.


title: Beamer: \againframe inside other frame

text: I'd like to repeat a certain state of a frame in `beamer`. Say like this:               \frame[label=A]{         \begin{itemize}             \item<1> foo             \item<2> bar         \end{itemize}     }          \frame{         \begin{itemize}             \item<1> fooagain             \item<3> baragain         \end{itemize}         \only<2>\againframe<1>{A}         \only<4>\againframe<2>{A}     }      However, this would not work as one can only call `\againframe` outside of other frames. I would be fine with this constraint however, I don't want a mini frame for each frame I call again (with `\againframe`). Do you know a solution for that?


title: new command and L with stroke

text: I need a boldface `L` often, so I'd like to use `\newcommand\L\{\mathbf{L}}`. This gives me a problem however, because I need a `L` with a stroke to write "Łoś's Theorem", for which the command is `\L`. Is it possible to define `\L` in such a way that it gives an `L` with a stroke outside math mode and a boldface `L` inside math mode? If not, how can I get an `L` with a stroke in a different way, so I can still use `\L` for my boldface `L` in math mode?