title: Resources for title page and front matter design

text: I need to create the area between the outer cover and the table of contents for a novel. This will present (at least partially, but preferably at a minimum):   * the title   * the author's name   * the translator's name   * the year of first publication   * the name of the book series I basically need a place to display this information, but (perhaps or preferably) not all crowded into the same page. Most of the documentation I have read suggests that this is a highly important part of all books and that the book-makers need to creation this part of the book themselves. So, I am looking for resources which will aid LaTeX book-makers (such as myself) in creating this part of the book. So far, I have found:   * http://en.wikibooks.org/wiki/LaTeX/Title_Creation This contains a lot of details, but there was only 1 example, which is not very suitable for a work of fiction.   * http://ctan.org/tex-archive/info/latex-samples/TitlePages This has some great-looking examples, however, the dependencies are all very complicated (i.e. knowing which packages to load in order to compile an example requires familiarity with dozens of packages), and they are also limited to 1 page. Most of the other resources I have seen appear more suited for writers of technical documentation or thesis on A4 paper. I am not sure how well this translates to works of fiction printed on a small size for reading on a park bench. I have found no examples focused on novel-sized material, focusing on use of the book, octavo class or fiction-focused classes, or with styles suitable for works of fiction (either old or new). I'm looking for at least 1 of these:   * Explanations or links to documents describing the design aspects of title pages and front matter relevant to fiction (or novels in general); old or new methods (any is appropriate).   * Explanations or links to documents describing how to achieve good results between `\begin{titlepage}` and `\end{titlepage}` (i.e. achieving proper placement of the elements).   * Links to or samples of source code (either from real works or produced as demonstration code).   * Suggestions for packages, macros, fonts, and other design elements which could benefit users wishing to create title pages and front matter for their works.   * Large or small ideas for how to achieve an excellent-looking title page and front matter with LaTeX (or in general).


title: Cannot compile using the newpx package

text: As basic as:               \documentclass[letterpaper]{article}     \usepackage{newpxtext}     \begin{document}     test     \end{document}      does not compile. It issues an error:               !pdfTeX error: pdflatex (file T1-TeXGyrePagellaX-Regular-lnum-kern-liga--base):      Font T1-TeXGyrePagellaX-Regular-lnum-kern-liga--base at 600 not found      ==> Fatal error occurred, no output PDF file produced!      I am using MiKTeX 2.9. I suppose the font has not been created or I am doing something wrong but I cannot get it to compile. An insights? How can I get the font created?


title: linerange in listinput firstnumber conflicts with stepnumber

text: If I create a code include as follows:               \lstinputlisting[linerange=39-46, firstnumber=39]{./Matlab/script.m}      And set the stepnumber to 5 in the lstset:               \lstset{...,stepnumber = 5, ...}      Line 40, 45 and 39 are numbered but I only want to number line 1, 5, 10 etc. So in this example 39 should not be displayed. Firstnumber=auto starts not at the true line number.


title: Table in cvline using moderncv

text: I would like to create in my CV, using `moderncv`, a table with two columns. It should look like:               -------- Experience               * Item 1          x                                 x                                 x      and it should be below the text of `\section`. I tried the following code, but from a reason I do not understand I get an error               \documentclass{moderncv}     \moderncvtheme{casual}          \usepackage[scale=0.8]{geometry}     \recomputelengths          \firstname{first}     \familyname{last}          \begin{document}      \section{Experience}         %\cvline{}{\begin{tabular}{ll}         \cvline{}{\begin{tabular}{p{5cm}p{5cm}}                         \begin{itemize}                             \item Item 1                         \end{itemize} & x \\                                       & x \\                                       & x                     \end{tabular}}     \end{document}      **EDIT** after changing `\cvline{}{\begin{tabular}{ll}` to `\cvline{}{\begin{tabular}{p{5cm}p{5cm}}` the error disappeared, but `Item 1` was not at the same line with `x`.


title: why does newtxmath fail to work with pdflatex and libertine

text: There seems to be some sort of incompatibility between the `newtxmath` package and `libertine-legacy`; the following code fails to compile:                \documentclass{article}      \usepackage[libertine]{newtxmath}      \begin{document}      $a = 1$      \end{document}      when compiled through `pdflatex`, as it results in latex trying to find a `Libertine-nu` font which doesn't seem to exist:               kpathsea: Running mktextfm Libertine-nu     /usr/local/texlive/2012/texmf/web2c/mktexnam: Could not map source abbreviation L for Libertine-nu.     /usr/local/texlive/2012/texmf/web2c/mktexnam: Need to update /usr/local/texlive/2012/texmf-dist/fonts/map/fontname/special.map?     mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input Libertine-nu      I installed the latest version of the package from: http://mirrors.ctan.org/install/fonts/libertine-legacy.tds.zip today, and haven't tried this before so don't know if it's a recent breakage or not. I'd prefer to continue using `pdflatex` because the `microtype` package that doesn't seem to work well with `lualatex` or `xelatex` yet. Changing the package over to use the `libertineotf` package and compiling with `xelatex` does work.


title: Changing the font of Eprint fields in biblatex

text: I would like to have Eprint information displayed in my bibliography, but in the same font as the surrounding text. Changing the `verbatim` font for the document apparently does not accomplish this. Here is a minimum working example demonstrating the problem. the `\verb|text|` command within the document appears in `\rmfamily` as it should, but the arXiv pre-print information in the bibliography still appears in `\ttfamily`.               \documentclass{article}          \begin{filecontents}{\jobname.bib}     @article{paper,     Author = {Some One},     Title = {Important things},     Journal = {A.~Reput.~J.},     Year = {2000},     Eprint = {1234.5678},     Eprintclass = {fa.KE},     Eprinttype = {arXiv}     }     \end{filecontents}          \usepackage[bibstyle=numeric]{biblatex}     \addbibresource{\jobname.bib}          \makeatletter     \def\verbatim@font{\normalfont\rmfamily}     \makeatother          \begin{document}     One paper is \cite{paper}, and some verbatim text is     \verb|arXiv:1234.5678 [fa.KE]|.          \printbibliography     \end{document}      This results in the following output, with the arXiv reference in the main text appearing in `\rmfamily` even though it was typeset with the `\verb` command, but the same text in the bibliography still in `\ttfamily`: ![Output of MWE](http://i.stack.imgur.com/JK1AA.jpg) How can I change the font used to display Eprint records in a `biblatex` bibliography?


title: MiKTeX update: a too old babel/frenchb

text: This question deals with the version of a `babel` language available after a MiKTeX update (the french one, namely `frenchb.dtx`). I've just made an update of my (complete) MiKTeX 2.9, especially interested in the package `menukeys` and in `frenchb`; the result of the update is (with a `\listfiles`):   * `frenchb.ldf` 2009/03/16 v2.3d   * `menukeys.sty` 2012/04/11 v1.1b However, `menukeys` requires a feature from a more recent `frenchb` to avoid a ''french bug'' (if not mistaken, on CTAN there is `frenchb.dtx` 2010/08/21 v2.5a). Questions: does my problem (= not having a recent enough version of `frenchb` after a MiKTeX update) come from MiKTeX? If yes, could MiKTeX provide that version 2.5? or is there something preventing it? (My temporary solution is to manually update `frenchb` as suggested by its author... it works fine but I still wonder why I can't get it from the MiKTeX update).


title: Using BibTeX for bibliography

text: I created a BibTex database for the references for my document. The `abc.bib` which resides in the same directory as `.tex` file resides.                    @conference{ref1,          author  = {Chris H. Q. Ding and Xiaofeng He and Hangyuan Zha},          title   = {A spectral method to separate disconnected and nearly-disconnected web graph componenets},          booktitle = {KDD},          year    = 2001          }      and i have embedded following code in the `.tex` file.                   \bibliographystyle{plane}         \bibliography{abc}         \end{document}      I am using kile to compile and run the command ` Build->quickBuild ` and i get the following error. Moreover i don't get any citation in my report. Instead i see inverted `?`.What can be the reason for it? [EDIT] One thing i forget to mentioned here is , i am getting following error message:                [BibTex]thesis.aur => thesis.bbl(bibtex)      [BibTex] finished with exit code 2      and the package inclusion is :               \documentclass{report}     \usepackage[english]{babel}     \usepackage{amsmath}     \usepackage{algorithmic}     \usepackage{algorithm}     \usepackage[all]{xy}


title: Best option to create vector graphics with LaTeX labels

text: I would like to create some vector graphics for my LaTeX documents. The graphics would often contain mathematical expressions that would should be typeset using LaTeX. As far as I know, my best options are:   * Using Tikz or similar packages   * Use Inkscape in combination with plugins that allow to render latex formulas. The problems with these two options are that TikZ is quite complicated to use with complicated diagrams and that Inkscape is difficult to use on non-Linux operating systems. Could you please tell me if there are other options on Mac OS X?


title: How to measure the width of a longtable dynamically and use this width in footer?

text: I'm having trouble computing the width of a `longtable` and using it later in the table. This site offers several suggestions and I have implemented one of them. However, because of scope, or because of some of the nuances of `longtable`, the `\global\advance\variable` trick isn't working properly. Below is my current output. The NOTES are supposed to extend to the last column. ![sample table](http://i.stack.imgur.com/CHURS.jpg) Here is the code that produces the figure above. I realize that there are several tricks to get more sophisticated with the use of `newenvironment` and `newcolumntype`, but for purposes of debugging, I got close to bare metal. A previous question and answer on this side helped clean up the table and the command `\rulefiller` is a result of this.               \documentclass[11pt]{article}          \usepackage{array,multirow,ctable,longtable}     \usepackage{color,colortbl}          \setlength{\aboverulesep}{0pt}     \setlength{\belowrulesep}{0pt}     \setlength{\extrarowheight}{0.25ex}          \newlength{\spacebeforetotals}     \setlength{\spacebeforetotals}{0.5ex}     \newlength{\noteswidth}          \newlength{\spacebeforenotes}     \setlength{\spacebeforenotes}{0.0pt}          \definecolor{pantone120}{cmyk}{0.00,0.06,0.60,0.00}  % Pantone 120     \definecolor{buzzgold}{cmyk}{0.00,0.34,1.00,0.12}   % Buzz Gold          \newcommand{\tableshadingcolor}{pantone120}  % set this to change background shading of tables     \newcommand{\tablerulecolor}{black}          \newcolumntype{L}{>{\columncolor{\tableshadingcolor}}l}     \newcolumntype{C}{>{\columncolor{\tableshadingcolor}}c}     \newcolumntype{R}{>{\columncolor{\tableshadingcolor}}r}          \newcommand*{\rulefiller}{%       \arrayrulecolor{\tableshadingcolor}% change to cell colour       \specialrule{\heavyrulewidth}{0pt}{-\heavyrulewidth}% "invisible" rule       \arrayrulecolor{\tablerulecolor}% revert to regular line colour     }     \newsavebox{\mycolwidthbox}% box to save cells in          \begin{document}          \section{Research}     Table \ref{tab:research1} presents a summary of sponsored research by funds source over time.     \setlength{\global\noteswidth}{-\tabcolsep}%     \textsf{%     % latex table generated in R 2.13.1 by xtable 1.6-1 package     % Mon Oct 24 07:31:24 2011     {\footnotesize     \begin{longtable}{L     >{\begin{lrbox}{\mycolwidthbox}\setlength{\global\noteswidth}{-\tabcolsep}}L<{\end{lrbox}\global\advance\noteswidth by \wd\mycolwidthbox\global\advance\noteswidth by \tabcolsep\usebox{\mycolwidthbox}}     >{\begin{lrbox}{\mycolwidthbox}}R<{\end{lrbox}\global\advance\noteswidth by \wd\mycolwidthbox\global\advance\noteswidth by \tabcolsep\usebox{\mycolwidthbox}}     >{\begin{lrbox}{\mycolwidthbox}}R<{\end{lrbox}\global\advance\noteswidth by \wd\mycolwidthbox\global\advance\noteswidth by \tabcolsep\usebox{\mycolwidthbox}}     >{\begin{lrbox}{\mycolwidthbox}}R<{\end{lrbox}\global\advance\noteswidth by \wd\mycolwidthbox\global\advance\noteswidth by \tabcolsep\usebox{\mycolwidthbox}}     >{\begin{lrbox}{\mycolwidthbox}}R<{\end{lrbox}\global\advance\noteswidth by \wd\mycolwidthbox\global\advance\noteswidth by \tabcolsep\usebox{\mycolwidthbox}}     >{\begin{lrbox}{\mycolwidthbox}}R<{\end{lrbox}\global\advance\noteswidth by \wd\mycolwidthbox\global\advance\noteswidth by \tabcolsep\usebox{\mycolwidthbox}}     >{\begin{lrbox}{\mycolwidthbox}}R<{\end{lrbox}\global\advance\noteswidth by \wd\mycolwidthbox\global\advance\noteswidth by \tabcolsep\usebox{\mycolwidthbox}}L}       \nopagebreak & \multicolumn{7}{@{}L}{\scriptsize } & \\%     \nopagebreak & \multicolumn{7}{@{}L}{\small {\tablename\ \thetable{}}} & \\%     \nopagebreak & \multicolumn{7}{@{}L}{\small {\textbf{Research expenditures by funds source over time}}} & \\%     \nopagebreak & \multicolumn{7}{@{}L}{\scriptsize{dollars}} & \\%     \nopagebreak\rulefiller\cmidrule[\heavyrulewidth]{2-8}      \nopagebreak & variable & FY05 & FY06 & FY07 & FY08 & FY09 & FY10 & \\%     \nopagebreak\rulefiller\cmidrule[\lightrulewidth]{2-8}      \endfirsthead      \nopagebreak & \multicolumn{7}{C}%     {\tablename\ \thetable{} -- continued from previous page} & \\%     \nopagebreak\rulefiller\cmidrule[\heavyrulewidth]{2-8}      \nopagebreak & variable & FY05 & FY06 & FY07 & FY08 & FY09 & FY10 & \\%     \nopagebreak\rulefiller\cmidrule[\lightrulewidth]{2-8}      \endhead      \nopagebreak\rulefiller\cmidrule[\heavyrulewidth]{2-8}      \nopagebreak & \multicolumn{7}{R@{}}{{Continued on next page}} & \\%     \endfoot%      \nopagebreak\rulefiller\cmidrule[\heavyrulewidth]{2-8}%     \nopagebreak & \multicolumn{7}{@{}L}{%     \begin{minipage}[t]{\noteswidth}\vspace{\spacebeforenotes}\scriptsize\noindent     NOTES: Research Expenditures represents the numbers of contracts and the amounts of expenditures for each department or research center for the given fiscal year.  Research Expenditures include cost sharing and matching funds; administrative, indirect, and other overhead expenses to the extent that they have been charged to a particular grant or other funding source; teaching, if instruction has formed a part of a separately funded research program or is significantly experimental in nature; and engineering-related research.     \end{minipage}     } & \\%     \nopagebreak & \multicolumn{7}{R@{}}{\scriptsize\textit{GIT analysis of ASEE Profiles 2010}} & \\%     \endlastfoot%      \nopagebreak  & Federal & 110,772,000 & 103,329,000 & 107,915,000 & 110,262,000 & 139,247,000 & 127,611,000 &  \\        \nopagebreak  & Foreign & 1,024,000 & 988,000 & 1,383,000 & 1,929,000 & 1,768,000 & 4,730,000 &  \\         & Individual & 5,869,000 & 6,415,000 & 7,167,000 & 8,581,000 & 9,545,000 & 7,886,000 &  \\         & Industry & 5,786,000 & 30,474,000 & 32,962,000 & 32,208,000 & 39,622,000 & 38,762,000 &  \\         & Local & 118,000 & 62,000 & 24,000 & 92,000 & 50,000 & 82,000 &  \\         & Nonprofit & 26,875,000 & 6,109,000 & 6,608,000 & 10,310,000 & 12,741,000 & 9,179,000 &  \\        \nopagebreak  & State & 51,750,000 & 56,300,000 & 63,345,000 & 61,954,000 & 54,310,000 & 51,757,000 &  \\         [\spacebeforetotals]%     \nopagebreak  & (all) & 202,194,000 & 203,677,000 & 219,404,000 & 225,336,000 & 257,283,000 & 240,007,000 & %     \label{tab:research1}     \end{longtable}     }     }     \end{document}      What am I missing? I believe that scoping is handled properly with the `\global` variable. My only guess is that the `longtable` environment isn't processing in a manner that works with the `\newsavebox` and `\advance` tricks.


title: Did Knuth actually design the Computer Modern font?

text: It seems from all the articles I read on the topic that Knuth actually designed the font from ground up. He's a celebrated computer scientist, but was he also a digital calligraphy genius? That's a little astonishing to my mind.


title: Bibliography compilation error with biblatex

text: After starting to use biblatex library from bibtex files can not be compiled any more. Here is my tex file:               \documentclass{article}     \usepackage[style=authortitle-icomp,natbib=true,sortcites=true, block=space]{biblatex}     \bibliography{item}     \begin{document}     Lorem\footcite{helbing_stochastic_1996} ipsum dolor sit amet, consectetur adipiscing elit.     \printbibliography[title=Works Cited] %(5)     \end{document}}      And here is my bibliography file:               @article{helbing_stochastic_1996,         title = {A stochastic behavioral model and a ‘microscopic’foundation of evolutionary game theory},         volume = {40},         number = {2},         journal = {Theory and decision},         author = {Helbing, D.},     year = {1996},     pages = {149–179}     }      Footnote citation is very important for me so using biblatex is essential.


title: Let bibtex declare and use acronyms in reference section

text: Suppose I have a two (or, in fact, an arbitrary number of) bibtex entries as follows: > @inproceeding{one,author = {Paul Elk}, title = {Moo}, series = {The Original > Oak Likes Our Natural Ginseng}, ...} > > @inproceeding{one,author = {Darma Shian}, title = {Waf}, series = {The > Original Oak Likes Our Natural Ginseng}, ...} As you may guess, the series name takes a lot of room in the references section. I know there is a way (but I can't find it any more) to have latex/bibtex work so that the end result looks like: > [1] Paul Elk. Moo. In ..., volume 1 of The Original Oak Likes Our Natural > Ginseng (henceforth 'TOOLONG'), 1942.   >  [2] Darma Shian, Waf, In ..., volume 2 of TOOLONG, 1955. Ideally, that would work for any number of entries, whatever order they appear in. It is ok for me to choose the acronym, no need to infer it computationally.


title: Why arrow head not shown for this code?

text: \begin{tikzpicture}     \tikzstyle{every node}=[draw,shape=circle];     \node (v3) at (4, 0) {$v_3$};     \node (v5) at (2, -2) {$v_5$};     \draw [->] (v3)--(v5);     \end{tikzpicture}      The above code gives me: ![enter image description here](http://i.stack.imgur.com/eQWZ8.png) Where there is no arrow head. But if you change the coordinate of `(v5)`, like `(3,-1.5)`, then I will have: ![enter image description here](http://i.stack.imgur.com/LtYxY.png) Where a very tiny arrow head appears at node `(v5)`. Am I missing something? Thanks EDIT: as suggested by @Cmhughes, I installed texlive from `ubuntu 13.04` official repo. And `\listfiles` outputs:                *File List*          nag.sty    2011/11/25 0.7 warning about old commands (ulmi)     nag-l2tabu.cfg    2010/05/17 v2.11 l2tabu rules for nag.sty (ulmi)     nag-orthodox.cfg    2006/04/19 v1.8 strict rules for nag.sty (ulmi)      article.cls    2007/10/19 v1.4h Standard LaTeX document class       size10.clo    2007/10/19 v1.4h Standard LaTeX file (size option)         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)     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       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)       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)       xcolor.sty    2007/01/21 v2.11 LaTeX color extensions (UK)        color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive      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          url.sty    2006/04/12  ver 3.3  Verb mode for urls, etc.     hyperref.sty    2012/05/13 v6.82q 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)     ifluatex.sty    2010/03/01 v1.3 Provides the ifluatex switch (HO)       ifvtex.sty    2010/03/01 v1.5 Detect VTeX and its facilities (HO)      intcalc.sty    2007/09/27 v1.1 Expandable calculations with integers (HO)        ifpdf.sty    2011/01/30 v2.3 Provides the ifpdf switch (HO)     etexcmds.sty    2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO)     kvsetkeys.sty    2012/04/25 v1.16 Key value parser (HO)     kvdefinekeys.sty    2011/04/07 v1.3 Define keys (HO)     pdftexcmds.sty    2011/11/29 v0.20 Utility functions of pdfTeX for LuaTeX (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)      ifxetex.sty    2010/09/12 v0.6 Provides ifxetex conditional     kvoptions.sty    2011/06/30 v3.11 Key value format for package options (HO)       pd1enc.def    2012/05/13 v6.82q Hyperref: PDFDocEncoding definition (HO)     hyperref.cfg    2002/06/06 v1.2 hyperref configuration of TeXLive      hpdftex.def    2012/05/13 v6.82q Hyperref driver for pdfTeX     rerunfilecheck.sty    2011/04/15 v1.7 Rerun checks for auxiliary files (HO)     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      nameref.sty    2010/04/30 v2.40 Cross-referencing by name of section     gettitlestring.sty    2010/12/03 v1.4 Cleanup title references (HO)


title: Fancy page style conflict with bibliography

text: I am using the following code to in my LaTeX document to create bibliography.               \lhead{References}          \chead{}          \rhead{\thepage}          \pagestyle{plain}          \bibliographystyle{IEEEtran}          \bibliography{References/references}      This code shows header only on the first page of bibliography and other 4 pages don't have headers. Would someone please help me to solve this problem. I would like to have headers on all pages of bibliography. Thanks.


title: Multiline listing in a table environment

text: I'm trying to simulate an effect that is very easy to do in WYSIWYG environments, namely having a table with some cells containing somewhat complex multi-line entities. For instance, consider the following table (created with OpenOffice): ![table](http://i.stack.imgur.com/4hyyZ.png) In particular, I'm concerned about the middle cell at the bottom there; I can't find a way to create that in LaTeX using the `table` environment. The problem seems to be that it has no way of distinguishing the `\\\` linebreak as referring to the contents of the cell, or to the structure of the table. I know about the `multirow` package and how it theoretically allows things like this, but only in the clumsiest of ways; I would have to set something like a colspan on every row of that source. If I were to add a line to the beginning of the listing, I'd have to manually shift each row after that down. What I would love is some sort of easy thing to wrap my code in which makes it all belong to a single table row. I feel certain there must be a way to do that, but Google wasn't being very helpful, so I thought I'd ask here.


title: How to explain LaTeX to an author from a structured authoring background

text: Technical authoring, especially in the computer documentation genre, is commonly discussed in terms of structured authoring, and might be becoming synonymous with it. In structured authoring, the "meaning" of the text is kept seperate from the "presentation" of the text. DITA is a commonly-discussed standard. Within LaTeX communities, the presentation of the text is regarded as very important, even (and particularly) in technical and scientific documents. How can I explain the advantages of using LaTeX to an author or editor from a structured authoring background?


title: How can I set single spacing in todonotes?

text: **Question** How can I `\renewcommand{\todo}` to give single spacing in the todonotes of an otherwise double spaced document? **What I have tried** The documentation (p. 11, section 1.8.6) suggests that something like this should work (with todonotes.sty in the proper directory), but it doesn't:               \documentclass[12pt]{article}                   \usepackage{setspace}     \doublespacing     \usepackage[backgroundcolor=white,textsize=tiny]{todonotes}     \newcommand{\smalltodo}[2][]          {\todo[caption={#2}, #1]         {\begin{spacing}{0.5}#2\end{spacing}}}      \begin{document}     \smalltodo[inline]{testing todonotes here with single spacing}     \end{document}      giving the following error:               Runaway argument?     {\todo [caption={##2}, ##1] {\begin {spacing}{0.5}##2\end {spacing}} \ETC.     ! File ended while scanning use of \@xargdef.      But I can't figure out the error. Once I get this to work, can I just replace `\newcommand{\smalltodo}` with `\renewcommand{\todo}` ?


title: How to find out largest ((sub)sub)section number in a document?

text: I would like to create a number of the form `a/b` where `a` denotes the current section (easy) and `b` the maximal section number in the document (this I am struggling with). Similarly for subsections and subsubsections. For the example below, it should thus be `2/3.1/1.3/4`. How can I find out the maximal ((sub)sub)section number in the document? _Update_ : After David's comment, I used `\label{}` to refer to the last ((sub)sub)section. However, for subsections and subsubsections, `\ref{}` includes the section or subsection number as well. How can this be avoided?               \documentclass{article}          \usepackage{units}          \newcommand\sectionnum{\arabic{section}}     \newcommand\subsectionnum{\arabic{subsection}}     \newcommand\subsubsectionnum{\arabic{subsubsection}}          \begin{document}     \section{Section 1}     \section{Section 2}     \subsection{Subsection 2.1}\label{lastsubsec}     \subsubsection{Subsubsection 2.1.1}     \subsubsection{Subsubsection 2.1.2}     \subsubsection{Subsubsection 2.1.3}     Now we are in Section \nicefrac{\sectionnum}{\ref{lastsec}}.\nicefrac{\subsectionnum}{\ref{lastsubsec}}.\nicefrac{\subsubsectionnum}{\ref{lastsubsubsec}}     % should give 2/3.1/1.3/4     \subsubsection{Subsubsection 2.1.4}\label{lastsubsubsec}     \section{Section 3}\label{lastsec}     \end{document}


title: XeLaTeX problem? Undefined control sequence.

text: I'm new to LaTeX. I downloaded a template for making a CV. here It says to be compiled with biber and XeLaTeX Im trying with `xelatex vc_10.tex` but always getting errors, fixed them by searching the web but with this one I'm completely stuck. Can anyone help with this one?               (/usr/share/texlive/texmf-dist/tex/latex/hyperref/hxetex.def     (/usr/share/texlive/texmf-dist/tex/latex/hyperref/puenc.def)     (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/stringenc.sty)     (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty))     (/usr/share/texmf/tex/latex/biblatex/lbx/english.lbx) (./cv_10.aux)     (/usr/share/texmf/tex/latex/tipa/t3cmr.fd)     ! Undefined control sequence.     \um_set_mathsymbol:nNNn #1#2#3#4->\tl_case:Nnn                                                     #3{\mathop {\um_set_big_opera...     l.27 \begin{document}      these are the first lines of the file               \documentclass[]{friggeri-cv} % Add 'print' as an option into the square bracket to remove colors from this template for printing          \addbibresource{bibliography.bib} % Specify the bibliography file to include publications          \begin{document}      and gives the error on the `\begin{document}`


title: Type1 fonts and musixtex

text: Thanks to @cgnieder, I can now typeset the full range of a piano. Now, I'd like to use the `utopia-mathdesign` package.               \documentclass{standalone}     \usepackage[T1]{fontenc}     \usepackage[utopia]{mathdesign}     \usepackage{musixtex}     \begin{document}     \begin{music}     \instrumentnumber{1}     \setstaffs{1}{2}     \setclef{1}{60}     %     \startextract     \notes|\qu{cdefg'ab}\enotes     \zendextract     \end{music}     \end{document}      Unfortunately, LaTeX fails with               [skipped beginning of log file]     MusiXTeX(c) 1.15 <3 April 2011>          kpathsea: Running mktextfm mdr0800     mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input mdr0800     This is METAFONT, Version 2.718281 (TeX Live 2012)               kpathsea: Running mktexmf mdr0800     ! I can't find file `mdr0800'.     <*> ...=ljfour; mag:=1; nonstopmode; input mdr0800          Please type another input file name     ! Emergency stop.     <*> ...=ljfour; mag:=1; nonstopmode; input mdr0800          Transcript written on mfput.log.     grep: mdr0800.log: Aucun fichier ou dossier de ce type     mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input mdr0800' failed to make mdr0800.tfm.     kpathsea: Appending font creation commands to missfont.log.     /usr/local/texlive/2012/texmf-dist/tex/generic/musixtex/musixtex.tex:575: Font      \eightrm=mdr0800 not loadable: Metric (TFM) file not found.     <to be read again>                         \font      l.575   \font                  \eightbf=\fontid bx0800     ?       It's been a while since I encountered such problems. What can I do?


title: Disabling backref in secondary multibib bibliography with natbib

text: I am finalising my PhD thesis that I have composed with LaTeX. I have a section in which I list my own publications and the whole list of references at the very end of the document. This list is rather long and I decided to include back references to ease the reading. I used a combination of `natbib`, `multibib` and `backref`. Unfortunately, this enabled them on the secondary bibliography containing my own publications as well. How am I supposed to disable back references for publications and enables them for the bibliography? I think I burnt my brain and I can not find a solution on my own! Anyway, please find attached a minimal working example. _Bonus question:_ I included my own works in `publications.bib` and I repeated them in `biblio,bib` (the main bibliography DB) adding a `copy` suffix to their keys, not to mess with them. Is there a more clever way than the one I pursued to cite them and list them in the `Publications` paragraph of the thesis, and list them in the main bibliography with all the back references but those in the `Publications` paragraph? **main.tex**               \documentclass{scrreprt}          \usepackage[english]{babel}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}          \usepackage[square,numbers,sort&compress]{natbib}     \usepackage[resetlabels]{multibib}     \newcites{publications}{\null}          \usepackage[pdftex]{hyperref}     \usepackage[hyperpageref]{backref}     \usepackage{bookmark}          \newcommand{\backrefnotcitedstring}{\relax} %(Not cited.)     \newcommand{\backrefcitedsinglestring}[1]{\\\textsmaller{(Cited on page~#1)}}     \newcommand{\backrefcitedmultistring}[1]{\\\textsmaller{(Cited on pages~#1)}}     \renewcommand{\backreftwosep}{ and~} % separate 2 pages     \renewcommand{\backreflastsep}{, and~} % separate last of longer list     \renewcommand*{\backref}[1]{}  % disable standard     \renewcommand*{\backrefalt}[4]{\ifcase #1 \backrefnotcitedstring \or \backrefcitedsinglestring{#2} \else \backrefcitedmultistring{#2} \fi}          \begin{document}         \chapter*{Publications}         Some ideas and figures have previously and partially appeared in \citep{me2012a,me2012b}.         \begingroup                  \let\clearpage\relax                 \vspace{-6ex}             \nocitepublications{*}             \bibliographystylepublications{abbrvnat}             \bibliographypublications{publications}         \endgroup              \chapter{Introduction}          In this thesis I take some of the concepts that I introduced in \citep{me2012acopy,me2012bcopy} and I quote others proposed in \citep{he2011,she2011,them2011}.              \appendix            \bibliographystyle{abbrvnat}         \bibliography{biblio}     \end{document}      **publications.bib**               @article {me2012a,       author = {Me, I},       title = {Title 1},       journal = {A Journal},       journaltitle = {A Journal},       year = {2012}     }          @article {me2012b,       author = {Me, I},       title = {Title 2},       journal = {A Journal},       journaltitle = {A Journal},       year = {2012}     }      **biblio.bib**               @article {me2012acopy,       author = {Me, I},       title = {Title 1},       journal = {A Journal},       journaltitle = {A Journal},       year = {2012}     }          @article {me2012bcopy,       author = {Me, I},       title = {Title 2},       journal = {A Journal},       journaltitle = {A Journal},       year = {2012}     }          @article {he2011,       author = {He, Author},       title = {Title He},       journal = {A Journal},       journaltitle = {A Journal},       year = {2011}     }          @article {she2011,       author = {She, Author},       title = {Title She},       journal = {A Journal},       journaltitle = {A Journal},       year = {2011}     }          @article {them2011,       author = {Them, Authors},       title = {Title Them},       journal = {A Journal},       journaltitle = {A Journal},       year = {2011}     }


title: Glossaries with section as counter does not work in appendix

text: I would like to use the glossaries package with the option `counter=section`. This works well as long as I don't use any glossary entries in the appendix. It seems the section counter is reset by the `\appendix` command. It turns out that section A.1 is called 1.1, B.1 is called 2.1 and so on. I am using the makeglossaries script and a minimal example is:               \documentclass{report}          \usepackage[counter=section]{glossaries}          \makeglossaries          \newglossaryentry{gte}{name=GTE,description={Glossary Test Entry}}          \begin{document}          \chapter{Normal chapter}          \section{Normal section}          This is section 1.1 without a glossary entry.          \chapter{Normal chapter}          \section{Normal section}          A \gls{gte} in section 2.1.          \appendix          \chapter{Appendix chapter}          \section{Appendix section}          A \gls{gte} in appendix A.1.          \printglossary          The glossary indicates appearance in 1.1 and 2.1 instead of 2.1 and A.1.          \end{document}


title: Forward/inverse search for Texmaker on OS X

text: I have just started to use an Apple computer and want to use Texmaker. But forward/inverse search does not work at all. I am trying to follow the instructions but I'm not successful. What could I be doing wrong?


title: Citation with initals of authors

text: I use `biblatex` with `biber` and as style `alphabetic`               \usepackage[backend = biber, style=alphabetic ,maxnames=4,minnames=3,maxbibnames=99]%       {biblatex}      At the moment, I get for all bibliography entries with more than 4 authors something like `[McW+07]` (first three letters of the family name of the first author) but I would like to get `[MBC+07]`. (`M`, `B` and `C` are the initials of the first three authors) Is there a way to change my LaTeX code to solve my problem?


title: multibib with backref in classicthesis

text: I have an issue (maybe two) with `multibib` and `classicthesis`. I want to use two `.bib` files and use the package `backref` in order to show "cited on …" in the bibliography. If I do not use the package `multibib`, I have no problem, however, when I use this package, at least, the "first bibliography" appears without back references. I would like also to cite in the main text one of the bibliography with roman numbers (i.e, [I]) instead of the classical number (1). Any help with these simple problems? I attach a MWE, in \input{classicthesis-config} I have used the package multibib just before of backreference, i.e.,               \usepackage{multibib}         \newcommand{\backrefnotcitedstring}{\relax}%(Not cited.)      The MWE is the following               \documentclass[ twoside,openright,titlepage,numbers=noenddot,headinclude,%1headlines,% letterpaper a4paper                 footinclude=true,cleardoublepage=empty,abstractoff, % <--- obsolete, remove (todo)                 BCOR=5mm,paper=a4,fontsize=11pt,%11pt,a4paper,%                 ngerman,american,%                 ]{scrreprt}          \input{classicthesis-config}               \begin{document}          \pagestyle{plain}          First setup references:     \citepri{cormen:2001}...     Second setup of references      \cite{bentley:1999}          \bibliographystylepri{plainnat}     \bibliographypri{Bibliography}          \bibliographystyle{plain}     \bibliography{Bibliography}          \end{document}      And the outpout references are the following (see the links, I do not have enough reputation): http://s24.postimg.org/ki5b4xmw5/image.jpg http://s15.postimg.org/v1cqx84ff/image.jpg The file classicthesis-config is the following:               \PassOptionsToPackage{eulerchapternumbers,listings,drafting,%                  pdfspacing,%floatperchapter,%linedheaders,%                  subfig,beramono,eulermath,parts}{classicthesis}                                                  \usepackage{ifthen}     \newboolean{enable-backrefs} % enable backrefs in the bibliography     \setboolean{enable-backrefs}{true} % true false          \newcommand{\myTitle}{A Classic Thesis Style\xspace}     \newcommand{\mySubtitle}{An Homage to The Elements of Typographic    Style\xspace}     \newcommand{\myDegree}{Doktor-Ingenieur (Dr.-Ing.)\xspace}     \newcommand{\myName}{Andr\'e Miede\xspace}     \newcommand{\myProf}{Put name here\xspace}     \newcommand{\myOtherProf}{Put name here\xspace}     \newcommand{\mySupervisor}{Put name here\xspace}     \newcommand{\myFaculty}{Put data here\xspace}     \newcommand{\myDepartment}{Put data here\xspace}     \newcommand{\myUni}{Put data here\xspace}     \newcommand{\myLocation}{Darmstadt\xspace}     \newcommand{\myTime}{August 2012\xspace}     \newcommand{\myVersion}{version 4.1\xspace}          \newcounter{dummy} % necessary for correct hyperlinks (to index, bib, etc.)          \PassOptionsToPackage{latin9}{inputenc} % latin9 (ISO-8859-9) = latin1+"Euro sign"     \usepackage{inputenc}                         \usepackage{babel}                            \PassOptionsToPackage{square,numbers}{natbib}     \usepackage{natbib}                       \PassOptionsToPackage{fleqn}{amsmath}       % math environments and more by the AMS      \usepackage{amsmath}          \usepackage{xspace} % to get the spacing after macros right       \usepackage{mparhack} % get marginpar right          \usepackage{acronym} % nice macros for handling all acronyms in the thesis          \usepackage{subfig}            \usepackage{listings}           \lstset{language=[LaTeX]Tex,%C++,     keywordstyle=\color{RoyalBlue},%\bfseries,     basicstyle=\small\ttfamily,     %identifierstyle=\color{NavyBlue},     commentstyle=\color{Green}\ttfamily,     stringstyle=\rmfamily,     numbers=none,%left,%     numberstyle=\scriptsize,%\tiny     stepnumber=5,     numbersep=8pt,     showstringspaces=false,     breaklines=true,     frameround=ftff,     frame=single,     belowcaptionskip=.75\baselineskip     %frame=L     }           %****My references***     \usepackage{multibib}     \newcites{pri}{Primary sources}     ********************     \PassOptionsToPackage{pdftex,hyperfootnotes=false,pdfpagelabels}{hyperref}     \usepackage{hyperref}  % backref linktocpage pagebackref     \pdfcompresslevel=9     \pdfadjustspacing=1      \PassOptionsToPackage{pdftex}{graphicx}     \usepackage{graphicx}           \newcommand{\backrefnotcitedstring}{\relax}%(Not cited.)     \newcommand{\backrefcitedsinglestring}[1]{(Cited on page~#1.)}     \newcommand{\backrefcitedmultistring}[1]{(Cited on pages~#1.)}     \ifthenelse{\boolean{enable-backrefs}}%     {%         \PassOptionsToPackage{hyperpageref}{backref}         \usepackage{backref} % to be loaded after hyperref package             \renewcommand{\backreftwosep}{ and~} % separate 2 pages            \renewcommand{\backreflastsep}{, and~} % separate last of longer list            \renewcommand*{\backref}[1]{}  % disable standard            \renewcommand*{\backrefalt}[4]{% detailed backref               \ifcase #1 %                  \backrefnotcitedstring%               \or%                  \backrefcitedsinglestring{#2}%               \else%                  \backrefcitedmultistring{#2}%               \fi}%      }{\relax}            \hypersetup{%     %draft, % = no hyperlinking at all (useful in b/w printouts)     colorlinks=true, linktocpage=true, pdfstartpage=3, pdfstartview=FitV,%     % uncomment the following line if you want to have black links (e.g., for printing)     %colorlinks=false, linktocpage=false, pdfborder={0 0 0}, pdfstartpage=3, pdfstartview=FitV,%      breaklinks=true, pdfpagemode=UseNone, pageanchor=true, pdfpagemode=UseOutlines,%     plainpages=false, bookmarksnumbered, bookmarksopen=true, bookmarksopenlevel=1,%     hypertexnames=true, pdfhighlight=/O,%nesting=true,%frenchlinks,%     urlcolor=webbrown, linkcolor=RoyalBlue, citecolor=webgreen, %pagecolor=RoyalBlue,%     %urlcolor=Black, linkcolor=Black, citecolor=Black, %pagecolor=Black,%     pdftitle={\myTitle},%     pdfauthor={\textcopyright\ \myName, \myUni, \myFaculty},%     pdfsubject={},%     pdfkeywords={},%     pdfcreator={pdfLaTeX},%     pdfproducer={LaTeX with hyperref and classicthesis}%     }                  \listfiles          \usepackage{classicthesis}       Thanks


title: No indent in description list

text: I have the following text in LaTeX: ![enter image description here](http://i.stack.imgur.com/8kOn7.jpg) I want that the second sentence of item A starts below the first word of the first sentence (So 'It is raw...' is outlined with 'Data are facts...'). I have search on the internet for an example in special for a description list, but I can not manage it (already tried `\noindent` and other packages). The code (`introduction.tex`):               \begin{description}     \item[A)] Data are facts, events or transactions and so on which have been recorded.                     It is raw material input from which information is produced.     \item[B)] Information is data that has been processed and communicated in such                     a way that it can be interpreted and understood by the recipient.     \end{description}      The main `.tex` file is called `thesis.tex`. In the main file packages are declared.


title: Drawing filter banks

text: I want to draw filter banks which look somehow like in the pictures below. Could you give my some hints how should I do this? ![enter image description here](http://i.stack.imgur.com/j9Tl7.gif) ![enter image description here](http://i.stack.imgur.com/nnGL7.gif)


title: Replace \item with \MyItem to box each list member with an mdframed

text: Since it was pointed out that redefining `\item` can be dangerous in strange interaction between `mdframed` and `\item`, I am wondering if there are going to be problems with this solution. My goal is to replace:               \begin{enumerate}[label={(\alph*)}]         \MyItem \TextA         \MyItem \TextB     \end{enumerate}      ![enter image description here](http://i.stack.imgur.com/I0jxN.png) with (i.e., only the environment name is changed):               \begin{MyEnumerate}[label={(\alph*)}]         \MyItem \TextA         \MyItem \TextB     \end{MyEnumerate}      to obtain an `mdframe` around each item: ![enter image description here](http://i.stack.imgur.com/QE6lP.png) The solution as below seems to work, at least for this test case. So, is this way of using `\MyItem` instead of `\item` have hidden dangers that are not obvious in this test case. ## Notes:   * This seems a lot like Box around a few items in an itemize environment, but is different in that I want this frame around each item, and do need to use `mdframed` as opposed to just a `tikz` rectangle. ## Code:               \documentclass{article}     \usepackage{etoolbox}% for toggles     \usepackage{enumitem}     \usepackage{mdframed}          \newcommand{\TextA}{%             Lorem ipsum dolor sit amet, consectetur adipiscing elit.              Sed accumsan hendrerit velit, vitae ultrices sapien porta nec.       }%     \newcommand{\TextB}{%             Duis blandit tempus placerat.              Nulla vitae erat ante. Nulla facilisi.              Aliquam tristique interdum suscipit.              Duis posuere orci vel velit suscipit in porttitor purus eleifend.      }%               \newcommand{\MyItem}{\item}          \newtoggle{FirstItem}%     \toggletrue{FirstItem}%     \newenvironment{MyEnumerate}[1][]{%         \renewcommand{\MyItem}{%             \iftoggle{FirstItem}{%                 \global\togglefalse{FirstItem}                 %--------- start new frame                 \begin{mdframed}[skipbelow=2pt]%                 \begin{enumerate}[#1,series=MySeries]%             }{%                 \end{enumerate}%                 \end{mdframed}%                 %--------- end previous frame and start new one                 \begin{mdframed}[skipbelow=2pt]%                 \begin{enumerate}[#1,resume*=MySeries]%             }%             \item%         }%     }{%         \end{enumerate}%         \end{mdframed}% --------- end last frame         \global\toggletrue{FirstItem}%     }%          \begin{document}\noindent     \textbf{enumerate:}     \begin{enumerate}[label={(\alph*)}]         \MyItem \TextA         \MyItem \TextB     \end{enumerate}     %     \medskip     \textbf{MyEnumerate:}     \begin{MyEnumerate}[label={(\alph*)}]         \MyItem \TextA         \MyItem \TextB     \end{MyEnumerate}     \end{document}


title: Colour of edges according to edge value

text: I am currently modelling traffic and my map of roads consists of nodes connected with lines. For each road there is maximum capacity and amount of traffic and each road therefore has a utility value between 0 and 1. To my question; I am wondering whether there is a colouring method for my lines in tikz that defines the colour by a value. For example I may want a high utility value to be red and a low utility level to be green and values in between are gradients of the booth. Is this possible in some way? EDIT: The answer in the link is useful. I am now updating all my values to my lines manually; is there perhaps a way to retrieve them from a vector?


title: Difference between \LoadClass and \LoadClassWithOptions

text: Can anyone tell me the difference between those two commands? Edit: Thanks for the answers, but I didn't get the clue yet. Here's an example: test.tex               \documentclass[a4paper,oneside]{mytestclass}     ...      mytestclass.cls               \NeedsTeXFormat{LaTeX2e}      \ProvidesClass{testclass}[2011/01/30 v0.1 testclass]     \LoadClass{book}      or               \NeedsTeXFormat{LaTeX2e}      \ProvidesClass{testclass}[2011/01/30 v0.1 testclass]     \LoadClassWithOptions{book}      In both examples the options `a4paper` and `oneside` are passed to `book`. So, I don't see any difference in the result.


title: Sweave.sty Rd.sty on texlive 2011 (OpenSUSE 12.1)

text: I am trying to make `Sweave.sty` and `Rd.sty` globally available on my system. After reading related posts on StackExchange, I changed `texmf.cnf`, so that               kpsewhich --expand-var='$TEXMF'      results in               {/home/philipp/texmf,!!/etc/texmf,!!/var/lib/texmf,!!/usr/lib/texmf,!!/usr/local/share/texmf,!!/usr/share/texmf,/usr/lib64/R/share/texmf/tex/latex}      The last directory is where R puts `Sweave.sty` and `Rd.sty`, and I also tried the variant with               !!      before this path. After               sudo texhash      and (just to be certain)               sudo mktexlsr      appropriate `ls-R` files are created. Nevertheless               kpsewhich Sweave.sty      still does not find the file, even with the               --must-exist       option. After trying all this I am stuck. I suspect there is some trouble because texlive and OpenSUSE are said not to mix well (especially when it comes to adding packages), but do not have the faintest clue.


title: I like little squares but not as much as TeXstudio

text: I recently downloaded TeXstudio and I really like it's feel, only problem: ![TeXstudio source page](http://i.stack.imgur.com/Dlvik.png) Gave it a quick google and nothing came up. Using all squares as code has it's limits, namely not being an "injective" representation of keystrokes to character's, which I would say, is a nice property of most character encoding schemes. Has anyone else encountered this problem OR does anyone have any suggestions on how to solve it?


title: Reduce or delete the label of caption in a figure environment on beamer

text: In this code I need to reduce the size of the 'Figure' word figured in the start of caption image.                \documentclass[compress,red]{beamer}        \usepackage{etex}        \mode<presentation>          \usetheme{Warsaw}             \usepackage[applemac]{inputenc}%les accents pour mac       \usepackage{subfigure}        \usepackage{multicol}          \usepackage{animate}         \usepackage{movie 15}        \usepackage{amsmath}        \usepackage{epsfig}        \usepackage{graphicx}         \usepackage[all,knot]{xy}         \xyoption{arc}         \usepackage{url}         \usepackage{array,ragged2e}         %\usepackage{multimedia}          %\usepackage{hyperref}            \usepackage{setspace}           \usepackage{multirow}            \begin{document}            \section{section1 }             \frame[shrink]{\frametitle{Titre de la fenetre}               \begin{itemize}               \item<1-4,5> point1               \item<2-4> point2                \item<3-4> point3                  \item<4> point4                \begin{figure}[!h]                 \begin{center}            \includegraphics[width=3cm,height=3cm]{listefigures/shadow2.png}        \caption{\tiny Un exemple 2D de la construction d'un \textit{Visual Hull} par     l'approche surfacique ~\cite{phd2}}        \label{fig211}     \end{center}         \end{figure}            \end{itemize}             }            \end{document}


title: A list of all glossary (nomenclature) in Lyx

text: I'm very new in Lyx and I plan to write an SRS in Lyx. I expect a lot of words, how I have to explain in a glossary. For this purpose, I use the nomenclaure (nomancl) which works well. But I expect the following problem. In Lyx is no list of all defined or created glossary entries. I have a box named nomenclature and grey boxes starting with "nom" scattered anywhere in the document. By the way, what I also use is notes for "todos". I have noted with pleasure, in the navigation pane on the left, there is a list of all tocs and notes. But what i missed is a list of all glossary entries so I'm able to check, if I had already explain a word or not in Lyx. I heared from another package named "glossaries", but I did't found, how to integrate this package in Lyx and if this package deliver a list of all defined glossary entries. Can you give me a hint? I use Lyx 2.0.0 on Windows.


title: change position of TikZ node halfway

text: I am trying to move the node "H" to one of the two positions shown in red below: ![](http://i.stack.imgur.com/Yexzu.png) I am not sure how to position it at 'intermediate' positions such as I am suggesting. How could this be done? Is there a more sensible way of defining the positions of the nodes overall? The code is as follows:               \documentclass[tikz, border=10pt]{standalone}     \usetikzlibrary{arrows}     \begin{document}          \begin{tikzpicture}[         -,         every loop/.style={},         auto,         node distance = 4cm,         thick,         main node/.style={             circle,             fill=gray!50,             draw,             font=\rmfamily\Large\bfseries,             minimum size=15mm         }     ]          \node[main node] (W) [] {W};     \node[main node] (Z) [right of=W] {Z};     \node[main node] (q) [above right of=Z] {q};     \node[main node] (g) [below right of=q] {g};     \node[main node] (l) [above left of=W] {l};     \node[main node] (gamma) [below left of=l] {${\gamma}$};     \node[main node] (H) [below left of=W] {H};            \path[         every node/.style={             font=\rmfamily\small,             fill=white,             inner sep=1pt         }     ]          (H) edge [loop below] node {} (H)     (H) edge [] node {} (W)     (H) edge [] node[right=1mm] {} (Z)     (H) edge [] node[right=1mm] {} (l)     (W) edge [loop left] node[right=1mm] {} (W)     (W) edge [] node[right=1mm] {} (Z)     (q) edge [] node[right=1mm] {} (Z)     (q) edge [] node[right=1mm] {} (W)     (q) edge [] node[right=1mm] {} (H)     (Z) edge [] node[right=1mm] {} (l)     (l) edge [] node[right=1mm] {} (gamma)     (q) edge [] node[right=1mm] {} (gamma)     (q) edge [] node[right=1mm] {} (g)     (g) edge [loop below] node {} (g)     ;          \end{tikzpicture}     \end{document}


title: Node at each end of arrow, Tikz

text: I'm drawing a vertical arrow and I want to have a node at each end, but tikz seems to be putting the lower node in funny places: This is the arrow with the node above in the right place:               \documentclass{standalone}     \usepackage{tikz}     \usetikzlibrary{arrows}     \tikzset{>=latex}     \begin{document}     \begin{tikzpicture}          \draw[->] (0,-3.5) -- (0,2) node[above, scale = 1.3] {$\varepsilon$};          \end{tikzpicture}     \end{document}      Now I want to put a node at the bottom end of the line. I can't work out where to put the second node command. I've tried these two:               \draw[->] node[below]{$M$} (0,-3.5) -- (0,2) node[above, scale = 1.3] {$\varepsilon$};          \draw[->] (0,-3.5) -- (0,2) node[above, scale = 1.3] {$\varepsilon$} node[below]{$M$};      but the first one puts the node half-way along the line of the arrow and the second puts the node just below the arrowhead. Am I doing something obviously wrong? Thanks.


title: First steps with LuaLaTeX and ttf fonts

text: I am just starting to use LuaLaTeX. Mainly because I want to use a `ttf` font for a presentation. My MWE looks like               \documentclass{article}          \usepackage{fontspec}          \setmainfont[]{HelveticaNeue/HelveticaNeueLTCom-Th.ttf}          \begin{document}     Test     \end{document}      I have a folder called `HelveticaNeue` in the same folder as the MWE file. The folder consists of many versions of the famous font `Helvetica Neue`. The content looks like               HelveticaNeueLTCom-Bd.ttf        HelveticaNeueLTCom-BdCn.ttf      HelveticaNeueLTCom-BdCnO.ttf         HelveticaNeueLTCom-BdEx.ttf      HelveticaNeueLTCom-BdExO.ttf         HelveticaNeueLTCom-BdIt.ttf      HelveticaNeueLTCom-BdOu.ttf      HelveticaNeueLTCom-Blk.ttf       HelveticaNeueLTCom-BlkCn.ttf         HelveticaNeueLTCom-BlkCnO.ttf        HelveticaNeueLTCom-BlkEx.ttf         HelveticaNeueLTCom-BlkExO.ttf        HelveticaNeueLTCom-BlkIt.ttf         HelveticaNeueLTCom-Cn.ttf        HelveticaNeueLTCom-CnO.ttf       HelveticaNeueLTCom-Ex.ttf        HelveticaNeueLTCom-ExO.ttf       HelveticaNeueLTCom-Hv.ttf        HelveticaNeueLTCom-HvCn.ttf      HelveticaNeueLTCom-HvCnO.ttf         HelveticaNeueLTCom-HvEx.ttf      HelveticaNeueLTCom-HvExO.ttf         HelveticaNeueLTCom-HvIt.ttf      HelveticaNeueLTCom-It.ttf        HelveticaNeueLTCom-Lt.ttf        HelveticaNeueLTCom-LtCn.ttf      HelveticaNeueLTCom-LtCnO.ttf         HelveticaNeueLTCom-LtEx.ttf      HelveticaNeueLTCom-LtExO.ttf         HelveticaNeueLTCom-LtIt.ttf      HelveticaNeueLTCom-Md.ttf        HelveticaNeueLTCom-MdCn.ttf      HelveticaNeueLTCom-MdCnO.ttf         HelveticaNeueLTCom-MdEx.ttf      HelveticaNeueLTCom-MdExO.ttf         HelveticaNeueLTCom-MdIt.ttf      HelveticaNeueLTCom-Roman.ttf         HelveticaNeueLTCom-Th.ttf        HelveticaNeueLTCom-ThCn.ttf      HelveticaNeueLTCom-ThCnO.ttf         HelveticaNeueLTCom-ThEx.ttf      HelveticaNeueLTCom-ThExO.ttf         HelveticaNeueLTCom-ThIt.ttf      HelveticaNeueLTCom-UltLt.ttf         HelveticaNeueLTCom-UltLtCn.ttf       HelveticaNeueLTCom-UltLtCnO.ttf      HelveticaNeueLTCom-UltLtEx.ttf       HelveticaNeueLTCom-UltLtExO.ttf      HelveticaNeueLTCom-UltLtIt.ttf       HelveticaNeueLTCom-XBlkCn.ttf        HelveticaNeueLTCom-XBlkCnO.ttf      I compile the file using (Windows 7, LuaTeX version 0.76.0-2013062820, rev 4627) `lualatex filename`. I receive an error; ![error](http://i.stack.imgur.com/OSS62.png) I added a screenshot because the error does not exist in the log file. An additional question would be how to use the different font features like small caps, italic, bold and so on. I have seen that you can define it like here:               \setmainfont[         BoldFont       = Fontname-Bold,         ItalicFont     = Fontname-Italic,         BoldItalicFont = Fontname-BoldItalic     ]{Fontname}      but I did not find small caps in the `ttf` font files. * * * **Update** Following Herbert's advice, I added all the `ttf` font files into my Windows font folder (now I can use them in Word and so on). This look like ![font-placement](http://i.stack.imgur.com/2xfGa.png) Then I changed the MWE accordingly:               \documentclass{article}          \usepackage{fontspec}          %\setmainfont[]{HelveticaNeue/HelveticaNeueLTCom-Th.ttf}     \setmainfont[]{Helvetica Neue LT Com 23}          \begin{document}     Test     \end{document}      and receive this error message: ![new-error](http://i.stack.imgur.com/Ouhqv.png) Following Mico's advice (placing the `ttf` file in the same folder as the MWE file) works. I do not understand why and I wonder how to use bold, small caps and so on. Do I have to define all manually? ![test](http://i.stack.imgur.com/ljLMe.png) * * * **2nd Update** After double clicking on a font file I saw the "real" name. Using this name works with system fonts;               \setmainfont[]{HelveticaNeueLT Com 35 Th}      ![system-fonts](http://i.stack.imgur.com/rMjmp.png)


title: Why is July Printed Twice on X-Axis?

text: \documentclass{article}          \usepackage{tikz}     \usepackage{pgfplots}     \usepgfplotslibrary{dateplot}     \pgfplotsset{compat=1.11}          \begin{document}          \begin{tikzpicture}          \begin{axis}[     date coordinates in=x,      xtick=data,xmin=2013-01-15,xmax=2014-01-15,xlabel=\bfseries\Large x,      xticklabel={\pgfcalendar{tickcal}{\tick}{\tick}{\pgfcalendarshorthand{m}{.}}},      ytick={0,5000,10000,15000},      ylabel=\bfseries\Large y,      ymin=0,ymax=15000,     height=9cm, width=14.5cm,grid=both,minor y tick num=4]          \addplot [smooth,line width=2,red] coordinates {          (2013-1-31,13811)     (2013-2-28,10396)     (2013-3-31,11563)     (2013-4-30,10512)     (2013-5-28,6290)     (2013-6-31,5453)     (2013-7-30,5920)     (2013-8-31,7264)     (2013-9-31,7215)     (2013-10-31,10481)     (2013-11-30,14485)     (2013-12-31,14375)     };          \end{axis}     \end{tikzpicture}     \end{document}       ![enter image description here](http://i.stack.imgur.com/V5yU6.png)


title: algorithm2e and color

text: I am trying to color the background of the caption in algorithm (using `algorithm2e`). I have modified the original command as follow directly in the .sty file. However, as you can see on the image, the result is not convenient. I would like the whole "row" to be in gray (I put row into brackets as it is not a tabular).               \newcommand{\algocf@makecaption@ruled}[2]{%       \global\sbox\algocf@capbox{\hskip\AlCapHSkip![enter image description here][2]         \parbox[t]{\hsize}{\colorbox{gray!50}{\algocf@captiontext{#1}{#2}}}}     }%      The original :               \newcommand{\algocf@makecaption@ruled}[2]{%       \global\sbox\algocf@capbox{\hskip\AlCapHSkip% .5\algomargin%         \parbox[t]{\hsize}{\algocf@captiontext{#1}{#2}}}     }%      ![enter image description here](http://i.stack.imgur.com/Bu0WC.png) The complete code :               \documentclass{article}      \usepackage{etex}      \usepackage{easybmat}      \usepackage[T1]{fontenc}      \usepackage{lmodern}      \usepackage{xcolor}     \usepackage{algorithm2e}     \RestyleAlgo{algoruled}          \begin{document}             \SetKw{KwFrom}{from}                \newenvironment{algo}{     \begin{algorithm}[H]     \DontPrintSemicolon \SetAlgoVlined}     {\end{algorithm}}                    \begin{algo}\label{algotrigsup}     \caption{Caption of the algo}     \For{$k$ \KwFrom $n-1$ \KwTo $1$}{     $x_k=b_k$\;     \For{$j$ \KwFrom $k+1$ \KwTo $n$}{     $x_k=x_k -a_{kj} x_j$\;     }     $x_k=\displaystyle \frac{x_k}{a_{kk}}$     }     \end{algo}               \end{document}


title: Hide recipient details - moderncv banking

text: I want to use this template for a personal statement (template here). I don't want to include any addresses or dates etc. I just want the heading `name|title` and then be able to write in the main body. When I comment on these or leave them blank it causes an error when compiling the document. I also want the body of the text to be _justified_ - is this possible? My editor is Texmaker.


title: Bad looking table of contents (on entire page)

text: \documentclass[12pt,a4paper]{mwrep}     \usepackage{polski}     \usepackage[cp1250]{inputenc}     \usepackage{indentfirst}          \frenchspacing     \linespread{1.3}     \author{Me}     \title{My title}     \begin{document}          \tableofcontents         \pagebreak          \chapter{Chapter1}     \section{Section Blah}     Blah blah blah     \section{Section Xaxa}     Xaxa xaxa xaxa     \end{document}      That is my doc. When I use documentclass `mwrep` I got table of contents that is on entire page (even if there are 2 sections in one chapter). But when I use `article`, table of contents looks fine. How can I get `article`'s look in `mwrep`? EDIT:   You are right that chapter won't work with article. What I mean is that I want ToC to look like in article. It would be better to ask how can I get `report`'s look in `mwrep`. 'mwrep' is supposed to be report class adjusted to Polish typography. How did I get it? I just typed `\documentclass[12pt,a4paper]{mwrep}` and LEd downloaded it. **EDIT 2:**   Look at the difference between mwrep and report here: http://min.us/mdHsA6D and here: http://min.us/mdHsA6D#2


title: How to make a textbox with this TikZ code ?

text: I made this with TikZ :               \usetikzlibrary{calc}     \def\banlen{3}     \xdefinecolor{mycolor}{RGB}{62,96,111} % Neutral Blue     \def\bancolor{mycolor}     \begin{tikzpicture}     \draw (0.25,0.25) rectangle (5,-2); %     \fill[\bancolor](0,0) -- (0.25,-0.25) -- (0.25,0); % Coin bas-gauche     \fill[\bancolor](\banlen,0.5) -- (\banlen-0.25,0.75) -- (\banlen-0.25,0.5); %Coin haut-droit     \fill[\bancolor!75] (0,0) rectangle (\banlen,0.5); % Rectangle (banner)     \draw (\banlen/2,0.25) node {Box name};     \end{tikzpicture}      ![Image](http://i.stack.imgur.com/xmbaO.png) How to add text in, adjust the banlen value with the Boxname text and adjust the box size ? And how to make a environment with a color parameter ? I have some difficult with the coordinates :s Thanks.


title: Highlight in beamer in the table of contents the line corresponding to the forthcoming section

text: I am preparing a presentation with beamer. Before each new section I show the table of contents. I wonder how can I somehow highlight the line of the table of contents with corresponds to the new section to appear


title: presentation title out of range using Boadilla theme

text: I'm trying to prepare a presentation in LaTeX using Beamer. I'm using the Boadilla theme. unfortunately I have troubles in the title of the presentation because it is too small. I tried to enlarge it using "bold" but unfortunately the title in the lower bar of the font goes out of range. Can anyone help me please?


title: Disabling URLs in bibliography

text: I use Mendeley for article management and export the related items to a bib file for referencing in LaTeX documents. I use IEEEtran style and see that the bibliography items include URLs which I don't want to include. The URLs may have URLs like this:               Available: http://www.mendeley.com/research/improved-adaptive-background-mixture-model-realtime-tracking-shadow-detection-6/      As a solution, I can delete the URL in Mendeley and export it again but I want the URLs remain. I only want them to be hidden in the references. Is there a command to disable URLs in bibliography? P.S.: I'm not interested in typesetting the URLS as given in this question. Additional information: I've used the following code for the bibliography:               \bibliographystyle{IEEEtran}     \bibliography{IEEEabrv,references}      There's a file named references.bib in the working folder.


title: Missing } inserted (xypic code)

text: Good afternoon, Unfortunately I'm getting a "! Missing } inserted.               <inserted text>                      }     l.23 **\xymatrix{$\CIRCLE$ $\CIRCLE$ & $\CIRCLE$ }                                                       **     ? "      What's wrong with my code, as far as I can tell, all my braces are matched :\ Thanks for all suggestions, * * *               \documentclass[a4paper,11pt]{article}     \usepackage[english]{babel}     \usepackage[pdftex]{graphicx}     \usepackage{tikz}     \usepackage{wasysym}     \usepackage[all]{xy}     \usepackage{amsfonts}          \title{Testcase}          \author{Alec Taylor}          \date{August 23, 2011}          \begin{document}          \xymatrix{$\CIRCLE$ $\CIRCLE$ & $\CIRCLE$ } % <-- Causes the error          \end{document}


title: Auto expansion only with scalable fonts

text: From this question I understand that this is due to requesting microtype operations on bitmap fonts. My problem is that the exact code I'm compiling works fine on my laptop (OS X 10.6, TexLive and packages from MacPorts), but on my new desktop at work (RHEL6) it errors out with the pdftex error in the title. I'm writing an article for a conference, and to get the stylesheet working I had to install eco.sty to a private texmf tree, so I suspect there's something I've missed in the install procedure, but I can't see why. I've installed `eco.sty` and the fd-files to `~/texmf/tex/latex/eco` and the tfm and vf files to `~/texmf/fonts/tfm/public/eco` and `~/texmf/fonts/vf/public/eco` respectively (as the `INSTALL` file told me to). And I remembered to `texhash` afterwards. Is there something else I need to do, like something related to `updmap`? This question would seem to indicate that this might be the culprit, but eco doesn't come with any map files, nor can I seem to find any fitting map files on my laptop.


title: How to get vim-latex's \cite completion to work?

text: I'm having issues with `\cite` completion. In the screenshot below, you can see what I get when I do `\cite{ }` `F9`. It is not doing what documentation says it would do, such as:   * Show a list that I can explore using `n` and `p`. `n` and `p` don't do anything.   * Show the ability to filter. `f` doesn't do anything.   * Also, if I remember correctly, it is supposed to search based on the few letters typed. So if I typed `\cite{foo` and then `F9` it would show citations that start with `foo`. Instead, it is always showing me the list of citations starting at the same place, which happens to be the top of `biblio.bib`. ![screenshot](http://i.stack.imgur.com/XrT3s.png) I recently set up my vim, so I am probably doing something wrong. Here is my .vimrc and, not that it matters, here are the tex files I am editing. You can see I do have a `main.tex.latexmain` file as recommended. I even tried setting biblio.bib's directory path in g:Tex_ProjectSourceFiles but it didn't solve the issue. I also tried disabling some of my other plugins by moving them to a different directory but didn't help either. Am I missing something obvious?


title: Mathjax can't render some of LaTeX basic commands

text: Sorry this is probably a very silly question as I'm too new to LaTeX. Mathjax has issues rendering basic LaTeX commands like /xspace and /ensuremath There are some custom macros in my LaTeX files, and I define them in MathJax config as;               MathJax.Hub.Config({         tex2jax: {             inlineMath: [ ['$','$'], ["\\(","\\)"] ],             displayMath: [ ['$$','$$'], ["\\[","\\]"] ],             processEscapes: false,             element: "content",             ignoreClass: "(tex2jax_ignore|mw-search-results|searchresults)", /* note: this is part of a regex, check the docs! */             skipTags: ["script","noscript","style","textarea","code"] /* removed pre as wikimedia renders math in there */         },         TeX: {             extensions: ["AMSmath.js"],             Macros: {                 COM: ['{\\ensuremath{\\left[ {#1} , {#2}\\right]}\\xspace}', 2]             }         }     });      HTML Code:               A nonzero commutator between two operators $\hat {A}$ and $\hat {B}$, denoted $\COM {\hat {A}}{\hat {B}}=\hat {A}\hat {B}-\hat {B}\hat {A}$.      Output: ![screenshot](http://i.imgur.com/uIH7BXm.png) I couldnt find how to define these, guessing it could be a package/extension to include in MathJax settings or something to do within original LaTeX files before conversion to HTML. many thanks


title: PGFplot Histogram with Large Amount of Data over a Long Time Span

text: I'd like to plot data files with multiple values per x-coordinate using pgfplots, ranging over the time span of a month (max. 31 days) per file. The problem is, that if I don't plot these values stacked or on top of each other, it is way too much for the width of a single A4 page. Originally I had 9 values per day, but now that I've cut it down to 3 the problem still persists. Here is an example datafile: **userdata.dat** :               Day        UsrsBnnd  UsrsRprtd UsrsRegd       1          0         0         3     2          0         0         1     3          0         0         1     4          1         0         3     5          1         0         5     6          0         0         1     7          0         0        43     8          0         0        75     9          2         0        40     10         0         0         8     11         0         0         9     12         1         1         4     13         1         1         5     14         0         0        10     15         0         0         8     16         2         1         3     17         0         0         4     18         1         0         5     19         0         0         3     20         0         0        18     21         0         0         8     22         0         0         3     23         0         0        15     24         2         1         2     25         2         2         2     26         0         0         3     27         0         0         5     28         0         0         4     29         0         0        13     30         0         0        21     31         0         0        12      At the moment, I plot it by drawing the columns on top of each other with an opacity of 33%, but that does not create a readable, yet alone neatly arranged graphic. **MWE.tex** :               \documentclass{article}     \usepackage{pgfplots}     \usepackage[margin=2cm]{geometry}          \begin{document}     \pagestyle{empty}          \begin{tikzpicture}         \begin{axis}[/tikz/ybar, ybar legend, ymin=0, ylabel=Amount, bar width=12pt, axis x line*=left, nodes near coords=\rotatebox{90}{\scriptsize\pgfmathprintnumber\pgfplotspointmeta}, enlarge x limits=0.02, xlabel=Days, xtick=data, width=\textwidth]             \addplot[red,fill=red!40!white,opacity=0.33] table[y index = 1] {userdata.dat};             \addplot[yellow,fill=yellow!40!white,opacity=0.33] table[y index = 2] {userdata.dat};             \addplot[green,fill=green!40!white,opacity=0.33] table[y index = 3] {userdata.dat};             \legend{Users Banned, Users Reported, Users Registered}         \end{axis}     \end{tikzpicture}          \end{document}      ![userdata.dat plotted using MWE.tex](http://i.imgur.com/YDBxI2G.png) I'd like some suggestions on how to handle the plotting of this and similar datafiles for best results, as embedding something like I've currently got in a paper would be counterintuitive to readers. I'd like to keep the resulting graphics as narrow as possible, because multiple plots are supposed to end up in the text, which shouldn't make up the majority of the content.


title: Restrict and compress authors to maximum width in bibliography

text: With `biblatex`, it’s quite simple to choose how author (or editor) names and lists thereof are displayed in the bibliography. One can choose the order of given and family names (and other name parts), decide whether given and middle names should be abbreviated as initials or left out completely, and set a maximum of people to appear, the rest being hidden in “et al.” or a local variant thereof. How can I get `biblatex` to automatically use the longest form that fits into a single line (or into an arbitrary width)? I’d like it to try the following variants (where _n_ is the number of names):   1. All names, all full.   2. All names, initials for the _i_ right-most ones (1 ≤ _i_ ≤ _n_ ).   3. All names with initials, remove the _i_ right-most ones (1 ≤ _i_ ≤ _n–1_ ), add “et al.” instead. Illustrative code:               \documentclass[12pt,a4paper]{minimal}     \usepackage[showframe]{geometry}     \newcommand*\yearandtitle{\hfill \quad 2012\\     \textit{A very interesting book. With subtitle}. \hfill Someplace / Otherplace: SUP Press\par\medskip}     \begin{document}     % full line     \noindent Agnes Ursula \textsc{Thor}, Charles-Oliver \textsc{Author}, William \textsc{Riter} and Claire \textsc{Ontributor}\yearandtitle     % add Sandra Uperv-Isor     \noindent Agnes Ursula \textsc{Thor}, Charles-Oliver \textsc{Author}, William \textsc{Riter}, Claire \textsc{Ontributor} and Sandra \textsc{Uperv-Isor}\yearandtitle     % shorten as much as necessary     \noindent Agnes Ursula \textsc{Thor}, C.-O. \textsc{Author}, W. \textsc{Riter}, C. \textsc{Ontributor} and S. \textsc{Uperv-Isor}\yearandtitle     % add Gina Raphics     \noindent A. U. \textsc{Thor}, C.-O. \textsc{Author}, W. \textsc{Riter}, C. \textsc{Ontributor}, S. \textsc{Uperv-Isor} and G. \textsc{Raphics} \yearandtitle     % shorten     \noindent A. U. \textsc{Thor}, C.-O. \textsc{Author}, W. \textsc{Riter}, C. \textsc{Ontributor}, S. \textsc{Uperv-Isor} et al. \yearandtitle     \end{document}      Bibliography:               @book{foo, Author={Agnes Ursula Thor and Charles-Oliver Author and William Riter and Claire Ontributor and Sandra Uperv-Isor and Gina Raphics}, Year={2014}, Title={A very interesting book}, Subtitle={With subtitle}, Publisher={SUP Press}, Location={Someplace / Otherplace}}      Algorithm (pseudocode):               \newlength\availablewidth{\linewidth}% for instance          \ifthenelse % 1. try all full names     {\widthof{\printnames{author}} < \availablewidth}% condition     {\printnames{author}}% then     {% else       \ifthenelse % 2. try all initial names       {\widthof{\printnames[initials]{author}} < \availablewidth}% condition       {\printnames[initials][]{author}}% then (advanced: expand the left-most ones again)       {% else (automatically set `maxbibnames` locally)         \printnames[initials][etal]{author}% (advanced: automatically determine local `minbibnames` value)     }


title: connections with circuitikz

text: I'm trying to create a diagram from motor controller consisting of a microcontroller and its peripherals. 1) How to get the red dot on the line with circuitikz. 2) Draw current arrow below the resistor with Im at the right. Kindly look at the diagram below.               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{shapes,arrows,shadows,backgrounds, calc, fit}     \usepackage{amsmath,bm,times}     \usepackage[european]{circuitikz}     \usepackage{verbatim}     \usepackage[active,tightpage]{preview}     \PreviewEnvironment{tikzpicture}     \setlength\PreviewBorder{5pt}%          \begin{document}          \tikzstyle{peripheral} = [draw, fill=blue!10, rectangle, minimum height=3em,     text width=6em, align = flush center, rounded corners, thick, drop shadow]          \tikzstyle{micro} = [draw, fill=green!10, rectangle, minimum height=7em, minimum     width = 8em, rounded corners, thick, drop shadow]           \tikzstyle{motor} = [draw, fill=yellow!10, circle, radius=2cm, thick, drop shadow]      \tikzstyle{motorConnector} = [draw, fill=black, rectangle, draw=black, inner sep=1mm];          \tikzstyle{line1} = [draw, thick, ->, shorten >= 1pt, >=stealth']     \tikzstyle{line2} = [draw, thick, <->, shorten >= 1pt, shorten <=1pt, >=stealth']      \tikzstyle{line3} = [draw, thick, shorten >=1pt]     \tikzstyle{line4} = [draw, line width=5pt , shorten >=1pt]          %beginning tikz     \begin{tikzpicture} [auto, node distance = 1cm, >=latex', background       rectangle/.style= {fill=yellow!10, draw=blue!15, rounded corners=1ex}, show       background rectangle, circuitikz]           \matrix [column sep = 1cm, row sep = 0.5cm] at (0,0)      {        \node [peripheral] (timer) {Timers}; &        \node [peripheral] (rtc) {RTC}; &        \node [peripheral] (watchdog) {Watch Dog}; &\\        %row 2        \node [peripheral] (comm) {Serial \\Interface}; &        \node [micro] (cpu) {CPU}; &        \node [peripheral] (dac) {DAC}; &\\        %row 3        \node [peripheral] (pwm) {PWM Timer}; &        \node [peripheral] (adc) {ADC}; &         \node [peripheral] (qdec) {Quadrature \\ Decoder}; &\\        %row5        \node [peripheral, yshift=-1.5cm] {Motor Driver};&        \node {};&        \node {};&\\        %row6        \node {};&        \node [xshift = -1cm, motor] (motor) {Motor};&\\        \node {};&\\      };           \node [draw=black, inner sep= 0.75cm, fit={(timer) (qdec) (pwm)}, rounded      corners=1ex, thick, fill=black!20, opacity=0.1]  (motorController) {};      \node [yshift = -0.30cm, thick] at (motorController.north) {\large$Motor Controller$};           \node [motorConnector] at (motor.north) (connector1) {};      \node [motorConnector] at (motor.south) (connector2) {};           \draw (connector2.south) to [R=$R_I$] +(0,-3)            [red, *-] {($(connector2.south) + (0,-0.5)$) -| (adc.south)} ;                \node [ground] at ($(connector2.south) + (0,-3)$) {};          \end{tikzpicture}     \end{document}      ![motor controller](http://i.stack.imgur.com/TofRE.png)


title: How to add a "noze" to an axis?

text: I want to add an arbitrary length to an axis, but I don't know how.               \documentclass[10pt,a4paper,french]{article}     \usepackage{tikz}          \pgfkeys{/tikz/.cd,       NbGrad/.store in=\NbGrad,       Noze/.store in=\Noze,       Noze=.5cm,        }          \begin{document}          \begin{tikzpicture}[%         >=stealth,x=6cm,font=\footnotesize,NbGrad=6]          \draw [->] (0,0)--(1+\Noze,0)  ;          \foreach \x in {0,1,...,\NbGrad} {%         \coordinate (\x) at (\x/\NbGrad,0) ;         \draw [very thin] (\x/\NbGrad,+2pt)--(\x/\NbGrad,-2pt) ;              \pgfmathsetmacro\result{2 + \x / 10}         \node[above=1pt,text depth=1.5pt]  at (\x)%             {\pgfmathprintnumber[precision=1,fixed,use comma]{\result}};              } ;          \end{tikzpicture}     \end{document}


title: \tableofcontents in twocolum document

text: I don't quite understand why `\tableofcontents` in a `\twocolumn` document yields only one column (or how to change that - ideally _without_ including `multicol` just for the ToC...)?               \documentclass[twocolumn]{scrbook}  % twocolumn set document-wide...     \usepackage{lipsum}     \begin{document}     \tableofcontents                    % ...but not working for the ToC?     \chapter{Foo}     \lipsum[1]     \section{Bar}     \lipsum[2]     \subsection{Baz}     \lipsum[3]     \section{FooBarBaz}     \lipsum[4]     \end{document}


title: Displayed Math in tikz-cd diagrams

text: I have been using tikz-cd package to produce diagrams however I'm not finding a way to use displayed math within it. My point is that when I use the product sign for instance inside of it, it simply shows as it were inline. I'm using the following commands:               \begin{figure}[!ht]          \centering          \begin{tikzcd}[row sep=huge, column sep=huge, text height=1.5ex, text depth=0.25ex]               \prod_{i=1}^{p} \arrow{r}{i} \arrow[bend right=50]{rr}{T} & \mathcal{M} \arrow{r}{\pi} & \otimes_{i=1}^{p}V_i          \end{tikzcd}     \end{figure}      However both the normal product sign and the tensor product sign appear as inline. Is there any way to show those signs as they appear in the displaymath mode?


title: Avoiding vertical spaces between bibitems while using IEEEtran

text: I'm using `IEEEtran` class and bibliography style and I see that the references section that it generates leaves empty lines between bibitems when the `compsocconf` option is used. Is there a way to avoid this? Note: If you do not use the `compsocconf` option, which is meant for Computer Society conferences, you don't have this problem. Also, the article is a lot more compact as a whole.


title: Avoiding newline after "Table" in caption while using IEEETran

text: IEEETran has the following style for table caption:               Table <number>       <caption>      But I would like to have it, without a line-break, as:               Table <number>. <caption>      This would also be consistent with the caption style for figures. Is it possible?


title: (lyx) Chapter Number after Part Number (Chapter 4.4 instead of Chapter 4)

text: I know its counter-intuitive and doesn't make any sense at all, but bear with me. I am using the classic thesis style (in lyx), and the recommendation of my university ask me to do so. So currently My structure is something like this               Part 1 Introduction       Chapter 1 AAAAA       Chpater 2 BBBBB       Chapter 3 CCCCC          Part 2 Something       Chapter 4 DDDDD       Chapter 5 EEEEE       Chpter  6 FFFFFF      I need it turned into something like this               Part 1 Introduction       Chapter 1.1 AAAAA       Chpater 1.2 BBBBB       Chapter 1.3 CCCCC          Part 2 Something       Chapter 2.1 DDDDD       Chapter 2.2 EEEEE       Chpter  2.3 FFFFF      Needless to say, If the esctions and subsections can also ripple down like that That'd be great. Any suggestions? EDIT: I received a suggestion to use               \renewcommand{\thechapter}{\arabic{part}.\arabic{chapter}}      The results look great. However, classic thesis does not support decimal points in chapter number (and it looks ugly). ![Ugly solution](http://i.stack.imgur.com/iFo89.png) So I looked around the net and from this Move chapter number to chapter title in classicthesis, My chapter numbers look more acceptable like this ![Good One](http://i.stack.imgur.com/aM8PD.png) However, the chapter numbers do not reset when we change parts. Suggestions? EDIT: The counterwithin command bugs out the pdf bookmark like this, and when I use the LaTeX solution, this doesn't happen. ![enter image description here](http://i.stack.imgur.com/Af3Wf.png)


title: Booklet with a specific page order rule

text: Friends, consider the following example ( **mytext.tex** ):               \documentclass[a5paper,oneside,12pt]{book}          \begin{document}          {\Huge A}          \newpage          {\Huge B}          \newpage          {\Huge C}          \newpage          {\Huge D}          \newpage          {\Huge E}          \newpage          {\Huge F}          \newpage          {\Huge G}          \newpage          {\Huge H}          \end{document}      I'd like to generate and print a booklet using the `pdfpages` package as suggested in Booklets in memoir class, so my other code looks like this:               \documentclass{scrartcl}     \usepackage{pdfpages}     \begin{document}     \includepdf[pages=-,booklet,landscape]{mytext.pdf}     \end{document}      It works perfectly, and my booklet is done, with 2 pages from the original document in each page of the new document. This is the result:                  Page 1      |     Page 2       |    Page 3      |     Page 4       H       A    |    B       G     |   F       C    |    D       E     Page 8  Page 1 |  Page 2  Page 7  | Page 6  Page 3 |  Page 4  Page 5      This is the booklet format. So far, so good. It happens that I should print it by myself, and this format is not good for my needs. So I'd like if the `pdfpages` could insert pages in the following format:                  Page 1      |     Page 2       |    Page 3      |     Page 4       D       A    |    B       C     |   G       D    |    E       F     Page 4  Page 1 |  Page 2  Page 3  | Page 8  Page 5 |  Page 6  Page 7      That way, I could print my document in both sides and cut the pages easily: ![Pages](http://i.stack.imgur.com/1i3Iu.png) **EDIT:** Other view (pages 2 and 4 are flipped just to explain their position): ![Page](http://i.stack.imgur.com/POJPF.png) In other words: ![Pages](http://i.stack.imgur.com/tQHm2.png) where `n` is a page number such that `n mod 4 = 1`. Could also be `[n+2, n], [n+1, n+3]` instead of `[n+3, n], [n+1, n+2]`. As one mentioned, I could manually specify the page order, but it's not feasible for a document with +100 pages. Any ideas?


title: Properly link an url in Bibliography

text: How to properly link an url in Bibliography? I've tried this:               @book{wiki4,         label    = {Razor},         author   = {Wikipedia's collaborators},         date     = {2014-01-01},         url      = {http://en.wikipedia.org/wiki/ASP.NET_Razor_view_engine},         urldate  = {2014-04-12}     }      But, `urldate` doesn't work. Is there any other format allowing that, please? Thanks a lot!


title: How to change the font size of the whole abstract in the article class

text: I am using the following to generate an article with 12pt and 1.5 linespread:               \documentclass[english,12pt, a4paper]{article}     \usepackage{babel}      \usepackage{times}     \usepackage{graphicx}      \usepackage{float}     \linespread{1.5}      \begin{document}      \begin{abstract}      Abstract      \end{abstract}      \end{document}      Of course the abstract appears to have a smaller font size than 12. How can I make all fonts in my article to be 12pt?


title: Aligned equations

text: I want to have aligned equations going vertically down a page. How do I get this style? Instead of the following:               \[     x_1 + x_2 + x_3               x_2 + x_4 + x_5     \]      What how should I do this?


title: How to project a spherical panorama onto the sides of a tikz folding poyhedron?

text: Amazing how simple one can put text (or anything else) onto the faces of a polyhedron like this calendar. But how can I project a 360° spherical photo onto the sides? I assume one should start with a spherical projection image which one can generate with various tools (like panotools, I think). Or one could start with a cubic projection which probably has less distortions. **But how to position the correct image portions onto each polyhedron face?** I think one could fiddle with translating and rotating by hand a lot, but maybe there is an even simpler way -- since the rotating and translating is done already for the faces.


title: How to draw this figure?

text: The figure in the attached image contains mathematical formulae, some of which are aligned, also it is rounded by a box, could anyone tell me how to draw that? Thank you very much! ![enter image description here](http://i.stack.imgur.com/AGabU.png)


title: XeLaTeX with Polyglossia and Thai

text: The following example displays the English text alright, but not the Thai text. It is simply left blank in the PDF result.               \documentclass{report}          \usepackage{fontspec}     \setmainfont{Times New Roman}     \setsansfont{Arial}     \newfontfamily\thaifont{Norasi}     \newfontfamily\thaifontsf{Loma}          \usepackage{polyglossia}     \setdefaultlanguage{english}          \begin{document}     Here comes some Thai: สารบัญ          {\sffamily Here comes some Thai: สารบัญ}     \end{document}      If I change the `\setdefaultlanguage` to thai, it works, but that's not the idea as this is an English document. Any suggestions?


title: Definition of \strut explained

text: Can anyone explain me the fine details of the `\strut` macro. Why is the box `\copy`ied in mathmode but `\unhcopy`ied otherwise?               % latex.ltx, line 484, but identical in plainTeX     \def\strut{\relax\ifmmode\copy\strutbox\else\unhcopy\strutbox\fi}      _The TeXBook_ states (e.g. page 120) that the unboxing macros unset any glue in the box's outer level, but there is no glue in the `\strutbox`, is it? I understand that `\strutbox` is an actually empty box with a font size dependent height (`.7\baselineskip`, where `\baselineskip` is about 1.2x font size) and depth (`.3\baselineskip`) but zero width:               % latex.ltx, line 2357, inside the `\set@fontsize` macro     \setbox\strutbox\hbox{%       \vrule\@height.7\baselineskip             \@depth.3\baselineskip             \@width\z@}%      I assume it is more efficient to use a box instead of repeatably use `\vrule`. Also you can use `\ht\strutbox` and `\dp\strutbox` to access the height and depth as dimensions. This allows you to write `.5\ht\strutbox` while `.5*.7\baselineskip` would require eTeX's `\dimexpr` or a temporal assignment. I really like to understand the fine nuances of TeX better.


title: Lyx template for scientific paper

text: Anyone know of any simple Template for scientific paper which is easy to modify and looks great? So that i don't have to use several hour to find out the syntax.


title: My symbols are rendered as ff. Have I ran out of memory?

text: I have been trying to solve a 4x4 matrix and have done a hell a lot of writing. Now I am near the end and I am not getting the requested output out of the LaTeX compiler. When I write for example:               \begin{minipage}[t]{\textwidth}     \begin{equation}\label{e50}     R^{-1} = \frac{1}{\left|R\right|} \rm{adj}(R) = \alpha     \end{equation}     \end{minipage}      the last symbol isn't shown as "alpha" but rather as a very weird symbol `ff` like I show in the picture below: ![enter image description here](http://i.stack.imgur.com/GZ4ds.png) I get the same weird symbol for any symbol that I put in place of `\alpha` or even after it. From this point on all of my symbols are typeset as `ff`. If I put same source code in my other new document all of my symbols again render as they were supposed to. **Q1:** Have I ran out of memory? **Q2:** How can I fix this?


title: longtable - strange lines at the end of table

text: I have strange problem with longtable package. Almost all my tables looks great but some of have strange lines at the end of tables. Please take a look at the picture I create the table like that                   \begin{longtable}{|c|c|c|c|c|c|c|c|c|}     \caption{Wyniki rozpoznawania obrazów dla obrazu zapytania 004\_0001.jp w katalogu baseballbat}\\\hline     \multicolumn{2}{|c|}{\textbf{Obraz zapytanie}} & \multicolumn{3}{|c|}{\textbf{Obraz przetwarzany}} & \multicolumn{4}{|c|}{\textbf{Wynik}} \\     \hline     \textbf{Nazwa} & \textbf{N} & \textbf{Katalog} & \textbf{Nazwa} & \textbf{N} & \textbf{J} & \textbf{J} & \textbf{Czas} & \textbf{Gęstość} \\ \hline     054\_0020.jpg & 209 & ring &054\_0020.jpg & 209 & 10089.1  & celu & time & 0.98  \\ \hline                       &  & ring  &054\_0002.jpg & 288 & 21585.7  & celu & time & 0.52  \\ \hline                       &  & ring  &054\_0013.jpg & 213 & 10755.7  & celu & time & 0.43  \\ \hline \hline                       &  & ring  &054\_0004.jpg & 250 & 15510.8 & celu & time & 0.43  \\ \hline                       &  & ring  &054\_0011.jpg & 117 &  3599.62  & celu & time & 0.43  \\ \hline                       &  & ring  &054\_0015.jpg & 256 & 13359.8  & celu & time & 0.43  \\ \hline                       &  & ring  &054\_0019.jpg & 275 & 20456.9  & celu & time & 0.43  \\ \hline                       &  & ring  &054\_0026.jpg & 209 & 7813.75  & celu & time & 0.43  \\ \hline                       &  & ring  &054\_0028.jpg & 130 & 3307.91  & celu & time & 0.43  \\ \hline                       &  & ring  &054\_0029.jpg & 275 & 17064.3 & celu & time & 0.43  \\ \hline                       &  & ring  &054\_0037.jpg & 95  & 5653.98  & celu & time & 0.43  \\ \hline                       &  & ring  &054\_0041.jpg & 234 & 9418.73  & celu & time & 0.43  \\ \hline                       &  & ring  &054\_0042.jpg & 120 & 2643.69 & celu & time & 0.43  \\ \hline                       &  & ring  &054\_0044.jpg & 114 & 2672.92 & celu & time & 0.43  \\ \hline     \label{tab:ring}     \end{longtable}      Can somebody tell me what is wrong with this code , that it produces this strange line


title: How do I change the font size in elsarticle class?

text: First I used `elsart` and as usual the text font was 12pt, title font was 17pt **bold** , author font was 14.5pt and the address font was 11pt. but in `elsarticle` class, text font is 10pt, title is 14.5pt and not bold, author's 10pt and address font is 8pt. Which one is standard and how can I change them all like a set?


title: how to draw a unfinished data point bar in pgfplots?

text: I want to present some experiment comparisons. One of the candidate (SHJ) takes too long to run. Could anyone give me some suggestions on how to present such data point in a bar chart? Thanks in advance.               \documentclass{minimal}     \usepackage{pgfplots}     \usepackage{pgfplotstable}     \usetikzlibrary{patterns}     \pgfplotsset{compat=1.7}     \begin{document}     \pgfplotstableread{     dataset ptsj    shj pretti  pplus   ptsj-meta   shj-meta    pretti-meta pplus-meta     flickr  1093    86400   343.4222446 302.8254    3.6x    nan 1.1x    1.0x     orkut   5238    86400   14400   1333.03325  3.9x    nan 10.8x   1.0x     twitter 1671    6051    16213.23523 15046.2471  1.0x    3.6x    9.7x    9.0x     webbase 242.88  2679.67 1703    695 1.0x    11.0x   7.0x    2.9x     }\realdata               \begin{tikzpicture}     \begin{axis}[         height=6cm,         width=1\columnwidth,         ybar,         ymax=50000,         enlarge x limits=0.15,         symbolic x coords={flickr,orkut,twitter,webbase},         xtick={flickr,orkut,twitter,webbase},         ymode=log,         y label style={at={(0.05,0.5)}},         ylabel=elapsed time (s),         %x tick label style={rotate=25,anchor=east},         bar width=8pt,         legend style={at={(0.5,-0.15)},     anchor=north,legend columns=-1},     nodes near coords,     point meta=explicit symbolic,     every node near coord/.append style={rotate=90, anchor=west},     after end axis/.code={     \node[anchor=west] at (rel axis cs:0,1.05){$>10^5$};     \node[anchor=west] at (rel axis cs:0.25,1.05){$>10^5$};     },         %cycle list name=exotic,     ]     \addplot[draw=black,pattern color=black,pattern=horizontal lines] table[x=dataset,y=shj, meta=shj-meta] {\realdata};     \addplot[draw=black,pattern color=blue,pattern=north east lines] table[x=dataset,y=pretti,meta=pretti-meta] {\realdata};     \addplot[draw=black,pattern color=gray,pattern=crosshatch dots] table[x=dataset,y=ptsj, meta=ptsj-meta] {\realdata};     \addplot[draw=black,pattern color=white] table[x=dataset,y=pplus,meta=pplus-meta] {\realdata};          \legend{SHJ, PRETTI, PTSJ, PRETTI+}     \end{axis}     \end{tikzpicture}     \end{document}       ![enter image description here](http://i.stack.imgur.com/M9PwF.png)


title: Sort bibliography automatically

text: I did not take care of the alphabetical order when I was adding references to the bibliography. So I have a big list with references not ordered. Is there a way to do it automatically? I use               \bibliographystyle{plain}      \def\cprime{$'$}      \begin{thebibliography}{10}           \bibitem{aza}      A. Nash      \newblock{\em Nice book }      \newblock{ Springer}          \end{thebibliography}