title: How could make the topic of \paragraph not bold?

text: I am writing a paper for a journal. So I download a template for LaTeX. But it does not define `\subsubsubsection`. So I use:               \setcounter{secnumdepth}{5}% for \subsubsubsection     \paragraph{Topic}\mbox{}\\      But 'Topic' is bold and subsub-topic is not bold. So how could I make subsubsub-topic is not bold? I also found that there are different space in the first word of 1st section for several subsubsub-text. E.g. > 2.1.1.2 Topic > > First world... > > 2.1.1.3 Topic > > First world...


title: How to change all caption to single spacing and not have reference turn up after every chapter

text: I've two questions when using LyX:   1. How to change all caption to single spacing? I've tried to insert these into the LaTeX preample but they don't work due to some error message.              \usepackage{caption}     \captionsetup{font={stretch=1}}        2. As I have several child document that I wanted to put together, the reference will turn up at the end of every chapter. How can I let the reference only turn up at the end of everything without having to temporarily delete away the reference for outputting the PDF? I need them there as I will sometimes still output each child document to see individually.


title: roman numbering for few sections

text: I have some attachments in my document and I would like to number them with a roman style. How can I do this? I tried:                 \documentclass[12pt,a4paper,oneside]{book}       \begin{document}            \chapter*{Atachments}       \renewcommand{\thesection}{\Roman{section}}       \section{my section}            \end{document}      EDIT Before the chapter* of attachments, I have an appendix with sections A.1, A.2, A.3. So, the number of the first section of attachments is IV instead of I. How can I correct this?


title: How can I make lstlisting look exactly like verbatim?

text: I like the way the verbatim environment looks, and I want to make my lstlistings look like it. I've tried setting the basic style to `\ttfamily`, but the letter kerning and line spacing seem to be different. Is there any way in getting it look like verbatim? Here is a complete example:               \documentclass[a4paper]{report}     \usepackage{listings}     \lstset{basicstyle=\ttfamily}          \begin{document}          This is lstlisting:          \begin{lstlisting}     : paxos.learn ( addr n v -- Ethernet packet )           2 paxos.pack32          ( addr n v -- addr payload )           paxos.eth_type.learn    ( addr payload -- addr payload ethtype )           swap paxos.eth_packet ; ( addr payload ethtype -- ethernet_packet )     \end{lstlisting}          This is verbatim (and what I want):          \begin{verbatim}     : paxos.learn ( addr n v -- Ethernet packet )           2 paxos.pack32          ( addr n v -- addr payload )           paxos.eth_type.learn    ( addr payload -- addr payload ethtype )           swap paxos.eth_packet ; ( addr payload ethtype -- ethernet_packet )     \end{verbatim}          \end{document}      which looks like: ![enter image description here](http://i.stack.imgur.com/TMDVP.png) **Edit** I tried setting the option `columns=flexible`, but then listings will ignore important spaces in the source code.


title: Graphical vertical rule in tikz

text: I would like to make design (class), where I would like to have special type of paragraph that will have `{` character on left and will have height exactly same as height of whole paragraph. Also, I would like to extend it that any tikz picture could be scaled based on length (height) of paragraph. ![enter image description here](http://i.stack.imgur.com/i28cn.png)


title: pagebackref showing an error in article preparation

text: I am getting an error while using `pagebackref=true`. When I dont use `pagebackref=true`, the program works as expected. This is Central European Journal of Computer Science article. Is there any other alternative for `pagebackref`? ![error while using page back ref](http://i.stack.imgur.com/bHZdp.png)


title: How to override TeX dollars?

text: I've read about `\renewenvironment` and `\let` commands but they are intended to work with classic commands TeX commands that start with a slash. And I cannot find any example of overriding `$` and `$$` any how. Is it possible?


title: Is there an incompatibility between caption and picinpar packages?

text: In the code below, the number of the second figure is `3` instead of `2`. It seems that there is an incompatibility between `caption` and `picinpar` packages. Unfortunately, the `picinpar` documentation is not in English so I can't check it out.               \documentclass{article}     \usepackage{picinpar,lipsum}      \usepackage[bf]{caption}     \begin{document}     \begin{figure}[!ht]     \caption{The first caption}     \end{figure}     \begin{figwindow}[1,r,%     \rule{4cm}{2cm},%     {The second caption with a wrong number!}\label{picinpar}]     \lipsum[1]          In Fig.~\ref{picinpar} ...     \end{figwindow}     \end{document}      I know that putting `\addtocounter{figure}{...}` before and after the second figure, solves the problem, but I want to learn the right way to do this. Because this trick may be forgotten sometimes. So what is the right solution?


title: Symbol for "corresponds to" (equals sign with hat)

text: Recently in some LaTeX documentation I noticed that there is a special LaTeX command for the symbol meaning "corresponds to", which is similar to an equal sign with a hat on top. `\hat{=}` or `\widehat{=}` both do not give satisfying results (my personal view). Unfortunately, I cannot remember which documentation it was! Does anyone know the command or the documentation where to find it? The symbol I am looking for: ![The symbol I am looking for](http://i.stack.imgur.com/2z1sc.jpg) PS: I have already tried detexify but it didn't produce anything useful! Also, browsing the comprehensive LaTeX symbol list wasn't successful.


title: How to write ≙ in latex

text: I want to use unicode character 2259 "estimates" in my document, but cannot find it in the symbols-a4 list or via detexify. It looks exactly like this: ≙ The closest I get is \triangleq: ≜, but it has a different meaning.


title: Fitting text to a shape in TikZ

text: I am designing a poster, which has some geometrical shapes (TikZ paths) surrounded by some text. I would like the text to flow neatly around these shapes. I bet there's some clever TikZ magic that could do this. EDIT: This is the sort of effect I want, sorry to not be clear: ![enter image description here](http://i.stack.imgur.com/kRPW8.jpg)               \documentclass[a4paper]{article}     \usepackage{tikz}     \begin{document}     \begin{tikzpicture}     \draw (0,0) to (2,-2) to (2,-4) to (4,-4) to [out=up, in=down] (6.5,0);     \node [text width=6cm, anchor=north west] at (0,0) {     \hspace{5pt}  This is the sort of effect I want to \\     \hspace{23pt} achieve, with text automatically \\     \hspace{36pt} constrained by some \\     \hspace{46pt} geometrical form. Here \\     \hspace{55pt} it's just a curve, \\     \hspace{57pt} but this could \\     \hspace{57pt} also be the \\     \hspace{57pt} text label \\     \hspace{57pt} of a node.};     \end{tikzpicture}     \end{document}


title: Different labels for subsection titles and references

text: I am constructing my thesis, and am using a variant of the report class. I have chapters, sections, subsections, and subsubsections in places. When reading the text, having a long string of numbers, letters, and roman numerals in the title for subsections and subsubsections is unpleasant-looking. I would prefer these titles to just have the relevant subsection or subsubsection title, and do so using:               \renewcommand\thesubsection{\Roman{subsection}}      (Depending on how things end up looking, I may include the section counter, but I'll definitely strip off the chapter counter.) However, when I make a reference to the subsection or subsubsection, I would much prefer the entire string of numbers to be used, otherwise the reference is poorly defined. Can anyone comment on how to do this? Here is a minimal example.               \documentclass{report}          \begin{document}          \renewcommand\thesection{\arabic{chapter}.\arabic{section}}     \renewcommand\thesubsection{\Roman{subsection}}          \chapter{Chapter}          \section{Section}          \subsection{Subsection}\label{subsection}          \noindent I have the subsections labelled in Roman in the title, because 1.1.I would just be long.     \\          \noindent Here is a reference to the subsection: (\ref{subsection})     \\          \noindent I would like references to the subsection to be (1.1.I), however.          \end{document}


title: lisf of table without citep

text: I'm writing my thesis. I have several captions of tables like this:               \caption{Composição química média de folhosas, em percentagem ponderal (base seca) \citep{ferreira}.}      I use `citep` in caption. But I dont want this in my list of tables. It it possible ?


title: WriteLaTeX limited to 30 pages?

text: I've been experimenting with WriteLaTex and, while it seems to do a very nice job overall and has the best user experience of the alternatives I have tried, my experimental document stopped after 30 pages. This does not happen on shareLaTeX, latexlab or in my offline compiles of the same document on the Mac or the PC. This led me to wonder whether a 30-page limit is built-in to WriteLatex? I expect the example document to have a length of 34 pages. As an aside, I also tried SpanDex but had other difficulties with it. By-and- large, I would like to stick with WriteLaTeX because, as I mentioned, its user experience seems the best to me.


title: Combining paths before making them double

text: I must thank TeX Stack Exchange, especially for these questions:   * Creating gears in TikZ   * How can I invert a 'clip' selection within TikZ?   * How to use plot in a foreach loop into a single path? I could come up with this: ![Steins;Gate](http://i.stack.imgur.com/4vup1.png) Now the finishing touch to make the badge look like the third image would be to convert all thick lines to double lines (actually, the only thing that really annoys me is that thick circle at the center). But I need to combine the paths first. Is there an easy way to do it in TikZ or should I leave it like this? **Free bonus.** I assume there is no way to reduce the letter-spacing within `decorations.text`?               \documentclass[11pt]{article}     \usepackage{tikz}     \usetikzlibrary{decorations.text,decorations.shapes,calc}          \usepackage{fontspec,xltxtra,xunicode}     \defaultfontfeatures{Mapping=tex-text}     \setromanfont[Mapping=tex-text]{Calibri}          \begin{document}     \thispagestyle{empty}          % Andrew Stacey's workaround for the foreach bug     \makeatletter          \def\tikz@clear@foreach{%     \let\pgffor@beginhook=\pgfutil@empty     \let\pgffor@endhook=\pgfutil@empty     \let\pgffor@afterhook=\pgfutil@empty     }          \def\tikz@plot@expression(#1){%       \edef\tikz@plot@data{\noexpand\tikz@clear@foreach\noexpand\pgfplotfunction{\expandafter\noexpand\tikz@plot@var}{\tikz@plot@samplesat}}%       \expandafter\def\expandafter\tikz@plot@data\expandafter{\tikz@plot@data{\tikz@scan@one@point\pgfutil@firstofone(#1)}}%       \tikz@@@plot%     }     \makeatother          % #1 number of teeths     % #2 radius intern     % #3 radius extern     % #4 angle from start to end of the first arc     % #5 angle to decale the second arc from the first           \newcommand{\gear}[5]{%     \draw[rotate=-4] (0:#2)     \foreach \i in {1,...,#1} {%       {[rotate=(\i-1)*360/#1] -- (0:#2)  arc (0:#4:#2) {                  -- (#4+#5:#3)  arc (#4+#5:360/#1-#5:#3)}}     } -- cycle;}          \begin{tikzpicture}[remember picture,overlay]          \tikzstyle{reverseclip}=[insert path={(current page.north east) --       (current page.south east) --       (current page.south west) --       (current page.north west) --       (current page.north east)}     ]          \begin{pgfinterruptboundingbox} % To make sure our clipping path does not mess up the placement of the picture     % The small disk at center will stay white (first inverse clip selection)     \path[clip] circle (0.715) -- cycle [reverseclip];      \end{pgfinterruptboundingbox}          % Both curves that cut the gear     \draw[line width=2pt] (175:1.33) .. controls +(-5:2) and +(186:0.2) .. (6:2);     \draw[line width=2pt] (185:1.33) .. controls +(-5:2) and +(186:0.2) .. (-9:2);          \begin{pgfinterruptboundingbox}     % The arrow will cover the gear (second inverse clip selection)     \path[clip] (175:1.25) arc (175:185:1.25) .. controls +(-5:2) and +(186:0.2) .. (-7.47:2.1) arc (-7.47:5.1:2.1) .. controls +(186:0.2) and +(-5:2) .. (175:1.33) -- cycle [reverseclip];     \end{pgfinterruptboundingbox}          % The gear, and the smallest circle     \gear{14}{1.05}{1.25}{10.5}{2}     \draw[line width=2pt] circle (0.75);          % Thick circles with the text     \draw[line width=2pt] circle (1.33) circle (2);     \draw[decorate,decoration={shape sep=5mm,text along path,raise=1.5mm,text={|\fontsize{16.5}{16.5}\selectfont|PROLOGIN 2013||}}] (172:1.33) arc (172:8:1.33);          % Arrow tips     \draw[line width=2pt] (10.5:2) .. controls +(-5:0.3) and +(185:0.3) .. (6:3.8) .. controls +(0,-0.2) and +(0.2,0) .. (-20:2);          % Beginning of arrow     \draw[line width=2pt] (168:2) .. controls +(190:0.36) and +(175:0.36) .. (175:2);     \draw[line width=2pt] (162:2) .. controls +(190:0.7) and +(175:0.7) .. (180:2);          \end{tikzpicture}     \end{document}


title: What's wrong with this: \renewcommand{fnum@figure}{\textsc{Figure~\thefigure}}

text: As the title suggests, I am not sure why my file will not compile. Here is a MWE:                 \documentclass{amsart}       \renewcommand{fnum@figure}{\textsc{Figure ~\thefigure}}       \begin{document}              Dude!       \end{document}      Here's an interesting part of the `.log` file:                ! Missing control sequence inserted.       <inserted text>                  \inaccessible       l.2 \renewcommand{fnum@figure}                               {\textsc{Figure ~\thefigure}}      Please don't say `\def cs{...}', say `\def\cs{...}'.      I've inserted an inaccessible control sequence so that your      definition will be completed without mixing me up too badly.      You can recover graciously from this error, if you're      careful; see exercise 27.2 in The TeXbook.


title: Native vs distribution-specific installation method

text: I would like to ask which of these two installation methods is better for Texlive 2012 on Fedora 17.   * distribution-specific RPM/repository method   * native installation from tug.org Which gives me the most stable and up-to-date system? I have read that distro- specific does not use tlmgr to update. What does that mean for me? tx


title: Text inside custom Tikz draw

text: I have the current design               \begin{tikzpicture}      \def\longitudUno{2}     \def\longitudDos{3.6}     \def\pico{0.25}     \def\altura{0.5}     \def\separación{\longitudUno+0.08}          \draw [azulPalido,fill=azulPalido,line width=0pt,xshift=6.05cm]  (0,0) -- (0,\altura) -- (\longitudUno,\altura)-- (\longitudUno+\pico,\altura/2) -- (\longitudUno,0) -- cycle;          \draw [azulOscuro,fill=azulOscuro,line width=0pt,xshift=6.05cm]  (\separación,0) -- (\separación+\longitudDos,0) -- (\separación+\longitudDos+\pico,\altura/2) -- (\separación+\longitudDos,\altura) -- (\separación,\altura) -- (\separación+\pico,\altura/2) -- cycle;          \node[text=white,font=\bfseries,] at (7.1,0.25){Business};     \node[text=white,font=\bfseries,] at (10.1,0.25){Ireland bailout};          \end{tikzpicture}      to draw ![what I have designed](http://i.stack.imgur.com/OFhr8.png) Like you can see in newspapers like http://www.theguardian.com/business/2011/apr/03/irish-property-going-for-a- song However, I would with this design I have to manually place the texts and specify the box lenghts (variable 'longitud') as well as the position of elements without any anchor posibility. Is there a way I could improve this? Maybe with a custom node shape?


title: \input in the reverse order

text: I wonder if there is a reverse version of input. For instance, I maintenance a list of things.               list.txt     \myitem{20080103}{a}     \myitem{20090202}{b}      I could do `\input{list.txt}` and define `\myitem` in one file to generate an itemized list. But now I want to list those in the reverse order in another file in table format. I can redefine `\myitem`, but is there an easy way to `\input` in the reverse order? i.e.               \myitem{20090202}{b}     \myitem{20080103}{a}


title: Breaking paragraph into lines with courier in cals table

text: \documentclass[10pt,a4paper]{article}     \usepackage[utf8]{inputenc}     \usepackage[a4paper]{geometry}     \geometry{top=10mm, bottom=10mm, left=10mm, right=10mm}     \geometry{showframe}     \usepackage{courier}     \usepackage[T1]{fontenc}     \usepackage{cals}          \makeatletter          \begin{document}     %\renewcommand*\familydefault{\sfdefault}     \renewcommand*\familydefault{\ttdefault}     \normalfont          \begin{calstable}          \colwidths{     {15pt}     {10pt}     {515.60239pt}     }     \cals@paddingL=1pt     \cals@paddingR=1pt     \def\cals@borderT{0.2pt}     \def\cals@borderB{0.2pt}     \def\cals@borderL{0.2pt}     \def\cals@borderR{0.2pt}     \brow     \alignR \cell{\strut E}     \alignC \cell{\strut =}     \alignL \cell{\strut this is the english text, this is the english text, this is the english text, this is the english text, this is the english text, this is the english text, this is the english text}     \erow          \end{calstable}          Why doesn't the text break in the rigth place? In case of using sfdeault, it's good.      \end{document}


title: Make box with minimum width (in math mode)

text: How can I give a box a minimal width, in math mode? That is, I would like a command something like `\minwidth{exp}{width}`, which will always typeset `exp`, but additionally, _if_ the natural length of `exp` is less than `width`, will pad it by centering it in a box of width `width`. For instance, `$A \minwidth{i}{2em} B$` should come out like `$A \makebox[2em][c]{i} B$`; but `$A \minwidth{WXYZ}{2em} B$` should come out like `$A WXYZ B$`. The `varwidth` package provides this variable-width functionality, but only for a minipage, not for a plain box or similar. (The use case is for a variant of the inline TikZ arrow commands defined in this answer, padding the arrow label to a minimal width, so that the arrow extends for large labels, but does not get too short when the label are short or absent.) **Edit:** This turned out to be a bit of an XY problem: Harish Kumar has excellently answered my real problem, without answering this specific question. What I am now using, adapted from his answer, is:               \newcommand{\myto}[1][]{ \mathrel{       \tikz[baseline={([yshift=-0.55ex]a.south)}]{%         \node[minimum width=1.5em,align=center,inner xsep=0.3ex,inner ysep=0.15ex] (a) {$\scriptstyle #1$};         \draw[->] (a.south west) -- ([xshift=0.6ex]a.south east);}       }\mkern-1mu}      with usage as in `$A \myto[f] B$`. I would still be interested in answers to the specific question asked, though.


title: Hide/show individual chapters/sections/... in the RefTeX TOC buffer

text: RefTeX/AucTeX allow to display the maximum level of toc entries displayed in the ‘ _toc_ ’ buffer. Is it also possible to hide(collapse)/show(expand) individual chapters and sections in the ‘ _toc_ ’ buffer? Many thanks in advance!


title: Command for obtaining Table of Contents (toc) number of pages using vimscript and latex?

text: Is there a way I can obtain the number of pages that make up the table of contents (all the pages prior to chapter 1)? I am using vim + latexsuite, but if this is commonly listed in other latex files that would also be a solution also (since I would just grep for that using vim).


title: Using a SVG webfont in a document

text: In this site, there are some useful web fonts for icons. I would like to use such a kind of font for designs using icons next to the usual fonts of LaTeX for the text. Concretely, I would like to build macros that use locally the fonts juts for display one icon. How can I do that ?


title: Chapter summary included in TOC and main body text

text: I'd like is for a summary to appear _both_ in the TOC _and_ at the head of the chapter within the main-body of the work. If possible, matching the reduced font size, _out_ -dented initial line, and overall paragraph indent of the original would be a nice touch. This is a follow-up question to the following post which I've been encouraged to post as a new question: Table of Contents with additional description of entries I'm working off the format used in a publication of Arnold Toynbee's lectures which I'm transcribing to LaTeX. For the moment, I've just included the descriptions at the head of the chapter tagged with \small{text}, e.g.:               \chapter{I Introductory}          \small{         Division of the subject --- Advantages of combining the study of         History and Political Economy --- The Deductive Method --- The         Historical Method --- Importance of a discussion of Method --- Laws         and precepts relative --- The Social Problems of the Present to be         borne in mind in studying the history of the Past.\footnote{The             fragment of economic history here printed under the title of             `The Industrial Revolution', a title that Toynbee has himself             selected for a book, of which the following pages contain some             of the raw material, consists of notes of lectures delivered by     Toynbee in the hall of Balliol College, Oxford, between October 1881 and     Midsummer 1882.} } \\     }      As presented in the original publication (I'm just looking for something reasonably close, not exact): TOC: http://books.google.com/books?id=rf4OAAAAQAAJ&pg=PR31#v=onepage&q&f=false Main matter page: http://books.google.com/books?id=rf4OAAAAQAAJ&pg=PA1#v=onepage&q&f=false


title: Biblatex-chicago endnotes instead of footnotes with autocite

text: I have been using the biblatex-chicago package in my essay to generate footnotes for citations using \autocite and \autocites... but now I wish to have endnotes rather than footnotes. I first load the biblatex-chicago package as follows:               \usepackage[backend=biber,notes,natbib,isbn=false]{biblatex-chicago}        I have tried a variety of creative methods to then use endnotes, including:               \usepackage{endnotes}     \let\footnote=\endnote     %begin page     %content here, include references like \autocite[191]{LetHistoryJudge}     %end of content     \theendnotes      This successfully includes "Notes" at the end, but it doesn't translate the bib reference into the actual citations. I get "LaTeX Warning: Citation 'LetHistoryJudge' on page 7 undefined on input line 29." and similar warnings for all of my citations. These citations, I might add, work perfectly fine as footnotes when I remove the endnotes package and don't redefine the endnote command as the footnote command. What's the proper way to do this? I haven't found an option in the biblatex-chicago package itself that would allow me to set endnotes instead of footnotes. Thank you in advance for any help!


title: What is the difference between \def and \newcommand?

text: Inspired by a question about `\let` and `\def`, I have some that essentially all boil down to asking **What are the differences between`\def` and `\newcommand`?** In particular, I wonder   1. Is it possible to have parameters passed to `\def`ed commands, both optional and required?   2. Is there a `\redef` command equivalent to `\renewcommand`?   3. I have only ever used `\newcommand` -- is there any reason I should change that habit? but I welcome comments on anything else I may not have thought of in this list!


title: What is the difference between \def and \newcommand (Part II)?

text: A previous question What is the difference between \def and \newcommand? has discussed the difference between `\def` and `\newcommand` at some length. However, I cannot find in that discussion an explanation of the following phenomenon. This code prints **Empty** :               \documentclass{article}     \begin{document}     \def\foo{}     \ifx\foo\empty Empty\else Not empty\fi     \end{document}      This code prints **Not empty** :               \documentclass{article}     \begin{document}     \newcommand\foo{}     \ifx\foo\empty Empty\else Not empty\fi     \end{document}      The only difference is that one has `\def` and the other has `\newcommand`. What's going on?


title: PGFplots - bold nodes only at ticks

text: The following code produces the diagram below:               \begin{center}     \begin{tikzpicture}         \begin{axis}[date coordinates in=x,             axis background/.style={fill,bottom color=gray!50,top color=white},             grid=major,             grid style={dotted,black},             xtick={2009-08-18,2009-11-21,2010-01-19,2010-03-19},             ylabel=Rate (\%),             xticklabel style={rotate=90, anchor=near xticklabel},             xticklabel=\year.\month.\day,             date ZERO=6-15-2009,% <- improves precision!     ]     \addplot file{plot.data};     \end{axis}     \end{tikzpicture}     \end{center}      ![enter image description here](http://i.stack.imgur.com/CBlgZ.png) My question is, is there a way to have bold nodes only at tick points? In this case there would only be 4 such nodes. Any help is much appreciated!


title: eps files by originpro 8 do not show properly in LaTeX

text: The images in my paper are in EPS format. When I execute the paper, the graphs won't appear correctly (either the axes titles, legends or some data is missing). The graphs appear properly in the `.eps` file as well in the origin file. Moreover, if I put the images in `.jpg` format in the paper, then it appears properly. I am not able to recognise the error, whether there is any problem in the origin or LaTeX?


title: Modify beamer sectionnavigation

text: I'm using warsaw theme in Latex, and I want to know how to modify sectionnavigation, in order to use bold police for current section instead of lighted one. And I don't want to make other sections in navigation bar looks shaded.


title: How can I use adjustbox in \sectionmark?

text: I want to use adjustbox in \sectionmark but it doesn't work. Is there a work- around for this?               \documentclass{book}     \usepackage{blindtext}     \usepackage{adjustbox}     \usepackage{fancyhdr}     \pagestyle{fancy}          \renewcommand{\sectionmark}[1]{\markright{#1 \adjustbox{valign=t}{\rule{1.5pt}{\baselineskip}} \thesection}}          \fancyhead[RO]{\rightmark}     \fancyhead[LO]{}               \begin{document}          \chapter{An example chapter}          \section{An example section}          \blindtext[25]          \end{document}


title: Get equal D and T slopes with tikz-timing

text: I'm using the `tikz-timing` package to create a bus timing diagram:               \begin{tikztimingtable}[timing/slope=0.5]     DT & 2D{}12D{}1D\\     CK & [H] 1H2{6T}2T\\     \end{tikztimingtable}      Now it occurs that the slope of `D{}D` is twice as long as the slope of `T`. That is in a way logical, because `T` is only one character (is that the reason?), but I now want a neat way to get the slopes even long.


title: Referencing to subfigures in main caption

text: I'm trying to reference to subfigures in the main caption of my figure. Unfortunately I'm only getting blanks, not even undefined referencing `??`. What's going on?               \documentclass{report}          \usepackage[superscript]{cite}     \usepackage{mathtools}     \usepackage{graphicx}     \usepackage{caption}     \usepackage{subcaption}          \begin{document}     Some text.          \begin{figure}[!h]         \centering         \begin{subfigure}[b]{0.4\textwidth}                 \centering                 \includegraphics[width=\textwidth]{figure1}         \label{fig:fig1}         \end{subfigure}     \begin{subfigure}[b]{0.4\textwidth}                 \centering                 \includegraphics[width=\textwidth]{figure2}         \label{fig:fig2}         \end{subfigure}         \caption{\protect\subref{fig:fig1} shows figure 1 and \protect\subref{fig:fig2} shows figure 2.}     \end{figure}     \end{document}


title: Labeling linguistic examples with language information

text: I'm writing a linguistics paper that uses a large amount of linguistic examples from a wide variety of languages, using the gb4e package. I want to be able to label each example with information about the language it comes from, as I've seen in some texts, sort of like this: > >     Language (family, citation, etc.)   >        (1) example text   >            glosses >            'translation' >   gb4e is great at formatting the examples themselves, but I can't seem to get the label placed where I want it, that is, placed immediately before the example and without an indent. Here's some example code:               \documentclass{article}     \usepackage{gb4e}     \usepackage{lipsum}          \begin{document}     \lipsum[2]          Hungarian (Finn-Ugric, \emph{reference})       \begin{exe}       \ex \gll    J\'anos h\'aza\\                   John house.his\\           \glt    `John's house'       \end{exe}          \lipsum[3]     \end{document}      If the label text is outside the exe environment, it's treated like a regular paragraph, but if I try to put it inside, it gives me an error. How can I make it look the way I want? I've looked at other packages that do numbered examples, but they don't seem to have solutions either, and they also don't have the same functionality as gb4e that I need. Any help would be greatly appreciated.


title: “Arithmetic overflow” error

text: factorials up to 12 are handled.How can make it to compute beyond that? > Error: “Arithmetic overflow               \documentclass{article}       \begin{document}      \newcount\n \newcount\p \newcount\m     \def\factorial#1{{\m=#1\advance\m by 1     \n=1     \p=1     \loop\ifnum\n<\m \multiply\p by \n \advance\n by 1 \repeat\number\p}}          \def\printfactorials#1{\m=#1\advance\m by 1     \n=0     \loop\ifnum\n<\m \hfil\break\number\n! = \factorial{\n} \advance\n by 1 \repeat}          \printfactorials{12}     \end{document}


title: How to create custom referencing style

text: For example I want to reference in the following way: > [FHK+2002] U. Fischer, M. Heinzler, R. Kilgus, F. Näher, S. Oesterle, H. > Paetzold, W. Röhrer, A. Stephan, R. Winkow: Tabellenbuch Metall, Verlag > Europa-Lehrmittel, 2002 > > [GHS2002] D. Gross, W. Hauger, W. Schnell: Technische Mechanik, Band2 > Elastostatik, Springer-Verlag, Berlin, 2002 > > [MMWW2004] G. Merzinger, G. Mühlbach, D. Wille, T. Wirth: Formeln + Hilfen > zur höheren Mathematik, Binomi Verlag, 2004 > > [QuSa2006] A. Quarteroni, F. Saleri: Wissenschaftliches Rechnen mit MATLAB, > Springer-Verlag, Berlin, 2006 How do I do this in LaTeX? I tried using `alpha` and `apa` style it gives only the first author name. I do not want that way. Can someone help me out. I gave the examples above for multiple authors it takes first letters and single author first 4 letters in his name. Hoping for good answers...


title: \usepackage's phantom \ifnum

text: So I'm trying my hand at creating some packages (on WriteLaTeX, because my Surface can't run TeX1), and have run into a rather fascinating problem. My packages just won't load; they complain about `\ifnum` instead. Here's a minimal test case: ### test.sty               \NeedsTeXFormat{LaTeX2e}[1994-06-01]     \ProvidesPackage{test}[2014-08-04 Hello, World!]     \endinput      ### main.tex               \documentclass{article}     \title{LaTeX Testing}     \usepackage{test}          \begin{document}     Hello, World!     \end{document}      ### Compile error               Missing = inserted for \ifnum.     <to be read again>                         -     l.4       And I'm thinking, _when did_ `\ifnum` _come into this?!_ (The error occurs on the 'token' after `\usepackage`, whether that's a newline or a `\show` or whatever else.) There's plenty on the internet about `\ifnum` errors, but nothing on just after `\usepackage`. I have no idea where to even _start_ debugging this, and my options are rather limited due to being stuck with an online service... Some help? * * * 1 Surface RT is a pain sometimes. I do have a proper machine, with LaTeX on it; however, it's not quite as portable, and therefore isn't on hand at the moment.


title: \textbullet and CM sans serif: font shape undefined

text: The following example               \documentclass{article}     \begin{document}       \sffamily       \textbullet     \end{document}      gives me the warning:               LaTeX Font Warning: Font shape `OMS/cmss/m/n' undefined     (Font)              using `OMS/cmsy/m/n' instead     (Font)              for symbol `textbullet' on input line 4.      I believe this warning is because cmss does not define a bullet. The UK TeX FAQ recommends ignoring the warning. Some answers on this site (e.g. TG Schola – missing symbol textbullet) suggest the `textcomp` package. The documentation of the `textcomp` package says "Note that there is now a textcomp.sty in the LaTeX distribution, and the original package is now little used (if at all)." If I want to get rid of the warning is `\usepackage{textcomp}` the correct way to go? Does that use the "original package" or the one in the LaTeX distribution (I am using TeX Live 2011)


title: How to break a long equation?

text: I have a long equation but long enough to occupy two lines. I want to break it to improve readability. How can I break it?               \begin{equation}     F = \{F_{x} \in  F_{c} : (|S| > |C|) \cap      (minPixels  < |S| < maxPixels) \cap      (|S_{conected}| > |S| - \epsilon)       \}     \end{equation}      I wan to break it in 3 lines after `\cap`. But `\\\` or `\n` didn't work


title: Line break in formula

text: I have a math, that is too long for only one line. Now I want it to break like this:               f(x) =          x + ...      Or what is the mathematic right way to break such a long formula into several line? Thanks for your help!! P.S.: Its not an equation like                f(x) = x + ...           = ....


title: Add bold enumerate items

text: I would like to add bold items with `enumerate` in my report. How can I do that using `\usepackage{enumitem}`?


title: textcomp's \textmusicalnote doesn't work: "cannot open encoding file for reading"

text: I'd like to put a music note as an icon next to notes in my document. I discovered the `\textmusicalnote` symbol in the `textcomp` package, but it doesn't seem to render. I suspect I'm doing something obviously wrong, but I can't see what right now. I'm using the `memoir` class, but in an effort to create a minimal document I've tried using the standard `article` class. Here's my document:               \documentclass[a4paper]{article}     \usepackage{textcomp}     \begin{document}          Here is a note:          \textmusicalnote          or not, as the case may be.          \end{document}      Nothing appears at all where I'm expecting to see the quaver. Is there a better way to do this? * * * Edit: The end of my log file shows:               !pdfTeX error: pdflatex (file cm-super-ts1.enc): cannot open encoding file for reading ==> Fatal error occurred, no output PDF file produced!


title: How to plot a graph from its adjacency matrix?

text: For example, I want to plot a graph whose adjacency matrix is `[0,1,0;1,0,1;0,1,0]`. I first plot three points labeled by `p1,p2,p3`, and link the points `p1,p2`, `p2,p3`. For a general case, how to link the points according to the adjacency matrix(which may be stored in a .txt file)?


title: 3 pdf graphs on 1 page with text below

text: I am new to latex. I have to prepare a one-page document (so float is not important). I want to have 3 pdf graphs at the top of the page with 2 graphs centered on the first line and 1 graph centered below it. I want the two lines of graphs to be as close together as possible, so that I can have as much text as possible below them. I have a standard latex document. Here is the current code for the graphs:               \begin{center}     \includegraphics[trim = 40 0 0     150,clip=true,width=0.4\linewidth]{graphs/fig_succ_hazard_est} \quad %     \includegraphics[trim = 40 0 0     150,clip=true,width=0.4\linewidth]{graphs/fig_term_hazard_est}     \includegraphics[trim = 40 0 0     150,clip=true,width=0.4\linewidth]{graphs/fig_term_hazard_est}     \end{center}      The problem is the vertical spacing between the two lines of graphs. It is too big. Any help would be greatly appreciated. Thanks a lot. All the best, Bob


title: Sorting references in revtex4-1 by order of appearance?

text: When preparing an article using the `revtex4-1` LaTeX package, how can I ensure that the references appear in the order that they appear in the text of the document? I've seen answers like Bibliography Style - Order of Appearance, but `revtex4-1` bakes in a lot of other BibTeX packages, such as `natbib`, and so I would like to avoid compatibility problems posed by depending on `biblatex` if that is at all possible. Thanks!


title: Note inside \cite brackets, at beginning instead of end

text: I'd like to put a note inside `\cite` brackets, at the beginning, like this:               [e.g. 19,20]      with the space being non-breaking. The optional argument makes puts _something_ at the end:               \cite[e.g.]{refA,refB}      gives               [19;, 20, e.g.]      (though there are more commas and semicolons than I would like). Is there a package or some other magic that will achieve this?


title: Sectioning using \titleformat results in problems with \subsection*

text: I am trying to write a Preface with subsections, but without sectionnumbers (since the preface is technically not really part of the report). The sections and subsections are constructed using \titleformat like so:               \titleformat{\section}     {\normalfont\Large\bfseries\filcenter}     {\thesection.}{0.5em}{#1}     [\vspace{3pt}     {\color{\colorstyle}{\titlerule[1.5pt]}}     \vspace{1pt}     \titlerule]     \titlespacing*{\section}     {0em}{2em}{1em}          \titleformat{\subsection}     {\normalfont\bfseries\filcenter}     {}{0pt}     {\textcolor{\colorstyle}{\noindent\Vhrulefill}\hspace{1em}     \thesubsection.     \hspace{0.5em}#1\hspace{1em}\textcolor{\colorstyle}{\Vhrulefill}}     \titlespacing*{\subsection}     {0em}{2em}{0.5em}      However, \section* works fine and there is no number, but \subsection* are numbered as "0.0 subsectiontitle", but I don't want any numbering. Does anyone know why this happens and how to avoid it? Working example:               \documentclass{article}          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     % Style: Fonts     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%          \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage{mathptmx}          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     % Style: Colors     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%          \usepackage[usenames,dvipsnames]{xcolor}          \newcommand{\colorstyle}[1]{\def\colorstyle{#1}}     \definecolor{mycolor}{RGB}{0,80,158}     \colorstyle{mycolor}          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     % Style: Sections     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%          \usepackage[explicit,pagestyles]{titlesec}          \def\Vhrulefill{\leavevmode\leaders\hrule height 0.7ex depth \dimexpr0.4pt     0.7ex\hfill\kern0pt}          \titleformat{\section}     {\normalfont\Large\bfseries\filcenter}     {\thesection.}{0.5em}{#1}     [\vspace{3pt}     {\color{\colorstyle}{\titlerule[1.5pt]}}     \vspace{1pt}     \titlerule]     \titlespacing*{\section}     {0em}{2em}{1em}          \titleformat{\subsection}     {\normalfont\bfseries\filcenter}     {}{0pt}     {\textcolor{\colorstyle}{\noindent\Vhrulefill}\hspace{1em}     \thesubsection.     \hspace{0.5em}#1\hspace{1em}\textcolor{\colorstyle}{\Vhrulefill}}     \titlespacing*{\subsection}     {0em}{2em}{0.5em}          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%          \begin{document}          \section*{Section without a number}     Bacon ipsum dolor sit amet pork loin leberkas turducken.          \subsection*{Subsection behaving oddly}     Beef pork belly porchetta turducken, bresaola venison boudin doner.          \end{document}


title: Cannot change font color to black with CreateSpace package

text: I am using a package called CreateSpace but with the below code, the font color is more "brownish" than black. RGB(45,38,32) and not RGB(0,0,0) but I can't find anywhere in the files from that package where the font is set. Can someone shed some light on this and how I can successfully get my black color back? Side note: Is there maybe some reason as too why you might want non-black text color for books in print?               \documentclass{book}     \usepackage{createspace}     \usepackage{xcolor}     \usepackage{lipsum}          \color{black}          \begin{document}     \chapter{Test Chapter}          \lipsum[1]     \end{document}


title: texlive shell escape problems with psfrag

text: I work with some scripts that automatically convert the fonts in a plot using psfrag and pstool to another font. However these fail if I use texlive. They work with Miktex. Since I get requests from Linux users to make the scripts work on Linux I would like to know better why I get these problems. The script is based on Matlab. If you are interested in all details see svn source and explanation/documentation. The code that is created is like this one               \documentclass[11pt, oneside]{article}     \usepackage{graphicx}     \usepackage{amsmath}     \usepackage[T1]{fontenc}     \usepackage[latin1]{inputenc}     \usepackage{xcolor}     \usepackage{textcomp}     \usepackage[]{pstool}     \pagestyle{empty}          \begin{document}        \centering        \psfragfig{TEMP9134}     \end{document}      with the Figure file _TEMP9134_ , which contains all psfrag calls               \providecommand\matlabtextA{\color[rgb]{0.000,0.000,0.000}\fontsize{14.5}        {14.5}\selectfont\strut}%     \psfrag{011}[cl][cl]{\matlabtextA Validation Data}%     \psfrag{012}[cl][cl]{\matlabtextA Fit}%     \psfrag{013}[cl][cl]{\matlabtextA Model}%     \psfrag{014}[cl][cl]{\matlabtextA Data}%      for this eps file   * If I call the main tex file with pdflatex from miktex with enabled shell escape everything works.   * If I call the main tex with pdflatex from texlive without enabling shell escape no error occurs, because the pstool package disables itself without shell escape.    * If I I call the main tex with pdflatex from texlive with enabling shell escape TeX stops with the error (c:/texlive/2011/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))" (./pstool-statusfile.txt)Das System kann den angegebenen Pfad nicht finden. ! Missing number, treated as zero. The corresponding log file is more informative               (./pstool-statusfile.txt)     runsystem(cd "./"& del "pstool-statusfile.txt" )...executed.     ! Missing number, treated as zero.     <to be read again>       pstool-statusfile.txt contains this               This is pdfTeX, Version 3.1415926-2.3-1.40.12 (Web2C 2011)      \write18 enabled.     entering extended mode     "^^%ERRORLEVEL^^%"      Here I have no clue what is going wrong actually. Any ideas are welcome.


title: Is it possible to use a macro to name a TikZ node?

text: Is it possible to use a macro to name and reference TikZ nodes. For example:               \begin{tikzpicture}         \node (0) at (0,0) {X};         \node (\mymacro{2}{3}) at (1,2) {Y};         \draw (\mymacro{2}{3}) -- (0);     \end{tikzpicture}      Where `\mymacro` is (for example):               \newcount\counterA     \def\mymacro#1#2%     {\counterA=#1\relax%     \advance\counterA by#2\relax%     \the\counterA}      The actual calculation that my macro computes uses `\loop\ifnum` (which I think) means I cannot use the solution in Modular arithmetic on node names in TikZ? without defining a new `\pgfmathMyMacro` function. Is this a limitation of TikZ or is there some `\edef` or `\expandafter` black magic I could use?


title: Paragraph indenting not working

text: For some reason in my code my paragraph indents aren't working. I'm using MikTeX 2.9 on Windows 7 compiling with XeLaTeX. I'm using `multicols` for a 2 column layout but I'm not sure if thats the issue. using the article class and I'm specifying:               \setlength\parindent{20pt}      edit: manually inserting `\indent` at the start of each paragraph works but this is annoying. Here is a M(non-)WE, this uses random text from the Wikipedia article on shrimp, however, if I replace the text with `\lipsum[1]` then the indenting works perfectly. What's going wrong here?               %!TEX TS-program = xelatex     %!TEX encoding = UTF-8 Unicode          % DOCUMENT LAYOUT     \documentclass[10pt, letterpaper]{article}      \usepackage{geometry}      \geometry{letterpaper, textwidth=5.5in, textheight=8.5in, marginparsep=7pt, marginparwidth=.6in}     \setlength\parindent{20pt}     \usepackage{multicol}          % LOREM IPSUM FILLER     \usepackage{lipsum}          % FONTS     \usepackage{fontspec}     \usepackage[usenames,dvipsnames]{xcolor}     \defaultfontfeatures{Mapping=tex-text}     \setromanfont [Ligatures={Common}, Numbers={OldStyle}, Variant=01]{Linux Libertine O}          % HEADINGS     \usepackage{sectsty}      \usepackage[normalem]{ulem}      \sectionfont{\mdseries\upshape\Large}     \subsectionfont{\mdseries\scshape\normalsize}      \subsubsectionfont{\mdseries\upshape\large}           % DOCUMENT     \begin{document}     \begin{multicols}{2}[\section*{Shrimp}]     The class Malacostraca contains about half of the crustaceans. The members of this class have a primitive body plan that can be described as shrimp-like, consisting of a 5-8-7 body plan. They have a small carapace that encloses the head and the thorax, and have a muscular abdomen for swimming. They also have a thin exoskeleton to maintain a light weight. These general characteristics are common in all members of the class.\\     The class can be further divided into the decapods, which are even still divided into the dendrobranchiates (prawns) and the carideans (shrimp and snapping shrimp).\\     The prawns have sequentially overlapping body segments (segment one covers the segment two, segment two covers segment three, etc.), chelate (claw like) first three leg pairs, and have a very basic larval body type.\\     The shrimps also have overlapping segments, however, in a different pattern (segment two overlaps segments one and three), only the first two leg pairs are chelate, and they have a more complex larval form.\\     Biologists distinguish the true shrimp from the true prawn because of the differences in their gill structures. The gill structure is lamellar in shrimp but branching in prawns. The easiest practical way to separate true shrimps from true prawns is to examine the second abdominal segment. The second segment of a shrimp overlaps both the first and the third segment, while the second segment of a prawn overlaps only the third segment.     \end{multicols}     \end{document}      MWE!:               %!TEX TS-program = xelatex     %!TEX encoding = UTF-8 Unicode          % DOCUMENT LAYOUT     \documentclass[10pt, letterpaper]{article}      \usepackage{geometry}      \geometry{letterpaper, textwidth=5.5in, textheight=8.5in, marginparsep=7pt, marginparwidth=.6in}     \setlength\parindent{20pt}     \usepackage{multicol}          % LOREM IPSUM FILLER     \usepackage{lipsum}          % FONTS     \usepackage{fontspec}     \usepackage[usenames,dvipsnames]{xcolor}     \defaultfontfeatures{Mapping=tex-text}     \setromanfont [Ligatures={Common}, Numbers={OldStyle}, Variant=01]{Linux Libertine O}          % HEADINGS     \usepackage{sectsty}      \usepackage[normalem]{ulem}      \sectionfont{\mdseries\upshape\Large}     \subsectionfont{\mdseries\scshape\normalsize}      \subsubsectionfont{\mdseries\upshape\large}           % DOCUMENT     \begin{document}     \begin{multicols}{2}[\section*{Random}]     \lipsum     \end{multicols}     \end{document}


title: passing current content of commands to a macro

text: I am sorry for this is probably a current question with a well known answer, but I was not able to google it out. I am trying to build a macro adding content step by step; at every step I need to pass to the macro the current content of a command. I made lots of attempts with `\edef` and `\expandafter` `\global`, with no success. My macro always uses the content of the command which is current at the moment the macro is called, not at the moment it is created. The question is motivated by my former question Exercises in lecture notes without predetermined placement (Follow-up) which is still unanswered. However here below I reproduce a simpler code to make this question self-contained.               \documentclass{article}          \makeatletter     \let\@mymacro\@empty%     \newcommand\myEquation[1]{%       \begin{equation}%         \label{eq:\theequation}%         #1%       \end{equation}%       \edef\EquationLabel{eq:\theequation}%       \g@addto@macro\@mymacro{%       \item There is an equation with number \ref{\EquationLabel}.       }%     }%          \newcommand\refequations{%       \subsection*{Check equations}%       \begin{itemize}%         \@mymacro%       \end{itemize}%     }          \begin{document}          \section*{Two equations}     \myEquation{1+1=2}     \myEquation{2+2=4}          \refequations          \end{document}


title: Compiling errors in a matrix that correctly show up?

text: I have a little problem with nested arrays. The following examples give the correct matrix after a Latex=>PDF run but generate LaTeX errors `! missing $ inserted. <inserted text>`, that I would like to get rid of. Any idea about the problem? First Example:               \begin{equation}     g_{22}=\left[\begin{array}{ccc}\fbox{\begin{array}{ccc}\frac{1}{E-E_1^1} & & \\ & \ddots & \\ & & \frac{1}{E-E_1^N}\end{array}} & & \\ & \ddots & \\ & &  \fbox{\begin{array}{ccc} \frac{1}{E-E_n^1} & & \\ & \ddots & \\ & & \frac{1}{E-E_n^N}\end{array}}\end{array}\right]     \end{equation}      Second example:               \begin{equation}         H=\left[\begin{array}{cc}H_{N-n}&\begin{array}{cl}B\qquad & 0 \end{array}\\ \begin{array}{c}B^{\dag}\\ 0 \end{array} & \fbox{\begin{array}{cc}H_{n}&\quad S\\S^{\dag}&\quad\hsub\end{array}}\end{array}\right]     \end{equation}


title: How to avoid boldface citations with hyperref

text: When using the `hyperref` package, citations are automatically typeset as hyperlinks to the bibliography. According to the documentation, the color of these links can be set. Is there any way to get rid of the boldface? In combination with the `amsalpha` bibliography style, citations appear in the text in a way too heavy font.


title: Beamer: multiple references to the same footnote

text: In the LaTeX wikibook I found a workaround for having multiple references to the same footnote:               First reference.\footnote{This is the footnote}\addtocounter{footnote}{-1}\addtocounter{Hfootnote}{-1}     Second reference.\footnotemark      However, when using the beamer package and placing a footnote in the following context               \usetheme{CambridgeUS}     % ...          \begin{block}{testblock}         one program\footnote{open-source software}\addtocounter{footnote}{-1},         other program\footnotemark     \end{block}      this trick doesn't work (as the second reference is '0' instead of 'a'). What's the best way to achieve this with beamer (it seems that the problem is that beamer uses another counter for the 'footnotes' inside the block environment and \footnotemark returns the regular counter)?


title: Package Acronym - margin problem with long abbreviations in glossary

text: Is there a way to increase the margin between abbreviation and explanation in the `acronym` glossary? I've got some long abbreviations that are bigger than the standard margin and mess up the layout. (Like "XML-RPC", for example.) I only found `\setlength{\nomlabelwidth}{.20\hsize}`, but that belongs sadly to `nomencl`. Is there something similar for `acronym`?


title: How to get rid of title in multibib

text: This is my first question here. I'm not a LaTeX expert and I'm writing my theses now. Anyway, I had to use `multibib` so that I can list my publications towards the beginning of the theses document and also still have the full bibliography at the end. However, I ran into many problems that were fixed. The only problem I'm having now is that I want to get rid of the title associated with the references I'm using to list my publications. This is what I'm using now:               \usepackage{multibib}     \newcites{nu}{I don't want this title}      I want to get rid of the title because the template I'm using already specifies a title for that section. How do I go about this? I tried               \newcites{nu}{}      but that did not work and is giving me 'undefined control sequence errors' whenever i refer to nu such as in `\nocitenu{w1,w2}...etc` I also tried to change the font color of the title to match the background and thus disappear, but that also did not work. Any thoughts?


title: Force paragraph to stay with previous

text: I am using knitr to create inline sparkline-esque graphics. However, when knitr inserts images that it generates with R, it add a blank line, which forces LaTeX to make a new paragraph. That is, if I have text like this (not actual knitr code...):               Lorem ipsum dolor sit amet KNITR_FIGURE_HERE Ut enim ad minim veniam, quis nostrud exercitation.      It will generate TeX output like this               Lorem ipsum dolor sit amet     \begin{knitrout}     \includegraphics{path_to_figure}           \end{knitrout}          Ut enim ad minim veniam, quis nostrud exercitation.      Which then forces the remaining text in the paragraph into a new paragraph. If I manually remove the blank line in the `knitrout` environment, it works inline as expected. Hacking the knitr output to remove the blank line is non-trivial, so I'm wondering if there's a TeX command that can force a paragraph to be part of the previous one, regardless of new lines. For example, assuming `\keepwithprevious` is this hypothetical command...               Lorem ipsum dolor sit amet.          \keepwithprevious Ut enim ad minim veniam, quis nostrud exercitation.      ...would result in this when typeset:               Lorem ipsum dolor sit amet. Ut enim ad minim veniam, quis nostrud exercitation.      Is there a way to do this in TeX?


title: Template for problem sets?

text: Can anyone provide me with a nice template for math and physics problem sets? I am looking for something that is well-formatted and formal. I am not sure how to make a problem set look very professional but also elegant and artistic.


title: How to add new line character to pdfcomment popup?

text: I cannot seem to figure out how to separate lines in the text of a `pdfcomment` (`\pdfmarkupcomment`). I tried different standard representations, like `\n`.               \documentclass[]{article}     \usepackage[]{pdfcomment}     \begin{document}     \pdfmarkupcomment{$1+1$}{first line second line}%shows lines together     %{first line\n second line} not working: undefined command \n     %{first line/n second line} /n ignored     \end{document}      a similar solution for the `tab` character (if possible) will be appreciated. (note: if my memory doesn't fail, I think `\pdfmarginpar` did allow `\n` to represent the new line)


title: What is a function f(n) returning LaTeX code requiring exactly n compilations to yield stable output?

text: Is there a (simple) recipe for producing LaTeX code requiring exactly _n_ compilations? (That is, I'm looking for an algorithm/function _f(n)_ with domain {1, 2, 3, ...} and LaTeX code as its range.) If that makes answering easier, I'll be happy about a solution requiring _n_ to be above a certain threshold (say, 2 or 3), since most ordinary code requires not more than 2 or 3 runs of `latex`. Ideally the solution isn't too contrived and easy to comprehend; direct solutions as well as solutions with recursive characteristics are welcome. Note: This question grew out of this question about patterns increasing the number of required LaTeX compilation runs.


title: Print macro output instead of executing

text: I am attempting to debug a Tikz/PGF script. I have a STY file that generates Tikz/PGF scripts, but the output graphic isn't quite what I want it to be. In order to debug the problem, I was hoping that I could tweak my code so that the Tikz/PGF script is printed to the LaTeX document (in a verbatim environment, for example) instead of being executed by tikzpicture. Here is a small example of what I am after:               \documentclass[a4paper]{report}          \usepackage{tikz}          \newcommand\theCommand[1]{%     \node [rectangle, draw, fill=blue!20, text width=5em, text centered, rounded corners, minimum height=4em] {#1};%     }          \begin{document}         \begin{tikzpicture}             \theCommand{test}         \end{tikzpicture}     \end{document}      This code would draw a rectangular box with the text "test" inside. However, ideally I instead want this to print out the text:               \node [rectangle, draw, fill=blue!20, text width=5em, text centered, rounded corners, minimum height=4em] {test};


title: How to change spacing between caption numbering and text?

text: Like in an IEEE paper, after the figure caption numbering, there are two letters spacing:               Fig. 1.  Bla bla      Not like               Fig. 1. Bla bla      I would like to have the former.


title: No horizontal spacing within minipage

text: I do not understand why my attempts to introduce horizontal spacing in beamer (with hspace or typographical spacing) fail when within a minipage:               \documentclass[10pt]{beamer}          \begin{document}       \frame{         text \\         \hspace{1cm} text \\         \begin{minipage}{5cm}           text \\           \hspace{1cm} \quad text         \end{minipage}       }      \end{document}      Why? How can I introduce this spacing? Thanks in advance.


title: How to implicitly specify column width (in a columns-like environment)?

text: I am using the `columns` environment in Beamer-documents like this:               \begin{columns}         \begin{column}{0.8\textwidth}            %%         \end{column}         \begin{column}{0.2\textwidth}            %%         \end{column}     \end{columns}      I am getting tired of having to change the width of the second column each time I adjust the first one. Basically I am searching for a columns environment where the column-width- argument is optional - if you don't specify it is computed like this:                max(0, (complete_width - sum_of_explicitly_specified_width) / number_of_implicit_cols)      How can setup something like this with LaTeX?


title: Compilation error when plot and subplot are inserted

text: I am trying to add subtables inside tables. To achieve that I add the following packages:               \usepackage[format=plain,labelfont=bf,up,textfont=it,up]{caption}     \usepackage{subcaption}      After adding these the compilation gives               (/usr/share/texmf-texlive/tex/latex/psfrag/psfrag.sty)     (/usr/share/texmf-texlive/tex/latex/tools/theorem.sty     (/usr/share/texmf-texlive/tex/latex/tools/thp.sty)))          ! LaTeX Error: Option clash for package caption.          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.     ...                                                        l.13 \usepackage                 {subcaption}     ?       The packages added before that are:               \usepackage[utf8]{inputenc}                               %Allows input of tex files encoded in UTF8     \usepackage[T1]{fontenc}                            %Set font encoding for   output PDF      \usepackage[danish,english]{babel}                    %Allows langauge switching (English is default)     \usepackage{graphicx}                                     %Support for including graphics     \usepackage{xcolor}                                 %Support for using colours       \usepackage[hang,normalsize,bf]{caption}            %Make pretty captions     \usepackage{hyperref}                               %References package     \usepackage{varioref}                                       %Enhances references (\vref {label})     \usepackage{fancyhdr}                               %Pretty headers/footers     \usepackage{amsmath,amssymb,latexsym}               %AMS and other symbols     \usepackage{epic,eepic,epsfig,graphics,psfrag}      %Figure/picture packages     \usepackage{theorem}


title: dynamic paths in latex

text: Im trying to link from my preamble to some pictures used in the header. My problem is i use the same preamble in multiple documents. lets say the preamble and the needed picture is in the top folder, and i have two different main files for two different reports, each in its own subfolder. when i call the preamble i get an error telling me the path to the picture is not correct. as far as i have gotten it seems that i need to have two preambles with the path from the include folder to the preamble picture. (which sort of takes the idea of a preamble away) folder structure:               work       preamble         pics       project1         main.tex       project2         main.tex      i would expect that in my preamble i could do this               \includegraphics[scale=0.5]{pics/image.png}      the i have tried with setting this command ind the `main.tex`               \newcommand{\folder}{/path/to/pic}     \includegraphics[scale=0.5]{\folder/pics/image.png}      but that doesnt work either. does any one know how to solve this problem? (i Hope i made the problem clear)


title: Placing a tikzpicture next to an align and add an equation number

text: I want to place a tikzpicture next to an equation and equip both of them together with an equation number. The reason is that the tikzpicture is a kind of explanation (visualization) for the equation. Therefore I prefer that both appear together as one "equation". In Placing a tikzpicture next to an align it is explained how to place a tikzpicture next to an align environment using minipages. This works for me, but I have problems equipping the result with an equation number. I tried to enclose both minipages in an equation environment, but this does not really work.   * If I use align inside one of the minipages, I get two equation numbers (one for align, the other one for equation, but both actually being the name number). I would expect this, expect from both equation numbers being the same, but this is probably related to the fact that I place align inside equation. I guess one is not supposed to do this.   * If I use align* inside one of the minipages, I get no equation number at all, also the equation environment does not carry an equation number. I would expect an equation number for the equation environment. The result of the following example looks as follows: ![enter image description here](http://i.stack.imgur.com/Odm4t.png)               \documentclass[10pt]{article}          \usepackage{tikz}     \usetikzlibrary{matrix,arrows}     \usepackage{mathtools}          \usepackage[english]{babel}     \begin{document}          \begin{equation}     \begin{minipage}{0.40\linewidth}         \begin{align*}         A=B         \end{align*}     \end{minipage}     \begin{minipage}{0.40\linewidth}     \begin{center}     \begin{tikzpicture}         \matrix (m) [matrix of math nodes, column sep=20pt]         {             A & B \\         };         \path[->,font=\scriptsize,>=angle 90]         (m-1-1) edge (m-1-2);     \end{tikzpicture}     \end{center}     \end{minipage}     \end{equation}          \begin{equation}     \begin{minipage}{0.40\linewidth}         \begin{align}         A=B         \end{align}     \end{minipage}     \begin{minipage}{0.40\linewidth}     \begin{center}     \begin{tikzpicture}         \matrix (m) [matrix of math nodes, column sep=20pt]         {             A & B \\         };         \path[->,font=\scriptsize,>=angle 90]         (m-1-1) edge (m-1-2);     \end{tikzpicture}     \end{center}     \end{minipage}     \end{equation}     \end{document}


title: Which bibliography package should I use for my thesis in LuaTeX?

text: I'm about to start writing a (B.Sc.) thesis. As there are some rather peculiar layout requirements (such as using Times New Roman) at my university chair I would like to use LuaTeX in order to be able to adapt to those requirements if necessary. Similarly I might need to adapt my bibliography to fit those requirements. Is there a flexible bibliography package that is known to work well with LuaTeX?


title: How to write ':' and '_' in equation?

text: \begin{equation}     \label{eq:policy}     \(\text{[DIP:10.1.0.17] $\rightarrow$ F $\rightarrow$ L}\)     \end{equation}      Gives me many errors like `! Missing $ inserted` and `Bad math environment delimiter`. How do I remove these errors?


title: A version of \smash that interpolates between the true height/depth and the text-height/depth of the current line

text: I have a paragraph of text that includes a "deep" math symbol, one that dips below the ordinary bottom of the text a little. Originally I had nothing below that symbol; it was near the end of the paragraph on the penultimate line, and the line underneath did not extend to the horizontal position of the offending symbol. The spacing between the final two lines of the paragraph was too great, so I used `\smash` to reset it to "normal". Later, I added some more text at the end of the paragraph. Now `\smash` makes the spacing too little. But without `\smash` the spacing still feels too great to me. Wouldn't it be nice if there were a `\halfsmash` version of `\smash` that would adjust the "height" (respectively the "depth") of the symbol to exactly halfway between its true height (depth) and the current height (depth) of ordinary running text on the same line? Like `\smash`, this would work whether used in or out of math mode. It might not work well in displayed math mode, but this would not be part of the design goals. It might not work for content that breaks across lines. Bonus points for:   * Accepting an optional argument that specifies as a proportion the difference that is desired between the true height/depth and line-height/-depth (defaulting to one-half). (Thus `\halfsmash[0.25]{content}` would give `{content}` a height one-quarter of the way between its true height and the current line-height of the text, and a depth one-quarter of the way between its true depth and the current line-depth of the text. `\halfsmash[1]{...}` would be just like `\smash{...}`, and `\halfsmash[0]` would have no effect.)   * Being compatible with the amsmath extension to `\smash` that gives the optional arguments `[t]` and `[b]`.   * I have no idea whether `\smash` works properly in subscript/superscript contexts. If it does, consider this desirable too. I started looking at doing this but quickly realised that   * it required dealing with both the height and the depth of the symbol   * it calls for testing whether TeX is in math mode at the time the macro is called (I found out that there is a macro `\ifmmode` that can be used for this, though)   * it requires you to find out what the "default" height and depth are of text on the current line (I am not sure how you do this)   * a working approach will involve using a math extension, maybe PGF, to interpolate between two different heights/depths, then perhaps using `\raisebox` to achieve a box with the correct height/depth. # Edit: Here is my attempt. Unfortunately I have fallen at the first hurdle - it doesn't even compile (`\equal` doesn't seem to be available to me in this circumstance, for some reason).               \documentclass[a4paper]{amsart}          \usepackage{ifthen, pgf, xparse}          \newlength{\lenA}     \newlength{\lenB}     \newlength{\lenC}     \newlength{\lenD}          \DeclareDocumentCommand{\halfsmash}{oom}{%        \begingroup        % Wrap the {content} in $...$, if in math mode.        \edef\c{\ifmmode$#3$\else#3\fi}%         % Determine the proportion, \x.         \edef\x{%             \IfNoValueTF {#1}%                          {0.5}%                          {\ifthenelse {\equal{#1}{t}}%                                       {\IfNoValueTF{#2}{0.5}{#2}}%                                       {\ifthenelse {\equal{#1}{b}}%                                                    {\IfNoValueTF{#2}{0.5}{#2}}%                                                    {#1}}}%         }%         % Determine whether to modify height, depth, or both; obtain a proportion (0 or 1) by         % which the height is to be changed (not using \x at this stage).         \edef\h{\IfNoValueTF{#1}{1}{\ifthenelse{\equal{#1}{b}}{0}{1}}}%         \edef\d{\IfNoValueTF{#1}{1}{\ifthenelse{\equal{#1}{t}}{1}{0}}}%         \settoheight{\lenA}{G}% The "ordinary" height of the current line.         \settodepth{\lenB}{g}% The "ordinary" depth of the current line.         \settoheight{\lenC}{\c}% The true height of the {content}.         \settodepth{\lenD}{\c}% The true depth of the {content}.         \pgfmathsetlength{\lenA}{\lenC - (\x * \h * (\lenC - \lenA))}%         \pgfmathsetlength{\lenB}{\lenD - (\x * \d * (\lenD - \lenB))}%         % Typeset the {content}.         \raisebox{0pt}[\lenA][\lenB]{\c}%         \endgroup%     }          \newcommand{\tallmathsymbol}{\Sigma^{x^{y^z}}_{a_{b_c}}}          \newcommand{\sometext}{%         Here is some text.         Its only purpose is to be repeated several times, so as to form a paragraph.     }          \begin{document}          \sometext\sometext\sometext\sometext\sometext$\tallmathsymbol$     \sometext\sometext\sometext\sometext\sometext          \sometext\sometext\sometext\sometext\sometext\halfsmash{$\tallmathsymbol$}     \sometext\sometext\sometext\sometext\sometext          \sometext\sometext\sometext\sometext\sometext$\halfsmash[0.25]{\tallmathsymbol}$     \sometext\sometext\sometext\sometext\sometext          \sometext\sometext\sometext\sometext\sometext$\halfsmash[b]{\tallmathsymbol}$     \sometext\sometext\sometext\sometext\sometext          \sometext\sometext\sometext\sometext\sometext\halfsmash[t][0.25]{$\tallmathsymbol$}     \sometext\sometext\sometext\sometext\sometext          \end{document}


title: Create a bar char from CSV

text: I have a `.csv` file that looks like this:               gender.csv          GENDER,NUMBER,PERCENT     MALE,20,20     FEMALE,80,80     TOTAL,100,100      I want to create a bar chart using _MALE_ and _FEMALE_. _GENDER_ can be the chart name or the axis name and I don't want the **total** to be shown. I have been trying with `pgfplot`. I have been stuck for hours on this, can you help me please.


title: retrieve the length of a segment

text: I want to retrieve the length of a segment in cm for display in a node As in the example below, I would like to display the length of three vectors               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{calc}     \begin{document}     \begin{tikzpicture}     \coordinate (A) at  (0,0);     \coordinate (B) at (4,2);     \coordinate (C) at (1,3);     \coordinate (D) at (5,3);          \draw[-latex, green, thick] (A) node[left,black]{A} -- (B)node[above left,black]{B} ;     \draw (A) -- (C)node[left]{C} ;     \draw (B) -- (D) node[left]{D};          \draw[thick,-latex,red] (B) -- (intersection of A--C and B--D) coordinate(I) node[left,black]{I} ;     \draw[thick, -latex]  (I) -- (A) node[left,midway]{lenght cm};          \end{tikzpicture}     \end{document}      ![enter image description here](http://i.stack.imgur.com/o9eBL.jpg)


title: Do I need onlyamsmath when using nag?

text: I already read questions about recommended packages, and they often have the advice for               \RequirePackage[l2tabu, orthodox]{nag}      and               \usepackage[all, warning]{onlyamsmath}      I use `nag` for quite some time now and am unsure if I still need `onlyamsmath`. My question: as far as I understand, `nag` already does everything and more that `onlyamsmath` is doing when it comes to math environments (warn about "bad" math environments), is this correct? So, does `onlyamsmath` bring any further advantage if I already use `nag`? I don't need the error functionality of `onlyamsmath`, only the warnings.


title: Change format of the contents page

text: I want to label some of my sections listed in my contents page as 'Introductory'. I thought I could achieve this by having a dotted box around these chapters in the contents page that marks them as introductory, though I am open to other suggestions. Have you any suggestions as to how I can edit my contents page to accommodate this?


title: I need help with an assignment

text: Why are they still different? THe positioning is messed up in some areas. The assignment was to make an identical document. http://pdfcast.org/pdf/latex-3 http://pdfcast.org/pdf/latex-2


title: 3d axis label ovelapping

text: I'm using `matlab2tikz` to generate the `tikz` code for my figures. When compiling the document with the figure code as below, I get an ovelapping with the axis label y and z. Here is what I've got: ![enter image description here](http://i.stack.imgur.com/LuYDH.png)               \documentclass[a4paper,10pt]{article}     \usepackage[utf8]{inputenc}     \usepackage{tikz}     \usepackage{pgfplots}          \newlength\figureheight     \newlength\figurewidth          \begin{document}          \begin{figure}     \setlength\figureheight{6cm}      \setlength\figurewidth{6cm}     \begin{tikzpicture}          \begin{axis}[%     view={45}{-30},     width=\figurewidth,     height=\figureheight,     scale only axis,     xmin=0, xmax=10,     xlabel={x},     ymin=0, ymax=10,     ylabel={y},     zmin=0, zmax=10,     zlabel={z},     axis lines*=left]     \addplot3 [     color=red,     only marks,     mark=o,     mark options={solid}     ]     coordinates{     (1,1,1)(2,2,2)(3,3,3)(4,4,4)(5,5,5)(6,6,6)(7,7,7)(8,8,8)(9,9,9)(10,10,10)      };          \end{axis}     \end{tikzpicture}%          \end{figure}          \end{document}      Is there exist a way to solve it?


title: Creating thicker Tikz mindmap connectors

text: I'm running MiKTeX 2.9, on a Windows 7 machine. My `pdflatex` compilation log lists:               pgf 2008/01/15 v2.10 (rcs-revision 1.12)      * * * I am using TikZ's `mindmap` library to draw some graphics and I quite like the output. I am trying to tweak the circle connection bar style of the connector between two nodes. In particular I'd like change the thickness of the connection bar between nodes at one level (but not any others).   * The first image displays the entire example mindmap (built from the working example below) ![first image](http://i.imgur.com/nMpPI.png)   * The second image displays the normal connectors created by the mindmap library's default styles ![second image](http://i.imgur.com/NHkLQ.png)   * The third image is a mockup of the kind of effect I am trying to create. ![third image](http://i.imgur.com/WbV1u.png) * * * I've read the documentation in the `pgf` manual (ver 2.10) for the `mindmap` library, and have tried to override the settings for the circle connection bar using the decoration option (e.g `decoration={start radius=1cm,end radius=.5cm,amplitude=2mm,angle=30}`), however no matter what value I give the amplitude setting I see no change in the output. Changes to angle and start/end radius do effect the first and last part of the connector, but the rectangle in between never changes width. I've had success (in the sense of effecting a change) by:   * placing the decoration option before a node's children (thereby effecting all children and grandchildren), e.g. `\node [root concept] {Team\\\Foo}[decoration={angle=45}]`   * specifying a `\path (node1) to[circle connection bar] (node2);` explicitly between two named nodes (not ideal, as explicitly drawing connections eliminates a large benefit of using the mindmap library in the first place)   * and as part of the `every circle connection bar` style (specified in the tikzpicture or scope) I don't want to have to explicitly specify starting and ending radii, as the `mindmap` library normally calculates these automatically and I'd like to be able to change the node sizes and have the connection bars adjust without anymore manual intervention (just with thicker lines than normal). * * * **My questions come down to these:**   * How do I change the amplitude/thickness of the connection bar (perhaps this will require also explicitly setting an angle)?   * How do I apply this modification to the connections at one level only? I can set the modification at any level and effect all levels below, but can I either restrict the modification to only one level to begin with, or otherwise reset the connection bar styles back to default for lower levels (i.e. after explicitly setting `decoration={...}`, how do I undo that)? * * * Working example:               \documentclass[tikz, preview=true, border=2mm]{standalone}          \renewcommand*\familydefault{\sfdefault}          \usepackage{tikz}     \usetikzlibrary{mindmap,trees,shadows}          \begin{document}          \begin{tikzpicture}     [decoration={start radius=1cm, end radius=.5cm,amplitude=3mm,angle=30}]          % Define experience colors     \colorlet{afcolor}{blue!50}     \colorlet{mdcolor}{red!75}     \colorlet{nmndcolor}{orange!80}     \colorlet{nmescolor}{teal!70!green}     \colorlet{citscolor}{violet!75}          \begin{scope}[mindmap,     every node/.style={concept, circular drop shadow, minimum size=0pt,execute at begin node=\hskip0pt, font=\bfseries},     root concept/.append style={         concept color=black, fill=white, line width=1.5ex, text=black, font=\huge\scshape\bfseries,},     level 1 concept/.append style={font=\bfseries},     text=white,     partner/.style={concept color=blue!80!black},     air force/.style={concept color=afcolor},     metadata/.style={concept color=mdcolor},     nmnd/.style={concept color=nmndcolor},     nmes/.style={concept color=nmescolor},     cits/.style={concept color=citscolor},     grow cyclic,     level 1/.append style={level distance=6.2cm,sibling angle=45},     level 2/.append style={level distance=3cm,sibling angle=45}]     \node [root concept] (team) {Team\\Foo}[rotate=202.5] % root         child [partner] { node {Comp 8}             child [nmes] { node {\small NM/ES} }         }         child [partner] { node {Comp 1}             child [metadata] { node {\small Metadata} }             child [air force] { node {\small Air Force} }             child [nmnd] { node {\small NM/ND} }             child [cits] { node {\small CITS} }             child [nmes] { node {\small NM/ES} }         }         child [partner] { node {Comp 2}             child [metadata] { node {\small Metadata} }         }         child [partner] { node (comp3) {Comp 3}             child [air force] { node {\small Air Force} }             child [nmnd] { node {\small NM/ND} }             child [cits] { node (leftmost) {\small CITS} }             child [nmes] { node {\small NM/ES} }         }         child [partner] { node {Comp 4}             child [air force] { node {\small Air Force} }             child [nmes] { node {\small NM/ES} }         }         child [partner] { node {Comp 5}             child [metadata] { node {\small Metadata} }             child [nmnd] { node {\small NM/ND} }             child [nmes] { node {\small NM/ES} }         }         child [partner] { node {Comp 6}             child [air force] { node {\small Air Force} }             child [nmnd] { node {\small NM/ND} }             child [nmes] { node {\small NM/ES} }         }         child [partner] { node {Comp 7}             child [air force] { node {\small Air Force} }             child [nmnd] { node {\small NM/ND} }             child [nmes] { node {\small NM/ES} }         };     \end{scope}          \begin{scope}[xshift=-4.5cm, yshift=-10.5cm,every node/.style={align=left,text=black}]     \matrix[row sep=0pt,column sep=1mm, align=left, nodes={align=left, anchor=west}] {         \fill [afcolor] (0,.25ex) circle (1ex); & \node{Air Force Experience};\\         \fill [mdcolor] (0,.25ex) circle (1ex); & \node{Metadata Environments Development Experience};\\         \fill [nmndcolor] (0,.25ex) circle (1ex); & \node{Network Management and Network Defense Experience};\\         \fill [nmescolor] (0,.25ex) circle (1ex); & \node{Network Management and Enterprise Services Experience};\\         \fill [citscolor] (0,.25ex) circle (1ex); & \node{CITS Information Transport Systems Experience};\\         };     \end{scope}     \end{tikzpicture}          \end{document}


title: Does anyone know if there is a LaTeX package for writing in steno?

text: I am currently studying realtime stenography, and in making my own review materials, I have come to a point where it would be VERY useful to use LaTeX to typeset in the particular typographic style used in publishing stenography...does anyone know where I could find a LaTeX package or template that would help me do this using, say, Scrivener as my text editor?


title: Nested enumeration numbering

text: I write homework assignments in LaTex and the assignments are always divided into subparts (i.e. Problem 1 is divided into 1.1, 1.2, 1.3, ...). Currently what I do is I have nested enumerations, but the numbering isn't exactly what I'd like. I am currently using               \renewcommand{\labelenumii}{\arabic{enumii}.}      to number the subparts, but this produces 1., 2., ... and what I'd like it to be is 1.1, 1.2,... Is there anyway to do this?


title: biblatex - How can I change the behavior when using \citetitle for a specific source type?

text: I'd like to change the behavior of `\citetitle` for a specific source type, which is `standardisodin` (which I got from _here_). I already managed to get the right order in the bibliography to my liking but I can't figure out how to tune it for citing the title in the document. Question on the side: should `Type` and `Number` be in italics as well? I like the version I intend to use, unless there is something fundamentally wrong with it I suppose. ## Edit I'd be happy to manually print out the other fields as well, so I would to write something along the lines of               \print{Type}{abc}~\print{Number}{abc}:~\citetitle{abc}      or so. ## Picture ![enter image description here](http://i.stack.imgur.com/D4jFN.png) ## MWE               \documentclass[     a4paper,     12pt,     ]{scrartcl}          %%%Tipps: http://tex.stackexchange.com/questions/12806/guidelines-for-customizing-biblatex-styles/13076#13076          \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage{lmodern}          \usepackage[     language=auto,     style=authoryear-ibid,     backend=biber,     hyperref=true,     dashed=false,     isbn=false,     doi=false,     maxcitenames=2,     maxbibnames=99,     sorting=nyt,     firstinits=true,     uniquename=init,     uniquelist=false,     autocite=footnote,     ibidtracker=true,     date=comp,     mincrossrefs=1,     ]{biblatex}     \usepackage{xpatch}          %definition of new source type: Standard (ISO, DIN, or other guidelines)     \DeclareDatamodelEntrytypes{standardisodin}     \DeclareDatamodelEntryfields[standardisodin]{type,number}     \DeclareBibliographyDriver{standardisodin}{%         \usebibmacro{bibindex}%         \usebibmacro{begentry}%         \usebibmacro{author}%         \setunit{\labelnamepunct}\newblock         \printfield{type}\addspace%         \printfield{number}\addcolon\addspace%         \usebibmacro{title}\addspace%         \newunit\newblock         \usebibmacro{location+date}%         \newunit\newblock         \iftoggle{bbx:url}         {\usebibmacro{url+urldate}}         {}%         \newunit\newblock         \usebibmacro{addendum+pubstate}%         \setunit{\bibpagerefpunct}\newblock         \usebibmacro{pageref}%         \newunit\newblock         \usebibmacro{related}%         \usebibmacro{finentry}}               \begin{filecontents}{\jobname.bib}     @Standardisodin{abc,         Title                    = {Metallische Werkstoffe -- Zugversuch -- Teil 2: Pr{"u}fverfahren bei erhöhter Temperatur},         Author                   = {{DIN Deutsches Institut für Normung e.~V.}},         Date                     = {2011-05},         Location                 = {Berlin},         Number                   = {6892-2},         Type                     = {DIN EN ISO},         Year                     = {2011},     }     \end{filecontents}          \addbibresource{\jobname.bib}     \nocite{*}          \listfiles          \begin{document}     So this is a sentence: as \verb+\citetitle{abc}+ shows, there is no \verb+Number+ nor \verb+Type+ printed:     \begin{flushleft}     \citetitle{abc}     \end{flushleft}     So now, when using \verb+\citetitle+ for this source type, I'd like to have the following output\ldots     \begin{verbatim}     [Type][space][Number][colon][space][Title]     \end{verbatim}     \ldots so it'll produce     \begin{flushleft}         DIN EN ISO 6892-2: \textit{Metallische Werkstoffe -- Zugversuch -- Teil 2: Prüfverfahren bei erhöhter Temperatur}     \end{flushleft}     in the text.          Question on the side: or should the type and number be in italics as well? I like the version I intend to use, unless there is something fundamentally wrong with it I suppose.     \end{document}


title: Set xticks, yticks and colorbar tikz at once

text: I couldn't figure it out how I can manually set the xticks, yticks as well as those ticks of the colorbar _at once_. It only works for one of those three, but compiling never ends if I try to change a second tick property. Here is the code:               \documentclass{scrartcl}          % TikZ Packages     \usepackage{tikz,pgfplots}     \pgfplotsset{compat=newest,xlabel near ticks,ylabel near ticks,}     \tikzset{font=\footnotesize}          \usepackage{fp}     \usepgfplotslibrary{patchplots,colormaps}     \usepackage[tightpage,active,pdftex,floats,graphics]{preview}     \PreviewEnvironment{tikzpicture}          \makeatletter     \def\customrevertcolormap#1{%     \pgfplotsarraycopy{pgfpl@cm@#1}\to{custom@COPY}%     \c@pgf@counta=0     \c@pgf@countb=\pgfplotsarraysizeof{custom@COPY}\relax     \c@pgf@countd=\c@pgf@countb     \advance\c@pgf@countd by-1 %     \pgfutil@loop     \ifnum\c@pgf@counta<\c@pgf@countb         \pgfplotsarrayselect{\c@pgf@counta}\of{custom@COPY}\to\pgfplots@loc@TMPa         \pgfplotsarrayletentry\c@pgf@countd\of{pgfpl@cm@#1}=\pgfplots@loc@TMPa         \advance\c@pgf@counta by1 %         \advance\c@pgf@countd by-1 %       \pgfutil@repeat      %\pgfplots@colormap@showdebuginfofor{#1}%      }%          \makeatother               \begin{document}     \pgfplotsset{        colormap/jet,     }     \pagestyle{empty}           \begin{tikzpicture}[scale=1.0]      \customrevertcolormap{jet}      \begin{axis}[view={0}{90},%      %      colorbar,%      %      colorbar style={ %[colorbar sampled,colorbar style={samples=8}]      %                  %ytick={0,20,...,100},      %          ytick={0,20,40,60,80,100},      %          yticklabels={      %                  \textsf{0},      %                  \textsf{20},      %                  \textsf{40},      %                  \textsf{60},      %                  \textsf{80},      %                  \textsf{100}      %                  }      %      }         xtick={1,2,3,4,5,6},         xticklabels={             \textsf{0.1},             \textsf{0.2},             \textsf{0.3},             \textsf{0.4},             \textsf{0.5},             \textsf{0.6}         }      %      ytick={5,10,15},      %      yticklabels={      %          \textsf{0.2},      %          \textsf{0.5},      %          \textsf{1.0}      %      }         ]      \addplot3          [surf,         shader=flat corner,         mesh/rows=15,         point meta=z,%         ]      coordinates {      (1,1,97.80) (2,1,99.40) (3,1,100.00) (4,1,99.70) (5,1,100.00) (6,1,100.00)       (1,2,93.50) (2,2,98.10) (3,2,99.00) (4,2,99.60) (5,2,99.90) (6,2,100.00)       (1,3,81.80) (2,3,94.40) (3,3,96.90) (4,3,98.50) (5,3,99.80) (6,3,100.00)       (1,4,46.80) (2,4,75.30) (3,4,90.00) (4,4,95.30) (5,4,99.40) (6,4,100.00)       (1,5,20.00) (2,5,47.90) (3,5,74.00) (4,5,88.60) (5,5,97.70) (6,5,100.00)       (1,6,5.70) (2,6,19.40) (3,6,46.80) (4,6,77.90) (5,6,93.20) (6,6,100.00)       (1,7,0.50) (2,7,5.10) (3,7,26.00) (4,7,58.90) (5,7,83.10) (6,7,100.00)       (1,8,0.10) (2,8,0.50) (3,8,8.60) (4,8,37.00) (5,8,74.20) (6,8,100.00)       (1,9,0.00) (2,9,0.10) (3,9,1.50) (4,9,17.10) (5,9,56.50) (6,9,100.00)       (1,10,0.00) (2,10,0.00) (3,10,0.10) (4,10,7.00) (5,10,38.80) (6,10,100.00)       (1,11,0.00) (2,11,0.00) (3,11,0.00) (4,11,1.40) (5,11,22.00) (6,11,100.00)       (1,12,0.00) (2,12,0.00) (3,12,0.00) (4,12,0.00) (5,12,10.40) (6,12,100.00)       (1,13,0.00) (2,13,0.00) (3,13,0.00) (4,13,0.00) (5,13,1.70) (6,13,100.00)       (1,14,0.00) (2,14,0.00) (3,14,0.00) (4,14,0.00) (5,14,0.50) (6,14,100.00)       (1,15,0.00) (2,15,0.00) (3,15,0.00) (4,15,0.00) (5,15,0.00) (6,15,100.00)       };      \end{axis}      \end{tikzpicture}      \end{document}


title: text in commutative diagrams

text: How can I replace letters with text or say a text box. Consider the following example. As you might notice in the output, the text is not quite okay. Is there a way to correct it please?               \documentclass{article}     \usepackage{tikz-cd}     \usetikzlibrary{arrows,decorations.pathmorphing,backgrounds,positioning,fit,petri,calc,shapes.misc,decorations.markings}     \tikzset{degil/.style={                     decoration={markings,                     mark= at position 0.5 with {                     \node[transform shape] (tempnode) {$\backslash$};                     %\draw[thick] (tempnode.north east) -- (tempnode.south west);                     }                     },                     postaction={decorate}     }     }          \begin{document}          \begin{tikzcd}[arrows=Rightarrow]         &  B \arrow[degil,shift left=1.5ex]{dr}{}  &  \\       Stochastic Independence \arrow{ur}   &   & C \arrow [shift left=.5ex]{ul} \\       & D \arrow{ur} &      \end{tikzcd}          \end{document}


title: How to reference the most recently used multiply-defined label

text: I want to be able to do something like the following:               \incmycounter{abc}  %% counter value initialized to 0; associated with label 'abc'     \incmycounter{def}  %% counter value initialized to 0; associated with label 'def'     ... various text (including some calls to \incmycounter) ...     \incmycounter{abc}  %% counter value == 2; associated with label 'abc'     \incmycounter{def}  %% counter value == 100;  associated with label 'def'     ... some text (possibly defining new sections, labels, etc.) ...     \myref{abc} %% generate '2'     ... more text ...     \myref{abc} %% generate '2'     \incmycounter{abc}  %% counter value == 3; associated with label 'abc'     ... more text ...     \myref{abc} %% generate '3'     \myref{def} %% generate '100'      The `\incmycounter` command should either initialize a new counter (associated with the provided label name), or increment a currently defined one. A given `\myref` command should always refer to / generate the value that the associated counter had after the preceding `\incmycounter` command was executed. Is this possible, and if so, how?


title: Pattern for \vrule

text: Is it possible to apply patterns to \vrule possible like dotted?               \documentclass{article}          \newdimen\le\le=50pt     \def\A{\vrule depth0pt height 50pt width 1 \le}          \begin{document}     \A     \end{document}


title: Itemize with a dash "-" intstead of a bullet

text: If I use               \begin{itemize}     \item asdasd     \item dsfsdf     \end{itemize}      the items are with a bullet, but how can I itemize these two with a "-" (a dash / a hyphen / a small line)?


title: How to change the default marker of itemize environment globally

text: I was wondering how can I set globally `itemize` lists to use dashes instead of bullets using the `memoir` class. Right now I have to always do:               \begin{itemize}[-]     ...     \end{itemize}


title: Inserting the same table several times

text: I'd like to insert the same table in my document multiple times, however I don't want different numbering or labels.


title: Page number in page which contain the name of the chapter

text: I would like to insert in each page the chapter name and number (bottom right)   The problem is that this configuration does not apply to pages that contain the name of the chapter! My code :                \usepackage[fit]{truncate}      \usepackage{fancyhdr}      \pagestyle{fancy}      \fancyhead[RO,LE]{\truncate{.95\headwidth}{\leftmark}}     \fancyfoot[R]{\thepage}     \cfoot{}


title: a column is composed of three parts

text: I needed to do a table with 4 columns.The first has 2 cells. the second has 4 cells. The third is split into three different things. And, the fourth is split into 3 different things. I know how to do a table with four columns but do not know how to split a column. The pictures attached is exactly what I wanted to do. Note:The (her results) column is not shown in the picture attached but it should be identical to (my results) column.I do not know if my MWE would help or not. I could not know how![enter image description here][1] to do this table properly. Can anyone help? my MWE is:               \begin{table}[ht]     \caption{.} % title of Table     \centering % used for centering table     \begin{tabular}{c c c c} % centered columns (4 columns)     \hline\hline %inserts double horizontal lines     Metal thickness$(nm)$ & Metal width$(\mum)$ & My Results & Her Results\\ [0.5ex] % inserts table      %heading     \hline % inserts single horizontal line     25 & 8 & 1.447413 & 0.9627 & 2.128 \\ % inserting body of the table      # After this question was solved by #egreg, I tried to add an extra column that is also composed of three parts like the (my results) column . However, I had an error.this is what I thought to be the way of adding an extra column in the code provided in the answer by egreg.               \newcommand{\splitcell}[1]{%       \begin{tabular}{@{}c@{}}\strut#1\strut\end{tabular}%     }                    \begin{table}[htp]     \centering          \caption{The table caption}          \begin{tabular}{       S[table-format=2.0]       S[table-format=1.0]       S[table-format=1.6]       S[table-format=1.4]       S[table-format=1.3]     }          \toprule     {$t$ (\si{\nano\meter})} &       {$W$ (\si{\micro\meter})} &       \multicolumn{3}{c}{My results} \\     \cmidrule{3-5}     & &       {Re} &       {\splitcell{Theor.\\Overlap\\factor}} &       {\splitcell{Theor.\\MPA\\(\si{dB/mm})}} \\     \midrule     25 & 8 & 1.447413 & 0.9627 & 2.128 \\        & 4 & 1.446128 & 0.9538 & 1.20  \\     \midrule     31 & 8 & 1.448499 & 0.9377 & 4.196 \\        & 4 & 1.446889 & 0.9571 & 2.78  \\     \bottomrule          \multicolumn{3}{c}{her results} \\     \cmidrule{6-8}     & &       {Re} &       {\splitcell{Theor.\\Overlap\\factor}} &       {\splitcell{Theor.\\MPA\\(\si{dB/mm})}} \\     \midrule     25 & 8 & 1.447413 & 0.9627 & 2.128 \\        & 4 & 1.446128 & 0.9538 & 1.20  \\     \midrule     31 & 8 & 1.448499 & 0.9377 & 4.196 \\        & 4 & 1.446889 & 0.9571 & 2.78  \\     \bottomrule          \end{tabular}          \end{table}                                [1      ]: http://i.stack.imgur.com/JmpZE.png


title: How to refer to the number of an item in an enumerate environment inside a theorem

text: I have something that looks like this:               \usepackage{amsmath}     \begin{document}     \begin{thm}     The following are true:     \begin{enumerate}     \item \label{foo} Foo     \item \label{bar} Bar     \item \label{baz} Baz     \end{enumerate}     \end{thm}          Refer to Theorem \ref{bar}          \end{document}      Right now, the reference to bar shows up as Theorem 1. I want it to show up as Theorem 1.2. Is there any way to do that? To give a sub-numbering to each label within a theorem?