title: Why can't I change text color but I can still change the color of font awesome icons?

text: I have what it seems a very simple question, but I still cannot solve it, and I haven't been able to reproduce the problem outside Friggeri's CV template (sorry for that). The whole thing is trying to have a default text color that still allows me to change the color of specific words/phrases. I am using Friggeri's CV template with the same friggeri-cv.cls (I have only changed all the Helvetica fonts to Arial and added backend=biber to the \RequirePackage{biblatex} line). This is a MWE, where you can see text doesn't change color, but the flag does. Isn't font awesome considered text?               %!TEX TS-program = xelatex     \documentclass[]{friggeri-cv}     \listfiles     \addbibresource{bibliography.bib}          \usepackage{fontawesome}     \newfontfamily{\FA}{FontAwesome}          \begin{document}     \header{name}{surname}            {occupation}          % In the aside, each new line forces a line break     \begin{aside}       \section{sec}         aaa         bbb     \end{aside}               \section{sec}     \begin{entrylist}       \entry         {2014}         {some text here}         {more here}         {and more text              and \textcolor{red}{text in color}              and an icon \textcolor{red}{\faFlag}              and even a \href{http://tex.stackexchange.com/}{link}         }     \end{entrylist}               \end{document}      Now, I know there is this line in the .cls file                \colorlet{textcolor}{gray}      that controls default text color, but I still want the default text color to be like that, why doesn't \textcolor{red} override it? I only get colored text when I comment that line... This brings me to the problem of customizing links... I use the following line in the .cls file (but it doesn't work if I use it in the .tex file) to remove the box around links:                \usepackage[hidelinks]{hyperref}      But can I make all links be blue and underlined, for example? The option urlcolor=blue in the above command doesn't seem to do anything... EDIT: I get the following with the MWE above: ![this](http://i.stack.imgur.com/rNiHH.png) A big big plus would be to get rid of the underfull hbox warning too, if possible! Many thanks EDIT 2: At the end of the log file, \listfiles lists the following:                *File List*     friggeri-cv.cls    2012/04/30 CV class      article.cls    2007/10/19 v1.4h Standard LaTeX document class       size10.clo    2007/10/19 v1.4h Standard LaTeX file (size option)       xcolor.sty    2007/01/21 v2.11 LaTeX color extensions (UK)        color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive       pdftex.def    2011/05/27 v0.06d Graphics/color for pdfTeX     infwarerr.sty    2010/04/08 v1.3 Providing info/warning/error messages (HO)      ltxcmds.sty    2011/11/09 v1.22 LaTeX kernel commands for general use (HO)     pdftexcmds.sty    2011/11/29 v0.20 Utility functions of pdfTeX for LuaTeX (HO)     ifluatex.sty    2010/03/01 v1.3 Provides the ifluatex switch (HO)        ifpdf.sty    2011/01/30 v2.3 Provides the ifpdf switch (HO)     luatex-loader.sty    2010/03/09 v0.4 Lua module loader (HO)     fontspec.sty    2013/05/20 v2.3c Font selection for XeLaTeX and LuaLaTeX        expl3.sty    2014/01/07 v4646 L3 Experimental code bundle wrapper      l3names.sty    2014/01/04 v4640 L3 Namespace for primitives     l3bootstrap.sty    2014/01/04 v4640 L3 Experimental bootstrap code       luatex.sty    2010/03/09 v0.4 LuaTeX basic definition package (HO)         etex.sty    1998/03/26 v2.0 eTeX basic definition package (PEB)     l3basics.sty    2014/01/04 v4642 L3 Basic definitions      l3expan.sty    2014/01/04 v4642 L3 Argument expansion         l3tl.sty    2013/12/27 v4625 L3 Token lists        l3seq.sty    2013/12/14 v4623 L3 Sequences and stacks        l3int.sty    2013/08/02 v4583 L3 Integers      l3quark.sty    2013/12/14 v4623 L3 Quarks        l3prg.sty    2014/01/04 v4642 L3 Control structures      l3clist.sty    2013/07/28 v4581 L3 Comma separated lists      l3token.sty    2013/08/25 v4587 L3 Experimental token manipulation       l3prop.sty    2013/12/14 v4623 L3 Property lists        l3msg.sty    2013/07/28 v4581 L3 Messages       l3file.sty    2013/10/13 v4596 L3 File and I/O operations       l3skip.sty    2013/07/28 v4581 L3 Dimensions and skips       l3keys.sty    2013/12/08 v4614 L3 Experimental key-value interfaces         l3fp.sty    2014/01/04 v4642 L3 Floating points        l3box.sty    2013/07/28 v4581 L3 Experimental boxes     l3coffins.sty    2013/12/14 v4624 L3 Coffin code layer      l3color.sty    2012/08/29 v4156 L3 Experimental color support     l3luatex.sty    2013/07/28 v4581 L3 Experimental LuaTeX-specific functions     l3candidates.sty    2014/01/06 v4643 L3 Experimental additions to l3kernel       xparse.sty    2013/12/31 v4634 L3 Experimental document command parser     luaotfload.sty    2014/02/05 v2.4-3 OpenType layout system     luatexbase.sty    2013/05/11 v0.6 Resource management for the LuaTeX macro progr     ammer     luatexbase-compat.sty    2011/05/24 v0.4 Compatibility tools for LuaTeX     luatexbase-modutils.sty    2013/05/11 v0.6 Module utilities for LuaTeX     luatexbase-loader.sty    2013/05/11 v0.6 Lua module loader for LuaTeX     luatexbase-regs.sty    2011/05/24 v0.4 Registers allocation for LuaTeX     luatexbase-attr.sty    2013/05/11 v0.6 Attributes allocation for LuaTeX     luatexbase-cctb.sty    2013/05/11 v0.6 Catcodetable allocation for LuaTeX     luatexbase-mcb.sty    2013/05/11 v0.6 Callback management for LuaTeX     fontspec-patches.sty    2013/05/20 v2.3c Font selection for XeLaTeX and LuaLaTeX          fixltx2e.sty    2006/09/13 v1.1m fixes to LaTeX     fontspec-luatex.sty    2013/05/20 v2.3c Font selection for XeLaTeX and LuaLaTeX      fontenc.sty       eu2enc.def    2010/05/27 v0.1h Experimental Unicode font encodings       eu2lmr.fd    2009/10/30 v1.6 Font defs for Latin Modern     xunicode.sty    2011/09/09 v0.981 provides access to latin accents and many othe     r characters in Unicode lower plane      eu2lmss.fd    2009/10/30 v1.6 Font defs for Latin Modern     graphicx.sty    1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)       keyval.sty    1999/03/16 v1.13 key=value parser (DPC)     graphics.sty    2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)         trig.sty    1999/03/16 v1.09 sin cos tan (DPC)     graphics.cfg    2010/04/23 v1.9 graphics configuration of TeX Live     fontspec.cfg     unicode-math.sty    2013/05/04 v0.7e Unicode maths in XeLaTeX and LuaLaTeX      ifxetex.sty    2010/09/12 v0.6 Provides ifxetex conditional     l3keys2e.sty    2013/12/31 v4634 LaTeX2e option processing using LaTeX3 keys     catchfile.sty    2011/03/01 v1.6 Catch the contents of a file (HO)     etexcmds.sty    2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO)       fix-cm.sty    2006/09/13 v1.1m fixes to LaTeX       ts1enc.def    2001/06/05 v3.0e (jk/car/fm) Standard LaTeX file     filehook.sty    2011/10/12 v0.5d Hooks for input files     unicode-math-luatex.sty         lualatex-math.sty    2013/08/03 v1.3 Patches for mathematics typesetting with Lu     aLaTeX     etoolbox.sty    2011/01/03 v2.1 e-TeX tools for LaTeX     unicode-math-table.tex         tikz.sty    2010/10/13 v2.10 (rcs-revision 1.76)          pgf.sty    2008/01/15 v2.10 (rcs-revision 1.12)       pgfrcs.sty    2010/10/25 v2.10 (rcs-revision 1.24)     everyshi.sty    2001/05/15 v3.00 EveryShipout Package (MS)       pgfrcs.code.tex      pgfcore.sty    2010/04/11 v2.10 (rcs-revision 1.7)       pgfsys.sty    2010/06/30 v2.10 (rcs-revision 1.37)       pgfsys.code.tex     pgfsyssoftpath.code.tex    2008/07/18  (rcs-revision 1.7)     pgfsysprotocol.code.tex    2006/10/16  (rcs-revision 1.4)      pgfcore.code.tex     pgfcomp-version-0-65.sty    2007/07/03 v2.10 (rcs-revision 1.7)     pgfcomp-version-1-18.sty    2007/07/23 v2.10 (rcs-revision 1.1)       pgffor.sty    2010/03/23 v2.10 (rcs-revision 1.18)      pgfkeys.sty          pgfkeys.code.tex       pgffor.code.tex         tikz.code.tex      parskip.sty    2001/04/09 non-zero parskip adjustments      textpos.sty    2014/01/03 v1.7j     biblatex.sty    2013/11/25 v2.8a programmable bibliographies (PK/JW/AB)     biblatex2.sty    2013/11/25 v2.8a programmable bibliographies (biber) (PK/JW/AB)          kvoptions.sty    2011/06/30 v3.11 Key value format for package options (HO)     kvsetkeys.sty    2012/04/25 v1.16 Key value parser (HO)       logreq.sty    2010/08/04 v1.0 xml request logger       logreq.def    2010/08/04 v1.0 logreq spec v1.0       ifthen.sty    2001/05/26 v1.1c Standard LaTeX ifthen package (DPC)          url.sty    2013/09/16  ver 3.4  Verb mode for urls, etc.       blx-dm.def      verbose.dbx     biblatex-dm.cfg     blx-compat.def    2013/11/25 v2.8a biblatex compatibility (PK/JW/AB)     biblatex.def         standard.bbx    2013/11/25 v2.8a biblatex bibliography style (PK/JW/AB)     authortitle.bbx    2013/11/25 v2.8a biblatex bibliography style (PK/JW/AB)      verbose.bbx    2013/11/25 v2.8a biblatex bibliography style (PK/JW/AB)      verbose.cbx    2013/11/25 v2.8a biblatex citation style (PK/JW/AB)     biblatex.cfg         geometry.sty    2010/09/12 v5.6 Page Geometry       ifvtex.sty    2010/03/01 v1.5 Detect VTeX and its facilities (HO)     hyperref.sty    2012/11/06 v6.83m Hypertext links for LaTeX     hobsub-hyperref.sty    2012/05/28 v1.13 Bundle oberdiek, subset hyperref (HO)     hobsub-generic.sty    2012/05/28 v1.13 Bundle oberdiek, subset generic (HO)       hobsub.sty    2012/05/28 v1.13 Construct package bundles (HO)      intcalc.sty    2007/09/27 v1.1 Expandable calculations with integers (HO)     kvdefinekeys.sty    2011/04/07 v1.3 Define keys (HO)     pdfescape.sty    2011/11/25 v1.13 Implements pdfTeX's escape features (HO)     bigintcalc.sty    2012/04/08 v1.3 Expandable calculations on big integers (HO)       bitset.sty    2011/01/30 v1.1 Handle bit-vector datatype (HO)     uniquecounter.sty    2011/01/30 v1.2 Provide unlimited unique counter (HO)     letltxmacro.sty    2010/09/02 v1.4 Let assignment for LaTeX macros (HO)      hopatch.sty    2012/05/28 v1.2 Wrapper for package hooks (HO)     xcolor-patch.sty    2011/01/30 xcolor patch     atveryend.sty    2011/06/30 v1.8 Hooks at the very end of document (HO)     atbegshi.sty    2011/10/05 v1.16 At begin shipout hook (HO)     refcount.sty    2011/10/16 v3.4 Data extraction from label references (HO)      hycolor.sty    2011/01/30 v1.7 Color options for hyperref/bookmark (HO)      auxhook.sty    2011/03/04 v1.3 Hooks for auxiliary files (HO)       pd1enc.def    2012/11/06 v6.83m Hyperref: PDFDocEncoding definition (HO)     hyperref.cfg    2002/06/06 v1.2 hyperref configuration of TeXLive      hpdftex.def    2012/11/06 v6.83m Hyperref driver for pdfTeX     rerunfilecheck.sty    2011/04/15 v1.7 Rerun checks for auxiliary files (HO)     fontawesome.sty    2013/05/10 v3.1.1 font awesome icons      english.lbx    2013/11/25 v2.8a biblatex localization (PK/JW/AB)        t3cmr.fd    2001/12/31 TIPA font definitions     supp-pdf.mkii     epstopdf-base.sty    2010/02/09 v2.5 Base part for package epstopdf       grfext.sty    2010/08/19 v1.1 Manage graphics extensions (HO)     epstopdf-sys.cfg    2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Live           cv.bbl      nameref.sty    2012/10/27 v2.43 Cross-referencing by name of section     gettitlestring.sty    2010/12/03 v1.4 Cleanup title references (HO)           cv.out           cv.out      ***********      NEW EDIT: I have tried to reproduce the error without using Friggeri's template, but with no success, the following line does not have the desired effect: \colorlet{textcolor}{blue} But it has to be done that way, cause I don't want to touch Friggeri's template much... anybody has any idea? This is the MWE               %!TEX TS-program = xelatex     \documentclass{article}     \listfiles     \usepackage{xcolor}     \usepackage{hyperref}     \usepackage{fontawesome}     \newfontfamily{\FA}{FontAwesome}          \colorlet{textcolor}{blue}          \begin{document}     and more text          and \textcolor{red}{text in color}          and an icon \textcolor{red}{\faFlag}          and even a \href{http://tex.stackexchange.com/}{link}          \end{document}


title: How can I use multiple \extrainfo?

text: I'm writing my resume with `moderncv`, and I'm trying to put a second `\extrainfo`, but when I do it, the first disappear. There is no link between first and second. What am I doing wrong?


title: Ref using \hyperref[]{}, no color

text: I am using the hyperref package and are currently trying to reference using:               \hyperref[label]{text and \ref{something}}      The ref works fine, however, my other ref's (using eg. \ref{tab:no1}) are set to be dark blue, however the hyperrefs are all black... Any idea how to fix this? The color code is:               \usepackage[svgnames]{xcolor}%set special color on hyperref     \hypersetup{%        colorlinks = {true},        urlcolor = {blue!80!black},        linkcolor = {black},        citecolor = {blue!40!black},


title: How to get big quotation marks again

text: I am trying to use this answer to get large quotation marks,               \PassOptionsToPackage{svgnames}{xcolor}     \documentclass{beamer}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{libertine} % or any other font package (or none)     \newcommand*\quotefont{\fontfamily{fxl}} % selects Libertine for quote font     \usepackage{tikz}     \usepackage{framed}     % Make commands for the quotes     \newcommand*{\openquote}{\tikz[remember picture,overlay,xshift=-15pt,yshift=-10pt]      \node (OQ) {\quotefont\fontsize{60}{60}\selectfont``};\kern0pt}     \newcommand*{\closequote}{\tikz[remember picture,overlay,xshift=15pt,yshift=10pt]      \node (CQ) {\quotefont\fontsize{60}{60}\selectfont''};}     % select a colour for the shading     \definecolor{shadecolor}{named}{Maroon}     % wrap everything in its own environment     \newenvironment{shadequote}%     {\begin{snugshade}\begin{quote}\openquote}     {\hfill\closequote\end{quote}\end{snugshade}}          %\usetheme{Darmstadt}     \usefonttheme[onlylarge]{structurebold}     \setbeamerfont*{frametitle}{size=\normalsize,series=\bfseries}     \setbeamertemplate{navigation symbols}{}          \setbeamercolor{background canvas}{bg=black}     \setbeamercolor{normal text}{fg=white}          \makeatletter          \makeatother          \begin{document}     \begin{frame}     \begin{shadequote}     A common mistake that people make when trying to design something completely     foolproof is to underestimate the ingenuity of complete fools.\par\emph{Douglas Adams}     \end{shadequote}     \end{frame}          \end{document}      Unfortunately this now gives me miserable and skinny quotation marks instead. I heard that the libertine package had changed recently but I can't see how to fix this. I am using TeX Live 2013. The error I get is               LaTeX Font Warning: Font shape `T1/fxl/m/it' undefined     (Font)              using `T1/cmr/m/n' instead on input line 130.


title: Exceeding parbox with caption package

text: I am trying to customize the captions of my figures, this is what I achieved so far: ![enter image description here](http://i.stack.imgur.com/361ta.png) Which is ok, but as you can see the parbox exceeds the width, and its right margin is not precisely aligned. How can I fix it? This is the MWE:               \documentclass[11pt, a4paper, oneside]{memoir}          \usepackage{graphicx}     \usepackage{color}          \usepackage{caption}     \DeclareCaptionFont{white}{ \color{white} }     \DeclareCaptionFormat{figure}{       \colorbox[cmyk]{0.43, 0.35, 0.35,0.01 }{         \noindent         \parbox{\linewidth}{#1#2#3}       }     }     \captionsetup[figure]{ format=figure, labelfont=white, textfont=white, margin=0pt, font={bf,small,sf} }          \begin{document}          Nullam quis risus eget urna mollis ornare vel eu leo. Maecenas sed diam eget risus varius blandit sit amet non magna. Sed posuere consectetur est at lobortis. Nulla vitae elit libero, a pharetra augue. Nulla vitae elit libero, a pharetra augue. Integer posuere erat a ante venenatis dapibus posuere velit aliquet.            \begin{figure}[h!t]       \centering         \includegraphics[width=\linewidth]{treemap.jpg}         \caption{A treemap (source Wikipedia)}         \label{fig:treemap}       \end{figure}            Nullam quis risus eget urna mollis ornare vel eu leo. Maecenas sed diam eget risus varius blandit sit amet non magna. Sed posuere consectetur est at lobortis. Nulla vitae elit libero, a pharetra augue. Nulla vitae elit libero, a pharetra augue. Integer posuere erat a ante venenatis dapibus posuere velit aliquet.          \end{document}


title: Correct way to specify discretionary hyphens in bib files with biblatex/biber

text: Today I unexpectedly received the dreaded `character not set up for use with LaTeX` from `inputenc`. In this case, I was also pretty sure the error came from a `.bib` file. However, I grepped everything in the working directory as well as all `.bib` files and, just in case, all of my custom `.cls` and `.sty` files as well. The only place I could find the character was in **_generated_** files. That is, it did not appear to be in the **_source_** at all:               $ grep ‑ * ~/texmf/bibtex/bib/*.bib ~/texmf/tex/latex/cfr/* ~/texmf/tex/latex/config/*      executed from my working directory gave the following (plus a couple of innocuous complaints about non-file like things):               filename.bbl:        {Oxford University Press/Clar‑endon}%     filename.log:! Package inputenc Error: Unicode char \u8:‑ not set up for use with LaTeX.      That is, although the character is **_not_** in any of my source files, it **_is_** in the file `biber` generates. I can reproduce the error using the following file:               \documentclass{article}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage[backend=biber]{biblatex}     \usepackage{filecontents}     \begin{filecontents}{\jobname.bib}       @book{mybook,         title       =   {Great Book},         author      =   {Author, Some},         year        =   1055,         publisher   =   {Oxford University Press/Clar\-endon},         address     =   {Oxford}}     \end{filecontents}          \bibliography{\jobname}          \begin{document}            \autocite{mybook}            \printbibliography          \end{document}      Obviously, there are a couple of options I can use to work around this. I could remove `\\-` from the `.bib` file in question. Or I could declare the relevant unicode character which `biber` is inserting. Or I could define the discretionary hyphenation somewhere outside the `.bib` file, I guess. However, this worked fine until recently. I've used `\\-` in `Clar\\-endon` for a long time and it has never caused any trouble before. So I assume something has changed in the way `biblatex`/`biber` responds to the entry in the file. (Perhaps I should add that it is not that the hyphenation is being invoked. There is no need to break the line in this case, as it happens.) Which raises the question: what is the correct way to specify discretionary hyphenation in `.bib` files so that they work correctly with `inputenc` and `pdflatex` in UTF8 encoding without special workarounds? Note that I do know about XeLaTeX and LuaLaTeX, but I'm specifically interested in getting this to work with pdfLaTeX.


title: How to locally specify function range in math expression

text: I'm creating simple coordinate transformation in order to define `\tdplotsetcoord` coordinates at Cartesian coord. system.   **MWE:**               \documentclass[a4paper,fleqn,leqno]{article}     \usetikzlibrary{arrows.meta,decorations.markings}     \usepackage{tikz,tikz-3dplot}     \begin{document}     \begin{tikzpicture}[cm={-1,-1,1,0,(0,0)},x=3.85mm,z=-1cm]     \draw[-{Classical TikZ Rightarrow[scale=1.2]},very thick] (-2,0,0) -- (5,0,0) node[anchor=north,xshift=-3pt] {$x$};      \draw[-{Classical TikZ Rightarrow[scale=1.2]},very thick] (0,-2,0) -- (0,5,0) node[anchor=west] {$y$};     \draw[-{Classical TikZ Rightarrow[scale=1.2]},very thick] (0,0,-2) -- (0,0,5) node[anchor=south] {$z$};     \def\Xx{-2} \def\Xy{1} \def\Xz{4}     \tdplotsetcoord{X}{sqrt((\Xx)^(2) + (\Xy)^(2) + (\Xz)^(2))}{acos(\Xz/(sqrt((\Xx)^(2) + (\Xy)^(2) + (\Xz)^(2))))}{asin(\Xy/(sqrt((\Xx)^(2) + (\Xy)^(2))))} % {ρ}{θ}{Φ}     \draw[-{Stealth[scale=1.5,width=3pt]},color=gray,semithick] (0,0,0) -- (X);     \draw[dashed,color=red] (0,0,0) -- (Xxy);     \draw[dashed,color=red] (Xxy) -- (X);     \end{tikzpicture}     \end{document}        Spherical coordinates `radius ρ` and `polar angle θ` work fine (operate in their entire ranges), however `asimuthal angle Φ` apparently does not - it handles negative `x` values in my CC as positive. Thus every coordinate transformed into SC has non-negative `x` value.   Also the problem may be in the range of `arcsine`. It perhaps operates just at part of total. I know I have to define wider range of `asin` dependently upon sign combinations of `x,y` in order to get total `asimuthal angle Φ` extent (`max - min = 2\pi`).   **Question 1:** I'm wondering how can I even find out default range of Latex`asin`.   **Question 2:** How can I (roughly) define the wider `arcsine` range I was talking about? I would like the code to be as simple as possible.   Thanks.


title: How to do forward search to PDF file opened with Okular from include files when editing using VIM/GVIM

text: I'm using vim to edit my tex files and I use latex suite as a plugin to compile my tex sources and view them in using Okular pdf viewer. Setting the following in Okular settings makes inverse search work perfectly               gvim --servername GVIM --remote +%l %f      But having looked on the web and tried different ways to make forward search work within vim with latex suite, forward search is still working only partly for me in vim. I'm only able to do forward search with `\ls` in the main tex file. If I do `\ls` inside an include or input file then Okular would complain that it can't find the particular pdf for that include/input file which is true because only the main tex file has a pdf compiled. I also tried a custom function which I found from an answer to a similar question here on TeXExchange: http://tex.stackexchange.com/a/2947/2031 but the path passed to Okular with this command is just a concatenation of the paths to both the main pdf and tex files. Below are my current settings in my .vimrc related to this question:               let g:Tex_CompileRule_pdf = 'pdflatex -synctex=1 -src-specials -interaction=nonstopmode $*'     let g:Tex_ViewRule_pdf = 'okular --unique'     function! SyncTexForward()          let execstr = "silent !okular --unique %:p:r.pdf\#src:".line(".")."%:p &"          exec execstr     endfunction     nmap <Leader>f :call SyncTexForward()<CR>


title: Todonotes produces double inline notes instead of single margin note (with classicthesis 3.0)

text: I am writing my PhD thesis using the `classicthesis` style/package. Until few days ago I was using TeXLive 2009 from the Ubuntu 11.04 repositories. After I upgraded to Ubuntu 11.10 I decided to install "vanilla" TexLive 2011. Installation went great and after it was finished I upgraded everything with `sudo tlmgr upgrade --self --all`. Then I recompiled my files and after some adjustments in the preamble (required by the new version of `classicthesis`, that is v.3.0) the compilation was successful. So far, everything works fine so far except this: I use `todonotes` in my document and it worked great in my older setup, but now, after the upgrade, all my notes appear as inline notes and the same note is repeated twice! On the other hand the inline notes (i.e. the notes that need to be inline, for ex. `\todo[inline}{inline note text}`) appear to be correct. I know I should put MWE here but since this is connected with the `classicthesis` package I simply can not create MWE code. Therefore I will try to explain how to recreate the error in simplest way:   1. Locate the installed `classicthesis` package on the drive and make a copy of the whole folder, or download the zip file from the project's Google Code site and unzip it in it's own folder.   2. Open the Classicthesis.tex and add `\usepackage{todonotes}` to the preamble (I added it just before `\begin{document}` so it is the last loaded package)   3. Anywhere in the text add `\todo{some text}` in order to produce margin note   4. [Optionally] Add somewhere `\todo[inline]{this is inline note}`   5. Compile with `pdflatex` If I do this, my resulting file show duplicated (double) margin note, that is also placed inline (only left bracket ([) appears in the margin where the note should actually be). The second, inline note, appears as intended. **Why is this happening and how to avoid/correct it?** P.S.: I use Ubuntu 11.10 and TexLive 2011, and from the log file: classicthesis 2011/06/05 v3.0 and todonotes 2011/10/22.


title: Remove cite from table of contents

text: I want to put a citation in the section title               \section{AAAB \cite{KK} }      But i only want this cite to appear in the text but not on the page of contents. How to remove cite from table of contents ?


title: Why can't I wrap \rowcolor in \only? (Beamer)

text: See the following minimal example:               \documentclass[table]{beamer}     \begin{document}          \begin{frame}{Boo}     \begin{table}     \centering     \small     \begin{tabular}{rcc}     \only<1>{\rowcolor{green}}Hey & 32.0 & 26.7\\     \only<2>{\rowcolor{green}}Hey & 28.5 & 24.5\\     \end{tabular}     \caption{My caption}     \end{table}     \end{frame}          \end{document}      This gives the error `! Misplaced \noalign` Why does this not work and how can I get the desired result of highlighted rows on different overlays?


title: Format caption in figure

text: I have a question which concerns text formatting in captions and also in sections. For example when I type:               \begin{figure}     something          \caption{this is some caption text and it probably may be quite long.}     \end{figure}      Then result is:               something          this is some caption text and it pro-         bably may be quite long.      The word 'probably' is divided and text in new line is aligned to left. I would like to stop word division and align entire text to center. I know that I can use mbox, but it's somehow irritating to write it all the time, so maybe some global setting would be nicer.


title: Using hypertarget caption in hyperlink caption

text: I want to use hypertarget caption in hyperlink caption automatically. Example:               \hypertarget{myTarget}{My Target}          See \hyperlink{myTarget}{\useMyTargetCaption}.      Wanted result: My Target See _My Target_.


title: floatrow destroys common solution for parallel figures

text: I really like the `floatrow` package, but when its code is not required I expect that everything works as normal, however the correct code fails to compile once `floatrow` is loaded. What I am talking about are simple parallel `figure`s placed in `minipage`s:               \documentclass[paper=a4, fontsize=11pt]{scrartcl}     \usepackage[demo]{graphicx}     \usepackage{floatrow}          \begin{document}%     \begin{figure}[H]       \begin{minipage}[b]{.5\linewidth}         \centering         \includegraphics[width=0.5\linewidth]{images/TestBild.png}         \caption{A figure}\label{fig:figures:2}       \end{minipage}%       \begin{minipage}[b]{.5\linewidth}         \centering         \includegraphics[width=0.5\linewidth]{images/TestBild.png}         \caption{Another figure}\label{fig:figures:3}       \end{minipage}     \end{figure}     \end{document}%      Comment out `floatrow` and it compiles correctly. Any possible solution to get it working with `floatrow` loaded but without any `floatrow` commands?


title: Verbatim inside a command

text: I have a question about a Verbatim, I want to write a word inside of the subsubsection title. I got an error. How can I fix it?: `\subsubsection{The \verb+@interface+ Section}`


title: Vertical alignment of cvline in moderncv?

text: I am currently updating my CV and using the `moderncv` package. When I've updated the 'Languages' section, I've encountered a problem:               \documentclass[11pt,a4paper]{moderncv}          \moderncvtheme[grey]{casual}     \usepackage[english,ngerman]{babel}     \usepackage[utf8]{inputenc}                           \firstname{Firstname}     \familyname{Name}          \setlength{\hintscolumnwidth}{0.3\textwidth} % widen first column within CV           \begin{document}              \maketitle         \section{Languages}         \cvline{German}{Hallo, mein Name ist Fritz, Ich would like to haben ein Sauerkraut with Schnitzel, bitte. Und dazu ein deutsches Weizenbier. Bitte wo ist der Schlossmuseum? I know a little German, he's sitting over there.}         \cvline{German Sign Language (DGS)}{Basics}          \end{document}      That results in: ![Image: result](http://i.stack.imgur.com/rfpQm.png) So my question is: Is it possible to adjust the vertical alignment of the first respectively of the second column in a `cvline` to middle? I would like that the Basics is in the middle (vertically) of the German Sign Language (DGS). The other case (aligning the left column vertically) is not that important to me.


title: Is there such thing as "visual-only whitespace"?

text: I want to write IBANs and noticed that if I write `DE12\,1234\,5678\,9123\,4567\,89` I am getting the half space I would expect but when copy-pasting it, the white space vanishes (as mentioned in comment, this seems to be viewer-dependent. I am using Sumatra). This is really nice. But what could I do, if I want to get a full whitespace in the print out, but no whitespace when copying it? In CSS you can separate visually (yielding `DE12 1234 5678 9123 4567 89` in the print out) but leave the numbers together (yielding `DE12123456789123456789` when copy-pasting it). First of all my MWE:               % arara: pdflatex          \documentclass{article}          \begin{document}     DE12\,1234\,5678\,9123\,4567\,89          DE12 1234 5678 9123 4567 89     \end{document}      I tried other whitespaces such as `\` or `~` or even `\,\,` but they will always result in dismembered copy-pasting-results. Is there such a whitespace around, which would do what I want? Maybe (as an extra), it would be cool to have a macro `\IBAN{DE12123456789123456789}` which will do the separating automatically (the rule is easy: groups of four from left to right).


title: Beamer Presentation: Stepwise Uncover Images

text: I don't even know if this is possible, but here goes: I'm writing slides for an upcoming presentation using the default LyX Beamer template. I am also using the `uncover everything in a stepwise fashion` option:               \beamerdefaultoverlayspecification{<+->}      However, when one of the bullets that I want to uncover in this stepwise fashion contains an image, the image is not "dimmed out" when it should be (as can be seen in the attached screenshot - those graphs are supposed to be dimmed in the first slide). ![enter image description here](http://i.stack.imgur.com/gWhpo.png) How can I apply the stepwise uncover feature to images as well? An MWE can be downloaded here


title: How can I use TikZ to make standalone (SVG) graphics?

text: I would like to use TikZ in other settings than TeX and I'd especially like to use the drawings on websites where the text should be searchable and selectable. However, I'm unsure of the best way to convert my drawings to SVG. How do I best take some TikZ code, render the drawing and turn the output into SVG?


title: avoiding white spaces between consecutives minipages

text: I am using the list environment `\begin{itemize}\end{itemize}` in pdflatex with several `\item` inside. I want to make each line from inside the environment "itemize" longer so that the length is `1.25\linewidth`. I used for this the `\begin{minipage}\end{minipage}` command, e.g.               \section*{Section 1}      \begin{minipage}[t][1.2in]{1.25\linewidth}      \begin{itemize}      \item here some text in Section 1     \item here some more text Section 1     \item here even some more text Section 1     \end{itemize}     \end{minipage}                \section*{Section 2}     \begin{minipage}[t][1.2in]{1.25\linewidth}     \begin{itemize}     \item here some text Section 2     \item here some more text Section 2     \item here even some more text Section 2     \end{itemize}     \end{minipage}      Still, between the two sections I have a lot of extra white space. How can I avoid this white space between the 2 minipages? Is there some other way to make each line from inside the itemize environment longer than to use minipage? Thank you in advance for your help and suggestion.


title: What does `\ ` exactly do?

text: In the The Not So Short Introduction to LATEX2e - Version 5.01, April 06, 2011 it is suggested that: > A backslash in front of a space generates a space that will not be enlarged. > (page 39) It turns out that this is not really the case. I've been told that `\ ` differs from the normal space token in that it resets the `\spacefactor` to `1000` (see comment here). So what does `\ ` actually do? I am not very familiar with the way TeX works and don't really understand what `\spacefactor` is really responsible for, either. (I looked up the TeXbook, but still don't have any clue.) Can anybody enlighten me?


title: Altering format of apa6e

text: I am fairly new to LaTeX and am just learning how to use this terrific tool. Because of this newness I lack the vocabulary to search properly or edit code within LaTeX files. That places me in a bad spot because there are three things I'd like to perform using LaTeX using `apa6e` but am unable to as the use of `apa6e` gives me the format I want but restricts what I can do:   1. How can I suppress the abstract page from `apa6e`?   2. How can I suppress the author notes in ape6e?   3. How can I suppress the warning generated in `apa6e` when I add `[leavefloats]` to the document class? I don't know if this is something I do from within my tex editor or if I have to alter the `apa6e` file containing the code for the package. I'm thinking there's an `apa6e.sty` file that I could alter to bring about these changes. If that's the case I'd greatly appreciate knowing how to locate and alter this file. In either case I'd greatly appreciate direction with regard to these alterations. MWE example (this produces the warning message from the '[leavefloats]'):               \documentclass[leavefloats]{apa6e}     \usepackage[american]{babel}     \usepackage{csquotes}     \abstract{This is an example of of an abstract in APA.  }     \begin{document}     \title{A Template for APA Papers}     \shorttitle{APA: A Template}     \author{John}     \authornote{\dots}     \date{\today} % or \date{24Jan11} for example     \maketitle     \section{Literature Review}     Stuff     \end{document}       MWE in which I try to leave out the abstract and author note:               \documentclass[leavefloats]{apa6e}     \usepackage[american]{babel}     \usepackage{csquotes}     \abstract{This is an example of of an abstract in APA.  }     \begin{document}     \title{A Template for APA Papers}     \shorttitle{APA: A Template}     \author{John}     \authornote{\dots}     \date{\today} % or \date{24Jan11} for example     \maketitle     \section{Literature Review}     Stuff     \end{document}


title: above n references broken

text: EDIT: Added the complete cite macro from my aglc2.cbx file.   EDIT: Added the cite:save macro as suggested by domwass   EDIT: Added these links to files to reproduce the problem   UPDATE: I think I have this solved now. Key was as @domwass suggested to create a `cite:save` macro. Updated code is below   * tmp.tex - contains sample code   * tmp.pdf - this is what it looks like   * bibliography.bib - needs no introduction   * lawessay.cls - lawessay style I use for the tex source (adapted from Will Hardy's style)   * aglc2.bbx - BBX file for the lawessay style   * aglc2.cbx - CBX file. The code snippet below comes from this * * * Hi, I think this is a newbie question. In my biblatex `cite` macro I have this code:               \newbibmacro*{cite:save}{%         \csxdef{cbx@\thefield{entrykey}}{\the\value{instcount}}%         \label{cbx@\the\value{instcount}}%     }          \newbibmacro*{cite}{%     \global\boolfalse{cbx@loccit}%     \ifciteseen     {%         \iffieldundef{shorthand}         {%             \ifthenelse{\ifciteibid\AND\NOT\iffirstonpage}             {%                 % citeibid is true and this citation has been seen on this page previously                 % and citation is in a footnote                 \usebibmacro{cite:ibid}%             } {%else                 % either citeibid is false or this is the first time the citation appears                 % on this page                 \ifthenelse{\(\equal{\thefield{entrytype}}{jurisdiction}\or%                         \equal{\thefield{entrytype}}{legislation}\or%                         \equal{\thefield{entrytype}}{legal}\)%                     \or\not\ifciteseen}                         {%                     % If the entry is a jurisdiction or legislation or legal                     % or if the citation has not been seen before                     % ie: this is how to print a first citation.  Legislation, legal and                     % jurisdictions are always printed as though they were a first citation.                     \usebibmacro{cite:short}%                 } {% else                     % Must be something else or a subsequent citation                     \usebibmacro{author/editor:surname}%                                        above n\addnbspace%                                         \ref{cbx@\csuse{cbx@\thefield{entrykey}}}%                 }             } {%                 % shorthand field is defined                 \usebibmacro{cite:shorthand}%             }         }     } {%         % citation has not been seen before         \usebibmacro{cite:full}     }     }      So when a footnote is printed as ...'above n xx' the xx is the page number. How can I set it to be the footnote number?


title: How should I organise my document/files in order to easily export TikZ figures as images?

text: I don't care too much about what image format I get out of the process as I can convert it if needed, but I'm looking for the best way to structure my document/files in order to make it easier and faster to generate a set of images that can be used in other documents. I have both a Windows and Ubuntu box (both running TexMaker) so something that works on both platforms is preferred. I'm using the TikZ package to make some simple figures for my thesis. I have the figures located in the `./figures` directory, with each figure in a file with the naming convention `<short_description>.tikz`. My main document contains all the preamble and styling information as well as all text. I've used the code from a previous question and created two tex files in the figures directory called `export_figures_(win|unix).tex`, each of which has a duplicate of the TikZ styling information and then includes a file `list_of_figures.tex` which is a copy paste of each `\input{}` in my main document. I then have a batch/shell script for each platform I run to generate images. I used this approach as I was unable to compile the main document unless the export statement was commented out, which meant I had to constantly uncomment and comment the code section when I created a new figure. The way I have it now is still less than ideal as I have to update two documents manually every time I create or rename a figure. This also means that the TikZ styling information is replicated three times (though I could pull that into it's own file and just include that file). Is there a better way to implement this to make my life a bit easier? Are there any recommended practices I'm well violating that I should be following?


title: Representing semantical relations with TikZ

text: What is the best way to draw those two semantical relations with TikZ? I’ve seen it in a paper describing relations within wordnets. ![synonym](http://i.stack.imgur.com/mLVdN.png) ![hypernym](http://i.stack.imgur.com/xeC5I.png)


title: preview-latex does not function

text: Preview-latex installs, but doesn't actually _preview_. When I generate the preview from the source, all I see is... the source. For example, the math equations are highlighted, but not rendered. Some version information: emacs23 on Lion, and I just installed mactex and auctex today. Here is an example latex document I've tried:               \documentclass{article}     \usepackage{preview}     \begin{document}     solution to $\sqrt{x}=5$ is $x=25$.     \end{document}      (also, the circ.tex sanity-check which comes with auctex doesn't work either)


title: Generating unicode hyphenation pattern

text: Is there a program that you can use to generate unicode hyphenation pattern? I already know about `opatgen` but I can not compile that program since it requires a very old version of gcc.


title: Workaround for reprinted items in bibliography

text: I am trying to find a way to indicate that a chapter is a reprint (in the following MWE, `test1` is a reprint of `test2`). I had a look at this but I would like a solution that does not require adding fields such as `Reprintedin` and `Reprintpages` to the `.bib` file, since my `.bib` is produced by Zotero and the type of fields are given (although I could add a `note` field). Is there a way to cross cite (or any other workaround)? Please consider the following MWE:               \RequirePackage{filecontents}          \begin{filecontents*}{mybib.bib}     @incollection{test1,         address = {London},         title = {Deliberation and democratic legitimacy},         isbn = {0415302102},         lccn = {JA71 .D36 2003},         booktitle = {Debates in contemporary political philosophy: {An} anthology},         publisher = {Routledge},         author = {Cohen, Joshua},         editor = {Matravers, Derek and Pike, Jonathan E.},         year = {2003 [1989]},         pages = {342--360},     }     @book{test2,         address = {Oxford},         title = {The {Good} polity: {Normative} analysis of the state},         isbn = {0631158049},         lccn = {JC325 .G59 1989},         shorttitle = {The {Good} polity},         publisher = {Blackwell},         editor = {Hamlin, Alan P. and Pettit, Philip},         year = {1989}     }     }     \end{filecontents*}          \documentclass[a4paper]{article}               % Set the values for the bibliography     \usepackage[         style=apa,         backend=biber,         isbn=false,         url=false,         doi=false,         eprint=false,         hyperref=true,         backref=false,         firstinits=false,     ]{biblatex}          % Recommended by biblatex     \usepackage[utf8]{inputenc}     \usepackage{csquotes}     \usepackage{xpatch}          % Set language     \usepackage[british]{babel}     \DeclareLanguageMapping{british}{british-apa}          \addbibresource{mybib.bib}          \begin{document}          \cite{test1}          \printbibliography     \end{document}      Ideally, what I would like to obtain is the following in-text citation: > (Cohen, 2003 [1989]) and the following full citation in the Reference list: > Cohen, J. (2003). Deliberation and democratic legitimacy. In D. Matravers & > J. E. Pike (Eds.), Debates in contemporary political philosophy: An > anthology (pp. 342–360). (Reprinted from _The Good polity: Normative > analysis of the state_ , pp. 17-34, by A. P. Hamlin & P. Pettit, Eds., 1989, > Oxford: Blackwell). London: Routledge.


title: mhchem for titles

text: I'm using `mhchem` for chemical formulas. In the body of the text it is fine, but it is given me nasty outputs for the titles on the index of my pdf reader. I have tried different ones and the result comes to be the same. Instead of `\ce{IrO2}` it appears `3222378`. Has someone encountered a similar problem?


title: How to automatically set the height of the combined cell when using multirow package

text: Here is the simplified code to demonstrate my issue:               \documentclass[11pt]{article}      \usepackage{multirow}          \begin{document}     \begin{tabular}{|c|c|c|}     \hline       &  & \\     \hline      \hline      \multirow{2}{*}{\rule{3cm}{4cm}} &  & \\     \cline{2-3}       &  & \\     \hline      \end{tabular}          \end{document}      Now, the result table is below, you see the big black figure is not fit in the cell. ![big cell in multirow mode](http://i.stack.imgur.com/rMNmP.png) How to solve this issue? Thanks.


title: Laplace and Fourier transforms

text: What are the _normatization_ or _standard_ (not necessarily fancy) symbols to use for the Laplace and Fourier transform operators? By “normatization” or "standard" I mean “technical standard” or "technical normatization".


title: How to automatically (semi, if not fully) convert two-column LaTeX paper into MS-Word

text: I could not find full automatic conversion with math formulas and figures. Thought, let me get converted to ASCII then I will paste and format. Even that did not work well due to two-columns. I had to manually select-and-paste pdf, re-do all the maths and insert figures. Any better way?


title: Color and efficient vector graphics

text: I want to use complex monocolor vector graphics but I would like to be able to specify the color inside my latex source. Solutions :   1. Use a `pdf`, but I can't specify the color afterwards. Perhaps a solution with `svg` ?   2. Use `tikz`, but it makes my compilation so slow as it needs to parse the complex paths again each time I use one of those graphics !   3. Use `tikz`+`\savebox`, as my graphics have a lots of complexity, but there are only a few different of them that I use a lots of time.  Here is my question : can I use `\savebox` to save some tikz operations with a custom color that will be specified only when I use `\usebox` ? My wish would be to have a command `\mygraphics` that takes one argument the color such that `\mygraphics{blue}` and `\mygraphics{red}` typeset my graphic in blue or in red **without** parsing my graphic each time.


title: Align cell contents at top

text: Consider the following example:               \documentclass{article}          \usepackage{diagbox}          \newcommand*\mc[1]{\multicolumn{1}{c}{#1}}          \begin{document}          \begin{table}      \centering       \begin{tabular}{l | *{8}{c}}          \diagbox[width = 10em]{Hold}{Modstander}                  & $A_{7}$  & $B_{7}$      & $C_{7}$      & $A_{8}$      & $B_{8}$      & $C_{8}$      & $A_{9}$      & $B_{9}$      \\         \hline \\[\dimexpr-\normalbaselineskip+2pt]          $A_{7}$ & \mc{---} & $A_{7}B_{7}$ & $A_{7}C_{7}$ & $A_{7}A_{8}$ & $A_{7}B_{8}$ & $A_{7}C_{8}$ & $A_{7}A_{9}$ & $A_{7}B_{9}$        \end{tabular}     \end{table}          \end{document}      ![output](http://i.stack.imgur.com/BLNzs.jpg) How do I vertically align `$A_{7}$`, `$B_{7}$`, ... with `Modstander`? (I would like to raise `$A_{7}$`, `$B_{7}$`, ...) I've looked a quite a lot of (somewhat) related answers on this site but I haven't found a solution to my problem. `:(`


title: \subsection* doesn't remove section numbering

text: I'm trying to use `\subsection*{foo}` to form a title of a subsection that isn't proceeded by a number. However, every time it results in a number x.0 , where x is the number of the section above (which does need a number). An example of my problem:               6.3 Section that needs numbering     6.3.0 Subsection 1 that should not have a number in front     6.3.0 Subsection 2 that should not have a number in front     6.3.0 Subsection 3 that should not have a number in front      The problem is caused by a .sty file that I got, however my latex knowledge isn't broad enough to fully understand and find the issue. A work example:               \documentclass[a4paper,12pt]{report}     \usepackage{inc}     \begin{document}     \chapter{foo}     \section{bar}     \subsection*{star}     \end{document}      and in inc.sty the following causes section related stuff I think:               \newenvironment{unnumbered}     {   \setcounter{secnumdepth}{0}%         \addtocontents{toc}{\protect\setcounter{tocdepth}{0}\ignorespaces}%         \w@ntnumbersfalse     }     {   \setcounter{secnumdepth}{2}%         \addtocontents{toc}{\protect\setcounter{tocdepth}{2}\ignorespaces}%         \w@ntnumberstrue     }               \AtBeginDocument{         \w@ntnumberstrue         \setcounter{secnumdepth}{\@secnumdepthvalue}              \titleformat{\section}[block]                 {\Large\sffamily\bfseries}                 {}{0ex}                 {\titleline*[l]{\titlerule[1pt]}\vspace{4pt} \thesection\quad}                 [{\titleline*[l]{\vspace{18pt}\titlerule[1pt]}}]         \titlespacing*{\section}{0pc}{*3}{*2}         %         \titleformat{\subsection}[block]                 {\large\sffamily\bfseries}                 {}{0ex}                 %{\ifthenelse{\@secnumdepthvalue<2}{}{\thesubsection\quad}}                 {\ifw@ntnumbers \thesubsection\quad \else \quad \fi}                 %[]         \titlespacing*{\subsection}{0pc}{*2}{*1}         %         \titleformat{\subsubsection}[block]                 {\large\sffamily\bfseries}                 {}{0ex}                 {\ifthenelse{\@secnumdepthvalue<3}{}{\thesubsubsection\quad}}                 []         \titlespacing*{\subsubsection}{0pc}{*1}{*0}              \myShabox     }      Can someone tell me what I'm doing wrong or point me in a direction. If you need more information, let me know!


title: How to upload LaTeX-generated pdf paper to arXiv without LaTexXsources

text: arXiv is smart enough to detect whether your pdf is generated by LaTeX. If it is, arXiv asks for the sources of the pdf instead of the pdf file itself. This is really annoying and inconvenient. Can I ask a way to fool the arXiv and avoid pdfs being detected as generated by LaTeX (even if they were indeed). I have tried this: http://www.hrstc.org/node/62: "create a pdf from word and then simply insert pages from your article, and delete the word's page" And it did not work.


title: Texify: Do you ever need to run it more than once?

text: I've recently discovered MiKTeX's `texify` tool, which appears to run LaTeX/BibTeX repeatedly until the output has stabilised. Is it safe to rely completely on this tool, or are there circumstances where one needs to run it more than once? Edit: Is there a list of circumstances under which it is safe/unsafe to use `texify`? (If not, perhaps a 'community wiki' is appropriate here, although I don't really understand what it is?)


title: I don't get 'et al.' when I have a long author list

text: I am using an article with a long author list, like this:               author = {{H.Oumerachi and A.Kortenhaus and William Allsop and Maarten and        Groot and Roger Crouch and Han Vrijling and Hessel Voortman }}      `natbib` is supposed to use a long author list only the first time, and then use `et al.` However, I get a long author list every time.


title: BibTeX not working with \input or \include

text: I need some help with BibTeX. I use a seperate `*.bib` file which is working perfectly, but when the commands `\input` or `\include` are used to input text from another `*.tex` file the application tells me there are suddenly undefined resources. What is happening. I have tried running BibTeX on the aux-file created by the `\include` command.               \documentclass[a4paper,norsk, twoside,11pt, titlepage]{article}     \usepackage[utf8]{inputenc}     \usepackage{graphicx}     \usepackage{apacite}     \usepackage{varioref}     \usepackage{babel,textcomp}     \usepackage{microtype}     \usepackage{multirow}     \usepackage{array}     \usepackage{footnote}     \usepackage{placeins}     \usepackage{etoolbox}     \usepackage{enumerate}     \usepackage{lipsum}          \title{title}     \author{A}          \begin{document}          \cite{bibentry}          %\include{file}     %\input{file(.tex)}          \newpage     \bibliographystyle{apacite}     \bibliography{bibl}           \end{document}


title: Number only some equations in an equation array

text: I have an equation array consisting of around 9 equations, however I wish to number only some of them. How can I do that?


title: How to add frame number "5/12"-style to theme template?

text: I have a long title, therefore I've chosen `Amsterdam` theme for the `beamer` package. However, I need to also show the frame number "frame/fromTotalFrames" style. How can I add the frame-no. on the left hand side of the footer, while centering the title? The theme code:               \useoutertheme[footline=authortitle]{miniframes}     \useinnertheme{circles}     \usecolortheme{whale}     \usecolortheme{orchid}          \definecolor{beamer@blendedblue}{rgb}{0.137,0.466,0.741}          \setbeamercolor{structure}{fg=beamer@blendedblue}     \setbeamercolor{titlelike}{parent=structure}     \setbeamercolor{frametitle}{fg=black}     \setbeamercolor{title}{fg=black}     \setbeamercolor{item}{fg=black}          \setbeamertemplate{headline}     {%       \begin{beamercolorbox}[colsep=1.5pt]{upper separation line head}       \end{beamercolorbox}       \begin{beamercolorbox}{section in head/foot}         \vskip2pt\insertsectionnavigationhorizontal{\paperwidth}{}{}\vskip2pt       \end{beamercolorbox}%       \ifbeamer@theme@subsection%         \begin{beamercolorbox}[colsep=1.5pt]{middle separation line head}         \end{beamercolorbox}         \begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,%           leftskip=.3cm,rightskip=.3cm plus1fil]{subsection in head/foot}           \usebeamerfont{subsection in head/foot}\insertsubsectionhead         \end{beamercolorbox}%       \fi%       \begin{beamercolorbox}[colsep=1.5pt]{lower separation line head}       \end{beamercolorbox}     }     \mode     <all>      Some example frames:               \documentclass{beamer}          \usepackage{beamerthemesplit}     \usetheme{Amsterdam}      \usepackage[utf8]{inputenc}          \title{General Theory of Relativity is a long Title\\     for normal Footers}     \author{Albert Einstein}     \date{April 2, 1922}          \begin{document}          \frame{\titlepage}          %%%     \section[Overview]{}     %\subsection{Layout}     \begin{frame}     \begin{itemize}     \item Here comes the Figure     \end{itemize}     \end{frame}          %\subsection{Agenda}     \frame{\tableofcontents}     %%%               %%%     \section{Motivation}     \begin{frame}{Theory is practical}     \begin{itemize}     \item Here come the reasons     \end{itemize}     \end{frame}     %%%               %%%     \section[Review]{Review of casual theory}     \subsection{classic Theories}     \begin{frame}{Which is Eligible?}     Newton, Lagrange, etc.     \end{frame}          \section[Review]{Review of casual theory}     \subsection{classic Theories}     \begin{frame}{Which is Eligible?}     Goethe, Dasgupta etc.     \end{frame}          \end{document}


title: Why is TeXample.net TikZ-specific?

text: Link: http://www.texample.net/ I'm reluctant to ask this here, since it is not _about TeX_. However, I consider it a _very_ useful tool when I need it, and it's a wonderful idea, I just wish it were more general. I've used TeXample when I needed help with a complicated graphic, and I'm almost sure you have too (if you hopped on the PGF gravy train). However, I've also seen a bunch of awesome stuff done with LaTeX in general (you can tell by the pixels) and I would love nothing more than to emulate it, customize it, and ~~brag about~~ share it with my friends and colleagues. Is there any specific, technical reason why TeXample cannot host generic examples of LaTeX's abilities, essentially becoming a definitive showcase of the most impressive typography that LaTeX is capable of? I've contacted TeXample via the web-form, but I'm sure that the developers are on here somewhere and probably have a good reason one way or the other.


title: Memoir Class, Madsen Style, Chapter Heading and Rule

text: I would like to extend the chapter title and the rule above it to the left, so it is -0.75 in past the text block. MWE:               \documentclass[oneside,12pt]{memoir}          \usepackage{graphicx}          \begin{document}          \chapterstyle{madsen}          \frontmatter          \tableofcontents          \mainmatter          \chapter{First chapter}          Text          \chapter{Second chapter}          More text          \end{document}


title: Texmaker slow when I type backslashes in math mode

text: When I type a backslash and the first letter after a backslash in math mode I encounter a delay of something like 250ms which I never noted before now. This only happens in math mode and it's very annoying. During this delay the CPU usage goes up to 40%. What does Texmaker do? Is there some option to disable? EDIT: My system is Linux Mint 13 with Texmaker 3.2.


title: How can I draw these polygons with shaded regions?

text: I don't know how to draw this by LaTeX. ![enter image description here](http://i.stack.imgur.com/7P2YR.jpg) ![enter image description here](http://i.stack.imgur.com/Md2dX.jpg)


title: Package mathtools with showonlyrefs switch swallows parts of equation numbers in appendices

text: I want to use the mathtools package with `showonlyrefs` to achieve that only referenced equations are numbered. In the complete document I get the expected behavior for regular equations in the subsections. In the MWE the behavior for main text and appendix is the same. For example the reference to the first numbered equation would appear as `(1)` in the text. However it doesn't work for equations in appendices which should (with my preamble below) appear as `(A1)` and `(A2)` etc. but do all appear as `(A)`. My example is:               \documentclass{revtex4}% same issue for e.g. article          \usepackage{mathtools}     \mathtoolsset{showonlyrefs}          \begin{document}     \section{section}     See \ref{eqn a b} and \ref{eqn b c}.          \begin{align}     a=b \label{eqn a b}     \end{align}          \begin{appendix}     \section{appendix}          \begin{align}     b=c \label{eqn b c}     \end{align}     \end{appendix}     \end{document}      ![output](http://i.stack.imgur.com/Byj8y.png) Any idea how to have it display the complete unique reference?


title: Sublime Text LatexTools fail

text: I am using Sublime Text 2 with LatexTools on OS X 10.6. When I build, I get "TraditionalBuilder: Invoking latexmk... done." Yet Skim does not open the PDF. The problem might be related to the result of typing 'latexmk' in Terminal: `File::Path version 2.08 required--this is only version 2.07_02 at /usr/texbin/latexmk line 121.` What is the solution?


title: How to put nodes or rectangles inside a node?

text: I've created a `chain` of nodes. In each of those nodes, I want to put other rectangles with text inside. This is how I want each chained node to look like (please excuse my touchpad drawing): ![enter image description here](http://i.stack.imgur.com/3PE8H.png) I tried to get this result by nesting nodes, but the node content seems to be in text mode, so that didn't work.


title: Making a checkered background for a page

text: I am writing a math work, and I'd like to create a background which looks like a math notebook. Any idea how to do it ? I found this solution, but I don't know how to put it in a mini-page ...               %%%     %%% quarre Kaestchenmuster     %%%     \def\quarre{%     \raisebox{\footskip}[0pt][0pt]{%     \          setlength{\unitlength}{.01\textwidth}% Einheit_1/100_Textweite     \begin{picture}(100,115)%     \color{black!10}%     \linethickness{0.075mm}%     \multiput(2,0)(2,0){49}{\line(0,1){110}}% 110-VER     \multiput(0,2)(0,2){54}{\line(1,0){100}}% 54-HOR     \color{black}%     \put(1,112.1){%     \begin{footnotesize}     \textsl{\textbf{Notizen}}     \end{footnotesize}}%     \end{picture}%     }%     }      would be great to combine it with this: Background image for minipage


title: Miktex references not in order

text: I added the `\input{references}` line to the end of my Journal.tex file like so:               \input{references}     \end{document}      However, the references that are being outputted are not in order of citation. Rather, they are in the order that the citations are defined in the references.tex file. I did try adding the unsrt command as such               \begin{thebibliography}{99.}     \bibliographystyle{unsrt}      but no luck... I also tried deleting the aux files and stuff, but no cigar... I am brand new to latex, so please help me out here! Thanks! I am not using the command line, but using TexnicCenter instead. **EDIT:** A snippet of my reference.tex class (sorted alphabetically).               \begin{thebibliography}{99.}          \bibitem{alexander87} Alexander, R. D., The Biology of Moral Systems, New York: Aldine de Gruyter (1987)     \bibitem{axelrod80a} Axelrod, R.: Effective choice in the iterated prisoner's dilemma, J. Confl. Resolut., vol. 24, pp. 3-25 (1980)     \bibitem{axelrod80b} Axelrod, R.: More effective choice in the prisoner's dilemma, J. Confl. Resolut., vol. 24, pp. 379-403 (1980)     \end{thebibliography}      What I want               ..... no such cause [1].      what I get               ..... no such cause [13].      FURTHER EDIT:               \documentclass[graybox]{svmult}          \usepackage{mathptmx}         % selects Times Roman as basic font     \usepackage{helvet}           % selects Helvetica as sans-serif font     \usepackage{courier}          % selects Courier as typewriter font     \usepackage{type1cm}          % activate if the above 3 fonts are not available on your system     \usepackage{makeidx}          % allows index generation     \usepackage{graphicx}         % standard LaTeX graphics tool when including figure files     \usepackage{multicol}         % used for the two-column index     \usepackage[bottom]{footmisc} % places footnotes at page bottom     \usepackage{float}            % places the float image at precisely the location in the LaTeX code     \usepackage{verbatim}         % for multiline comments     \usepackage{subfigure}          \makeindex      \setcounter{secnumdepth}{5}   % for subsubsub sections (if any)     \begin{document}          \title*{Some random title.}          \author{Ockham}          \maketitle          \section{Introduction}     \label{sec:intro}          blah blah.........          \input{references}     \end{document}


title: no document is created when siunitx is loaded

text: I wrote a large part of my thesis with MiKTeX 2.9 using `siunitx` for all units in the text. Now I did an update of MiKTeX 2.9 and suddenly no document is created any more although no error appears. After a while, I found the MWE:               \documentclass{scrartcl}     \usepackage{siunitx}     \begin{document}     This is my text     \end{document}      Within the MWE-folder, only a .`log` file is created, but no other files like `.aux`, etc. As I already mentioned, no errors or warnings are shown. Does anyone have any idea what's going wrong here?


title: How to fix the MiKTeX bug about uni-wtal-ger / uni-wtal-get?

text: I encountered the exact problem as MikTeX 2.9 without list of packages in settings program. Now I figure out it may be a bug of MiKTeX. It misnamed one package. The correct package should be `uni-wtal-ger`, but MiKTeX named it as `uni-wtal- get`, so miktex reports it do not know `uni-wtal-ger`. See http://www.ctan.org/pkg/uni-wtal-ger and also ![uni-wtal-ger info](http://i.stack.imgur.com/Ykg4f.png) ![error msg](http://i.stack.imgur.com/iYSR8.png)


title: Wrong hyphenation with LY1 font ecoding?

text: Here I found the statement that no special hyphenation patterns are needed with LY1 font encoding. Yet I stumbled upon different hyphenation in connection with non-letters (such as quotation marks) in utf8 input:               \documentclass[ngerman]{article}     \usepackage[utf8x]{inputenc}     \usepackage{babel}     \usepackage[LY1]{fontenc}     \def\foo{Michelsberg „Michelsberg Michelsberg“ }     \begin{document}     \LARGE     \foo\foo\foo\foo\foo\foo\foo Michelsberg!     Michelsberg, \foo Michelsberg? \foo\foo\foo Michelsberg.     \end{document}      One instance of a hyphenation `Michelsber-g“` occurs in the output. With other encodings (e.g. T1), only the correct hyphenations (Mi-chels-berg) are used (or even tried as a look into the log shows). Is there a way to systematically prevent this problem with LY1?


title: How can I limit the writable space in hyperref's TextFields?

text: I'm creating a pdf form using `hyperref`. After it has been filled-out, the form will be printed. I'm looking for a way to prevent the user from entering more characters into a TextField than will be seen on the print-out. The `maxlen` option is not really what I'm looking for - it's more about space than number of characters. Incidentally, I do get some of the desired results when using the `multiline=true` option, at least in Adobe Reader 9 (which will be used): entered text breaks at the visual end of the TextField. Sadly, the number of rows increases instead. So I'm stuck with the same problem - only now it's vertically, not horizontally. Any ideas? Thanks!


title: Bibliography separation with variable separator

text: I need a "." behind the title and "," behind all other entries. So far I tried to modify `output.nonnull` and `output.check` and extended them by an additional variable.               STRINGS { s t separator }     FUNCTION {output.nonnull*}     {        'separator :=       's :=       output.state mid.sentence =         { separator * write$ }         { output.state after.block =             { add.period$ write$               newline$               "\newblock " write$             }             { output.state before.all =                 'write$                 { add.period$ " " * write$ }               if$             }           if$           mid.sentence 'output.state :=         }       if$       s     }     FUNCTION{output.nonnull}     { ":: " output.nonnull* }          FUNCTION {output}     { duplicate$ empty$         'pop$         'output.nonnull       if$     }     FUNCTION {output.check*}     { 'separator :=       't :=       duplicate$ empty$         { pop$ "empty " t * " in " * cite$ * warning$ }         { separator output.nonnull* }       if$     }     FUNCTION {output.check}     { "!!! " output.check* }      My parameterization in `@article` for example doesn't work and it is funny that I get the 3 `!!!` behind the title.               FUNCTION {article}     { output.bibitem       format.authors "author" output.check       author format.key output       format.date.front "year" output.check       add.colon       format.title "title" ". " output.check*      Any ideas? It seems like my function call doesn't take the parameters or that they go lost. Does it have something to do with the way i access the variables comming from the stack ?


title: Is there a pdf crop utility for windows that will give smaller files?

text: The answers to this question contain pdf cropping utilities that will give smaller files than Eric Doviak's original, but as far as I can tell they only work in Linux. Is there a way to make them work in Windows, or an equivalent native utility? I also need to be able to run it from command line. (Motivation: I managed to get fancy-preview running for my dissertation, but it turns my 50-page dissertation from a compact 1MB into 10MB. I understand this as due to a large number of uncompressed tooltips being embedded, and would like to avoid that.)


title: Only name of section in header + underlined

text: I'm now trying to tweak the headers of my book document. I only need the name of the section in the header and I want it to be underlined and no uppercase letters!               \documentclass{book}      \usepackage[german]{babel}     \usepackage[utf8]{inputenc}     \usepackage{graphicx}     \usepackage{caption}     \usepackage{booktabs,dcolumn}     \usepackage[figureposition=bottom]{caption}     \usepackage{fancyhdr}     \usepackage{underlin}     \pagestyle{fancy}     \fancyhf{}     \fancyhead[L]{\fontsize{10}{12} \selectfont Personal Statement}     \renewcommand{\headrulewidth}{0pt}      \fancyhead[L]{\nouppercase{\leftmark}}     \fancyhead[R]{\thepage}     \newcolumntype{d}[1]{D{.}{.}{#1}}     \newcommand*{\mc}[1]{\multicolumn{1}{c}{#1}}     \newcommand*{\mcTwo}[1]{\multicolumn{2}{c}{#1}}     \linespread{1.8}     \setlength\parindent{0pt}     \begin{document}      \chapter {Einleitung}      \section{Motivation}            zz     \clearpage         zz     \end{document}      So, I just need it to be underlined. And to remove _Kapitel 1_ so just the name of the section. ![enter image description here](http://i.stack.imgur.com/88i5M.png)


title: How to put chapter number after chapter title in thesis documentclass?

text: Why chapter title in thesis documentclass positioned below chapter number? I mean I need to place both of chapter title and chapter number in one line. ![enter image description here](http://i.stack.imgur.com/rI1KU.png)


title: Table-like scheme in LaTeX

text: I would like to draw the kind of table (I don't know any proper name for this, so I cannot research for similar question) shown in the picture below: ![table](http://i.stack.imgur.com/dT6ar.png) I have absolutely no clue on how I can draw it. Do you know any package/simple way to draw it? If possible, what the macro should draw a vertical bar on each side, plus any number of **smaller** vertical lines inside the "table". The content of each part will always be in the form `$a \dots a$`, with one symbol on each side and the space in between filled by dots (potentially more than 3 dots). One bracket below every part, on all its length (or slightly smaller for esthetic reason). No bracket above or on the sides. This looks similar to a tabular environment but:   1. How can I obtain vertical lines with different heights?   2. How can I obtain the below brackets? As you can guess, I cannot provide a MWE.


title: tikz drawing a partitioned rectangle

text: I would like to draw the following figure, but I don't even know where to begin. This goes far beyond my tikz expertise. If anyone can help, I would appreciate it very much. Here is a skeleton code to get the rectangle going:               \documentclass{article}     \usepackage{tikz}          \begin{document}     \begin{tikzpicture}          \node[rectangle,draw,minimum width=2in,minimum height=2in,thick,text width=2in] (box1) {Type-B adaptable\\Type-B adaptable\\Type-C robust\\Type-B adaptable\\Type-A robust\\Type-A adaptable\\Type-B adaptable\\Type-C adaptable};               \end{tikzpicture}     \end{document}      ![enter image description here](http://i.stack.imgur.com/g2IEN.jpg)


title: Change size and position of subscript (like double subscript)

text: I'm writing 'cause I would like to know if there's an automatic way (like something to put in the preamble) to make the subscript behave as double subscript: for example if I write               something_a       it should behave as               something_{_a}


title: Input Encoding bugged on Windows 7 WinEdt?

text: When my girlfriend processes her code in WinEdt on Windows 7, she gets awkward looking "special" letters. (Precisly, these are Serbian letters -- from our home country.) She used:               \usepackage[T1, T2A]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage[serbian]{babel}  % This isn't relevant here, but I put it for perspective      She also put document properties to `utf8`, so when she types, all the letters should be encoded in utf8, right? But when she processes her file with `pdflatex`, she gets this pdf. Notice how normal alphabet letters are fine, but the serbian letters (2nd line, word određeno) are different from the others. But, when I process the same `.tex` file on my Mac (with TexShop), I get a normal looking pdf. You can see that it looks regular, although I used the exact same code as her. Why does this happen? She uses `utf8` encoding on her WinEdt, and also in the document. Shouldn't it work fine? **EDIT:** The solution is to include CM-Super font family into MikTex, and it works perfectly. So I guess whenever people have problems regarding European languages and special character formatting, you should check for CM-Super fonts :)


title: Justification when using the dramatist package

text: I'm trying to typset a play using the `dramatist` package. I'm having difficulty figuring out how I change some settings. I want to ensure that the text that the characters say, is justified, rather than their names being justified. ![enter image description here](http://i.stack.imgur.com/YQO6O.png) I would like the words `Well`, `Start` and `I` to be left-justified, and the characters names to be right-justified. Here is an example of the `tex` that I used to make this demo:               \documentclass[a5paper,11pt]{memoir}         \usepackage{dramatist}            \begin{document}          \Character[Wilheim - a person]{Wilheim}{will} % define characters     \Character[Frederico - a person]{Frederico}{fred}          \scene[]          \StageDir{         \begin{center} Darkness          \end{center}     }          \begin{drama}          \willspeaks Well, will we - I\dots     \fredspeaks  Start.     \willspeaks I will go on.     \willspeaks Vivamus varius tellus et mi pretium elementum iaculis tellus semper. Donec semper iaculis ante, convallis convallis arcu laoreet vitae. Aliquam id leo ac eros ultrices rhoncus porta sed ipsum.           \end{drama}          \end{document}      I would like my document to look like the following (which I prepared using the `verbatim` package) and for this to work for sentences that run over multiple lines: ![enter image description here](http://i.stack.imgur.com/qYkrW.png) I received some helpful advice from TeX.SE on starting to use the `dramatist` package here.


title: "Inspirational" quote at start of chapter

text: I recall seeing a package to make quotes like that of the following image at the start of a chapter, but I can't seem to find it again. ![Combinatorics and Graph Theory](http://i.imgur.com/rNoUD.png) _(This image is from the book Combinatorics and Graph Theory by Harris, Hirst, and Mossinghoff)_


title: Beautiful quotes in documentclass article

text: > **Possible Duplicate:**   >  "Inspirational" quote at start of chapter I'm using `\documentclass[a4paper,12pt]{article}`. How to do this beautiful quote by using `\renewenvironment{quote}` or having my own `\newenvironment{myQuote}`? ![Quote](http://i.stack.imgur.com/TGwxH.jpg)


title: How to add a quotation before a chapter

text: I would like to add a small quotations as we can find in books before a chapter. Is there a simple command to do this ? I use Xelatex and biblatex, with author-year style


title: How could I add an epigraph to each chapter in classicthesis?

text: I am using `classicthesis` for my Master's Degree dissertation and I would like to add epigraphs in each chapter. My idea is to include a simple sentence before the text. Any suggestions to do that? Thanks a lot!


title: How to use memoir environment to set a motto for a chapter?

text: I would like to set a motto after the chapter title. While the title is set left-aligned the motto should be set left-aligned too, but the longest line of the motto should be aligned to the right outer border of the page:               The Title is Great     That is the subtitle if there is one          The Authors name                                   There was a young man of Quebec                              Who was frozen in snow to his neck.                              When asked: ‘Are you friz?’                              He replied: ‘Yes, I is,                              But we don’t call this cold in Quebec.           1. Maybe the section title     And last but not least the text of the essay and what else I do     not know...      This is a working example, but what I need to know is, how to set the whole 'block' with the poetry to the right border (that the longest verse hits it)?               \documentclass[10pt,twoside]{memoir}     \usepackage{blindtext}     \newcommand{\chapterauthor}          \makeatletter     \DeclareRobustCommand\authortoctext[1]{%     {\addvspace{10pt}\nopagebreak\setlength{\parindent}{0em}\relax     \rightskip \@tocrmarg\relax     \itshape#1\par\addvspace{-7pt}}}     \makeatother     \newcommand\authortoc[1]{\needspace{3\baselineskip}%       \gdef\chapterauthor{#1}%       \addtocontents{toc}{\authortoctext{%         \needspace{2\baselineskip}%   Vgl. http://tex.stackexchange.com/questions/134016     #1}}}     \renewcommand{\afterchaptertitle}{%          \vskip\onelineskip\begin{large}\normalfont\textit{\Large\chapterauthor}\end{large}     \vspace{4ex}     \vskip\onelineskip}          \newcommand\Chapter[3][]{       \chapter[%       \if\relax\detokenize{#1}\relax #2%       \else #1\fi. #3]{#2\\[2ex]\Large\Large#3}       \chaptermark]{\markboth{%       \if\relax\detokenize{#1}\relax  #2%       \else  #1\fi }{}%       }}               \begin{document}     \authortoc{The Author}     \chapter[]{The Title of the Chapter}     \settowidth{\versewidth}{I will pour out my spirit on all people}      \begin{verse}     In the last days, God says, \\     I will pour out my spirit on all people. \\     Your sons and daughters will prophesy, \\     \ldots \\     And everyone who calls \ldots ’’\,’     \end{verse}          \section*{The section Title}     \blindtext      \end{document}


title: Changing standard output presentation page size into A4 size?

text: I am working on some project and presentations in LaTeX using the `beamer` package. I am just a beginner in this so I really need your help. My problem is that the default presentation page size is small and I need to transform it into A4 paper size. Can anybody help me how to handle this problem?


title: latex Error in list cross reference

text: I have created a customized list environment in the book class. The labels for the list are produced the way I want, but when items are referenced, they are not labeled correctly. Here is the code. Does anyone know how to solve this problem? Thanks in advance.                \documentclass[11pt]{book}      \NeedsTeXFormat{LaTeX2e}[1995/12/01]      \usepackage{amsfonts,fancyhdr,amsmath,amsthm,amssymb,graphicx}      \usepackage{amscd}      \usepackage[neverdecrease]{paralist}      \usepackage{amsmath,amssymb,latexsym,graphicx}      \usepackage{pstricks}           \renewcommand{\theenumi} {\arabic{enumi}}      \renewcommand{\labelenumi}{\theenumi}      \renewcommand{\theenumii} {\alph{enumii}}      \renewcommand{\labelenumii}{\theenumii}      \renewcommand{\labelenumii}{(\theenumii)}      %\renewcommand{\p@enumi}{\theenumi--}           \newcommand{\mynonsense}      {      \vspace{1cm}\begin{center}{\scshape\large Nonsense}\end{center}\vspace{2pt}\noindent      }           \setdefaultleftmargin{4em}{3em}{1.87em}{1.7em}{1em}{1em}           \newenvironment{mylist}      {\pagestyle{plain}      \setdefaultleftmargin{2em}{3em}{1.87em}{1.7em}{1em}{1em}      \setlength{\topsep}{3.mm}      \setdefaultenum{1$\;$}{a$\;$}{i$\;$}{A$\;$}      \bigskip      \begin{compactenum}      \renewcommand{\labelenumi}{\thechapter-\arabic{enumi}}      \renewcommand{\labelenumii}{\thechapter-\arabic{enumi}.\arabic{enumii}}           \setlength{\itemsep}{3.mm}      \setlength{\topsep}{3.mm}}      {\end{compactenum}      \bigskip      }                \begin{document}      \chapter{Chapter 1}      \mynonsense % command which produces header      \begin{mylist}      \item \label{1} item 1-1      \item \label{2} item 1-2      \begin{mylist}      \item \label{2a1} item 1-2.1      \item \label{2a2} item 1-2.2      \end{mylist}      \item \label{3} item 1-3      \begin{compactenum}[(a)]      \item \label{a} item 1-3a      \item \label{b} item 1-3b      \end{compactenum}      \end{mylist}      Labels print out as \ref{1}, \ref{2}, \ref{2a1}, \ref{2a2}, \ref{3}, \ref{a}, \ref{b},         which  is wrong.  Correct is (1-1), (1-2), (1-2.1), (1-2.2) (1-3), (1-3a), (1-3b).      \end{document}


title: Highlight passages from the body as quotes between the paragraphs

text: In newspaper and magazine articles, striking messages from the main text are often highlighted in form of quotes in larger font size, sometimes also set apart by a bold rule or so. For an article I am composing, I would like to do the same. Can you recommend any aesthetically pleasing method to do so?


title: latexdiff: exclude caption text

text: Is anyone aware on an option in latexdiff that lets one exclude the caption from appearing in the diff? E.g. whenever I move a figure around, latexdiff will keep the caption text at the old place, mark it as deleted and in the new place of the figure the caption text is marked as added text. I tried to disable diffs for figures, tables etc with the config file               PICTUREENV=(?:picture|DIFnomarkup|tabular|tabularx)[\w\d*@]*     PICTUREENV=(?:picture|DIFnomarkup|tikzpicture|float)[\w\d*@]*     FLOATENV=(?:figure|table|plate)[\w\d*@]*      but to be honest I wasn't so sure what I was doing and found the manual difficult to understand.


title: Colored sectioning - headings

text: I am working on some project in `pdflatex`. I am not an expert in this so I really need your help :). Well what I am trying to do:   * I (or somebody) will make some common `.tex` file (with some text) with regular PDF output using `article` class.   * But I want my `\chapter` , `\title`, `\section`s, `\subsection`s and `\items` to be automatically colored. Any ideas how can I achieve this effect? I firstly tried to use just the `beamer` class and `beamerposter.sty` to transform the presentation page into A4 size and keep those colors. But the problem was that I can't see my section and subsection (they are only visible in `\tableofcontents`). EXAMPLE CODE (and I want this to look a little bit colorful...check out the screenshot)               \documentclass{article}          \usepackage[cp1250]{inputenc}     \usepackage[slovak]{babel}     \usepackage[left=2cm,text={17cm, 23cm},top=3cm]{geometry}     \usepackage{graphicx}               \begin {document}              \begin{center}         \rm \large \textbf {blabalablabla}         \vfill          \rm \LARGE \textbf {TITLE}\\             \rm \large \textbf {(blabla)}         \vfill          \end{center}          \chapter{CHAPTER}          \section{sec1}              text - in section 1          \section{sec2}                    text in section 2              \begin{itemize}         \item ITEM         \end{itemize}          \section{sec3}         \subsection{subsec1}             \subsubsection{subsubsec1}          \end {document}      This is just a simple example to show you what i mean. ![This is just a simple example to show you what i mean.](http://i.stack.imgur.com/NTr20.png)


title: Table formatting error extra alignment tab

text: \begin{table}{ht}     \begin{tabular}{|cc|}     \hline     10g & Tryptone //     5g  & Yeast extract //     5g  & NaCl //     10g & Agar //     1ml & Ampicllin (100ng/ml)  /hline     \end{tabular}     \caption{Reagents for Lysogeny broth agar}     \label{table:LBAreagents}          \end{table}      I keep getting an error message and I can not for the life of me spot the problem, the error is said to be occurring on the yeast and agar code lines with the following code               Extra alignment tab has been changed to \cr.     <recently read> \endtemplate     l.164 5g &     Yeast //     You have given more \span or & marks than there were     in the preamble to the \halign or \valign now in progress.     So I'll assume that you meant to type \cr instead.     ! Extra alignment tab has been changed to \cr.     <recently read> \endtemplate     l.166 10g &     Agar //     You have given more \span or & marks than there were     in the preamble to the \halign or \valign now in progress.     So I'll assume that you meant to type \cr instead.     [10]"      Any help would be very much appreciated. n.b. Preamble               \documentclass[12pt,a4paper]{report}     \usepackage[utf8]{inputenc}     \usepackage{mathptmx}     \usepackage{amsmath}     \usepackage{amsfonts}     \usepackage{amssymb}     \usepackage{graphicx}     \usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}     \usepackage{color}     \usepackage{multirow}     \usepackage{soul}     \usepackage{caption}     \usepackage{natbib}     \usepackage{setspace}     \usepackage{placeins}     \usepackage[nottoc,numbib]{tocbibind}     \renewcommand{\bibname}{References}     \doublespacing     \usepackage[parfill]{parskip}


title: Is it possible to have section titles inside paragraphs?

text: Is there a way to have section titles that are inside paragraphs, especially when using `titlesec` package? The `runin` style and others cause a paragraph break after the input line. What I am aiming for is just a normal paragraph that has titles inside itself.


title: Reference \ref[...]{...} with an argument does not work with hyperref

text: I'm using the `hyperref` package. My propositions usually consist from many parts a), b), c), d), e), etc. When I refer to a certain proposition, I would like to specify which part I am referring to. How can I do that? For example, `\cite[p.66]{citeShastriEDT}` creates ![enter image description here](http://i.stack.imgur.com/wiR8K.jpg), just like I want, but `\ref[b)]{01.04.subgroupGeneratedBy}` creates ![enter image description here](http://i.stack.imgur.com/n2oCp.jpg). Even if I write `\ref{01.04.subgroupGeneratedBy} b)`, I get ![enter image description here](http://i.stack.imgur.com/q0zTO.jpg). How can I create either ![enter image description here](http://i.stack.imgur.com/TEFcV.jpg) or ![enter image description here](http://i.stack.imgur.com/sf6UL.jpg) ? EDIT: the solution of Werner is very nice and easy to use. But I am looking for something else. I mostly don't wish to use the `enumerate` environment, because often it happens that some of the points are quite short (i.e. don't deserve a new line on their own), whilst others are long. Here is an example of a proposition that I wish to reference: ![enter image description here](http://i.stack.imgur.com/c7wau.jpg) I'm trying to be economical with space. Also, I really wish to avoid using additional environments inside my `theorem` and `proposition` environments, unless absolutely necessary. Sorry I didn't clarify that before. So, is there a solution that does not involve using new environments? My reference does not need to point to the specific part of the proposition (e.g. b)), just the beginning of the whole proposition.


title: How to use 'marvosim' package in windows8?

text: I am using Latex with tex editor 'Texmaker' in windows8. But whenever I compile .tex file it shows an error **use package _marvosim/marvosim.sty_ not found**. How can I fix this problem?


title: Using pgf to print raw numbers without math delimiters

text: I'm trying to have `pgf` output a number in raw format, but I don't know how to do it so any help would be greatly appreciated. If you look below, the problem is that `\roundednumber` expands to `$1,000$`, and I would like to have it expanded to `1,000` instead. I have tried using the `xstring` package with no luck.               \documentclass[12pt]{article}     \usepackage{fontspec}     \setmainfont[Ligatures=TeX]{Linux Libertine O}     \usepackage{tikz}     \usepackage{pgfplotstable}     \pgfplotsset{compat=1.10}     \usepackage{xstring}     \begin{document}     \pgfkeys{/pgf/fpu=true}     \pgfmathparse{1e9}\pgfmathparse{\pgfmathresult/1e6}     \pgfkeys{/pgf/fpu=false}     \pgfmathprintnumberto{\pgfmathresult}{\roundednumber}     \roundednumber \ 1,000     % \pgfmathparse{\roundednumber}     % \pgfmathparse{\StrBetween{\roundednumber}{$}{$}}     % \pgfmathresult     \end{document}      Thank you for your help. PS: if you know of a better way to have numbers printed using the Libertine font, please let me know.


title: Bottom hline in a tabularx wrapper environment

text: I want to define a wrapper environment for a table where one of the columns stretches to fill the available width. I'm using the `tabularx` package and its `X` column for that. As mentioned here and in the `tabularx` documentation, I need to use `\tabularx`…`\endtabularx` rather than `\begin{tabularx}`…`\end{tabularx}` in the definition of my environment, because `\tabularx` runs to the end of the enclosing environment. So far so good, now I'd like to add horizontal rules at the top and bottom. When I comment out the bottom `\hline` in the environment definition, I get an error               ! Misplaced \noalign.     \hline ->\noalign                        {\ifnum 0=`}\fi \hrule \@height \arrayrulewidth \futurelet...     l.28 \end{mytable}      MWE (with the desired but problematic `\hline` commented out):               \documentclass{article}     \usepackage{array}     \usepackage{tabularx}     \newenvironment{mytable}{%       \tabularx{\textwidth}{lX}         \hline%         Name & Description \\         \hline%     }{%       %\hline%       \endtabularx%     }          \begin{document}     Manually (working fine): \\     \begin{tabularx}{\textwidth}{lX}       \hline       Name & Description \\       \hline       foo & This description is long. It is very long. It is more than one line long. It is automatically broken up into lines. \verb`\verb` works. \\       \hline     \end{tabularx}          \medskip     Wrapper environment (error with the bottom \verb`\hline`): \\     \begin{mytable}       foo & This description is long. It is very long. It is more than one line long. It is automatically broken up into lines. \verb`\verb` works. \\     \end{mytable}     \end{document}      How can I make my environment automatically include a horizontal rule at the bottom of the table? I don't mind switching from `tabularx` to something else. I'll want to use the environment both inline and in a float. It would be very annoying if `\verb` didn't work. At the moment, it's fine if page breaks inside the table are impossible but I'm likely to have to tackle at some point that as my tables get longer. Bonus question: why is there so little space between each horizontal line and the text below, and how do I make the space decent — `\strut`


title: How to footnote two subfigures in one figure

text: I have some trouble with footnotes. Here is, what i wanted to do:               \begin{figure}[H]         \subfigure[WSML Varianten\protect\footnotemark]             {\includegraphics[width=0.5\textwidth]{wsml-space.pdf}             \label{subfigure:wsml-space}}         \hfill         \subfigure[Schichten der WSML Varianten\protect\footnotemark]             {\includegraphics[width=0.4\textwidth]{wsml-layering.pdf}}             \caption[WSML Varianten und Schichten]{WSML-Varianten und deren Zusammenspiel im Überblick}             \label{subfigure:WSML-layer}     \end{figure}     \footnotetext{\url{http://www.w3.org/2004/12/rules-ws/paper/44/}~~(aufgerufen am 31.01.2014)}     \footnotetext{\url{http://www.wsmo.org/TR/d16/d16.1/v0.3/20050320/}~~(aufgerufen am 31.01.2014)}      Now, the 2 subfigures are marked with "1" and "2", but logically the footenotetext is twice marked with "2". Any idea to solve this problem? Greetz fliflaflex


title: Set slide subtitle in beamer after \framebreak

text: I am writing my thesis' slides. I need to set a subtitle in some slides, but I am using the `[allowframebreaks]` option and `\framebreak`. When I set the `\framesubtitle{}` after `\framebreak`, the subtitle is set to all the slides in the `\begin{frame}[allowframebreaks]` environment and not only in the slide where I set the subtitle. Is there any way to set the subtitle of only one slide when using `allowframebreaks`? Thanks in advance.


title: Table of contents: title added as section

text: I'm using `apa6` with TeX Live 2012 and would like to use the command `\maketitle`. However, whenever I do, the title of my document always appears above my table of contents, and it is even listed as a section in my table of contents. Here we go:               \documentclass[man,a4paper]{apa6}     \usepackage[american]{babel}     \title{Title}     \shorttitle{shorttitle}     \author{Name}     \abstract{abstract text here}          \begin{document}     \maketitle     \tableofcontents          \include{text}     \bibliography{biblio}          \end{document}


title: How to merge / overlay two pages?

text: This should in principle be an easy question, but I could not figure out how to do it, so I hope to find help here. A disclaimer up front: I know that this is not a recommended thing to do, and pretty stupid and potentially ugly, but hey, let's see how it looks like. ;) The problem is this: At some point in my document, I start the appendix (think of any new section, for that matter). Then I use `\input` to read in a table. This table is big enough to fill out an entire page. Since the section name "Appendix" and the table don't fit on one page, LateX gives me a whole empty page with "Appendix" on it, and on the following page the table. Glancing at both pages, it looks though as if the title "Appendix" would easily fit onto the page with the table. I don't want to mess around with the table though since more (similar) tables are following (so the layout of the tables should remain the same, i.e. no messing with the margins). I am thus now looking for a way to merge both pages. Think of making one of the pages transparent and putting it on top of the other. Given how powerful Latex is, I am sure this is possible, but I am not a very proficient user, so I would be happy about any help / hints that anyone of you might be able to provide me with. If both things would be environments, it would probably be easier, but since one of them is the name of the section ("Appendix"), I am not sure how to even start. Any help is appreciated!


title: \newcommand Tikz argument problem

text: I have this two commands to read x from y or y from x on a plot. The problem is that the label is 180:#3 with above position instread of #3 east position. The wish (less important) : how to merge the two commands in one ?               \newcommand{\ReadY}[3][180]{%         \draw[very thin, dashed] (axis cs:#2,0)|-(axis cs:0,#3) coordinate (Y) ;         \node[small dot,pin=#1:#3] at (Y) {};     }          \newcommand{\ReadX}[3][270]{%         \draw[very thin, dashed] (axis cs:0,#2)-|(axis cs:#3,0) coordinate (Y) ;         \node[small dot,pin=#1:#3] at (Y) {};     }      Has to be corrected to :               \newcommand{\ReadY}[3][180]{%         \draw[very thin, dashed] (axis cs:#2,0)|-(axis cs:0,#3) coordinate (Y) ;         \node[small dot,pin={[pin position={#1}]{#3}}] at (Y) {};     }          \newcommand{\ReadX}[3][270]{%         \draw[very thin, dashed] (axis cs:0,#2)-|(axis cs:#3,0) coordinate (Y) ;         \node[small dot,pin={[pin position={#1}]{#3}}] at (Y) {};     }      Is it possible to merge the two command in one ? I mean :   * the first argument is the optinal angle,   * the second is the value I know   * the third in the value give by the function and red on the plot (the image or the antecedent) the label has to be on this node. Minimal example :                \documentclass{standalone}      \usepackage{pgfplots}           % boite de couleur avec un filet autour      \tikzset{%          boxcolor/.style args={#1}{%        fill=#1!25!white,rectangle,rounded corners=4pt,font=\footnotesize,draw=#1},         small dot/.style={fill=black,circle,scale=0.3}}               \newcommand{\ReadY}[3][175]{%         \draw[very thin, dashed] (axis cs:#2,0)|-(axis cs:0,#3) coordinate (Y) ;         \node[small dot,pin={[boxcolor=green,pin position={#1}]{%                 \pgfmathprintnumber[use comma]{#3}}}] at (Y) {};     }          \newcommand{\ReadX}[3][265]{%         \draw[very thin, dashed] (axis cs:0,#2)-|(axis cs:#3,0) coordinate (Y) ;         \node[small dot,pin={[boxcolor=green,pin position={#1}]{%     \pgfmathprintnumber[use comma]{#3}}}] at (Y) {};     }          \begin{document}     \begin{tikzpicture}     \begin{axis}[xmax=2,xmin=-2,ymin=-2,ymax=2,     axis x line=center, axis y line=center]     \node[below left] at (axis cs:0,0) {\footnotesize $0$};     \ReadX{.5}{.5} ;     \ReadY{1}{1.5} ;     \end{axis}     \end{tikzpicture}          \end{document}      Tahnks to Peter Grill, with more options and even en node to put something on the point itself :               \NewDocumentCommand{\ReadXY}{%         D<>{green}% [#1] first color         o%% [#2] = optional parameters x pin             % (no x pin if no angle provided, which is the default)         m%  % {#3} = x value (mandatory paramater)         D<>{green}% [#4] second color         o%% [#5] = optional parameters for y pin             % (no y in if no angle provided, which is the default)         m%  % {#6} = y value (mandatory paramater)     }{%         \draw[very thin, dashed] (axis cs:#3,0) coordinate (ReadX)%             |- (axis cs:0,#6) coordinate (ReadY) ;         % new node on the point         \coordinate (ReadXY) at (axis cs:#3,#6) ;         %         \IfValueTF{#2}{%             \node[small dot,pin={[boxcolor=#1,pin position={#2}]                 {\smash[b]{\pgfmathprintnumber[use comma]{#3}}}}] at (ReadX) {};         }{}%         %         \IfValueTF{#5}{%             \node[small dot,pin={[boxcolor=#4,pin position={#5}]                 {\smash[b]{\pgfmathprintnumber[use comma]{#6}}}}] at (ReadY) {};         }{}%     }%