title: Cannot use biblatex

text: I have `32-bit miktex`, on Windows 7. I was using `bibtex`. Now I want to switch to `biblatex`. Using Miktex Package Manager(MPM), I installed `biblatex`. MiKTeX Version: 2.9 32-bit. I used the following example from docs:               \documentclass[a4paper]{article}     \usepackage[T1]{fontenc}     \usepackage[american]{babel}     \usepackage{csquotes}     \usepackage[backend=biber,style=authoryear,sortcites,sorting=ynt]{biblatex}     \usepackage{hyperref}     \addbibresource{biblatex-examples.bib}     \begin{document}     Filler text \parencite{wassenberg}.     \printbibliography[sorting=nyt]     \end{document}      However, the result I get on PDF document is: Document               Filler text ().      Biblatex does not work properly. I checked the `.bib` file. And it seems correct. I don't get any `References` section in the pdf file. PS: I cannot find the version of biblatex using MPM, how can I find it? (If necessary.) ## Question: I'm not sure that I installed `biblatex` on my machine properly. What is the recommended way of doing it on a windows machine? ## EDIT: (Updated) I changed `bibtex` to `biber` in the Texnic Center settings like as the same with @Kurts answer. However, it still doesn't work. Log File: (Updated)               This is pdfTeX, Version 3.1415926-2.3-1.40.12 (MiKTeX 2.9) (preloaded format=pdflatex 2012.8.3)  7 AUG 2012 10:15     entering extended mode     **C:/Users/admin/Desktop/New*folder*(2)/91-sorting-schemes.tex     ("C:/Users/admin/Desktop/New folder (2)/91-sorting-schemes.tex"     LaTeX2e <2011/06/27>     Babel <v3.8m> and hyphenation patterns for english, afrikaans, ancientgreek, ar     abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic,      croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, ga     lician, german, german-x-2009-06-19, greek, gujarati, hindi, hungarian, iceland     ic, indonesian, interlingua, irish, italian, kannada, kurmanji, lao, latin, lat     vian, lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerm     an, ngerman-x-2009-06-19, nynorsk, oriya, panjabi, pinyin, polish, portuguese,      romanian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swis     sgerman, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, u     senglishmax, welsh, loaded.     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\article.cls"     Document Class: article 2007/10/19 v1.4h Standard LaTeX document class     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\size10.clo"     File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)     )     \c@part=\count79     \c@section=\count80     \c@subsection=\count81     \c@subsubsection=\count82     \c@paragraph=\count83     \c@subparagraph=\count84     \c@figure=\count85     \c@table=\count86     \abovecaptionskip=\skip41     \belowcaptionskip=\skip42     \bibindent=\dimen102     )     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\fontenc.sty"     Package: fontenc 2005/09/27 v1.99g Standard LaTeX package          ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\t1enc.def"     File: t1enc.def 2005/09/27 v1.99g Standard LaTeX file     LaTeX Font Info:    Redeclaring font encoding T1 on input line 43.     ))     ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\babel\babel.sty"     Package: babel 2008/07/08 v3.8m The Babel package          *************************************     * Local config file bblopts.cfg used     *     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\00miktex\bblopts.cfg"     File: bblopts.cfg 2006/07/31 v1.0 MiKTeX 'babel' configuration     )     ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\babel\english.ldf"     Language: english 2005/03/30 v3.3o English support from the babel system          ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\babel\babel.def"     File: babel.def 2008/07/08 v3.8m Babel common definitions     \babel@savecnt=\count87     \U@D=\dimen103     )     \l@canadian = a dialect from \language\l@american      \l@australian = a dialect from \language\l@british      \l@newzealand = a dialect from \language\l@british      ))     (C:\Users\admin\AppData\Roaming\MiKTeX\2.9\tex\latex\csquotes\csquotes.sty     Package: csquotes 2011/10/22 v5.1d context-sensitive quotations          (C:\Users\admin\AppData\Roaming\MiKTeX\2.9\tex\latex\etoolbox\etoolbox.sty     Package: etoolbox 2011/01/03 v2.1 e-TeX tools for LaTeX          ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\misc\etex.sty"     Package: etex 1998/03/26 v2.0 eTeX basic definition package (PEB)     \et@xins=\count88     )     \etb@tempcnta=\count89     )     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\keyval.sty"     Package: keyval 1999/03/16 v1.13 key=value parser (DPC)     \KV@toks@=\toks14     )     \csq@reset=\count90     \csq@gtype=\count91     \csq@glevel=\count92     \csq@qlevel=\count93     \csq@maxlvl=\count94     \csq@tshold=\count95     \csq@ltx@everypar=\toks15          (C:\Users\admin\AppData\Roaming\MiKTeX\2.9\tex\latex\csquotes\csquotes.def     File: csquotes.def 2011/10/22 v5.1d csquotes generic definitions     )     Package csquotes Info: Trying to load configuration file 'csquotes.cfg'...     Package csquotes Info: ... configuration file loaded successfully.          (C:\Users\admin\AppData\Roaming\MiKTeX\2.9\tex\latex\csquotes\csquotes.cfg     File: csquotes.cfg      ))     (C:\Users\admin\AppData\Roaming\MiKTeX\2.9\tex\latex\biblatex\biblatex.sty     Package: biblatex 2012/08/02 v2.1 programmable bibliographies (PK/JW/AB)          (C:\Users\admin\AppData\Roaming\MiKTeX\2.9\tex\latex\biblatex\biblatex2.sty     Package: biblatex2 2012/08/02 v2.1 programmable bibliographies (biber) (PK/JW/A     B)          ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\oberdiek\kvoptions.sty"     Package: kvoptions 2011/06/30 v3.11 Key value format for package options (HO)          ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\ltxcmds.sty"     Package: ltxcmds 2011/11/09 v1.22 LaTeX kernel commands for general use (HO)     )     ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\kvsetkeys.sty"     Package: kvsetkeys 2012/04/25 v1.16 Key value parser (HO)          ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\infwarerr.sty"     Package: infwarerr 2010/04/08 v1.3 Providing info/warning/error messages (HO)     )     ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\etexcmds.sty"     Package: etexcmds 2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO)          ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\ifluatex.sty"     Package: ifluatex 2010/03/01 v1.3 Provides the ifluatex switch (HO)     Package ifluatex Info: LuaTeX not detected.     )     Package etexcmds Info: Could not find \expanded.     (etexcmds)             That can mean that you are not using pdfTeX 1.50 or     (etexcmds)             that some package has redefined \expanded.     (etexcmds)             In the latter case, load this package earlier.     )))     (C:\Users\admin\AppData\Roaming\MiKTeX\2.9\tex\latex\logreq\logreq.sty     Package: logreq 2010/08/04 v1.0 xml request logger     \lrq@indent=\count96          (C:\Users\admin\AppData\Roaming\MiKTeX\2.9\tex\latex\logreq\logreq.def     File: logreq.def 2010/08/04 v1.0 logreq spec v1.0     ))     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\ifthen.sty"     Package: ifthen 2001/05/26 v1.1c Standard LaTeX ifthen package (DPC)     )     ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\ltxmisc\url.sty"     \Urlmuskip=\muskip10     Package: url 2006/04/12  ver 3.3  Verb mode for urls, etc.     )     \c@tabx@nest=\count97     \c@listtotal=\count98     \c@listcount=\count99     \c@liststart=\count100     \c@liststop=\count101     \c@citecount=\count102     \c@citetotal=\count103     \c@multicitecount=\count104     \c@multicitetotal=\count105     \c@instcount=\count106     \c@maxnames=\count107     \c@minnames=\count108     \c@maxitems=\count109     \c@minitems=\count110     \c@citecounter=\count111     \c@savedcitecounter=\count112     \c@uniquelist=\count113     \c@uniquename=\count114     \c@refsection=\count115     \c@refsegment=\count116     \c@maxextratitle=\count117     \c@maxextratitleyear=\count118     \c@maxextrayear=\count119     \c@maxextraalpha=\count120     \c@abbrvpenalty=\count121     \c@highnamepenalty=\count122     \c@lownamepenalty=\count123     \c@maxparens=\count124     \c@parenlevel=\count125     \blx@tempcnta=\count126     \blx@tempcntb=\count127     \blx@tempcntc=\count128     \blx@maxsection=\count129     \blx@maxsegment@0=\count130     \blx@notetype=\count131     \blx@parenlevel@text=\count132     \blx@parenlevel@foot=\count133     \blx@sectionciteorder@0=\count134     \labelnumberwidth=\skip43     \labelalphawidth=\skip44     \shorthandwidth=\skip45     \biblabelsep=\skip46     \bibitemsep=\skip47     \bibnamesep=\skip48     \bibinitsep=\skip49     \bibparsep=\skip50     \bibhang=\skip51     \blx@bcfin=\read1     \blx@bcfout=\write3     \c@mincomprange=\count135     \c@maxcomprange=\count136     \c@mincompwidth=\count137     Package biblatex Info: Trying to load biblatex default data model...     Package biblatex Info: ... file 'blx-dm.def' found.          (C:\Users\admin\AppData\Roaming\MiKTeX\2.9\tex\latex\biblatex\blx-dm.def)     Package biblatex Info: Trying to load biblatex style data model...     Package biblatex Info: ... file 'authoryear.dbx' not found.     Package biblatex Info: Trying to load biblatex custom data model...     Package biblatex Info: ... file 'biblatex-dm.cfg' not found.     \c@afterword=\count138     \c@savedafterword=\count139     \c@annotator=\count140     \c@savedannotator=\count141     \c@author=\count142     \c@savedauthor=\count143     \c@bookauthor=\count144     \c@savedbookauthor=\count145     \c@commentator=\count146     \c@savedcommentator=\count147     \c@editor=\count148     \c@savededitor=\count149     \c@editora=\count150     \c@savededitora=\count151     \c@editorb=\count152     \c@savededitorb=\count153     \c@editorc=\count154     \c@savededitorc=\count155     \c@foreword=\count156     \c@savedforeword=\count157     \c@holder=\count158     \c@savedholder=\count159     \c@introduction=\count160     \c@savedintroduction=\count161     \c@namea=\count162     \c@savednamea=\count163     \c@nameb=\count164     \c@savednameb=\count165     \c@namec=\count166     \c@savednamec=\count167     \c@shortauthor=\count168     \c@savedshortauthor=\count169     \c@shorteditor=\count170     \c@savedshorteditor=\count171     \c@translator=\count172     \c@savedtranslator=\count173     \c@labelname=\count174     \c@savedlabelname=\count175     \c@institution=\count176     \c@savedinstitution=\count177     \c@lista=\count178     \c@savedlista=\count179     \c@listb=\count180     \c@savedlistb=\count181     \c@listc=\count182     \c@savedlistc=\count183     \c@listd=\count184     \c@savedlistd=\count185     \c@liste=\count186     \c@savedliste=\count187     \c@listf=\count188     \c@savedlistf=\count189     \c@location=\count190     \c@savedlocation=\count191     \c@organization=\count192     \c@savedorganization=\count193     \c@origlocation=\count194     \c@savedoriglocation=\count195     \c@origpublisher=\count196     \c@savedorigpublisher=\count197     \c@publisher=\count198     \c@savedpublisher=\count199     \c@language=\count200     \c@savedlanguage=\count201     \c@pageref=\count202     \c@savedpageref=\count203     Package biblatex Info: Trying to load compatibility code...     Package biblatex Info: ... file 'blx-compat.def' found.          (C:\Users\admin\AppData\Roaming\MiKTeX\2.9\tex\latex\biblatex\blx-compat.def     File: blx-compat.def 2012/08/02 v2.1 biblatex compatibility (PK/JW/AB)     )     Package biblatex Info: Trying to load generic definitions...     Package biblatex Info: ... file 'biblatex.def' found.          (C:\Users\admin\AppData\Roaming\MiKTeX\2.9\tex\latex\biblatex\biblatex.def     File: biblatex.def      \c@biburlnumpenalty=\count204     \c@biburlucpenalty=\count205     \c@biburllcpenalty=\count206     \c@smartand=\count207     )     Package biblatex Info: Trying to load bibliography style 'authoryear'...     Package biblatex Info: ... file 'authoryear.bbx' found.          (C:\Users\admin\AppData\Roaming\MiKTeX\2.9\tex\latex\biblatex\bbx\authoryear.bb     x     File: authoryear.bbx 2012/08/02 v2.1 biblatex bibliography style (PK/JW/AB)     Package biblatex Info: Trying to load bibliography style 'standard'...     Package biblatex Info: ... file 'standard.bbx' found.          (C:\Users\admin\AppData\Roaming\MiKTeX\2.9\tex\latex\biblatex\bbx\standard.bbx     File: standard.bbx 2012/08/02 v2.1 biblatex bibliography style (PK/JW/AB)     \c@bbx:relatedcount=\count208     ))     Package biblatex Info: Trying to load citation style 'authoryear'...     Package biblatex Info: ... file 'authoryear.cbx' found.          (C:\Users\admin\AppData\Roaming\MiKTeX\2.9\tex\latex\biblatex\cbx\authoryear.cb     x     File: authoryear.cbx 2012/08/02 v2.1 biblatex citation style (PK/JW/AB)     Package biblatex Info: Redefining '\cite'.     Package biblatex Info: Redefining '\parencite'.     Package biblatex Info: Redefining '\footcite'.     Package biblatex Info: Redefining '\footcitetext'.     Package biblatex Info: Redefining '\smartcite'.     Package biblatex Info: Redefining '\textcite'.     )     Package biblatex Info: Trying to load configuration file...     Package biblatex Info: ... file 'biblatex.cfg' found.      (C:\Users\admin\AppData\Roaming\MiKTeX\2.9\tex\latex\biblatex\biblatex.cfg     File: biblatex.cfg      ))) ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\hyperref\hyperref.sty"     Package: hyperref 2012/05/13 v6.82q Hypertext links for LaTeX          ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\hobsub-hyperref.sty"     Package: hobsub-hyperref 2012/04/25 v1.12 Bundle oberdiek, subset hyperref (HO)               ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\hobsub-generic.sty"     Package: hobsub-generic 2012/04/25 v1.12 Bundle oberdiek, subset generic (HO)     Package: hobsub 2012/04/25 v1.12 Construct package bundles (HO)     Package hobsub Info: Skipping package `infwarerr' (already loaded).     Package hobsub Info: Skipping package `ltxcmds' (already loaded).     Package hobsub Info: Skipping package `ifluatex' (already loaded).     Package: ifvtex 2010/03/01 v1.5 Detect VTeX and its facilities (HO)     Package ifvtex Info: VTeX not detected.     Package: intcalc 2007/09/27 v1.1 Expandable calculations with integers (HO)     Package: ifpdf 2011/01/30 v2.3 Provides the ifpdf switch (HO)     Package ifpdf Info: pdfTeX in PDF mode is detected.     Package hobsub Info: Skipping package `etexcmds' (already loaded).     Package hobsub Info: Skipping package `kvsetkeys' (already loaded).     Package: kvdefinekeys 2011/04/07 v1.3 Define keys (HO)     Package: pdftexcmds 2011/11/29 v0.20 Utility functions of pdfTeX for LuaTeX (HO     )     Package pdftexcmds Info: LuaTeX not detected.     Package pdftexcmds Info: \pdf@primitive is available.     Package pdftexcmds Info: \pdf@ifprimitive is available.     Package pdftexcmds Info: \pdfdraftmode found.     Package: pdfescape 2011/11/25 v1.13 Implements pdfTeX's escape features (HO)     Package: bigintcalc 2012/04/08 v1.3 Expandable calculations on big integers (HO     )     Package: bitset 2011/01/30 v1.1 Handle bit-vector datatype (HO)     Package: uniquecounter 2011/01/30 v1.2 Provide unlimited unique counter (HO)     )     Package hobsub Info: Skipping package `hobsub' (already loaded).     Package: letltxmacro 2010/09/02 v1.4 Let assignment for LaTeX macros (HO)     Package: hopatch 2011/06/24 v1.1 Wrapper for package hooks (HO)     Package: xcolor-patch 2011/01/30 xcolor patch     Package: atveryend 2011/06/30 v1.8 Hooks at the very end of document (HO)     Package: atbegshi 2011/10/05 v1.16 At begin shipout hook (HO)     Package: refcount 2011/10/16 v3.4 Data extraction from label references (HO)     Package: hycolor 2011/01/30 v1.7 Color options for hyperref/bookmark (HO)     )     ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\ifxetex\ifxetex.sty"     Package: ifxetex 2010/09/12 v0.6 Provides ifxetex conditional     )     \@linkdim=\dimen104     \Hy@linkcounter=\count209     \Hy@pagecounter=\count210          ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\hyperref\pd1enc.def"     File: pd1enc.def 2012/05/13 v6.82q Hyperref: PDFDocEncoding definition (HO)     )     \Hy@SavedSpaceFactor=\count211          ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\00miktex\hyperref.cfg"     File: hyperref.cfg 2002/06/06 v1.2 hyperref configuration of TeXLive     )     Package hyperref Info: Hyper figures OFF on input line 4062.     Package hyperref Info: Link nesting OFF on input line 4067.     Package hyperref Info: Hyper index ON on input line 4070.     Package hyperref Info: Plain pages OFF on input line 4077.     Package hyperref Info: Backreferencing OFF on input line 4082.     Package hyperref Info: Implicit mode ON; LaTeX internals redefined.     Package hyperref Info: Bookmarks ON on input line 4300.     \c@Hy@tempcnt=\count212     LaTeX Info: Redefining \url on input line 4653.     \Fld@menulength=\count213     \Field@Width=\dimen105     \Fld@charsize=\dimen106     Package hyperref Info: Hyper figures OFF on input line 5773.     Package hyperref Info: Link nesting OFF on input line 5778.     Package hyperref Info: Hyper index ON on input line 5781.     Package hyperref Info: backreferencing OFF on input line 5788.     Package hyperref Info: Link coloring OFF on input line 5793.     Package hyperref Info: Link coloring with OCG OFF on input line 5798.     Package hyperref Info: PDF/A mode OFF on input line 5803.     LaTeX Info: Redefining \ref on input line 5843.     LaTeX Info: Redefining \pageref on input line 5847.     \Hy@abspage=\count214     \c@Item=\count215     \c@Hfootnote=\count216     )          Package hyperref Message: Driver (autodetected): hpdftex.          ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\hyperref\hpdftex.def"     File: hpdftex.def 2012/05/13 v6.82q Hyperref driver for pdfTeX     \Fld@listcount=\count217     \c@bookmark@seq@number=\count218          ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\oberdiek\rerunfilecheck.sty"     Package: rerunfilecheck 2011/04/15 v1.7 Rerun checks for auxiliary files (HO)     Package uniquecounter Info: New unique counter `rerunfilecheck' on input line 2     82.     )     \Hy@SectionHShift=\skip52     )     Package csquotes Info: Checking for multilingual support...     Package csquotes Info: ... found 'babel' package.     Package csquotes Info: Adjusting default style.     Package csquotes Info: Redefining alias 'default' -> 'american'.     Package biblatex Info: Trying to load language 'american'...     Package biblatex Info: ... file 'american.lbx' found.          (C:\Users\admin\AppData\Roaming\MiKTeX\2.9\tex\latex\biblatex\lbx\american.lbx     File: american.lbx 2012/08/02 v2.1 biblatex localization (PK/JW/AB)     Package biblatex Info: Trying to load language 'english'...     Package biblatex Info: ... file 'english.lbx' found.          (C:\Users\admin\AppData\Roaming\MiKTeX\2.9\tex\latex\biblatex\lbx\english.lbx     File: english.lbx 2012/08/02 v2.1 biblatex localization (PK/JW/AB)     )) ("C:\Users\admin\Desktop\New folder (2)\91-sorting-schemes.aux")     LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 8.     LaTeX Font Info:    ... okay on input line 8.     LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 8.     LaTeX Font Info:    ... okay on input line 8.     LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 8.     LaTeX Font Info:    ... okay on input line 8.     LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 8.     LaTeX Font Info:    ... okay on input line 8.     LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 8.     LaTeX Font Info:    ... okay on input line 8.     LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 8.     LaTeX Font Info:    ... okay on input line 8.     LaTeX Font Info:    Checking defaults for PD1/pdf/m/n on input line 8.     LaTeX Font Info:    ... okay on input line 8.     Package biblatex Info: No input encoding detected.     (biblatex)             Assuming 'ascii'.     Package biblatex Info: Automatic encoding selection.     (biblatex)             Assuming data encoding 'ascii'.     Package biblatex Info: Trying to load bibliographic data...               Package biblatex Warning: File '91-sorting-schemes.bbl' is wrong format version      - expected 2.1.          Package biblatex Info: ... file '91-sorting-schemes.bbl' found.     ("C:\Users\admin\Desktop\New folder (2)\91-sorting-schemes.bbl"     ! Undefined control sequence.     <argument> ...c@refsection @entry@\blx@slist@name           l.55   \endentry          The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spelling (e.g., `I\hbox'). Otherwise just continue,     and I'll forget about whatever was undefined.          ! Undefined control sequence.     <argument> ...c@refsection @entry@\blx@slist@name           l.55   \endentry          The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spelling (e.g., `I\hbox'). Otherwise just continue,     and I'll forget about whatever was undefined.          ! Undefined control sequence.     <argument> ...c@refsection @entry@\blx@slist@name           l.93   \endentry          The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spelling (e.g., `I\hbox'). Otherwise just continue,     and I'll forget about whatever was undefined.          ! Undefined control sequence.     <argument> ...c@refsection @entry@\blx@slist@name           l.93   \endentry          The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spelling (e.g., `I\hbox'). Otherwise just continue,     and I'll forget about whatever was undefined.          ! Undefined control sequence.     <argument> ...c@refsection @entry@\blx@slist@name           l.115   \endentry          The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spelling (e.g., `I\hbox'). Otherwise just continue,     and I'll forget about whatever was undefined.          ! Undefined control sequence.     <argument> ...c@refsection @entry@\blx@slist@name           l.115   \endentry          The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spelling (e.g., `I\hbox'). Otherwise just continue,     and I'll forget about whatever was undefined.          ! Undefined control sequence.     <argument> ...c@refsection @entry@\blx@slist@name           l.143   \endentry          The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spelling (e.g., `I\hbox'). Otherwise just continue,     and I'll forget about whatever was undefined.          ! Undefined control sequence.     <argument> ...c@refsection @entry@\blx@slist@name           l.143   \endentry          The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spelling (e.g., `I\hbox'). Otherwise just continue,     and I'll forget about whatever was undefined.          )     Package biblatex Info: Reference section=0 on input line 8.     Package biblatex Info: Reference segment=0 on input line 8.     \AtBeginShipoutBox=\box26     Package hyperref Info: Link coloring OFF on input line 8.      ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\hyperref\nameref.sty"     Package: nameref 2010/04/30 v2.40 Cross-referencing by name of section          ("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\oberdiek\gettitlestring.sty"     Package: gettitlestring 2010/12/03 v1.4 Cleanup title references (HO)     )     \c@section@level=\count219     )     LaTeX Info: Redefining \ref on input line 8.     LaTeX Info: Redefining \pageref on input line 8.     LaTeX Info: Redefining \nameref on input line 8.          ("C:\Users\admin\Desktop\New folder (2)\91-sorting-schemes.out")     ("C:\Users\admin\Desktop\New folder (2)\91-sorting-schemes.out")     \@outlinefile=\write4          ! Undefined control sequence.     <argument> \blx@tempb           l.9 ...ite{wassenberg,cicero,companion,angenendt}.          The control sequence at the end of the top line     of your error message was never \def'ed. If you have     misspelled it (e.g., `\hobx'), type `I' and the correct     spelling (e.g., `I\hbox'). Otherwise just continue,     and I'll forget about whatever was undefined.               LaTeX Warning: Empty bibliography on input line 10.          Package atveryend Info: Empty hook `BeforeClearDocument' on input line 11.     [1          {C:/Users/admin/AppData/Local/MiKTeX/2.9/pdftex/config/pdftex.map}]     Package atveryend Info: Empty hook `AfterLastShipout' on input line 11.          ("C:\Users\admin\Desktop\New folder (2)\91-sorting-schemes.aux")     Package atveryend Info: Executing hook `AtVeryEndDocument' on input line 11.     Package atveryend Info: Executing hook `AtEndAfterFileList' on input line 11.     Package rerunfilecheck Info: File `91-sorting-schemes.out' has not changed.     (rerunfilecheck)             Checksum: D41D8CD98F00B204E9800998ECF8427E;0.     Package logreq Info: Writing requests to '91-sorting-schemes.run.xml'.      )      Here is how much of TeX's memory you used:      9990 strings out of 494045      162862 string characters out of 3145970      565699 words of memory out of 3000000      13215 multiletter control sequences out of 15000+200000      4403 words of font info for 15 fonts, out of 3000000 for 9000      715 hyphenation exceptions out of 8191      44i,4n,35p,920b,1416s stack positions out of 5000i,500n,10000p,200000b,50000s      <C:\Users\admin\AppData\Local\MiKTeX\2.9\fonts\pk\ljfour\jknappen\ec\dpi600\     ecrm1000.pk>     Output written on 91-sorting-schemes.pdf (1 page, 5224 bytes).     PDF statistics:      26 PDF objects out of 1000 (max. 8388607)      2 named destinations out of 1000 (max. 500000)      1 words of extra memory for PDF output out of 10000 (max. 10000000)


title: Xelatex polyglossia hyphenation

text: Is there a way to make the `polyglossia` package solve the hyphenation problem that presents itself in the log as "Overfull `\hbox`" automatically? (Note: I find that having shorter lines—even for the entirety of the text—is much less worse than having protruding lines.) I'm trying to get:               ... end of line     end of line     ... end of line     ... end of line      ...but what I have (and don't want) is:               ... end of line     ... overfullboxishere     ... end of line     ... end of line      Here's an example of an "overfull box" error: ![Example of "overfull box" error #1](http://i.stack.imgur.com/s7Jto.png) Another question: that could be related: `polyglossia` does not make hyphenation for other specified languages. Example of "overfull box" error of other language with `polyglossia`: ![Example of "overfull box" error #2](http://i.stack.imgur.com/Ww2Bs.png) When I use the `\textenglish` command, the problem seems to solve itself: ![\\textenglish command is used](http://i.stack.imgur.com/0y4SO.png) However, the resulting document is contaminated with `\textenglish`, and I don't want `\textenglish` in my document. MWE               \documentclass[12pt]{article}          \usepackage{polyglossia}     \usepackage{lipsum}          \setdefaultlanguage{russian}     \setotherlanguages{english}     \setmainfont[Mapping=tex-text]{Times New Roman}          \begin{document}     \lipsum[1]          \begin{itemize}       \item Возможность работать с такими популярными как       %  \textenglish{         MySQL, SQLite, PostgreSQL, Oracle, and Microsoft SQL Server.       %}     \end{itemize}          \lipsum[1]     \end{document}


title: Adding graphics and fixing reference problems

text: I have two problems in a academic resume. First attach a picture on the top right and second fixing some problems in references. ![enter image description here](http://i.stack.imgur.com/vpyys.png) The template can be found in here the code is given here:                   %% start of file `template.tex'.     %% Copyright 2006-2013 Xavier Danaux (xdanaux@gmail.com).     %     % This work may be distributed and/or modified under the     % conditions of the LaTeX Project Public License version 1.3c,     % available at http://www.latex-project.org/lppl/.               \documentclass[11pt,a4paper,sans]{moderncv}        % possible options include font size ('10pt', '11pt' and '12pt'), paper size ('a4paper', 'letterpaper', 'a5paper', 'legalpaper', 'executivepaper' and 'landscape') and font family ('sans' and 'roman')          % moderncv themes     \moderncvstyle{banking}                            % style options are 'casual' (default), 'classic', 'oldstyle' and 'banking'     \moderncvcolor{red}                                % color options 'blue' (default), 'orange', 'green', 'red', 'purple', 'grey' and 'black'     %\renewcommand{\familydefault}{\sfdefault}         % to set the default font; use '\sfdefault' for the default sans serif font, '\rmdefault' for the default roman one, or any tex font name     %\nopagenumbers{}                                  % uncomment to suppress automatic page numbering for CVs longer than one page          % character encoding     \usepackage[utf8]{inputenc}                       % if you are not using xelatex ou lualatex, replace by the encoding you are using     %\usepackage{CJKutf8}                              % if you need to use CJK to typeset your resume in Chinese, Japanese or Korean          % adjust the page margins     \usepackage[scale=0.75]{geometry}     %\setlength{\hintscolumnwidth}{3cm}                % if you want to change the width of the column with the dates     %\setlength{\makecvtitlenamewidth}{10cm}           % for the 'classic' style, if you want to force the width allocated to your name and avoid line breaks. be careful though, the length is normally calculated to avoid any overlap with your personal info; use this at your own typographical risks...          % personal data     \name{John}{Doe}     \title{Resumé title}                               % optional, remove / comment the line if not wanted     \address{street and number}{postcode city}{country}% optional, remove / comment the line if not wanted; the "postcode city" and and "country" arguments can be omitted or provided empty     \phone[mobile]{+1~(234)~567~890}                   % optional, remove / comment the line if not wanted     \phone[fixed]{+2~(345)~678~901}                    % optional, remove / comment the line if not wanted     \phone[fax]{+3~(456)~789~012}                      % optional, remove / comment the line if not wanted     \email{john@doe.org}                               % optional, remove / comment the line if not wanted     \homepage{www.johndoe.com}                         % optional, remove / comment the line if not wanted     \extrainfo{additional information}                 % optional, remove / comment the line if not wanted     \photo[64pt][0.4pt]{picture}                       % optional, remove / comment the line if not wanted; '64pt' is the height the picture must be resized to, 0.4pt is the thickness of the frame around it (put it to 0pt for no frame) and 'picture' is the name of the picture file     \quote{Some quote}            \newcommand{\cvdoublecolumn}[2]{%       \cvline[]{}{%         \begin{minipage}[t]{\listdoubleitemmaincolumnwidth}#1\end{minipage}%         \hfill%         \begin{minipage}[t]{\listdoubleitemmaincolumnwidth}#2\end{minipage}%         }%     }          % usage: \cvreference{name}{address line 1}{address line 2}{address line 3}{address line 4}{e-mail address}{phone number}     % Everything but the name is optional     % If \addresssymbol, \emailsymbol or \phonesymbol are specified, they will be used.     % (Per default, \addresssymbol isn't specified, the other two are specified.)     % If you don't like the symbols, remove them from the following code, including the tilde ~ (space).          \newcommand{\cvreference}[7]{%         \textbf{#1}\newline% Name         \ifthenelse{\equal{#2}{}}{}{\addresssymbol~#2\newline}%         \ifthenelse{\equal{#3}{}}{}{#3\newline}%         \ifthenelse{\equal{#4}{}}{}{#4\newline}%         \ifthenelse{\equal{#5}{}}{}{#5\newline}%         \ifthenelse{\equal{#6}{}}{}{\emailsymbol~\texttt{#6}\newline}%         \ifthenelse{\equal{#7}{}}{}{\phonesymbol~#7}}          % to show numerical labels in the bibliography (default is to show no labels); only useful if you make citations in your resume     %\makeatletter     %\renewcommand*{\bibliographyitemlabel}{\@biblabel{\arabic{enumiv}}}     %\makeatother     %\renewcommand*{\bibliographyitemlabel}{[\arabic{enumiv}]}% CONSIDER REPLACING THE ABOVE BY THIS          % bibliography with mutiple entries     %\usepackage{multibib}     %\newcites{book,misc}{{Books},{Others}}     %----------------------------------------------------------------------------------     %            content     %----------------------------------------------------------------------------------     \begin{document}     %\begin{CJK*}{UTF8}{gbsn}                          % to typeset your resume in Chinese using CJK     %-----       resume       ---------------------------------------------------------     \makecvtitle          \section{Education}     \cventry{year--year}{Degree}{Institution}{City}{\textit{Grade}}{Description}  % arguments 3 to 6 can be left empty     \cventry{year--year}{Degree}{Institution}{City}{\textit{Grade}}{Description}          \section{Master thesis}     \cvitem{title}{\emph{Title}}     \cvitem{supervisors}{Supervisors}     \cvitem{description}{Short thesis abstract}          \section{References}          \cvdoublecolumn{\cvreference{Nicolai Reshetikhin}         {Department of Mathematics}         {University of California}         {Berkeley, CA 94720-3840}         {}         {reshetik@math.berkeley.edu}         {510-643-6234}%         }         {\cvreference{Mikhail Khovanov}         {Department of Mathematics}         {Columbia University}         {990 Broadway}         {New York, NY 10027}         {khovanov@columbia.edu}         {212-854-4186}%         }          \cvdoublecolumn{\cvreference{Roman Bezrukavnikov}         {Department of Mathematics}         {Massachusetts Institute of Technology}         {77 Massachusetts Avenue}         {Cambridge, MA 02139}         {bezrukav@math.mit.edu}         {617-253-2684}         }         {\cvreference{Tom Braden}         {Department of Mathematics}         {University of Massachusetts}         {Amherst, MA 94720-3840}         {}         {braden@math.umass.edu}         {413-545-1732}         }     \end{document}               %% end of file `template.tex'.


title: tikz curve normal vector

text: I'm trying to do a nice sketch using tikz. My tikz code is like this:               \documentclass[]{scrartcl}       \usepackage{tikz}        \usetikzlibrary{arrows}            \begin{document}          \begin{tikzpicture}[allow upside down, scale=1]     %(0,0)(0.70,1.9)(1.41,3.6)     %\draw plot [smooth, tension=0.5] coordinates{(2.13,5.1)(2.86,6.4)(3.62,7.5)(4.42,8.4)(5.30,9.1)(6.34,9.6)(7.13,9.8)(8.42,9.9)}     \draw[red,line width=1pt] (2.13,5.1) -- (2.86,6.4) -- (3.62,7.5) -- (4.42,8.4) -- (5.30,9.1) -- (6.34,9.6) -- (7.13,9.8) -- (8.42,9.9) [smooth, tension=0.5]     node[sloped,inner sep=0cm,above,pos=.5,     anchor=south west,     minimum height=2cm,minimum width=1cm](N){};          \path (N.south west)     edge[->,blue] node[left] {$\vec{ n}$} (N.north west);          \end{tikzpicture}          \end{document}      Mostly taken from there: How to draw tangent vectors and component vectors on a curve  My Problems:   1. How do I define the point for the normal vector?   2. I'd really like that smooth ... how?   3. How do I add another vector (same target, but other angle) Output of the current code: ![enter image description here](http://i.stack.imgur.com/li3fq.png) What I'm trying to do: ![enter image description here](http://i.stack.imgur.com/SjZXA.png)


title: Make symbol index with description

text: I'm starting to make a symbol and subject index with the package `multind`. In the symbol index, I would like to group the symbols by thematics, e.g., write **set theory notation** and have all the symbols below the description, after write **operators** and have all the notation for the operators, etc. Does anyone knows how to do this? I would like to obtain something like the following ![](https://dl.dropboxusercontent.com/u/112340/Screen%20Shot%202013-11-20%20at%2020.28.30.png) Can anyone help me with a minimal working example? Preferably changing the section with page number.


title: unwanted en-dash ligature with lualatex but not with xelatex

text: I am trying to generate PDF documentation out of Pandoc Markdown README document. Here is MWE:               \documentclass[english,]{article}     \usepackage[T1]{fontenc}     \usepackage{ifxetex,ifluatex}          \ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex       \usepackage[utf8]{inputenc}     \else % if luatex or xelatex       \ifxetex         \usepackage{mathspec}         \usepackage{xltxtra,xunicode}       \else         \usepackage{fontspec}       \fi     \fi          \defaultfontfeatures{Ligatures=TeX}     \setmonofont[Scale=MatchLowercase]{DejaVu Sans Mono}          \begin{document}     \texttt{-{}-enable-debugging}     \end{document}      When I generate a PDF using `lualatex` (beta-0.76.0-2013070111 (TeX Live 2013/Debian) (rev 4627)) it creates a en-dash instead of typesetting `\--`: ![unwanted en-dash picture](http://i.imgur.com/dNueeSK.png?1) The en-dash is unwanted. XeLaTeX does not do that. I want two dashes. **UPDATE** In the end, I have created a patch that makes Pandoc use `-\/-` instead of `-{}-` to avoid the ligature.


title: Problem aligning binary and hexadecimal numbers in siunitx table

text: Could you tell me what's wrong with next code? I want to get a three columns tabular where numbers are typeset with `typewriter` family and centred below its header. Numbers won't have any decimal part, they are integers and their decimal, binary and hexadecimal representation.               \documentclass{article}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{lmodern}     \usepackage{siunitx}     \usepackage{booktabs}     \begin{document}          \sisetup{math-rm=\mathtt,              group-digits=false,              table-figures-decimal=0,              table-number-alignment=center,             input-digits={0123456789ABCDEF}             }          \begin{tabular}{SS[minimum-integer-digits=8]S}     \toprule     {Decimal} & {Binary} & {Hexadecimal} \\     \midrule     63 & 00111111 & 3F \\     250 & 11111010 & FA \\     117 & 01110101 & 75 \\     220 & 11011100 & DC \\     171 & 10101011 & AB \\     94 & 01011110 & 5E \\     \bottomrule     \end{tabular}     \end{document}      As you can see, second column doesn't have enough space and second and third column are not correctly aligned. What am I misunderstanding in `siunitx` guide? ![enter image description here](http://i.stack.imgur.com/aWSEs.png)


title: bibtex does not show all the entries of @inCollection

text: Using `bibtex`The url does not appear in the references using the following @inCollection               @InCollection{simplicity,     author       =  {Baker, Alan},     title        =  {Simplicity},     booktitle    =  {The Stanford Encyclopedia of Philosophy},     editor       =  {Edward N. Zalta},     howpublished =  {\url{http://plato.stanford.edu/archives/fall2013/entries/simplicity/}},     year         =  {2013},     edition      =  {Fall 2013},      } and it appears as:   Alan Baker. Simplicity. In Edward N. Zalta, editor, The Stanford Encyclopedia of Philosophy. Fall 2013 edition, 2013.


title: More than one option for a custom arrow head in TikZ

text: I'd like to set more than one option for a custom arrowhead by means of the `pgfsetarrowoptions` command. Is it possible? How can I do? And then, how can I catch the values with the `pgfgetarrowoptions` command. For example, imagine that I need to change both the angle and the color of the tip in the following example, from the `pgfmanual`:               \documentclass[border=1mm,tikz]{standalone}     \newlength\arrowsize     \pgfarrowsdeclare{var arc}{var arc} % options is an angle     {     \arrowsize=0.2pt     \advance\arrowsize by .5\pgflinewidth     \pgfarrowsleftextend{-4\arrowsize-.5\pgflinewidth}     \pgfarrowsrightextend{.5\pgflinewidth}     }     {     \arrowsize=0.2pt     \advance\arrowsize by .5\pgflinewidth     \pgfsetdash{}{0pt} % do not dash     \pgfsetroundjoin % fix join     \pgfsetroundcap % fix cap     \pgfpathmoveto{\pgfpointorigin}     \pgfpatharc{-90}{-180+\pgfgetarrowoptions{var arc}}{4\arrowsize}     \pgfusepathqstroke     \pgfpathmoveto{\pgfpointorigin}     \pgfpatharc{90}{180-\pgfgetarrowoptions{var arc}}{4\arrowsize}     \pgfusepathqstroke     }     \begin{document}     \begin{tikzpicture}     \draw[help lines] (-2,-4) grid (1,4);     \foreach \option in {-60,-50,...,60}     {     \pgfsetarrowoptions{var arc}{\option}     \draw[ultra thick,-var arc] (-2,\option/15) -- (0,\option/15);     }     \end{tikzpicture}     \end{document}


title: Citation in the body of the text

text: I have tried to use `bibtex` and `bibentry`, but I didn't succeed. Does someone have an idea how I can cite the whole reference in the body of the text, repeating or not the list of references in the end? Here is the example:               \begin{filecontents}{mybib.bib}         @book{example,             author = "John",             title = "The book's title",             year = "2013",             publisher = "Cambridge",         }          \end{filecontents}          \documentclass{article}          \usepackage[round]{natbib}  % bibliography package          \usepackage{bibentry}         %  full citation in the body of the text (turn off natbib if use it)          \nobibliography*                   % no bib at the end               \begin{document}          This would be the complete citation          \bibentry{example}          And this would be just the regular citation: \cite{example}               \bibliography{mybib.bib}          \bibliographystyle{apa}          \end{document}


title: Hyperref and Automatic Citation indexing

text: I am using `hyperref` package with `backref` option               \usepackage[bookmarks=true, backref, allbordercolors = green]{hyperref}      It generated references at the end of IEEE style document with a roman numeral at the end of each citation. It is the link to section in the paper where the reference was used. For eg. the verbatim text appearing in the reference section as: > P. Lecocq, P. Gautron, J.-E. Marvie, and G. Sourimant, “Subpixel shadow > mapping,” in ACM SIGGRAPH 2013 Talks. ACM, 2013, p. 19. **II** Do you know if the **II** in the end causes problem with automatic citation counters like Google Scholar, ACM, and others?


title: What needs to be done to get preview of TeX/LaTeX files in Preview-Pane of Windows Explorer?

text: When you click on a usual text file you see its preview (contents) in the Preview Pane of the Windows Explorer. Same is possible with many other formats like Word, Excel etc. Is it possible for TeX/LaTeX files as well? I am using TeXWorks for editing- compiling LaTeX.


title: Having references in the same latex file

text: Is there a way to have references in the same latex file (i.e. instead of having the references in a separate .bib file)


title: Can't define fixed-width font with TexShop, fontspec

text: I've used Alex Hirzel's code to enable code snippets in LaTex articles: ![enter image description here](http://i.stack.imgur.com/lwKEv.png) The problem is that I can't set the font to a fixed-width one. Whenever this line is commented out:               %\fontspec{Courier New}      I get the following error:               ./code3.tex:33: Undefined control sequence.     \codefont -> \fontspec                             {Courier New} \fontsize {9pt}{11pt}\selectfont      l.33 \begin{code}      Any idea how can I set the font type? I'm using TexShop on Mac, if it matters.


title: Vertical alignment of subfigures of different horizontal length

text: I have four different tikzpictures merged in one single figure by means of the `subcaption` package and the `\subfigure` environment. However, the figures have different horizontal lengths, so I don't get a proper vertical alignment. ![Immagine](http://i.stack.imgur.com/v5Nbt.jpg) Instead of this, I would like to have the center of each box vertically aligned with the center of the other boxes and with the subcaptions, i.e. (a),(b)... I wouldn't mind if something had to be rescaled (to fit the linewidth), but please note that each subfigure should be rescaled accordingly, in order for all the boxes to be of the same size. Here is my code:               \documentclass[a4paper]{article}     \usepackage{tikz}     \usepackage{subcaption}     \usetikzlibrary{positioning}     \begin{document}     \begin{figure}       \begin{subfigure}{\linewidth}         \centering         \begin{tikzpicture}[>=latex]           \node (a) [] {$c_k\delta_{\Delta}(t-k\Delta)+c_j\delta_{\Delta}(t-j\Delta)$};           \node [draw,thick,rectangle,minimum width=2cm,minimum height=1cm] (b) [right=of a] {\texttt{SISO-L}};           \node (c) [right=of b] {$c_kh_{k\Delta}(t)+c_jh_{j\Delta}(t)$};           \path [->,thick] (a) edge (b)                          (b) edge (c);         \end{tikzpicture}       \caption{}     \label{fig:}     \end{subfigure}\\[.5cm]     \begin{subfigure}{\linewidth}       \centering       \begin{tikzpicture}[>=latex]         \node (a) [] {$\displaystyle \sum_{k=-\infty}^{\infty}u(k\Delta)\delta_{\Delta}(t-k\Delta)\Delta$};         \node [draw,thick,rectangle,minimum width=2cm,minimum height=1cm] (b) [right=of a] {\texttt{SISO-L}};         \node (c) [right=of b] {$\displaystyle \sum_{k=-\infty}^{\infty}u(k\Delta)h_{k\Delta}(t)$};         \path [->,thick] (a) edge (b)                          (b) edge (c);       \end{tikzpicture}     \caption{}     \label{fig:}     \end{subfigure}\\[.5cm]     \begin{subfigure}{\linewidth}       \centering       \begin{tikzpicture}[>=latex]           \node (a) [] {$\delta(t-\tau)$};         \node [draw,thick,rectangle,minimum width=2cm,minimum height=1cm] (b) [right=of a] {\texttt{SISO-L}};         \node (c) [right=of b] {$h_{\tau}(t)$};         \path [->,thick] (a) edge (b)                          (b) edge (c);       \end{tikzpicture}     \caption{}     \label{fig:}     \end{subfigure}\\[.5cm]     \begin{subfigure}{\linewidth}     \centering       \begin{tikzpicture}[>=latex]         \node (a) [] {$\displaystyle u(t)=\int_{-\infty}^{\infty}u(\tau)\delta(t-\tau)\,\mathrm{d}\tau$};         \node [draw,thick,rectangle,minimum width=2cm,minimum height=1cm] (b) [right=of a] {\texttt{SISO-L}};         \node (c) [right=of b] {$\displaystyle y(t)=\int_{-\infty}^{\infty}u(\tau)h_{\tau}(t)\,\mathrm{d}\tau$};         \path [->,thick] (a) edge (b)                          (b) edge (c);       \end{tikzpicture}     \caption{}     \label{fig:}     \end{subfigure}     \caption{}     \label{fig:}     \end{figure}     \end{document}      Thanks in advance.


title: Slashed symbols

text: In my field of work, mathematical operators that live on reduced dimensions are customarily defined as the normal one with a slash through it. For example, the gradient is usually written as `\nabla`, and if we restrict the gradient to the surface of a sphere, we usually denote it by the same symbol with a slash through it. One way to produce a similar effect is to (ab)use the `\not` command. But as it is really built for binary relations, the slashes that it produces looks weirdly off-centre when applied to objects that are not binary relations. Is there a better way to get slashes through arbitrary symbols?


title: Running numbers for comments

text: I wish to have comment 1, comment 2 as running numbers, and for each reviewer I want to restart the running number, is there a good way to achieve this? Following is how the pdf currently looks, and its latex (you can see that I hard code the number in the latex). ![enter image description here](http://i.stack.imgur.com/QQorf.jpg)                \documentclass{article}         \usepackage[usenames]{color}              \begin{document}         \setlength{\parindent}{0pt}         \setlength{\parskip}{2ex}                   \title{Change Summary}              \author{This is author}              \maketitle                   We are thankful for the valuable and insightful comments from referees.         These comments have helped us to improve our work.         We have fixed the typos and language problems based on the reviews.         The rest of the comments are addressed in the following.              \section*{Reviewer 1}         \textbf{Comment 1}:         This is comment 1              \textbf{Reply}: This is reply 1         .              \textbf{Comment 2}: This is comment 2              \textbf{Reply}:         This is reply 2              \section*{Reviewer 2}         \textbf{Comment 1}: This is comment 1              \textbf{Reply}: This is Reply 1              \end{document}


title: BibLaTeX `@set` in authoryear style for translated article

text: When using the `@set` entry type in combination with the authoryear style in BibLaTeX, I obtain unexpected results. Instead of giving the correct year for each entry in the set, the year of the main entry gets repeated. An example explains this better:               \begin{filecontents*}{\jobname.bib}     @SET{set,       entryset = {original,translation}     }          @ARTICLE{original,       author = {Author, A.},       journal = {Journal de France},       year = {1999}     }          @ARTICLE{translation,       author = {Author, A.},       journal = {American Journal},       year = {2000},       translator = {Traducteur, T.}     }     \end{filecontents*}          \documentclass{article}          \usepackage[style=authoryear]{biblatex}     \addbibresource{\jobname.bib}          \begin{document}     \nocite{set}     \printbibliography     \end{document}      ![Result of compilation](http://i.stack.imgur.com/aYPva.png) I would have expected the second appearance of 1999 to give 2000... Or maybe, that the bibliography style would change on subsequent set entries. Could someone clarify this to me or propose a workaround?


title: How can I typeset an exam or assignment paper?

text: I want to use LaTeX for exam and assignment papers for a class that I am teaching. I obviously could just do the whole thing myself. But, what alternatives are there for easily typesetting such documents? Ideally, the solution would handle points (providing a total) or percentage values (ensuring they sum to 100), multi-part questions, optionally provide space for answers, and allow for all of fill in the blanks, multiple choice, and straight-up questions.


title: Using pgfplots, add vertical/horizontal spacing between plots?

text: I once already asked a very similar question; How can I add space between two separate plots, using pgfplots?. But this is some what different. I have the following code;               \documentclass{standalone}     \usepackage{graphics}     \usepackage{tikz,pgfplots}     \pgfplotsset{compat=1.6}     \begin{document}     \begin{tikzpicture}          \begin{axis}[%     width=3cm,     height=3cm,     scale only axis,     every x tick label/.append style={font=\scriptsize\color{gray!80!black}},     xmin=0, xmax=20000,     xlabel={$t$},     xmajorgrids,     xminorgrids,     every y tick label/.append style={font=\scriptsize\color{gray!80!black}},     ymin=0.0004, ymax=0.0012,     ylabel={$\phi_{\mathrm{i}}(t)$},     ymajorgrids,     yminorgrids,     name=plot1]          \end{axis}          \begin{axis}[%     width=3cm,     height=3cm,     scale only axis,     every x tick label/.append style={font=\scriptsize\color{gray!80!black}},     xmin=0, xmax=20000,     xlabel={$t$},     xmajorgrids,     xminorgrids,     every y tick label/.append style={font=\scriptsize\color{gray!80!black}},     ymin=0.2, ymax=1.2,     ylabel={$h(t)$},     ymajorgrids,     yminorgrids,     name=plot2,     at=(plot1.right of north east), anchor=left of north west]          \end{axis}          \begin{axis}[%     width=3cm,     height=3cm,     scale only axis,     every x tick label/.append style={font=\scriptsize\color{gray!80!black}},     xmin=0, xmax=20000,     xlabel={$t$},     xmajorgrids,     xminorgrids,     every y tick label/.append style={font=\scriptsize\color{gray!80!black}},     ymin=0.0004, ymax=0.0012,     ylabel={$\phi_{\mathrm{o}}(t)$},     ymajorgrids,     yminorgrids,     name=plot4,     at=(plot1.below south west), anchor=above north west]          \end{axis}          \begin{axis}[%     width=3cm,     height=3cm,     scale only axis,     every x tick label/.append style={font=\scriptsize\color{gray!80!black}},     xmin=0, xmax=20000,     xlabel={$t$},     xmajorgrids,     xminorgrids,     every y tick label/.append style={font=\scriptsize\color{gray!80!black}},     ymin=2000, ymax=12000,     ylabel={$p_{\mathrm{i}}(t)$},     ymajorgrids,     yminorgrids,     name=plot5,     at=(plot4.right of north east), anchor=left of north west]          \end{axis}          \end{tikzpicture}     \end{document}      This creates the following plot: ![Without any spacing using x- yshift.](http://i.stack.imgur.com/JIla5.png) I think there is to few vertical/horizontal spacing between the plots. I want to increase this. Currently I use x- yshift, this gives the following result:               \documentclass{standalone}     \usepackage{graphics}     \usepackage{tikz,pgfplots}     \pgfplotsset{compat=1.6}     \begin{document}     \begin{tikzpicture}          \begin{axis}[%     width=3cm,     height=3cm,     scale only axis,     every x tick label/.append style={font=\scriptsize\color{gray!80!black}},     xmin=0, xmax=20000,     xlabel={$t$},     xmajorgrids,     xminorgrids,     every y tick label/.append style={font=\scriptsize\color{gray!80!black}},     ymin=0.0004, ymax=0.0012,     ylabel={$\phi_{\mathrm{i}}(t)$},     ymajorgrids,     yminorgrids,     name=plot1]          \end{axis}          \begin{axis}[%     xshift=1cm,     width=3cm,     height=3cm,     scale only axis,     every x tick label/.append style={font=\scriptsize\color{gray!80!black}},     xmin=0, xmax=20000,     xlabel={$t$},     xmajorgrids,     xminorgrids,     every y tick label/.append style={font=\scriptsize\color{gray!80!black}},     ymin=0.2, ymax=1.2,     ylabel={$h(t)$},     ymajorgrids,     yminorgrids,     name=plot2,     at=(plot1.right of north east), anchor=left of north west]          \end{axis}          \begin{axis}[%     yshift=-1cm,     width=3cm,     height=3cm,     scale only axis,     every x tick label/.append style={font=\scriptsize\color{gray!80!black}},     xmin=0, xmax=20000,     xlabel={$t$},     xmajorgrids,     xminorgrids,     every y tick label/.append style={font=\scriptsize\color{gray!80!black}},     ymin=0.0004, ymax=0.0012,     ylabel={$\phi_{\mathrm{o}}(t)$},     ymajorgrids,     yminorgrids,     name=plot4,     at=(plot1.below south west), anchor=above north west]          \end{axis}          \begin{axis}[%     xshift=1cm,     width=3cm,     height=3cm,     scale only axis,     every x tick label/.append style={font=\scriptsize\color{gray!80!black}},     xmin=0, xmax=20000,     xlabel={$t$},     xmajorgrids,     xminorgrids,     every y tick label/.append style={font=\scriptsize\color{gray!80!black}},     ymin=2000, ymax=12000,     ylabel={$p_{\mathrm{i}}(t)$},     ymajorgrids,     yminorgrids,     name=plot5,     at=(plot4.right of north east), anchor=left of north west]          \end{axis}          \end{tikzpicture}     \end{document}      ![With spacing using x- yshift](http://i.stack.imgur.com/JQFHR.png) I want to know if there is a more consistent manner to do this.


title: How to add a dot after the section number?

text: I wonder is there any way to change the format of section numbering from 1.1 to 1.1. ? I know this is trivial, but I really need to add one more dot after the section number. Does anybody know how to do that? Thanks a lot


title: How to insert a dot in the section headings?

text: I am using this macro:                   \newcommand{\ssection}[1]{\section[1]{\centering #1}}              \ssection{BACKGROUND}      Result, is centered but there are couple of spaces between 1 and B: > 1 BACKGROUND The result i am looking for > 1.BACKGROUND                  \newcommand{\ssection}[1]{. \section[1]{\centering #1}}      This gives me '1.' two extra spaces then '.BACKGROUND'


title: Absolute position and pagebreak

text: I need to generate random text and if random text = `\textheight`, break page automatically and start new page with the rest of the text in the same `textblock` environment. I read many articles, but the biggest problem is with absolute position, which ignores everything except `\null\newpage`. Help me, please! I have code:               \documentclass[a4paper]{letter}          %define used packages     \usepackage{setspace}     \usepackage{xcolor}     \usepackage{graphicx}     \usepackage{pagecolor}     \usepackage[absolute,overlay]{textpos}     \usepackage{helvet}     \usepackage{multicol}     \usepackage[left=2cm, top=1.5cm, right=1cm, bottom=2cm, includehead]{geometry}     \usepackage{eso-pic}            %specify layout settings     \voffset = 0pt     \hoffset = 0pt     \headheight = 45pt     \headsep = 0.5cm     \footskip = 0.5cm     \oddsidemargin = -14pt      \pagecolor{white}     \setlength\columnsep{38pt}          %define custom colors       \definecolor{MySpecColor}{RGB}{245,247,246}     \definecolor{MySpecTitleColor}{RGB}{249,206,143}     \definecolor{MySpecHeaderColor}{RGB}{221,130,0}          %create new commands     \newcommand{\parallelcolor}{ %         \color{black}\small\onehalfspacing             }     \newcommand{\changecolor}{%         \color{MySpecTitleColor}      }     \newcommand{\redefinecolor}{%         \color{black}      }     \newcommand{\redefineweight}{%         \bf     }     \newcommand{\setownstyle}{     %   \rmfamily         \LARGE\color{black}     }     \newcommand{\setownspecstyle}{     %\rmfamily     \LARGE\color{MySpecHeaderColor}     }          %define renewcommands     \renewcommand{\rmdefault}{phv}     \renewcommand{\sfdefault}{phv}               \AddToShipoutPictureBG{%      \AtTextLowerLeft{\color{MySpecColor}%      \rule{\textwidth}{\textheight}}}          %define mainpart of document     \begin{document}     \begin{textblock}{12}(2.2,2.5)     \setownstyle Text\\[0pt]     \setownstyle Text\\[0pt]     \setownspecstyle Text     \begin{spacing}{1.3}     \begin{multicols}{2}{     \parallelcolor Text     \vfill     \columnbreak     \parallelcolor Text     }     \end{multicols}     \begin{spacing}{0.7}     \begin{multicols}{2}{     \parallelcolor Text     \vfill     \columnbreak     \parallelcolor Text     }     \end{multicols}     \end{spacing}     \end{spacing}     \end{textblock}     \end{document}


title: Input Auto-Generated Figures Captions

text: I'm trying to include an Matlab-auto-generated figure-caption tex-file using               \caption{\input{Spectrogram-2011-09-28-S003.title.tex}}      but if fails with error               ERROR: Argument of \@caption has an extra }.      I've tried all kinds of syntactic variants. How to solve this?


title: siunitx multicolumn problem

text: In addition to Right-centered columns in LyX, I have another problem, now with multicolumns. I want to center the number "98" (which spans two columns) above the two other columns. These shall be aligned "right-centered" with S[table- format=2.0]) and "nearer" to each other. See the code and image above.               \begin{table}[H]     \centering     \begin{threeparttable}     \caption{\textbf{\label{tab:ms-soziodemographische-parameter}blabla}}     \begin{tabular}{lS[table-format=2.0]S[math-rm=\mathit,table-format=2.1,input-symbols=()]cc}     \toprule       & \multicolumn{2}{>{\centering}p{0.2\columnwidth}}{\textbf{Pat. mit Kopfschmerzen}} &     \textbf{Pat. ohne Kopfschmerzen} & \textbf{p-Wert}\tabularnewline     \midrule     \midrule      \textbf{Anzahl} & \multicolumn{2}{c}{98} & 82 & \textbf{\textit{0,001}}\tabularnewline     \midrule      \textbf{Alter: Jahre (SD)} & 41 & (12,9) & 47,4 (12,6) &     \textbf{\textit{0,001}}\tabularnewline     \midrule      \textbf{Geschlecht: n(\%)} &  &  &  & \textbf{\textit{0,001}}\tabularnewline     - Weiblich & 78 & (79,6) & 47 (57,3) & \tabularnewline     - Männlich & 20 & (20,4) & 35 (42,7) & \tabularnewline     \midrule      \textbf{KD der MS: Jahre (SD)} & 11,2 & (8,6) & 13,7 (8,9) & 0,056\tabularnewline     \midrule      \textbf{Verlaufsform: n(\%)} &  &  &  & \textbf{\textit{0,042}}\tabularnewline     - RRMS & 56 & (57,1) & 30 (36,6) & \tabularnewline     - SCP & 29 & (29,6) & 38 (46,3) & \tabularnewline     - PPMS & 11 & (11,2) & 13 (15,9) & \tabularnewline     - CIS & 2 & (2,0) & 1 (1,2) & \tabularnewline     \midrule      \end{tabular}     \end{threeparttable}     \end{table}      Output looks like: ![image](http://i.stack.imgur.com/jTNhk.png).


title: How to include graphics from a complex file structure

text: I am writing a Latex file that needs to include figures from a directory graphs. **graphs** has several sub-directories say, **one** , **two** and **three**. These individually contain several graphics that should be included in the file. One way is to include every graphic in the file manually. But, that is too cumbersome. Is there a better way to do this?


title: Define variable in a class

text: I am trying to figure out how to use a variable in a class. From another question (Macro for Declaring Variables in Class Files) I got started. However, I find myself in need of using four lines or rather unclear code. This is what I have:               \let\@headertitle\relax     \def\headertitle#1{\def\@headertitle{#1}}     \newcommand{\printheadertitle}{\@headertitle}     \printheadertitle{} % This will print the string in the variable      It works, but doesn't look good. I simply want to use `\headertitle{string}` in my document, and be able to somehow call it (e.g. `\headertitle{}` within my class. Can I simplify this?


title: How to label a special slide instead of the whole frame in beamer presentation?

text: > **Possible Duplicate:**   >  Referencing items while using uncover Is it possible in a `beamer` presentation to achieve that a hyperlink points to a certain slide of a frame? For example, in the MWE below I would like the hyperlink to point to the second slide of the first frame. For now, I can only achieve that it points to the first slide of the first frame.               \documentclass{beamer}     \usepackage{hyperref}     \begin{document}        \begin{frame}[label=B]         \begin{itemize}           \item<1-> 1111111111111111111111111111111111111111111           \item<2-> 2222222222222222222222222222222222222222222           \item<3-> 3333333333333333333333333333333333333333333         \end{itemize}       \end{frame}        \begin{frame}           AAAAAAAA \hyperlink{A}{\beamergotobutton{}}           \end{frame}       \end{document}


title: page number in top right intersects with the page text

text: My text and the top right page number seem to intersect when using `fancyhdr`:               \documentclass[a4paper,oneside,12pt]{report}     \usepackage{amsmath}     \usepackage{amssymb}     \usepackage{bm}     \usepackage{graphicx}     \linespread{1.5}     \usepackage{subfigure}     \usepackage{float}     \usepackage{url}     \setcounter{secnumdepth}{5}     \usepackage{hyperref}     \usepackage [numbers,square,sort]{natbib}     \usepackage{ulem}     \usepackage[cm]{fullpage}     \addtolength{\voffset}{1.0cm}     \usepackage{pslatex}  % for times new roman font     \usepackage[nonumberlist]{glossaries}     \usepackage[top=2cm, bottom=2.5cm, left=3.5cm, right=2.5cm]{geometry}     \usepackage{fancyhdr}          %\addtolength{\textheight}{3.5cm}               \hypersetup{     colorlinks,     citecolor=black,     filecolor=black,     linkcolor=black,     urlcolor=black     }               \makeglossaries     \newcommand{\HRule}{\rule{\linewidth}{0.5mm}}     \newcommand{\abs}[1]{ \lvert #1 \rvert}               \pagenumbering{roman}          \input{./glossary.glo}          \begin{document}     \pagestyle{myheadings}               \input{./chapters/titlepage.tex}     \input{./chapters/declaration.tex}     \input{./chapters/dedication.tex}     \input{./chapters/abstract.tex}     \tableofcontents     \listoftables     \listoffigures     \include{./chapters/acknowledgement.tex}     \pagenumbering{arabic}     \include{./chapters/introduction}     \include{./chapters/theory}     \include{./chapters/literature}     \include{./chapters/methodology}     \include{./chapters/results}     \include{./chapters/discussion}     \include{./chapters/conclusion}          \printglossaries     \begin{small}     \bibliographystyle{ieeetr}          \bibliography{projbib}     \end{small}     \end{document}      ![http://imgur.com/x8Fyt](http://i.stack.imgur.com/16vPs.png)


title: \int_incr:N inside tabular environment

text: I started learning LaTeX3 a few weeks ago and I'm currently playing around with tables. Here is my code:               \documentclass{article}     \usepackage{expl3}          \ExplSyntaxOn     \cs_new_protected:Npn \juhu_tablerow:n #1     {       \int_new:N \l_row_count_int       \int_set:Nn \l_row_count_int { 1 }       \prg_replicate:nn {#1}       {         \int_use:N \l_row_count_int .~row \\         \int_incr:N \l_row_count_int       }     }     \cs_new_eq:NN \tablerow \juhu_tablerow:n     \ExplSyntaxOff          \begin{document}          \begin{tabular}{c}     \tablerow{3}     \end{tabular}          \end{document}      The output of this code is:               1. row     1. row     1. row      The desired output should be like this:               1. row     2. row     3. row      When I replace the `tabular` environment e.g. with a `center` environment, I get the expected output. Now, if I replace the `\\\` in `\int_use:N \l_row_count_int .~row \\\` with `,~`, `\int_incr:N` seems to work again even inside the `tabular` environment, and the output is:               1. row, 2. row, 3. row,       So, my question is, why increasing the integer doesn't work inside a `tabular` environment when using multiple rows, and what can I do to get the desired result?


title: Vertically center block of text including chapter for dedication page

text: I have a dedication page in my book (using `\documentclass[a4paper,11pt,openany,oneside]{book}`. It is in a separate chapter and contains two small paragraphs. The chapter is on a separate page. At the moment, as for all my chapters, the dedication paragraph is sitting close to the top of the page. As in many books, I'd like to vertically center both the text of this one chapter together with its title. The usual solution for centering text `\vspace*{\fill} some text \vspace*{\fill}` does not work in this case due to the chapter heading. I suspect I might need to define a separate special chapter definition and use it for Dedication (I'm using `titlesec` package). Here is the MWE showing how the `\vspace*{\fill}` solution does not work in case of chapter headings. The MWE results in the chapter being displayed on the next page, leaving the correct page blank:               \documentclass[a4paper,11pt,openany,oneside]{book}     \usepackage{titlesec}     \begin{document}     \vspace*{\fill}     \chapter{example}     Some text here...     \vspace*{\fill}     \end{document}      Could anyone help with that? Or perhaps there is an easier way to force centering of all the text I select (maybe defining a special environment)? Further, I think it would look better if "Dedication" chapter title was centered as well. Trying `\centerline` did center it, but also inroduced a lot of space below the body text.


title: Equivalent of pstricks command \psecurve in tikz

text: What is the equivalent of the `pstricks` command `\psecurve` in `tikz`? The yellow line is the `\psecurve`. It's basically the same as the `\pscurve`: the curve is defined by all the named points, but is not drawn to the end points.               \documentclass{article}     \usepackage{pstricks}     \pagestyle{empty}     \begin{document}          \begin{pspicture}(0,-3)(5,5)        \pscurve[linewidth=5pt,arrows=<->](0,0)(2,3)(4,-3)(2,5)(1,0)       \psecurve[linewidth=1.5pt,linecolor=yellow](0,0)(2,3)(4,-3)(2,5)(1,0)     \end{pspicture}          \end{document}      ![enter image description here](http://i.stack.imgur.com/wmzg7.png)


title: Uniform Unicode for text, math and listings?

text: What should I put in the preamble (preferably packages) for this to work as expected with its unicode characters?               \documentclass{article}     \usepackage{listings}     \begin{document}       $α$ α       \begin{lstlisting}          α = 1.;       \end{lstlisting}     \end{document}      Note that alpha (α) appears in three contexts: as text, as math and as code (listings). (I can use `lualatex` if it simplifies things) * * * For a higher challenge, in this case I introduce a second level of difficulty, by introducing a second kind of alpha (: 0x1d6fc Mathematical italic small alpha vs. α: Greek small letter alpha). To see to what degree TeX can deal with the nuance (e.g. by make into $\alpha$, or by making --0x1D45D Mathematical italic small p-- into $p$):               \documentclass[]{article}     \usepackage[]{listings}     \begin{document}     $α$ α $$       \begin{lstlisting}     α = 1.      = 2.     \end{lstlisting}     \end{document}


title: How can I redefine my macro to accept a charcode instead of a character?

text: I recently posted this answer to How to highlight all words of the form [0-9][A-Za-z0-9]* immediately following an equal sign?. It works, but it suffers from (a lot) of code duplication. ## What I have at the moment More specifically, I have to use a line of the form               \lst@DefSaveDef{`<char>}\jubobs@<char>{\jubobs@<char>\foo}      no fewer than **52 times** , for `<char>` in `A`-`Z` and `a`-`z`. For information, `\lst@DefSaveDef` is a `listings` internal macro with the following syntax:               \lst@DefSaveDef{<charcode>}<some-macro>{<replacement-text>}      Using my newfound understanding of `\expandafter`, I've managed to somewhat reduce the code by defining a macro that takes a letter as argument and performs the same thing as the line show above:               \makeatletter     \newcommand\addtoletterdef[1]     {%       \expandafter\expandafter\expandafter\lst@DefSaveDef%       \expandafter\expandafter\expandafter{%       \expandafter\expandafter\expandafter`%       \expandafter\expandafter\expandafter#1%       \expandafter\expandafter\expandafter}%       \expandafter\csname jubobs@#1\expandafter\endcsname%       \expandafter{\csname jubobs@#1\endcsname\foo}%     }     \makeatother      However, that didn't help much in reducing code duplication: I still have to invoke `\addtoletterdef` 52 times... `;...(` ## What I want I would like to define a macro similar to my `\addtoletterdef` but that would accept a charcode instead of a character. That way, it would be easy to loop through charcodes 65 to 90 (A-Z) and 97 to 122 (a-z) and perform all those 52 operations without any code duplication. I've got a feeling that the answer lies in using the `\begingroup\lccode` trick, but that trick is very new to me, and I'm far from mastering it. **How can I redefine`\addtoletterdef` to accept a charcode instead of a character?** * * * MWE:               \documentclass{article}          \usepackage{listings}          % dummy macro     \def\foo{foo}          \makeatletter     \newcommand\addtoletterdef[1]     {%       \expandafter\expandafter\expandafter\lst@DefSaveDef%       \expandafter\expandafter\expandafter{%       \expandafter\expandafter\expandafter`%       \expandafter\expandafter\expandafter#1%       \expandafter\expandafter\expandafter}%       \expandafter\csname jubobs@#1\expandafter\endcsname%       \expandafter{\csname jubobs@#1\endcsname\foo}%     }     \makeatother          \lstdefinestyle{mycode}     {       language=C,       SelectCharTable=           \addtoletterdef{A}           % ...           \addtoletterdef{Z}           \addtoletterdef{a}           % ...           \addtoletterdef{z}     }          \begin{document}     \begin{lstlisting}[style=mycode]     a1 = 6.12234Z     a2 = Z1324124     \end{lstlisting}     \end{document}


title: How to change the font shape in the body of theorem environments?

text: \documentclass{article}     \usepackage{amsmath,amssymb}     \newtheorem{defn}{Definition}     \newtheorem{pro}{Problem}     \newtheorem{thm}{Theorem}     \begin{document}     \begin{defn}     This is the first definition     \end{defn}     \begin{thm}     This is the first theorem     \end{thm}     \end{document}      When I get the output, the body of definitions, theorems is in italic letters. Can I get these environments in normal letters?


title: How to globally change the spacing around equations?

text: How could I go about setting the 'above' and 'below' vspaces around the `equation` environment? If the same could be done for the `subequations` or `gather` environments, this would be a bonus.


title: Setting vertical space for displayed formula

text: > **Possible Duplicate:**   >  How to globally change the spacing around equations? In a paragraph such as:               start text \[ ... \] end text      How do you adjust the vertical gap between the text and the formula? I've tried:               \setlength{\belowdisplayskip}{-5mm}     \setlength{\abovedisplayskip}{-5mm}     \setlength{\belowdisplayshortskip}{-5mm}     \setlength{\abovedisplayshortskip}{-5mm}      But this doesn't appear to do anything. With many thanks.


title: LaTeX in CorelDRAW

text: What is a good way to get LaTeX formulas into CorelDRAW figures? I will provide a solution below, based on a rather old macro adapted to work on 64 bit systems as well as 32 bit - it works well, but if anyone knows of a newer and/or better solution, please post it! * * * Note: I am not sure whether this is the right place for a question like this one, but as I find it very useful to integrate CorelDRAW and LaTeX, and it cost me quite some time around the internet to make it work, I think this information should be up somewhere where it is easily accessible.


title: Is there a way to specify the last connecting punctuation/word of the authors list in apacite?

text: How can I make apacite use a different connecting punctuation/word between the last 2 authors (in both the article body and bibliography)? Instead of "Johnson, J. B., & Smith, J. (2013). Title of the article...", do "Johnson, J. B., 和 Smith, J. (2013). Title of the article...".


title: Confusion regarding strings and numbers in tikz

text: I'm using a macro that uses `\StrBetween` from `xstring` It seems to be working great. However, when I try to use a value that it returns as a coordinate in a tikz picture, I get a confusing error. Consider this snippet:               \documentclass[letterpaper,12pt]{article}          \usepackage{xstring}     \usepackage{tikz}          % http://tex.stackexchange.com/a/21566/3068     \newcommand*\GetListMember[2]{\StrBetween[#2,\number\numexpr#2+1]{,#1,},,\par}%          \begin{document}     \pagestyle{empty}     \begin{tikzpicture}     \def\A{\GetListMember{1,2,3}{1}}          % This makes me think the value of \A is 1     \node [draw] at (1,0) {\A};          % Uncommenting the following gives an error that is very confusing to me     % \node [draw] at (\A,1) {\A};     \end{tikzpicture}     \end{document}      It works, but if I uncomment the last commented line, I get this error:               ! Undefined control sequence.     <argument> \@@cls           l.18 \node [draw] at (\A,1)                                 {\A};      I think I need to convert the value of `\A` to a number, or something, but I don't know how. p.s. This happens a lot, where an error message contains text that's not in my input file. (In this case `\@@cls`) Is there a way for me to see the intermediate forms? I feel like I'm debugging Lisp code with no `macroexpand-1`. Thanks, as ever. (:


My problem is: I am using `moderncv` and `splitbib` on a mac. In Linux my file compiles fine. In the mac, however, i run `pdflatex` and `bibtex` all right, but when I run `pdflatex` again, I get the error > Lonely \item - perhaps a missing list environment Here's a MWE. The first section is kind of standard for `moderncv`, then I use `splitbib` to produce bibliography in several sections. Then there are two CV sections with an entry for the sake of completeness only and lastly, my linking to the bib file.               \documentclass[11pt,a4paper]{moderncv}     \moderncvtheme[blue]{classic}                 % optional argument are 'blue' (default), 'orange', 'red', 'green', 'grey' and 'roman' (for roman fonts, instead of sans serif fonts)     \usepackage[utf8]{inputenc}                   % replace by the encoding you are using     \usepackage{url}     \usepackage[scale=0.8]{geometry}     \AtBeginDocument{\recomputelengths}                     % required when changes are made to page layout lengths          \firstname{MyName}     \familyname{MyLastName}          % SPLITBIB     \usepackage[export]{splitbib} % So I can display publications by categories.     \begin{category}{\subsection{Press}}     \SBentries{press1}     \end{category}     \begin{category}{\subsection{Presentations}}      \SBentries{pres1,pres2}     \end{category}     \begin{category}{\subsection{Papers}}      \SBentries{paper1,paper2}     \end{category}          % BEGIN DOC     \begin{document}     \maketitle          \section{Education}     \cventry{2005--2010}{Deg}{Some U}{Someplace}{Computer Science}{Some notes}          \subsection{Professional}     \cventry{2000--2005}{Technical Specialist}{Some company}{Some City}{}{Some description}           \renewcommand{\listitemsymbol}{-} % change the symbol for lists          \nocite{*}          %BIBLIOGRAPHY     \SBtitlestyle{simple}     %\SBsubtitlestyle{none}     \bibliographystyle{plain}     \bibliography{publications}     % 'publications' is the name of a BibTeX file          \end{document}      For completeness, if someone wants to try it, here's the sample publications.bib used with this MWE.               @UNPUBLISHED{pres1,       author = {John Doe},       title = {Some title},       note = {Presentation at XYZ},       month = {July.},       year = {2010}       }          @UNPUBLISHED{pres2,       author = {First Guy and Second Guy},       title = {Some title},       note = {Presentation at some University},       month = {Nov.},       year = {2008}     }          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     % PAPERS     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     @inproceedings{paper1,         author = {Author One and Author Two},         booktitle = {Anyone can get a Book},         posted-at = {2010-07-23 15:33:06},         publisher = {Springer},         editor = {John Doe and Juan Perez},         title = {Some Catchy Title},         year = {2012}     }     @inproceedings{paper2,       author    = {Author one and Author two},       title     = {Complicated Title},       booktitle = {pretentious journal},       year      = {2011},       pages     = {568-577}     }     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     % Press     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%       %author    = {Phil McKenna},     @misc{press1,       month     = {March},       author   = {{New Scientist}},       title     = {What you thought true is no more},       howpublished = {\url{http://bit.ly/be0PpB}},       year      = {2010}     }


title: left side margin in landscape the rest of paper is normal.

text: I need to type an exam, but the first page must have its left side margin, from top to bottom, be in landscape, but the rest of the exam is normal. The left side margin will run the entire length of the first page. So the left side of the first page will be the top of the margin. I have to put places for the name, student number, class, etc. in side this left margin. Also it must be in Chinese. The rest of the exam will be in English. I am not very clear upon how to do this.


title: how can I fix my tikz circle to do what I want

text: Below is the minimal example of my code. I would like the dotted line to stay within the circle rather than overshooting it like it currently is but I am not able to figure out how this can be done.               \documentclass[paper=a4, fontsize=12pt]{scrartcl}           \usepackage[T1]{fontenc}      \usepackage{amsmath,amsfonts,amsthm} % Maths       \usepackage{graphicx}      \usepackage{float}          \usepackage{tikz}     \usetikzlibrary{arrows,%                     plotmarks}     \begin{document}           \begin{figure}[H]      \centering        \begin{tikzpicture}         % Axis         \draw[thick,->,black] (-3,0)--(3,0) node[below] {$k_x$}; % x axis         \draw[thick,->,black] (0,-3)--(0,3) node[left] {$k_y$}; % y axis         \draw[black,thick] (0,0) circle (2.5cm);         \draw[ultra thick,blue,dashed] (0,0) -- (3,3);             \end{tikzpicture}     \end{figure}     \end{document}      ![circle](http://i.stack.imgur.com/BU5zp.png) I would also like to place equidistant dots as the background to my circle. I have no idea where to start! Can anyone help?


title: Align equations: What is wrong here?

text: \begin{align*}     \text{Mean: }\\     E[Y] & = f(y) \cdot 0 + \sum_{y=1}^{\infty} f(y)\cdot y\\     & = [p_i + (1-p_i)e^{-\lambda_i}] \cdot 0 + \sum_{y=1}^{\infty} (1-p_i)\frac{e^{-\lambda_i}\lambda_i^y}{y!} \cdot y\\     & = 0 + \sum_{y=1}^{\infty} (1-p_i)\frac{e^{-\lambda_i}\lambda_i^y}{y!} \cdot y\\     & = (1-p_i) e^{-\lambda_i} [\lambda_i+\frac{2\lambda_i^2}{2!}+\frac{3\lambda_i^3}{3!}+....]\\     & = (1-p_i) e^{-\lambda_i} \lambda_i [1+\frac{\lambda_i}{1!}+\frac{\lambda_i^2}{2!}+....]\\     & = (1-p_i)\lambda_i e^{-\lambda_i}e^{\lambda}\\     & = (1-p_i)\lambda.\\     \text{Variance: }\\     E[Y^2] & = f(y) \cdot 0 + \sum_{y=1}^{\infty} f(y)\cdot y^2\\     & = [p_i + (1-p_i)e^{-\lambda_i}] \cdot 0 + \sum_{y=1}^{\infty} (1-p_i)\frac{e^{-\lambda_i}\lambda_i^y}{y!} \cdot y^2\\     & = 0 + \sum_{y=1}^{\infty} (1-p_i)\frac{e^{-\lambda_i}\lambda_i^y}{y!} \cdot y^2\\     & = (1-p_i) e^{-\lambda_i} [\lambda_i+\frac{4\lambda_i^2}{2!}+\frac{9\lambda_i^3}{3!}+\frac{16\lambda_i^4}{4!}+\frac{25\lambda_i^5}{5!}+....]\\     & = (1-p_i) e^{-\lambda_i}[\lambda_i+(\lambda_i^2+\lambda_i^2)+(\frac{\lambda_i^3}{2!}+\lambda_i^3)+(\frac{\lambda_i^4}{3!} \\     +\frac{\lambda_i^4}{2!}+)+(\frac{\lambda_i^5}{4!}+\frac{\lambda_i^5}{3!})+....]\\     & = (1-p_i)e^{-\lambda_i} [\lambda_i(1+\lambda_i+\frac{\lambda_i^2}{2!} + \frac{\lambda_i^3}{3!}+.....)+\lambda_i^2(1+\lambda_i+\frac{\lambda_i^2}{2!} + \frac{\lambda_i^3}{3!}+.....)]\\     & = (1-p_i) e^{-\lambda_i} [\lambda_ie^{\lambda_i}+\lambda_i^2 e^{\lambda}]\\     & = (1-p_i) e^{-\lambda_i} e^{\lambda_i} (\lambda_i+\lambda_i^2) \\     & = (1-p_i)(\lambda_i+\lambda_i^2)\\     V[Y]= E[y^2]-(E[y])^2 = (1-p_i)(\lambda_i+\lambda_i^2) - ((1-p_i)\lambda)^2.     \end{align*}


title: Problem with acronyms if order has been changed

text: I wanted to change the order of acronyms to "ACRONYM (DESCRIPTION)" and found a solution in the forum. The problem is that it doesn't work for "plural acronyms" (the plural 's' is missing). How can I solve the problem?               \documentclass{article}     \usepackage[acronym]{glossaries}          \AtBeginDocument{%       \defglsdisplayfirst[\acronymtype]{%         \glsentryshort{\glslabel} (\glsentrylong{\glslabel})#4%       }%     }     \makeglossaries     \newacronym{PC}{PC}{Personal Computer}          \begin{document}         \glspl{PC}     \end{document}


title: Mimic \parencites using bibtex

text: I need to have two references within parenthesis separated by some text (see \citep for multiple references separated by text) so it should look like: > (this is the first source Smith 2000; and also see Smith 2013 for more) This is the command I think I'd need:               \parencites[this is the first source][]{Smith_2000}[; and also see][for more]{Smith_2013}      but I'm using a template that relies on `natbib` and a custom `.bst` file so I'm stuck using `bibtex`. This means I can't use the `\parencites` command which apparently only works with `biblatex`. Can I mimic the output needed in my case (ie: no `biblatex`)?


title: Is there a way to make ChkTeX ignore TikZ code

text: ChkTeX does not like TikZ, and will report a bunch of errors. Is there a way to make ChkTex ignore TikZ code?


title: How to add an empty line between paragraphs?

text: I have two sections which I'd like to separate by an empty line. Every time I press `Enter`, LyX removes that empty line between paragraphs. How do I prevent this?


title: Break url in tabular

text: How can I break `hyperref` URLs in a `tabular` environment. Consider the following example:               \documentclass{article}          \usepackage[colorlinks=true,linkcolor=black,anchorcolor=black,citecolor=black,menucolor=black,runcolor=black,urlcolor=black,bookmarks=true]{hyperref}     \usepackage{breakurl}          \begin{document}          \url{http://www.avery/long/url?zz/very/very/long/this/should/break/very/long/long.html}          \begin{tabular}{l l}        A long url &     \url{http://www.avery/long/url?zz/very/very/long/this/should/break/very/long/long.html}          \end{tabular}               \end{document}      The first one breaks, the second one doesn't. The output looks like: ![url](http://i.stack.imgur.com/6fgHB.png) I am using `pdflatex`.


title: Total page numbers not shown correctly using beamer presentation package

text: I'm having some newby difficulty with `beamer`. Doing a simple presentation, I cannot get the total number of pages in the lower right to be anything but 1. Help! Here you go:               \documentclass{beamer}     \usepackage{tcolorbox}     \usepackage{lipsum}     \usepackage{amsmath}                % want AMS fonts     \usepackage{amssymb}                            % use AMS symbols     \mode<presentation> {         \usetheme{Madrid}         \usecolortheme{seahorse}         \setbeamercovered{invisible}         \setbeamertemplate{navigation symbols}{}     }          \usepackage{graphicx}     \usepackage{bm}      % For typesetting bold math (not \mathbold)     %     \title[CSCI-155]{Instructions as the Language of Computers}     \author{Prof. Rob Marano}     \institute[NYIT]     {     NYIT \\     \medskip     {\emph{rmarano@nyit.edu}}     }     \date{Week 4}          \begin{document}          \begin{frame}     \titlepage     \end{frame}          \begin{frame}     \frametitle{Review - Underlying principles of hardware design}     \begin{enumerate}         \item Simplicity favors regularity         \item Smaller is faster         \item Make the common case fast         \item Good design demands good compromise     \end{enumerate}     \end{frame}          \end{document}


title: Russian and Japanese and biblatex oh my

text: I'm trying to typeset a book with bibliography entries in English, Russian and Japanese. Getting the bibliography to work right is driving me mad. I have got pretty close (I think) by cobbling together various answers from tex.se, but I'm still a little way away. I think I have to use `biblatex` for this. `biblatex` doesn't support `polyglossia` so I have to use `babel`. No problem there. There is some support for Japanese in Babel as per http://oku.edu.mie-u.ac.jp/~okumura/texwiki/?Babel This is as far as I've got:               \documentclass{article}     \usepackage{xltxtra}     \usepackage[strict,autostyle]{csquotes}     \usepackage[russian,japanese,english]{babel}     \usepackage[babel=other,backend=biber,style=authoryear-icomp]{biblatex}     \usepackage{xeCJK}     \usepackage{fontspec,xunicode}     \defaultfontfeatures{Mapping=tex-text}     \newfontinstance\greekfont{Gentium Plus}     \xeCJKsetup{CJKglue=\hspace{0pt}}     \setCJKmainfont[Scale=MatchUppercase]{Hiragino Mincho Pro}     \setromanfont{Gentium Plus}     \usepackage{filecontents}          \begin{filecontents}{\jobname.bib}     @article{Bohan1928,             Author = { ボハン, デ},             Title = { 過去及び現在に於ける英国教会と正教会 },             Journal = { 正教時報 },             Volume = { 17 },             Edition = { 9 },             Year = { 1928 },             Pages = { 5-9 },             Keywords = {primary},         Hyphenation = { japanese },         Language = { japanese }             }          @article{Dubrovin1906,             Author = { Дубровин, А. И },             Title = { Открытое письмо Председателя Главного Совета Союза Русского Народа А. И. Дубровина от 2 декабря 1906 года митрополиту Санкт-Петербургскому Антонию, Первенствующему члену Священного Синода },             Journal = { Вече },             Volume = {  },             Edition = { 97 },             Year = { 1906 },             Month = { 7 дек. 1906 },             Pages = { 1-3 },             Keywords = {primary},         Hyphenation = { russian },         Language = { russian }             }          @article{Brumbaugh1947,             Author = { Brumbaugh, Thoburn T },             Title = { The Protestant Handicap in Japan. },             Journal = { Christian Century },             Volume = 64,             Edition = 23,             Year = { 1947 },             Month = { 4 June 1947 },             Pages = { 708-709 },             Keywords = {primary},         Hyphenation = { english },         Language = { english }             }                     }     \end{filecontents}          \addbibresource{\jobname.bib}     \begin{document}     \nocite{*}          \printbibliography          \end{document}      Which outputs               References     Brumbaugh, Thoburn T (Apr. 1947). “The Protestant Handicap in Japan.” In: Christian Century 64, pp. 708–709.     Дубровин, А. И (июл. 1906). «Открытое письмо Председателя Главного Совета Союза Русского Народа А. И. Дубровина от 2 декабря 1906 года митрополиту Санкт-Петербургскому Антонию, Первенствующему члену Священного Си- нода». Русский. В: Вече, с. 1—3.     ボハン, デ (1928). ?過去及び現在に於ける英国教会と正教会? japanese. In: 正教時報 17, pp. 5– 9.      There is no support for Japanese in csquotes, so my quotes don't work. Also `biblatex` seems intent on putting the `language` tag into the body of the citation, which I don't want, and the auxilliary text ("In:", "pp.") in the Japanese entry is still in English. Can I get any better than this?


title: Help with custom syntax highlighting for TeXworks

text: I recently learned of the option to make a custom syntax highlighting system for texworks as laid out in the texworks manual If you go to the *\customizing texworks\syntax highlighting*section of the manual it tells you to edit the syntax-patterns.txt file. Anyway what I'm trying to do is to highlight any of the latex lengths\measurements such as cm, mm, in, em in pink. I 1st tried `pink N (pt|mm|cm|in|ex|em)` but the problem with that is that words such as "*in*terview" or "*em*power" will have these letters go pink too. The actual lengths will only appear after a digit so I need to stipulate some kind of condition for it to do that. My own research on the matter has lead me down the path of the lookbehind feature for regular expressions which you can read about here The best I've been able to come up with is               pink    N   (?<=\d)pt|mm|cm|in|ex|em      but this doesn't work. Any help is appreciated.


title: pgfplot with constant decimal places on ticks

text: I'm trying to display the tick labels of the y axis of just this graph within my document formatting to two decimal places. I've tried the following code but it seems that it doesn't like the way I'm trying to change the y tick label style, what have I done wrong?               \documentclass{article}     \usepackage{pgfplots}          \begin{document}          \pgfplotstableread{Pone.dat}{\Pone}     \begin{center}     \begin{tikzpicture}[scale=0.9]     \begin{axis}[minor tick num=1,xmin=0,xmax=6,ymin=100000, ytick={100000,125000,150000,175000,200000,225000,250000,275000,300000}, y tick label style={/pgf/number format/.cd,fixed,fixed zerofill,precision=2},     xlabel={X}, ylabel={Y},     \addplot [black,thick] table{\Pone};     \end{axis}     \end{tikzpicture}     \end{center}          \end{document}      And just for example, Pone.dat is:               1 100000     2 150000     3 200000     4 210000     5 220000     6 230000


title: Asterisk inside a variable

text: I am trying to define a variable with an asterisk in its value but keep getting errors. I have tried `\def`, `\let` and `\newcommand` but neither worked. A minimal example:               \documentclass{article}     \usepackage{enumitem}     \def\cLists{leftmargin=*}     \setlist{\cLists}     \begin{document}     \begin{itemize}     \item a     \end{itemize}     \end{document}      Any help, please?


title: How do I get function argument parenthesis to position correctly?

text: I'm having trouble with the appearance of parentheses representing function arguments. They appear to far away from the function name. For example the code               \left(1-f_{p}\left(l+1\right)\right)\overline{w}\left(l\right)f_{p}\left(l\right)\overline{N}\left(l\right)\hat{H}_{s}\left(l\right)      produces ![Expression, as rendered](http://i.stack.imgur.com/sEv0i.png) in which the arguments seem to float midway between successive function names; but I'd prefer (and expect) something more like ![Expression, adjusted for desired appearance](http://i.stack.imgur.com/T3hPc.png) which does a better job of attaching the arguments to the function names. Is there something I can do to achieve the result I'm looking for? * * * FWIW, I've settled (for now) on               \bigl(1\!-\! f_{p}(l\!+\!1)\bigr)\;\overline{w}(l)\; f_{p}(l)\;\,\overline{\! N}(l)\;\hat{H}_{s}(l)      which produces ![Expression, after improvements](http://i.stack.imgur.com/R1z16.png)


title: What can you tell me about poster design and typography in LaTeX?

text: Are there any packages that would be useful for large (1m x 1m) posters? Leaving the typography to the professionals would be useful if there are such things as large format guidelines for typography. Any other tips, tutorials or resources for LaTeXing a poster? This is for an academic conference poster competition. There will be a fairly large amount of text on the poster. I also notice that larger fonts look almost silly when using default configurations in any graphics program (including indesign).


title: Missing number treated as zero

text: I am getting `Missing number treated as zero` error when I type the following code in my document. But when I wrote it in a new document, everything seems OK.               $\xymatrix{     A \ar[d] \ar[dr] \ar[r] & B \\     D & C }$       My packages are               \documentclass[10pt]{article}     \usepackage{a4wide}     \usepackage{amssymb}     \usepackage{amsfonts}     \usepackage{amsmath}     \input xy     \xyoption{all}      I would be very pleased if someone helps me.


title: How does one use math operators in xy-pic?

text: I am trying to format some large commutative diagrams (using the `\xymatrix` command) that involve colimits, and I would like to have the indexing information for the colimits appear underneath the word "colim" rather than as a subscript of "colim" (to save space). I have a command `$\DeclareMathOperator*{\mocolim}{colim}$` which solves this problem for ordinary displayed equations (inside the equation environment, say). In other words, the command `$\begin{equation} \mocolim_{n\rightarrow \infty} f(n) \end{equation}$` puts the symbols `$n\rightarrow \infty$` underneath the word colim. However, if I use the same command inside `\xymatrix`, the subscript `$n\rightarrow \infty$` is displayed as a subscript, down and to the right of the word colim (just as would happen in ordinary mathmode). How can I fix this?


title: How to make \newcommand with one argument that does nothing.

text: I am writing a document with extra notes intended only for myself.               \newcommand{\mycomment}[1]{\emph{Note: #1}}     %\newcommand{\mycomment}[1]{}      When I wish to remove the extra comments, I simply comment the first line and uncomment the latter line. Then each call to `\mycomment` should do nothing. However, instead each call generates a small space. Is it possible to remove this space? Many thanks.