title: A problem with beamer, tikz and fonts

text: I am having a weird problem with `beamer` and `tikz`. The following MWE doesn't compile. Removing the `\alert` from the author line, or the `\usepackage{tikz}` or the math content in the frame is enough to fix the problem. And on top of that, some of the errors in the log file are related to fonts, and the compiling process seems to involve many `mktextfm` processes. This question may be too localized and the lack of relevant results in google pushes me to that conclusion. However, I believe I'm not the first one to compine these packages, my distribution is up-to-date, (as far as I can see) I'm not forgetting a brace or a backslash. What am I missing? Is there a simple cause lying below all these packages and explaining this issue? ## MWE               \documentclass{beamer}          \usepackage{tikz}          \author{\alert{Foo Bar}}          \begin{document}          \begin{frame}       $2+2=3$     \end{frame}          \end{document}      ## File list                *File List*       beamer.cls    2013/01/04 3.26 A class for typesetting presentations (rcs-revision e81e0c94bcc6)     beamerbasercs.sty    2013/01/04 (rcs-revision 9a97a4eee358)     beamerbasemodes.sty    2012/04/15 (rcs-revision cc6557182d97)     beamerbasedecode.sty    2010/05/01 (rcs-revision efa082c6111d)        ifpdf.sty    2011/01/30 v2.3 Provides the ifpdf switch (HO)     beamerbaseoptions.sty    2010/04/27 (rcs-revision 982469101dd6)       keyval.sty    1999/03/16 v1.13 key=value parser (DPC)     geometry.sty    2010/09/12 v5.6 Page Geometry       ifvtex.sty    2010/03/01 v1.5 Detect VTeX and its facilities (HO)      ifxetex.sty    2010/09/12 v0.6 Provides ifxetex conditional       size11.clo    2007/10/19 v1.4h Standard LaTeX file (size option)      pgfcore.sty    2010/04/11 v2.10 (rcs-revision 1.7)     graphicx.sty    1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)     graphics.sty    2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)         trig.sty    1999/03/16 v1.09 sin cos tan (DPC)     graphics.cfg    2010/04/23 v1.9 graphics configuration of TeX Live       pdftex.def    2011/05/27 v0.06d Graphics/color for pdfTeX     infwarerr.sty    2010/04/08 v1.3 Providing info/warning/error messages (HO)      ltxcmds.sty    2011/11/09 v1.22 LaTeX kernel commands for general use (HO)       pgfsys.sty    2010/06/30 v2.10 (rcs-revision 1.37)       pgfrcs.sty    2010/10/25 v2.10 (rcs-revision 1.24)     everyshi.sty    2001/05/15 v3.00 EveryShipout Package (MS)       pgfrcs.code.tex       pgfsys.code.tex     pgfsyssoftpath.code.tex    2008/07/18  (rcs-revision 1.7)     pgfsysprotocol.code.tex    2006/10/16  (rcs-revision 1.4)       xcolor.sty    2007/01/21 v2.11 LaTeX color extensions (UK)        color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive      pgfcore.code.tex      xxcolor.sty    2003/10/24 ver 0.1     hyperref.sty    2012/11/06 v6.83m Hypertext links for LaTeX     hobsub-hyperref.sty    2012/05/28 v1.13 Bundle oberdiek, subset hyperref (HO)     hobsub-generic.sty    2012/05/28 v1.13 Bundle oberdiek, subset generic (HO)       hobsub.sty    2012/05/28 v1.13 Construct package bundles (HO)     ifluatex.sty    2010/03/01 v1.3 Provides the ifluatex switch (HO)      intcalc.sty    2007/09/27 v1.1 Expandable calculations with integers (HO)     etexcmds.sty    2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO)     kvsetkeys.sty    2012/04/25 v1.16 Key value parser (HO)     kvdefinekeys.sty    2011/04/07 v1.3 Define keys (HO)     pdftexcmds.sty    2011/11/29 v0.20 Utility functions of pdfTeX for LuaTeX (HO)     pdfescape.sty    2011/11/25 v1.13 Implements pdfTeX's escape features (HO)     bigintcalc.sty    2012/04/08 v1.3 Expandable calculations on big integers (HO)       bitset.sty    2011/01/30 v1.1 Handle bit-vector datatype (HO)     uniquecounter.sty    2011/01/30 v1.2 Provide unlimited unique counter (HO)     letltxmacro.sty    2010/09/02 v1.4 Let assignment for LaTeX macros (HO)      hopatch.sty    2012/05/28 v1.2 Wrapper for package hooks (HO)     xcolor-patch.sty    2011/01/30 xcolor patch     atveryend.sty    2011/06/30 v1.8 Hooks at the very end of document (HO)     atbegshi.sty    2011/10/05 v1.16 At begin shipout hook (HO)     refcount.sty    2011/10/16 v3.4 Data extraction from label references (HO)      hycolor.sty    2011/01/30 v1.7 Color options for hyperref/bookmark (HO)      auxhook.sty    2011/03/04 v1.3 Hooks for auxiliary files (HO)     kvoptions.sty    2011/06/30 v3.11 Key value format for package options (HO)       pd1enc.def    2012/11/06 v6.83m Hyperref: PDFDocEncoding definition (HO)     hyperref.cfg    2002/06/06 v1.2 hyperref configuration of TeXLive          url.sty    2006/04/12  ver 3.3  Verb mode for urls, etc.      hpdftex.def    2012/11/06 v6.83m Hyperref driver for pdfTeX     rerunfilecheck.sty    2011/04/15 v1.7 Rerun checks for auxiliary files (HO)     beamerbaserequires.sty    2010/05/01  (rcs-revision efa082c6111d)     beamerbasecompatibility.sty    2012/05/01  (rcs-revision 67c48b3b652d)     beamerbasefont.sty    2012/09/19  (rcs-revision 733629cd0c6c)      amssymb.sty    2013/01/14 v3.01 AMS font symbols     amsfonts.sty    2013/01/14 v3.01 Basic AMSFonts support     beamerbasetranslator.sty    2010/06/11  (rcs-revision 85fd1cc7fc42)     translator.sty    2010/06/12 ver 1.10     translator-language-mappings.tex     beamerbasemisc.sty    2012/02/24  (rcs-revision 2ff5461be705)     beamerbasetwoscreens.sty    2010/05/01  (rcs-revision efa082c6111d)     beamerbaseoverlay.sty    2012/11/11  (rcs-revision 6afbc49b1109)     beamerbasetitle.sty    2010/09/21  (rcs-revision f0446ed0b6ae)     beamerbasesection.sty    2013/01/04  (rcs-revision 54309ceef997)     beamerbaseframe.sty    2012/12/26  (rcs-revision 1443917db2cf)     beamerbaseverbatim.sty    2012/08/30  (rcs-revision dfdb135076b3)     beamerbaseframesize.sty    2011/09/12  (rcs-revision 70f9d8411e54)     beamerbaseframecomponents.sty    2012/09/13  (rcs-revision dcd846607320)     beamerbasecolor.sty    2010/06/06  (rcs-revision d1a9b48be06d)     beamerbasenotes.sty    2012/12/19  (rcs-revision 1686da3db3c9)     beamerbasetoc.sty    2012/10/02  (rcs-revision 5ed0f4010e8a)     beamerbasetemplates.sty    2010/05/01  (rcs-revision efa082c6111d)     beamerbaseauxtemplates.sty    2012/05/01  (rcs-revision 67c48b3b652d)     beamerbaseboxes.sty    2012/05/13  (rcs-revision 56972908a390)     beamerbaselocalstructure.sty    2012/11/13  (rcs-revision ddfba79dac19)     enumerate.sty    1999/03/05 v3.00 enumerate extensions (DPC)     beamerbasenavigation.sty    2012/04/03  (rcs-revision 42a0f21a412d)     beamerbasetheorems.sty    2010/06/06  (rcs-revision 7e7cc5e53e9d)      amsmath.sty    2000/07/18 v2.13 AMS math features      amstext.sty    2000/06/29 v2.01       amsgen.sty    1999/11/30 v2.0       amsbsy.sty    1999/11/29 v1.2d       amsopn.sty    1999/12/14 v2.01 operator names       amsthm.sty    2004/08/06 v2.20     beamerbasethemes.sty    2010/05/01  (rcs-revision efa082c6111d)     beamerthemedefault.sty    2010/06/17  (rcs-revision d02a7cf4d8ae)     beamerfontthemedefault.sty    2012/12/19  (rcs-revision 1686da3db3c9)     beamercolorthemedefault.sty    2012/12/19  (rcs-revision 1686da3db3c9)     beamerinnerthemedefault.sty    2012/05/01  (rcs-revision 67c48b3b652d)     beamerouterthemedefault.sty    2012/12/19  (rcs-revision 1686da3db3c9)         tikz.sty    2010/10/13 v2.10 (rcs-revision 1.76)          pgf.sty    2008/01/15 v2.10 (rcs-revision 1.12)     pgfcomp-version-0-65.sty    2007/07/03 v2.10 (rcs-revision 1.7)     pgfcomp-version-1-18.sty    2007/07/23 v2.10 (rcs-revision 1.1)       pgffor.sty    2010/03/23 v2.10 (rcs-revision 1.18)      pgfkeys.sty          pgfkeys.code.tex       pgffor.code.tex         tikz.code.tex     supp-pdf.mkii     epstopdf-base.sty    2010/02/09 v2.5 Base part for package epstopdf       grfext.sty    2010/08/19 v1.1 Manage graphics extensions (HO)     epstopdf-sys.cfg    2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Live      nameref.sty    2012/10/27 v2.43 Cross-referencing by name of section     gettitlestring.sty    2010/12/03 v1.4 Cleanup title references (HO)     beamer_font.out     beamer_font.out     translator-basic-dictionary-English.dict         translator-bibliography-dictionary-English.dict         translator-environment-dictionary-English.dict         translator-months-dictionary-English.dict         translator-numbers-dictionary-English.dict         translator-theorem-dictionary-English.dict         beamer_font.vrb         umsa.fd    2013/01/14 v3.01 AMS symbols A         umsb.fd    2013/01/14 v3.01 AMS symbols B      ## Log file               <*> \mode:=ljfour; mag:=1; nonstopmode; input at6          Transcript written on mfput.log.     grep: at6.log: Aucun fichier ou dossier de ce type     mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input at6' failed to make at6.tfm.     ! Font U/msb/m/n/6=at6 not loadable: Metric (TFM) file not found.     <to be read again>                         relax      l.10   $2              +2=3$     ! Missing endgroup inserted.     <inserted text>                      endgroup      l.10   $2+2=3$          ! Missing endgroup inserted.     <inserted text>                      endgroup      l.10   $2+2=3$          ! Math formula deleted: Insufficient symbol fonts.     <recently read> $          l.10   $2+2=3$          ! Use of \end doesn't match its definition.     l.11 \end{               frame}     ! Extra }, or forgotten \endgroup.     l.11 \end{frame}          ! Use of \end doesn't match its definition.     l.13 \end{               document}          ! LaTeX Error: Missing \begin{document}.          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...                                                        l.13 \end{d                ocument}     ! Extra }, or forgotten \endgroup.     l.13 \end{document}          )     ! Emergency stop.     <*> \input beamer_font.tex          !  ==> Fatal error occurred, no output PDF file produced!     Transcript written on beamer_font.log.          LaTeX exited abnormally with code 1 at Thu Feb 28 10:54:49


title: Why doesn't BibTeX work?

text: For some reason, I am not able to do any citations or even my bibliography. I get a "[BibTeX] finished with exit code 2" message when I compile in Kile. Yet, all seems to be ok in my bibliography. Here is what I'm doing in my document:               \documentclass[12pt,oneside]{article}     \pagestyle{plain}     \usepackage[sort,round]{natbib} %package for bibliography     \bibliographystyle{authordate1}%unsrtnat sets as sorted by order of appearance          \begin{document}     \section{This is a section}          Citation: \nocite{*}          Citation with something: \citep{CHANCE1952}          \section{Bibliography}     \bibliography{/home/my/path/to/library/test}     \end{document}      Which outputs ![this](http://i.imgur.com/B8Eaehp.jpg) Here is what my library has (yes, only one reference for testing purposes)               @article{CHANCE1952,        author = {Chance, B. and Greenstein, D. S. and Roughton, F. J.},        title = {The mechanism of catalase action. I. Steady-state analysis},        journal = {Arch Biochem Biophys},        volume = {37},        number = {2},        pages = {301-21},        note = {CHANCE, B     GREENSTEIN, D S     ROUGHTON, F J W     Not Available     Arch Biochem Biophys. 1952 Jun;37(2):301-21.},        keywords = {*Oxidoreductases     Testis/*anatomy & histology},        year = {1952}     }      and I'm compiling by doing `PDFLatex > Bibtex >pdflatex > pdflatex >viewpdf`. Could someone please help me out? Thank you in advance! _**Edit: here is part of Bibtex's output to the file`.blg`_**               ...     The top-level auxiliary file: test.aux     I couldn't open style file authordate1.bst     ---line 2 of file test.aux      : \bibstyle{authordate1      :                      }     I'm skipping whatever remains of this command     I found no style file---while reading file test.aux     You've used 1 entry,     ...


title: An 'equals to' statement to the side of your matrix using LaTeX

text: so I am using Sage and I am trying to get the statement `{B_{old}}^{-1} =` beside my matrix               \[ \begin{pmatrix} 0 & 0 & 0 & 0 & 0 & 0 & -1 \\ 1 & {3\over10} & 0 & {1\over5} & {1\over10} & 0 & -{1\over10} \\ 0 & -12 & 1 & 2 & 1 & 0 & 4 \\ 0 & {1\over10} & 0 & {2\over5} & -{3\over10} & 0 & {3\over10} \\ 0 & 0 & 0 & 0 & 1 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 1 & 1 \\ 0 & {1\over5} & 0 & -{1\over5} & -{3\over5} & 0 & -{3\over5} \end{pmatrix} \]      If I use:               \[ B = \begin{pmatrix} 0 & 0 & 0 & 0 & 0 & 0 & -1 \\ 1 & {3\over10} & 0 & {1\over5} & {1\over10} & 0 & -{1\over10} \\ 0 & -12 & 1 & 2 & 1 & 0 & 4 \\ 0 & {1\over10} & 0 & {2\over5} & -{3\over10} & 0 & {3\over10} \\ 0 & 0 & 0 & 0 & 1 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 1 & 1 \\ 0 & {1\over5} & 0 & -{1\over5} & -{3\over5} & 0 & -{3\over5} \end{pmatrix} \]      The matrix works and the `B =` is beside the matrix; however when I try to make it as `{B_{old}}^{-1} =` it just is ignored from the matrix. How would I fix this? I've looked up other ideas but they aren't working and just end up out of the matrix. Any help would be appriciated. I just want to make my matrix look nicer.


title: Remove question mark following period for reference title in PDF, using Vancouver.bst

text: I am using LyX with a slightly modified `vancouver.bst` file. In the PDF output, reference titles that end with a question mark have a period also printed. This occurs only for those references that use the "misc" entry type. For example, one output is: > U. S. Geological Survey. Forecasting California’s Earthquakes—What Can We > Expect in the Next 30 Years?. 2008. Note the "?." following the title. The entry for this reference is:               @Misc{USG08,       Author         = {{U.S. Geological Survey}},       Title          = {Forecasting {C}alifornia's {E}arthquakes---{W}hat                        {C}an {W}e {E}xpect in the {N}ext 30 {Y}ears?},       year           = 2008     }      You can find the modified version of `vancouver.bst` on PasteBin. I have read the responses to a similar question "remove comma after title ending with questionmark." But I could not get any of the ideas there to work, or I did not implement them properly. I do not understand bst files very well. Can anyone offer hacks to the `.bst` file that would remove the extra periods?


title: How to draw round segment

text: I'd like to draw a round segment, but dont know how. Can you help me to draw something like this? ![enter image description here](http://i.stack.imgur.com/YJjfh.png)


title: TOC: part name in center with out page number

text: I want to put part name in center of TOC as MODULE - I with out page number.               \documentclass{scrbook}     \usepackage[english]{babel}     \usepackage{lipsum}     \usepackage{tocstyle}     \renewcommand{\partname}{Module}%          \usetocstyle{standard}     %\settocfeature{pagenumberhook}{}     \renewcommand*{\addparttocentry}[2]{%       \addtocentrydefault{part}{}{\protect\parbox{\textwidth}{\protect\centering#2}}% original #1 in second argument     }               \begin{document}          \tableofcontents          \part{A}     \chapter{chapter A}     \section{Section a}     \lipsum     \part{B}     \chapter{chapter B}     \section{Section b}     \lipsum     \end{document}


title: Ho do I draw a line on the INNER margin in a double-sided document?

text: With the `mdframed` package one can draw nice lines on the left or right of the text. For example:               \documentclass[a4paper,twoside,11pt]{article}          \usepackage[framemethod=TikZ]{mdframed}           \mdfdefinestyle{MDFStyGrayBar}{%         linecolor=gray,         backgroundcolor=white,         %         outerlinewidth=5pt,         %         topline=false,         bottomline=false,         rightline=false,         leftline=true,         %         innertopmargin=4pt, %\baselineskip         innerbottommargin=8pt,         innerrightmargin=3pt,         innerleftmargin=3pt,         %         skipabove=\topskip,         skipbelow=\topskip     }          \begin{document}          \noindent Some normal text.     \begin{mdframed}[style=MDFStyGrayBar]     Some text with a vertical bar on the left.     \end{mdframed}          \end{document}      looks like this: ![output](http://i.stack.imgur.com/e8Iot.png) But what if I want the line to be on the _inner_ side in a double-sided ("twoside") document? That is, on the left for a right-page and on the right for a left-page? This should also work, when the frame extends over several pages. Is that possible with the mdframed package? Thanks for your help!


title: New environment for minipage and colorbox

text: I would like to create a new environment that would automate the following code:               \setbox0=\hbox{\begin{minipage}{5.8in}     \color{black}     \begin{verbatim}          <Some verbatim text here>          \end{verbatim}     \end{minipage}}     \fcolorbox{blue!30}{gray!7}{\box0}      I'm pretty new to Latex, so I apologize if this question is not clear or if there is some obvious mistake. I also want to say that this site is **fantastic** and extremely helpful for new Latex users like myself.


title: Limiting number of output pages

text: I've a class file that my students have to use to write their final year report using LaTeX. Students are told that their report must not exceed 50 pages and that any page beyond this limit will not be read. However, it would be nice if I could include a mechanism to prevent their PDF to contain pages beyond page 50 (i.e. discarding excess pages). I wonder if there is a way to do that.


title: Join several pdf files 4 on 1 page

text: ## Issue I want to join several pdf files to a single pdf with 4 pages on one page and continuously proceeding pages using just one SINGLE tex file. Something like:               \documentclass[a4paper,10pt]{article}     \usepackage{pdfpages}     \usepackage{pgfpages}     \pgfpagesuselayout{4 on 1}[a4paper]     \begin{document}     \includepdf[pages=-]{page1.pdf}     \includepdf{page2.pdf}     \includepdf{page3.pdf}     \includepdf{page4.pdf}     \end{document}      but `pdfpages` seems to stay in conflict with `pgfpages`. ## Until now So far I always used two tex files:               \documentclass[a4paper,10pt]{article}     \usepackage{pdfpages}     \begin{document}     \includepdf[pages=-]{page1.pdf}     \includepdf{page2.pdf}     \includepdf{page3.pdf}     \includepdf{page4.pdf}     \end{document}      and               \documentclass[a4paper,10pt]{article}     \usepackage{pdfpages}     \begin{document}     \includepdf[pages=-,nup=2x2]{temp.pdf}     \end{document}      ## Condition I do not want to use pdfjam as it does almost the same as pdfpages. ## Update Is there a way to generalize this also to different layout like `nup=2x3`? `6 to 1` is undefined in `\pgfpagesuselayout`. ## Another Ansatz Maybe using the package bashful wrong. MWE:               \documentclass[a4paper,10pt]{article}     \usepackage{pdfpages}     \usepackage{bashful}          \begin{filecontents}{temp}         \documentclass[a4paper,10pt]{article}         \usepackage{pdfpages}         \begin{document}         \includepdf[pages=-]{page1.pdf}         \includepdf{page2.pdf}         \includepdf{page3.pdf}         \includepdf{page4.pdf}         \end{document}     \end{filecontents}          \begin{document}          \bash{ shopt -s nullglob; pdflatex temp.tex; done; }      \END          \includepdf[pages=-,nup=2x2]{temp.pdf}     \end{document}


title: TeX Capabilities with Arbitrary Fonts

text: I am formatting 85,000 words of text in InDesign that include several (non- negotiable) .ttf and .otf fonts not canonical to LaTeX. I'd like to switch to a TeX-based format for the following capabilities:   1. Setting well in strange shapes: http://www.tug.org/texshowcase/ShowcaseCircular.pdf   2. \length macro: http://www.tug.org/texshowcase/diminuendo.pdf   3. pdfTeX's superior justification algorithm. Particularly: protrusion, expansion, tracking, and kerning (microtype features, all but the first of which XeTeX cannot perform)   4. Per-page margin adjustment, as found in LaTeX's geometry package I intend to substitute InDesign's optical kerning with a few manual spacing adjustments, which I understand to be an omnipresent feature of TeX-based formats. I also need vertical and horizontal text reflection - also omnipresent, from what I've found. What can perform the above TeX tricks on an arbitrary mix of .ttf and .otf fonts, with a high-quality PDF output? ConTeXt may be my best bet, but its sparse documentation leaves me unsure.


title: How to have a common height of subscripts when some got superscripts too?

text: I am writing a script and got a formula with inverses, and I noticed that the subscripts have a different heigth. This is the minimal working example:               \documentclass{scrbook}     \begin{document}     \[ \underline{h_1 h_1^{}  h_1^{-1}} \]     \end{document}       after compiling this gives ![enter image description here](http://i.stack.imgur.com/v2ENK.png) The underline isn't really necessary but it makes it easier to see the difference, the -1 in the superscript is necessary, as only using 1 in the superscript gives the same heigth in the subscripts. I would like to have all subscripts on the same heigth. My only idea was with `^{}`, but as the MWE shows it still gives a small difference. Is there another solution?


title: Listings: text highlighting based on prefix

text: How can I apply different styles to keywords depending on their prefix? Here is some sample code:               (-2,0,0) (2,1,1) op-registerbox !box1     ;box1 /Blue op-setproperties      I'd like to typeset   1. words starting with `!` and `;` in color red,   2. words starting with `/` in color green,   3. words starting with `cp-` in bold. So far, this is what I've got:               \lstdefinelanguage{XX}     {     basicstyle=\small\sffamily\fontseries{c},     emphstyle=\underbar,     keywordsprefix=[2]{/},     alsoletter={/},     keywordstyle=\textbf,     keywordstyle=[2]\color{green},     morekeywords={op,registerbox, ...},     morestring=[b][\color{green}]",     columns=flexible,     escapechar=\%,     numbersep=6pt,     numberstyle=\scriptsize     }      I'm aware that only one `keywordsprefix` can be defined at the moment: specifying more than one class of prefix (`keywordsprefix=[2]{/}`) is currently not supported. I'd like to avoid having to list all the words that match my description into `morekeywords`. Is that possible? How?


title: Integration Symbol with Limits

text: ![enter image description here](http://i.stack.imgur.com/yNtHU.jpg) How can I write the integration symbol in latex as shown in the picture?


title: Components of Vectors

text: How do I represent the ordered pair representing a vector, without the usual open/close parentheses? My calculus textbook uses these: ![component of vector ](http://i.stack.imgur.com/Ji3l5.png)


title: eledmac: Is it possible to attach a footnote to a non-numbered paragraph?

text: \documentclass{memoir}     \usepackage{eledmac}          \footparagraph{A}                    \foottwocol{B}      \let\variant=\Afootnote                      \let\note=\Bfootnote           \lineation{section}                      \linenummargin{right}                         \begin{document}          \beginnumbering          \pstart \edtext{Here}{\note{This is a footnote on the word here.}} is some text      that has a footnote attached to the word here. Lorem ipsum dolor sit amet,      consectetur adipiscing elit. Sed a ante euismod, iaculis elit nec, tincidunt      tellus. Morbi nec nibh tortor. Integer gravida, neque vel molestie ullamcorper,     nisi velit consectetur mi, ac blandit dui neque ut libero. In nec sapien tellus     Ut mollis ante odio, ac tempor quam ultricies sed. Fusce enim sem, facilisis et     porttitor aliquam, porta vel est. Aenean ut risus a odio ornare ultrices.\pend          This is a \edtext{non-numbered}{\note{This is the footnote I wish I could add.}}     paragraph because it's not within pstart and pend. I want to be able to put a      footnote on it. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed a      ante euismod, iaculis elit nec, tincidunt tellus. Morbi nec nibh tortor. Integer     gravida, neque vel molestie ullamcorper, nisi velit consectetur mi, ac blandit      dui neque ut libero. In nec sapien tellus. Ut mollis ante odio, ac tempor      quam ultricies sed. Fusce enim sem, facilisis et porttitor aliquam, porta vel      est. Aenean ut risus a odio ornare ultrices.           \endnumbering          \end{document}


title: WinEdt Macros that split automatically the equation

text: Can someone help me on how to split the equation automatically using the WinEdt macros: _See sample below:_ **Original Code:**               \documentclass[12pt]{article}     \usepackage{amsmath}     \usepackage{amssymb}          \begin{document}          \begin{align}     \rho (v_{a}) &= \rho_{a}^{i}(x)\ e_{i}, \label{anch} \\[4pt]     \lbrack v_{a},v_{b}] &=  C_{ab}^{c}(\mathrm{x})\ v_{c} \label{liea}     \end{align}               \begin{align}     \widehat{\rho }_{a}^{j}e_{j}({}\widehat{\rho }_{b}^{i})-\widehat{\rho }_{b}^{j}e_{j}     (\widehat{\rho }_{a}^{i}) &= \widehat{\rho }_{e}^{j}\mathbf{C}_{ab}^{e},     \nonumber \\ \hspace*{-12pt}     \sum\limits_{cyclic(a,b,e)}\left( \widehat{\rho }_{a}^{j}e_{j}(     \mathbf{C}_{be}^{f})+\mathbf{C}_{ag}^{f}\mathbf{C}_{be}^{g}-\mathbf{C}     _{b^{\prime }e^{\prime }}^{f^{\prime }} \widehat{\rho }_{a}^{j}     \mathbf{Q}_{f^{\prime }bej}^{fb^{\prime }e^{\prime }}\right) &= 0, \label{lased}     \end{align}               \begin{align}     L_{b^{\prime }e^{\prime }}^{a^{\prime }} \;\;&=\;\; \left( \mathcal{D}_{e^{\prime }}     \mathbf{z}_{b^{\prime }}\right) \rfloor \mathbf{z}^{a^{\prime }},\quad L_{be^{\prime }}^{a}=\left( \mathcal{D}_{e^{\prime }}\mathbf{v}_{b}\right) \rfloor \mathbf{v}^{a} \label{hcov} \\     K_{b^{\prime }c}^{a^{\prime }} \;\;&=\;\; \left( \mathcal{D}_{c}\mathbf{z}_{b^{\prime }}\right) \rfloor \mathbf{z}^{a^{\prime }},\quad K_{bc}^{a}=\left( \mathcal{D}_{c}\mathbf{v}_{b}\right) \rfloor     \mathbf{v}^{a}. \label{vcov}     \end{align}               \begin{align}     A_{A}^{\underline{A}} \;\;&=\;\; \mathbf{e}_{A}^{\underline{A}}=\left[     \begin{array}{cc}     e_{a}^{\underline{a}} & N_{a}^{b}e_{b}^{\underline{a}} \\     0 & e_{a}^{\underline{a}}     \end{array}\right] , \label{vt1} \\ A_{\underline{B}}^{B} \;\;&=\;\; \mathbf{e}_{\underline{B}}^{B}=\left[     \begin{array}{cc}     e_{\underline{a}}^{a} & -N_{a}^{b} e_{\underline{a}}^{a} \\     0 & e_{\underline{a}}^{a}     \end{array}\right] ,     \label{vt2}     \end{align}               \begin{align}     R_{e^{\prime }b^{\prime }c^{\prime }}^{a^{\prime }} \;\;&=\;\; \mathbf{z}^{a^{\prime }}\rfloor \mathcal{R}\left( \mathbf{z}_{c^{\prime }},\mathbf{z}_{b^{\prime }}\right) \mathbf{z}_{e^{\prime }},     R_{ bb^{\prime }e^{\prime }}^{a}=v^{a}\rfloor \mathcal{R}\left( \mathbf{z}_{e^{\prime }},\mathbf{z}     _{b^{\prime }}\right) \mathbf{v}_{b}, \label{curvaturehv} \\     P_{ b^{\prime }c^{\prime }c}^{a^{\prime }} \;\;&=\;\; \mathbf{z}^{a^{\prime}}\rfloor \mathcal{R}\left( \mathbf{v}_{c},\mathbf{z}_{c^{\prime }}\right) \mathbf{z}_{b^{\prime }},~P_{ bc^{\prime}c}^{a}= \mathbf{v}^{a}\rfloor \mathcal{R}\left( \mathbf{v}_{c},\mathbf{z}_{c^{\prime }}\right)     \mathbf{v}_{b}, \nonumber \\     S_{b^{\prime }bc}^{a^{\prime }} \;\;&=\;\; \mathbf{z}^{a^{\prime }}\rfloor \mathcal{R}\left( \mathbf{v}_{c},\mathbf{v}_{b}\right) \mathbf{z}_{b^{\prime }}, S_{bcd}^{a}=\mathbf{v}^{a}\rfloor \mathcal{R}\left( \mathbf{v}_{d}, \mathbf{v}_{c}\right) \mathbf{v}_{b}. \nonumber     \end{align}          \begin{align}     R_{e^{\prime }b^{\prime }c^{\prime }}^{a^{\prime }} \;\;&=\;\; \mathbf{z}     _{c^{\prime }}(L_{.e^{\prime }b^{\prime }}^{a^{\prime }})-\mathbf{z}     _{b^{\prime }}(L_{.e^{\prime }c^{\prime }}^{a^{\prime }})+L_{.e^{\prime     }b^{\prime }}^{d^{\prime }}L_{d^{\prime }c^{\prime }}^{a^{\prime     }}-L_{.e^{\prime }c^{\prime }}^{d^{\prime }}L_{d^{\prime }b^{\prime     }}^{a^{\prime }}-K_{.e^{\prime }a}^{a^{\prime }}\Omega_{.b^{\prime     }c^{\prime }}^{a}, \label{dcurv} \\     R_{ bb^{\prime }e^{\prime }}^{a} \;\;&=\;\; \mathbf{z}_{e^{\prime }}(L_{.bb^{\prime     }}^{a})-\mathbf{z}_{b^{\prime }}(L_{.be^{\prime }}^{a})+L_{.bb^{\prime     }}^{c}L_{.ce^{\prime }}^{a}-L_{.be^{\prime }}^{c}L_{.cb^{\prime     }}^{a}-K_{.bc}^{a} \Omega_{.b^{\prime }e^{\prime }}^{c}, \nonumber \\     P_{ e^{\prime }b^{\prime }a}^{a^{\prime }} \;\;&=\;\; \mathbf{v}_{a}(L_{.e^{\prime     }b^{\prime }}^{a^{\prime }})-(\mathbf{z}_{b^{\prime }}(K_{.e^{\prime     }a}^{a^{\prime }})+L_{.d^{\prime }b^{\prime }}^{a^{\prime }}K_{.e^{\prime     }a}^{d^{\prime }}-L_{.e^{\prime }b^{\prime }}^{d^{\prime }}K_{.d^{\prime     }a}^{a^{\prime }}-L_{.ab^{\prime }}^{c}K_{.e^{\prime }c}^{a^{\prime }}) \nonumber \\     &\quad\;\; +K_{.e^{\prime }b}^{a^{\prime }}T_{.b^{\prime }a}^{b}, \nonumber \\     P_{ ba^{\prime }a}^{c} \;\;&=\;\; \mathbf{v}_{a}(L_{.ba^{\prime }}^{c})-\left(     \mathbf{z}_{a^{\prime }}(K_{.ba}^{c})+L_{.da^{\prime     }}^{c\,}K_{.ba}^{d}-L_{.ba^{\prime }}^{d}K_{.da}^{c}-L_{.aa^{\prime}}^{d}K_{.bd}^{c}\right) \nonumber \\     &\quad\;\; +K_{.bd}^{c}T_{.a^{\prime }a}^{d}, \nonumber \\     S_{ b^{\prime }bc}^{a^{\prime }} \;\;&=\;\; S_{ jbc}^{i}=\mathbf{v}     _{c}(K_{.b^{\prime }b}^{a^{\prime }})-\mathbf{v}_{b}(K_{.b^{\prime     }c}^{a^{\prime }})+K_{.b^{\prime }b}^{e^{\prime }}K_{.e^{\prime     }c}^{a^{\prime }}-K_{.b^{\prime }c}^{e^{\prime }}K_{e^{\prime }b}^{a^{\prime }}, \nonumber \\     S_{ bcd}^{a} \;\;&=\;\; \mathbf{v}_{d}(K_{.bc}^{a})-\mathbf{v}_{c}(K_{.bd}^{a}) + K_{.bc}^{e}K_{.ed}^{a}-K_{.bd}^{e}K_{.ec}^{a}. \nonumber     \end{align}     \end{document}      **Output should look like the data below:**               \documentclass[12pt]{article}     \usepackage{amsmath}     \usepackage{amssymb}          \begin{document}     \begin{align}     \rho (v_{a}) &= \rho_{a}^{i}(x)\ e_{i}, \label{anch} [4pt]     \end{align}     \begin{align}     \lbrack v_{a},v_{b}] &=  C_{ab}^{c}(\mathrm{x})\ v_{c} \label{liea}     \end{align}               \begin{align}     \widehat{\rho }_{a}^{j}e_{j}({}\widehat{\rho }_{b}^{i})-\widehat{\rho }_{b}^{j}e_{j}     (\widehat{\rho }_{a}^{i}) &= \widehat{\rho }_{e}^{j}\mathbf{C}_{ab}^{e},     \nonumber \hspace*{-12pt}     \end{align}     \begin{align}     \sum\limits_{cyclic(a,b,e)}\left( \widehat{\rho }_{a}^{j}e_{j}(     \mathbf{C}_{be}^{f})+\mathbf{C}_{ag}^{f}\mathbf{C}_{be}^{g}-\mathbf{C}     _{b^{\prime }e^{\prime }}^{f^{\prime }} \widehat{\rho }_{a}^{j}     \mathbf{Q}_{f^{\prime }bej}^{fb^{\prime }e^{\prime }}\right) &= 0, \label{lased}     \end{align}               \begin{align}     L_{b^{\prime }e^{\prime }}^{a^{\prime }} \;\;&=\;\; \left( \mathcal{D}_{e^{\prime }}     \mathbf{z}_{b^{\prime }}\right) \rfloor \mathbf{z}^{a^{\prime }},\quad L_{be^{\prime }}^{a}=\left( \mathcal{D}_{e^{\prime }}\mathbf{v}_{b}\right) \rfloor \mathbf{v}^{a} \label{hcov}     \end{align}     \begin{align}     K_{b^{\prime }c}^{a^{\prime }} \;\;&=\;\; \left( \mathcal{D}_{c}\mathbf{z}_{b^{\prime }}\right) \rfloor \mathbf{z}^{a^{\prime }},\quad K_{bc}^{a}=\left( \mathcal{D}_{c}\mathbf{v}_{b}\right) \rfloor     \mathbf{v}^{a}. \label{vcov}     \end{align}               \begin{align}     A_{A}^{\underline{A}} \;\;&=\;\; \mathbf{e}_{A}^{\underline{A}}=\left[     \begin{array}{cc}     e_{a}^{\underline{a}} & N_{a}^{b}e_{b}^{\underline{a}} \\     0 & e_{a}^{\underline{a}}     \end{array}\right] , \label{vt1}     \end{align}     \begin{align}      A_{\underline{B}}^{B} \;\;&=\;\; \mathbf{e}_{\underline{B}}^{B}=\left[     \begin{array}{cc}     e_{\underline{a}}^{a} & -N_{a}^{b} e_{\underline{a}}^{a} \\     0 & e_{\underline{a}}^{a}     \end{array}\right] ,     \label{vt2}     \end{align}               \begin{align}     R_{e^{\prime }b^{\prime }c^{\prime }}^{a^{\prime }} \;\;&=\;\; \mathbf{z}^{a^{\prime }}\rfloor \mathcal{R}\left( \mathbf{z}_{c^{\prime }},\mathbf{z}_{b^{\prime }}\right) \mathbf{z}_{e^{\prime }},     R_{ bb^{\prime }e^{\prime }}^{a}=v^{a}\rfloor \mathcal{R}\left( \mathbf{z}_{e^{\prime }},\mathbf{z}     _{b^{\prime }}\right) \mathbf{v}_{b}, \label{curvaturehv}     \end{align}     \begin{align}     P_{ b^{\prime }c^{\prime }c}^{a^{\prime }} \;\;&=\;\; \mathbf{z}^{a^{\prime}}\rfloor \mathcal{R}\left( \mathbf{v}_{c},\mathbf{z}_{c^{\prime }}\right) \mathbf{z}_{b^{\prime }},~P_{ bc^{\prime}c}^{a}= \mathbf{v}^{a}\rfloor \mathcal{R}\left( \mathbf{v}_{c},\mathbf{z}_{c^{\prime }}\right)     \mathbf{v}_{b}, \nonumber     \end{align}     \begin{align}     S_{b^{\prime }bc}^{a^{\prime }} \;\;&=\;\; \mathbf{z}^{a^{\prime }}\rfloor \mathcal{R}\left( \mathbf{v}_{c},\mathbf{v}_{b}\right) \mathbf{z}_{b^{\prime }}, S_{bcd}^{a}=\mathbf{v}^{a}\rfloor \mathcal{R}\left( \mathbf{v}_{d}, \mathbf{v}_{c}\right) \mathbf{v}_{b}. \nonumber     \end{align}          \begin{align}     R_{e^{\prime }b^{\prime }c^{\prime }}^{a^{\prime }} \;\;&=\;\; \mathbf{z}     _{c^{\prime }}(L_{.e^{\prime }b^{\prime }}^{a^{\prime }})-\mathbf{z}     _{b^{\prime }}(L_{.e^{\prime }c^{\prime }}^{a^{\prime }})+L_{.e^{\prime     }b^{\prime }}^{d^{\prime }}L_{d^{\prime }c^{\prime }}^{a^{\prime     }}-L_{.e^{\prime }c^{\prime }}^{d^{\prime }}L_{d^{\prime }b^{\prime     }}^{a^{\prime }}-K_{.e^{\prime }a}^{a^{\prime }}\Omega_{.b^{\prime     }c^{\prime }}^{a}, \label{dcurv}     \end{align}     \begin{align}     R_{ bb^{\prime }e^{\prime }}^{a} \;\;&=\;\; \mathbf{z}_{e^{\prime }}(L_{.bb^{\prime     }}^{a})-\mathbf{z}_{b^{\prime }}(L_{.be^{\prime }}^{a})+L_{.bb^{\prime     }}^{c}L_{.ce^{\prime }}^{a}-L_{.be^{\prime }}^{c}L_{.cb^{\prime     }}^{a}-K_{.bc}^{a} \Omega_{.b^{\prime }e^{\prime }}^{c}, \nonumber     \end{align}     \begin{align}     P_{ e^{\prime }b^{\prime }a}^{a^{\prime }} \;\;&=\;\; \mathbf{v}_{a}(L_{.e^{\prime     }b^{\prime }}^{a^{\prime }})-(\mathbf{z}_{b^{\prime }}(K_{.e^{\prime     }a}^{a^{\prime }})+L_{.d^{\prime }b^{\prime }}^{a^{\prime }}K_{.e^{\prime     }a}^{d^{\prime }}-L_{.e^{\prime }b^{\prime }}^{d^{\prime }}K_{.d^{\prime     }a}^{a^{\prime }}-L_{.ab^{\prime }}^{c}K_{.e^{\prime }c}^{a^{\prime }}) \nonumber     \end{align}     \begin{align}     &\quad\;\; +K_{.e^{\prime }b}^{a^{\prime }}T_{.b^{\prime }a}^{b}, \nonumber     \end{align}     \begin{align}     P_{ ba^{\prime }a}^{c} \;\;&=\;\; \mathbf{v}_{a}(L_{.ba^{\prime }}^{c})-\left(     \mathbf{z}_{a^{\prime }}(K_{.ba}^{c})+L_{.da^{\prime     }}^{c\,}K_{.ba}^{d}-L_{.ba^{\prime }}^{d}K_{.da}^{c}-L_{.aa^{\prime}}^{d}K_{.bd}^{c}\right) \nonumber     \end{align}     \begin{align}     &\quad\;\; +K_{.bd}^{c}T_{.a^{\prime }a}^{d}, \nonumber     \end{align}     \begin{align}     S_{ b^{\prime }bc}^{a^{\prime }} \;\;&=\;\; S_{ jbc}^{i}=\mathbf{v}     _{c}(K_{.b^{\prime }b}^{a^{\prime }})-\mathbf{v}_{b}(K_{.b^{\prime     }c}^{a^{\prime }})+K_{.b^{\prime }b}^{e^{\prime }}K_{.e^{\prime     }c}^{a^{\prime }}-K_{.b^{\prime }c}^{e^{\prime }}K_{e^{\prime }b}^{a^{\prime }}, \nonumber     \end{align}     \begin{align}     S_{ bcd}^{a} \;\;&=\;\; \mathbf{v}_{d}(K_{.bc}^{a})-\mathbf{v}_{c}(K_{.bd}^{a}) + K_{.bc}^{e}K_{.ed}^{a}-K_{.bd}^{e}K_{.ec}^{a}. \nonumber     \end{align}     \end{document}


title: TeX4ht (htlatex) on MiKTeX 2.9 to convert LaTeX into MathML, and then into Office MathML with Word 2010

text: I managed to use TeX4ht via the `htlatex` command on MiKTeX 2.9 to successfully convert a LaTeX document into an HTML document. The TeX file is a fairly simple test document with an integral in display format. However, I'm using this method as an indirect means to ultimately convert LaTeX into Word with Office MathML (OMML) math. The idea is to convert the TEX file into HTML, and then to simply open the HTML in Word 2010 and save it as DOCX. Unfortunately, I can't seem to manage to do the entire conversion of LaTeX/TEX into MathML/HTML into Office MathML/DOCX properly. I do manage to get a nice HTML, but that's where I'm stuck. Here's what I tried. Without options, `htlatex` generates a picture in PNG format rather than MathML embedded in the HTML file. Word keeps the picture and no OMML is created. `htlatex` with the option "html,mathml" creates an HTML file with MathML, without a bitmap figure, but Word 2010 cannot read it properly, and the resulting formulas look crudely changed into text with greek letters and in- line symbols. The option "xhtml,mathml" also gives problems, something along the lines of "DTD prohibited", when opening in Word the HTML file. Tried "xhtml,oofice,mathml" with similar luck. I wonder if I should use `mk4h mzlatex` instead of `htlatex`. I haven't tested this alternative because `mk4h` on Windows seems to require a Perl interpreter, and it seems pretty much equivalent to `htlatex` with the option "xhtml,mozilla" anyway, as indicated in https://stuff.mit.edu/afs/athena/system/i386_deb50/os- ubuntu-9.04/usr/share/doc/tex4ht/html/. `htlatex` doesn't require Perl. DETAILS   1. Installed MiKTeX 2.9 with both `miktex-tex4ht-bin-2.9` and `miktex-tex4ht-base-2.9` installed with the package manager in administrator mode, on Windows 7.   2. Created a `test.tex` file in `E:\downloads`, as follows:              \documentclass{report}     \begin{document}     Hello there. This is a test of $x_i^2=3$, where     $$\int_0^\infty f(x) = 1.$$     \end{document}        3. Converted the TeX file into an HTML file with the following MS DOS commands. It is important to note that as htlatex accepts filenames but not pathnames, it is important to set the current directory to where the tex file resides. If a pathname were given for the test file, e.g., e:\downloads\test.tex, the error "undefined command sequence" would be produced.              e:     cd Downloads     "C:\Program Files (x86)\MiKTeX 2.9\scripts\tex4ht\htlatex.bat" test.tex        4. The conversion is successful, but the integral formula appears as a bitmap file, instead of being embedded as MathML.   5. Tried the following instead, which does generate the Math ML code instead of the image, but Word 2010 cannot recognize it properly and convert it into Office Math ML:              "C:\Program Files (x86)\MiKTeX 2.9\scripts\tex4ht\htlatex" test.tex "html,mathml"


title: \dots versus \ldots - is there a difference?

text: Is there a difference between `\dots` and `\ldots`, the ellipsis? If yes: Which? When to use `\dots` and when to use `\ldots`? If no: Why are there both at all?


title: Converting sty and bst files to lyx layout

text: I want to write a paper for a conference that requires the use of a specific style-sheet, see here: http://www.acl2012.org/call/sub01.asp under "ACL 2012 Style Files". I would like to use LyX for writing the paper, but, as far as I see, LyX works with `.layout` files. How can I convert the `acl2012.sty` file to a format that LyX can understand?


title: How can I make the diamond-e framework in TikZ?

text: I am trying to construct this in TikZ but I am having a terrible time doing it. I was hoping someone can improve the code, I have below and make it look similar to the picture.               \begin{tikzpicture}     \draw  (-0.5,1.5) rectangle (2,0);     \draw  (-9.5,1.5) rectangle (-7,0);          \draw  (-4.5,5) rectangle (-2,3.5);     \draw  (-4.5,-2) rectangle (-2,-3.5);     \draw  (4,1.5) rectangle (6.5,0);     \draw [-latex](-4.5,4.5) -- (-8,1.5);     \draw [-latex] (-8,0) -- (-4.5,-3);     \draw  [-latex](-2,-3) -- (1,0);     \draw [-latex] (-2,4.5) -- (1,1.5);     \draw  [-latex](2,0.5) -- (4,0.5);     \end{tikzpicture}      I tried adding text inside the rectangles but I couldn't figure out how to. If someone has a solution other than TikZ then that also works.


title: Figure caption alignment screwed when using line break

text: I am having trouble with figure captions when I need a manual line break.               \documentclass[A4]{book}     \usepackage{subfig}     \usepackage[top=35mm, bottom=38mm, inner=40mm, outer=24mm]{geometry}     \usepackage[hang,small,it]{caption}     \usepackage{showframe}     \begin{document}          \begin{figure}     \centering     \caption{Single line no problem.}     \end{figure}          \begin{figure}     \centering     \caption[Content]{Sketching out variants for a new glass plate based installation.\\%     Unless specified, sizes are in cm.}     \label{fig:sketches_plate_arrangements}     \end{figure}          \end{document}      The second figure caption is left aligned instead of centered. (in my actual setup it is a bit more to the right, and the second line is at least properly indented, but still the caption is way too much left). ![enter image description here](http://i.stack.imgur.com/c75YX.png) * * * Well, since you closed the question for unknown reasons, here is my answer. The idea is to use the `margin` parameter of `captionsetup`. If `captionsetup` is used without "float type" option and inside the `\begin{figure} ... \end{figure}` block, it only applies the settings for one particular occurrence.               \documentclass[A4]{book}     \usepackage[top=35mm, bottom=38mm, inner=40mm, outer=24mm]{geometry}     \usepackage[hang,small,it]{caption}     \usepackage{subfig}     \usepackage{showframe}     \usepackage{tikz}          \begin{document}          \begin{figure}     \includegraphics[scale=0.2]{dissem_Modell2_hires.png}     \captionsetup{%  settings just for this caption       margin = 70pt     }     \caption[Content]{Sketching out variants for a new glass plate based installation.%     Unless specified, sizes are in cm.}     \end{figure}          \end{document}      ![enter image description here](http://i.stack.imgur.com/Qehff.png)


title: A problem with alignment to the bottom of the page with different font sizes

text: I want all my pages' bottoms to fall in the exact same place. Assume also that I want two different font sizes on one page (first a larger one, then a smaller one), so using the `heightrounded` option of geometry is not an option; also, the _size_ of the portion in the larger (default) font may be variable, so putting a fixed, precalculated skip won't help, either. I tried this:               \documentclass[12pt]{article}          \usepackage{vgrid}% this is just to help visualize the alignment!     \usepackage[height=14\baselineskip,paperheight=20\baselineskip]{geometry}     \usepackage{lipsum}          \begin{document}     \lipsum[1-2]     \vspace{0pt plus \baselineskip}     %\vfill     {\footnotesize     \lipsum[2-5]     \par}          \end{document}      but the `\vspace` didn't seem to change anything. OTOH, `\vfill` _did_ help. Why didn't my stretchable `\vspace` work?


title: DMY date and serial comma with Biblatex-chicago

text: I am quite new to LaTeX, but I've been piecing some things together to develop a template with the style I use. Specifically, I need to use the Annals of the Association of American Geographers (AAG) style, which is a modified Chicago style. I have managed to almost get what I need for citations (which has been no small feat); I can currently generate the following: ![a sample of my bibliogrphic style](http://i.stack.imgur.com/fXxrJ.png) However, to be compliant with the AAG style I need to have the date in the format dd Mon. yyyy. In searching around, I've found the suggestion to use Australian English via babel, which gives me this: ![enter image description here](http://i.stack.imgur.com/Dujne.png) Unfortunately, now the serial comma has been dropped from the authors list. Here is the MWE of my TeX (with Australian):               \documentclass{article}          \usepackage[australian,american]{babel}          \usepackage[authordate-trad, backend=biber, dateabbrev=true, firstinits=true, maxcitenames=3, isbn=false, doi=false, eprint=false]{biblatex-chicago}          %Set custom strings for url and date labels (available at and last accessed)     \NewBibliographyString{available}     \NewBibliographyString{urlwhen}          \DefineBibliographyStrings{english}{%       available = {Available at},     }          \DefineBibliographyStrings{english}{%       urlwhen = {last accessed},     }          \DeclareFieldFormat{url}{\bibstring{available}\addcolon\space\url{#1}}     \DeclareFieldFormat{urldate}{\mkbibparens{\bibstring{urlwhen}\addcolon\space{#1}}}          % Set url + date appearance in bib (add doi here if needed)     \renewbibmacro*{bib+doi+url}{%       \usebibmacro{url+urldate}       }          %Remove Quotes around titles     \DeclareFieldFormat       [article,inbook,incollection,inproceedings,patent,thesis,unpublished]       {title}{#1\isdot}          \addbibresource[datatype=bibtex]{biblio.bib}     \begin{document}     \autocite{article}          \renewcommand*{\bibname}{References}     \begin{otherlanguage}{australian}     \printbibliography      \end{otherlanguage}     \end{document}      And here is the .bib:               @article{article,      Author = {Brown, J. C. and Jepson, W. E. and Kastens, J. H. and Wardlow, B. D. and Lomas, J. M. and Price, K. P.},      Number = {2},      Pages = {117-148},      Title = {Multitemporal, moderate-spatial-resolution remote sensing of modern agricultural production and land modification in the Brazilian Amazon},      Url = {http://www.somehost.org/somefolder/somefile.pdf},      Urldate = {2013-10-27},      Volume = {44},      Year = {2007}}      Does anyone have an thoughts as to the best way to get what I need? That is, how can I get the date format without losing the comma? Thanks!


title: How can I get fancy-preview to work?

text: I would like to add `fancy-preview` to a document that I have created. I thought it would be best to get to learn how to use it on a simple example, so I found this TeX.SE question. I then tried to work with the example document that was given by robert.marik.cz. Here is the code:               \documentclass{article}     \usepackage{amsmath,amsthm}     \newtheorem{lemma}{Lemma}     \usepackage{hyperref} % Important!     \begin{document}          \begin{lemma}[Lemma from \cite{M}]\label{lemma}     If $k<0$, then     \begin{equation}     \label{eq:1}     x^2+k<x^2     \end{equation}     for every real number $x$.     \end{lemma}          Inequality \eqref{eq:1} in Lema \ref{lemma} can be proved easily. Is     more general than \cite[Theorem 3.4]{K}.          \begin{thebibliography}{9}     \bibitem[M]{M} Me: My book related to the problem (2006), 145 p.     % The new line is important!          \bibitem{K} Karl: Karl's paper published in some minor proceedings,      a local conferrence organized by his university (2005), 23--25.     % The new line is important!               \end{thebibliography}     \end{document}      I compiled the document with no errors (or modifications to the code) but the PDF (in Adobe Reader) does not give the desired effect. Specifically, the previews do not show.


title: Putting a title on a Feynman diagram with feynmp

text: I would like to put an overall title for a FeynMP diagram, as it is going to be put in a figure side by side with many other Feynman diagrams. I would like it to look something like this:![FeynMP diagram with a title](http://i.stack.imgur.com/IY5Ag.jpg) The option to put it either top or bottom would be also welcome. The source without the title is as follows:               \documentclass{article}     \usepackage{feynmp}     \DeclareGraphicsRule{*}{mps}{*}{}          \begin{document}     \thispagestyle{empty}     \unitlength = 1mm     %lb - left bottom     %rt - right top     \begin{fmffile}{gluon}     \begin{fmfgraph*}(30,30)       \fmfleft{lb,lt}       \fmflabel{Left bottom}{lb}       \fmflabel{Right bottom}{rb}       \fmfright{rb,rt}       \fmflabel{Right top}{rt}       \fmflabel{Left top}{lt}       \fmf{fermion}{lb,v1}       \fmf{fermion}{v1,rt}       \fmf{dashes_arrow}{rb,v1}       \fmf{fermion}{v1,lt}       \fmfdot{v1}     \end{fmfgraph*}     \end{fmffile}     \write18{mpost gluon}     \end{document}      Any information will be appreciated!


title: how to get beamer theme like this?

text: When I first see the following, it is the best theme that I've seen. I want to get theme like this. How can I use theme like this? Bayesian Nonparametrics Part II, Peter Orbanz ![enter image description here](http://i.stack.imgur.com/NhPmB.png)


title: Longtable and wrapping text with underscores

text: I am currently using the `longtable` environment and I have set the width for each row. In one particular row I need to include some Prolog code which happen to have underscore characters. For instance:                predicate_name_test(argument1, argument2, argument3)      The issue is that latex does not seem to wrap the text with underscores (at least this is my educated guess, correct me if I am wrong) causing the Prolog code to exceed the width of the row. Can you help me, please? Here the syntax I am using to insert a longtable:                \begin{document}      \begin{landscape}      \begin{center}      \scriptsize      \begin{longtable}{|p{2cm}|p{4cm}|p{8cm}|}\hline\hline      \multicolumn{1}{|p{2cm}|}{\textbf{Text1}} &      \multicolumn{1}{p{4cm}|}{\textbf{Text2}} &      \multicolumn{1}{p{8cm}|}{\textbf{Text3}}\\ \hline       \endfirsthead          \multicolumn{3}{p{3cm}}     {{\bfseries \tablename\ \thetable{} -- continued from previous page}}\\       \hline\multicolumn{1}{|p{2cm}|}{\textbf{Text1}} &      \multicolumn{1}{p{4cm}|}{\textbf{Text2}} &      \multicolumn{1}{p{8cm}|}{\textbf{Text3}}\\\hline       \endhead          \hline \multicolumn{3}{|r|}{{Continued on next page}} \\ \hline     \caption[Caption]{Caption}\label{label-caption}      \endfoot     \caption[Caption]{Caption}\label{label-caption}      \endlastfoot          \end{longtable}     \end{center}     \end{landscape}     \end{document}


title: Azimuth shading for phase diagram

text: I want to make a phase diagram plot. As seen below, liquid phase (blue) changes gradually into gas phase (red). I want to fill the white part of the graph with azimuth shading between red and blue. There are already few solutions how to make azimuth shading here Azimuth shading but I do not know how to apply it to this problem. **In particular, how can I force azimuth shading to fill only empty space on my plot?** Code:               \documentclass{standalone}     \usepackage{tikz}     \usepackage{pgfplots}     \usepgfplotslibrary{fillbetween}          \begin{document}     \begin{tikzpicture}          \begin{axis}[xmin=0,ymin=0,xmax=3,ymax=2]     \addplot[name path=gas,very thick] coordinates {(0,0) (1,1) (2,1.5)};     \addplot[name path=liq,very thick] coordinates {(1,1) (1,2.1) (2,2.1)};     \addplot[name path=help1] coordinates {(2,2) (0,2) (0,0)};     \addplot[name path=help2] coordinates {(0,0) (3,0) (3,1.5)};          \addplot[blue] fill between[of=gas and liq];     \addplot[green] fill between[of=liq and help1];     \addplot[red] fill between[of=gas and help2];          \end{axis}          \end{tikzpicture}     \end{document}      ![enter image description here](http://i.stack.imgur.com/un8Uq.png)


title: When is TeX in "no mode"?

text: TeX can be in 7 distinct modes:   1. Vertical mode: this is the mode in which TeX starts, and build pages.   2. Internal vertical mode: TeX is in this mode within `\vbox{...}`.   3. Horizontal mode: when constructing paragraphs.   4. Restricted horizontal mode: within an `\hbox{...}`.   5. Display math mode: `$$...$$` (and LaTeX's other display math environments).   6. Math mode: `$...$` for inline math.   7. No mode: only within `\write` commands? The existence of the `no mode` mode can be ascertained by running               \tracingall     \immediate\write16{\iftrue\fi}     \end      (with the plain TeX format). The log contains                \write->\iftrue \fi       {no mode: \iftrue: (level 1)}      {true}      {\fi: \iftrue (level 1)}           {vertical mode: blank space  }      {\end}      As you can see, TeX writes down the mode for the first command run in that mode. In this snippet, we can see `no mode` and `vertical mode`. So far, I noted that neither `\message` nor `\special` change the mode to `no mode`. Only `\write` seems to do it.


title: I want both table and text at the center of page and table cell resp

text: I have the following code:               \documentclass[a4paper,11pt]{article}     \usepackage[left=2.5cm, right=1.5cm, top=2.5cm, bottom=1.5cm]{geometry}     \usepackage{graphicx}     \usepackage{amsmath}     \usepackage{geometry}     \usepackage{multirow}     \renewcommand{\baselinestretch}{2}\normalsize     \centering          \begin{document}     \section{Data sheet}     Department of Mechanical Engineering\\     \flushleft     \textbf{1. Name}                                                     : Sandip R. More\\     \textbf{2. Registration No.}                                   : ME12S037   \\     \textbf{3. Registered for}                                      : MS By Research \\     \textbf{4. Specialization}                                       : Machine Design\\     \textbf{5. Category}                                                : Regular\\     \textbf{6. Guide}                                                     : Prof. P Chandramouli\\     \textbf{7. Date of joining}                                     : 16 July 2012\\     \textbf{8. Date of Registration}                           : 16 July 2012\\     \textbf{9. Date of GTC Meeting}                          : 25 September 2013\\     \textbf{10. Area of Research}                               : Floating Raft Vibration Isolation\\                                                 \textbf{11. Details of course work}                     :\\      \begin{table}[h]     \centering     \begin{tabular}{|c|c|c|c|c|c|c|}     \hline  \textbf{Sr No.}&\textbf{Course No.} &\textbf{Course  title}  &\textbf{Semester}  &\textbf{core/Elective}  &\textbf{Credit}  &\textbf{Grade}  \\      \hline  1& ID 6020 & Introduction to Research& Jul-Nov 2012  & Compulsory  & 2  & P  \\      \hline 2 &  ME 7360  & Theory of Vibration & Jul-Nov 2012 & Core & 3 &  B  \\      \hline 3 &  ME 6700  & Advanced Mechanics of Solid & Jul-Nov 2012 & Elective &  3 & B  \\      \hline  4 & ME 6003 & Variational Principles in Mechanics & Jul-Nov 2012 &  Elective &  3 & B  \\      \hline 5 &  ME 7840 &   Signal processing of Mechanical Systems &   Jul-Nov 2012 &  Elective &  3 & B  \\      \hline 6 &  ME 7850 &   Modal Analysis of Mechanical System  & Jan-May 2013 &   Core & 3 &  A  \\      \hline 7 &  ME 6800 &   Finite Element Analysis &   Jan-May 2013 &  Core &  3 & A  \\      \hline 8 &  ME 6000 &   Computational methods in Engineering &  July-Nov 2013 & Elective &  3 & Crediting  \\      \hline  9 & ME7710 &    Advanced Vibration and Acoustics &  July-Nov 2013 &  &  3 & Auditing  \\      \hline      \end{tabular}      \end{table}     \end{document}


title: Comprehensive list of possible fields in APA6

text: I'm coming into a situation where users have uploaded thousands of documents (all non-published). There are only basic elments stored currently, including Title, Author, Year. Some fields contain additional data. I need to rewrite this form to better categorize the documents so that I can eventually generate a reference list in APA6. I'm familiar with the fields needed for APA6 published lit (such as from Pubmed), however there are many other possible document types including pamphlets, web page, email, ect. Is there a comprehensive list of document types (and/or fields) that one might run across in APA6 styling?


title: Document class article, maketitle with logo

text: I want to modify the title section of the `article` class to look like something in the attached figure. Basically what I want is a kind of logo with flushed text (title, author, affiliation). I tried playing little bit with `minipage`, `wrapfigure` but with no luck. Can you recommend a way of doing this? ![enter image description here](http://i.stack.imgur.com/CdAcF.png)


title: Simple way to place an array of symbols above a letter?

text: I would like to typset something similar to the symbol used for the "generalized spherical harmonics". This involves placing an array of dots above a letter. The array will have two columns, and the number of dots in each column can be different. I have tried the following, but it looks awful:               $\overset{\begin{matrix} . & \ \\ . & . \end{matrix}}{T}$      I would rather not have to fiddle with the array spacing manually, is there any way to do this simply? If not, how would I do it at all (even if it requires manual array spacing)? An example of what it's supposed to look like can be found here (its the T symbol with the dots above it, but it shouldn't look like a triangle, it should distinctly be two columns with two dots on the left and one on the right): ![enter image description here](http://i.stack.imgur.com/wjwtW.gif)


title: Fedora manual installation and dependencies

text: Following answers on this website (like: How to use TeX Live on Fedora 17? and Manually installed TexLive on Fedora 16 ) I installed texlive manually on fedora and it works flawlessly. The problem I have is that tex is a requisite for other packages (such as R). Whenever I try to install (through yum) R i am required to install another tex from fedora.   I don't want to do so because the package is old, it doesn't have tlmgr and I don't want to have two installed tex. Is there a way to make the OS notice I already have tex installed and the dependency is satisfied? Thanks!


title: How can I configure more space around horizontal line in frac?

text: Consider the following example:               \documentclass{report}     \begin{document}         $\frac{\mbox{Time}}{\mbox{h}}$     \end{document}      ![](http://i.stack.imgur.com/BLpid.png) Is it just me or is the h almost colliding with the horizontal line? I am guessing the spacing is optimised for the math italics(?) but can something be done about it? * * * **Edit** : Seem there are some considerations as to wether the use case is relevant. I want to use it as a table header but perhaps there is a better way to do that as well? Here is a somewhat less minimalistic example to strengthen the validity of the question:               \documentclass{report}     \usepackage{booktabs}     \begin{document}         \begin{tabular}{lc}             \toprule             Foo & $\frac{\mbox{Time}}{\mbox{h}}$ \\             \midrule             Bar  & 2.5 \\             Buzz & 3.0 \\             \bottomrule         \end{tabular}     \end{document}      ![enter image description here](http://i.stack.imgur.com/mcYuF.png)


title: Suppress character substitution in xetex

text: I have a situation where I need to place a combining ring above (U+030A) the character 'j'. Yes, it is silly, because the ring would collide with the dot above the 'j', but I want to combine them precisely to emphasize that silliness. The font I am using, however, Linux Libertine, is being very helpful and automatically substitutes the 'j' with a dotless 'ȷ' (U+0237) if I try to put a ring above it. So the question is, how can I suppress that character substitution (not for the whole document, but just for the relevant text)? Presumably with a `\addfontfeatures{}` command? MWE:               \documentclass{article}     \usepackage{fontspec}     \setmainfont{Linux Libertine O}     \begin{document}     jj\char"030A     \end{document}      ![enter image description here](http://i.stack.imgur.com/xYEaU.png)


title: Date column in moderncv

text: I am writing my cv and with the following code                \documentclass[11pt,a4paper]{moderncv}     \moderncvtheme[green]{classic}                       \usepackage[utf8]{inputenc}                       \usepackage{floatflt}     \usepackage{fancyhdr}      \usepackage{geometry}     \geometry{a4paper,left=2cm,right=1cm, top=2cm, bottom=1.5cm,headheight=21pt}      \usepackage{tikz}      \usepackage{wrapfig}     \usepackage{lipsum}      \firstname{C}     \familyname{N}     \title{Curriculum vit\ae{}}                   \address{}{}       \photo[128pt]{picture}               \usepackage[english]{babel}                        \begin{document}               \section{studies}          \cventry{Dec 01, 2010 -- Jan 01, 2011}{student assistant}{}{}{}{chair of statistics xxxx \newline student assistant as a tutor of statistics 2 }     \cventry{Jul 31, 2008 -- Sep 30, 2011}{matriculation Bachelor of Science x}{}{}{}{university of x}                              \end{document}      I produce the following output ![t1](http://i.stack.imgur.com/8sMaG.png) What I don't like is the line breaking of the date. In the first entry the "-" is in the second line and in the second entry it is in the first line. So I would prefer a more uniform formatting, so that the "-" is either in the first line or in the next line, but always the same and not switching. Any ideas?


title: Columns in sublists

text: Long lists of short bullet points look better when put besides using multiple columns. With top-level itemizations, this works easily with the environment columns. But when I try to use it inside a sublist               \documentclass{beamer}     \begin{document}     \begin{frame}       \begin{itemize}         \item a top item           \begin{itemize}             \begin{columns}               \begin{column}{.5\textwidth}                 \item a sub item               \end{column}               \begin{column}{.5\textwidth}                 \item another sub item               \end{column}             \end{columns}           \end{itemize}       \end{itemize}     \end{frame}     \end{document}      ![items too broad](http://i.stack.imgur.com/E6Dmd.png) it results in too broad items. As the sub-items also have the same font size as the one above, seemingly the itemization depth does not propagate into the columns. Putting further itemize-environments into the columns did not work either. The generated document does not change.               \documentclass{beamer}     \begin{document}     \begin{frame}       \begin{itemize}         \item a top item           \begin{columns}             \begin{column}{.5\textwidth}               \begin{itemize}                 \item a sub item               \end{itemize}             \end{column}             \begin{column}{.5\textwidth}               \begin{itemize}                 \item another sub item               \end{itemize}             \end{column}           \end{columns}       \end{itemize}     \end{frame}     \end{document}      How can I columnize subitems in a single-columned list?


title: Add a gaussian curve in a specific location in a tikz diagram

text: I'd like to put a gaussian curve in a specific location in a diagram I am creating with tikz. I found the question Bell Curve/Gaussian Function in TikZ/PGF, and I can use this to add the gaussian curve to my diagram, but I don't know how to put it in the proper place. The gaussian should be centered at (0,10) in the tikz diagram. Here is my code so far:               \documentclass[12pt]{article}          \usepackage{tikz}     \usepackage{pgfplots}          \begin{document}     \pagestyle{empty}          \begin{tikzpicture}          \pgfmathdeclarefunction{gauss}{2}{%       \pgfmathparse{1/(#2*sqrt(2*pi))*exp(-((x-#1)^2)/(2*#2^2))}%     }          \pgfmathsetmacro{\phcy}{3.5}          % draw beam and dimension     \draw[line width=2] (0,\phcy) -- +(-3,10) ;     \draw[line width=2] (0,\phcy) -- +(3,10) ;     \draw[line width=1.5,<->] (0,\phcy) ++(73.6:10) arc (73.6:106.3:10);     \node at (0,\phcy+9.5) {$\Theta_{FWHM}$};          \begin{axis}[style={samples=200,smooth},         axis lines=none]     \addplot[mark=none] {gauss(0,1)};     \end{axis}          \end{tikzpicture}          \end{document}


title: Can I make coordinate plot more smooth?

text: I am currently trying to make an image for Topology. Although it doesn't really matter for the content, I think a smooth neighborhood looks nicer. # What I currently have ![enter image description here](http://i.stack.imgur.com/nlW4R.png)               \documentclass[varwidth=true, border=2pt]{standalone}     \usepackage{tikz}     \usepackage{pgfplots}          \begin{document}     \begin{tikzpicture}[>=stealth,]         \begin{axis}[             axis x line=middle,             axis y line=middle,             %width=9cm,             %height=4.5cm,             xmin=-1,     % start the diagram at this x-coordinate             xmax= 5,    % end   the diagram at this x-coordinate             ymin=-1,     % start the diagram at this y-coordinate             ymax= 5,   % end   the diagram at this y-coordinate             xlabel=$X_1$,             ylabel=$X_2$,             ticks=none,             enlargelimits=true,             after end axis/.code={                 \draw [decorate,decoration={brace,mirror,raise=15pt}] (axis cs:0,3.6) -- (axis cs:0,2.5) node [midway,left=20pt] {$U_2$};                 \draw [decorate,decoration={brace,mirror,raise=12pt}] (axis cs:1.5,0) -- (axis cs:2.5,0) node [midway,below=16pt] {$U_1$};             }]                  \addplot[mark=none, orange, smooth, thick, fill=orange!30] coordinates {(1,1) (2,0.5) (3,1.5) (3,2) (3.5,3) (3.2, 5) (2.2, 4.7) (1.5, 4.2) (1.1, 3.9) (0.9, 2.5) (1,1)};             \node[orange] at (axis cs:4,4) [anchor=south] {$U$};                  % Draw help lines             \addplot[dashed] coordinates {(1.5,0) (1.5,3.6)};             \addplot[dashed] coordinates {(2.5,0) (2.5,3.6)};             \addplot[dashed] coordinates {(0,2.5) (2.5,2.5)};             \addplot[dashed] coordinates {(0,3.6) (2.5,3.6)};                  % Draw solid square             \addplot[mark=none, red, thick, fill=red!30] coordinates {(2.5,2.5) (2.5,3.6) (1.5,3.6) (1.5,2.5) (2.5,2.5)};                  % Draw x and annotation             \node[blue] at (axis cs:2,3) [anchor=south west] {$x$};             \addplot[mark=*, blue] coordinates {(2,3)};                  % Draw ticks of help lines             \addplot[mark=none, red, thick] coordinates {(1.5, -0.1) (1.5,0.1)};             \addplot[mark=none, red, thick] coordinates {(2.5, -0.1) (2.5,0.1)};             \addplot[mark=none, red, thick] coordinates {(-0.1, 2.5) (0.1,2.5)};             \addplot[mark=none, red, thick] coordinates {(-0.1, 3.6) (0.1,3.6)};                  % Draw axis text             \node[blue] at (axis cs:0,3) [anchor=east] {$x_2$};             \node[blue] at (axis cs:2,0) [anchor=north] {$x_1$};              \end{axis}      \end{tikzpicture}     \end{document}      ## What I want I would like the orange neighborhood to be more smooth. The actual form of U doesn't matter, as long as the red square is included. How can I make U smoother?


title: Remove blank page between Acknowledgements and Table of Contents?

text: I get a blank page between “Acknowledgement” and “Table of contents”. How can I remove it? I used a template from somewhere. The preamble is as follows:               \documentclass[openany,12pt]{ubthesis}     \usepackage{amssymb}     \usepackage{amsfonts}     \usepackage{srcltx}     \usepackage{graphicx}     \usepackage{amsmath}     \usepackage{epsfig}     \usepackage{dsfont}     \usepackage{url}     \usepackage{color, soul}     \usepackage{natbib}     \usepackage{lscape}     \usepackage{subfigure}     \usepackage{amsthm}     \usepackage{indentfirst}     \usepackage[subfigure]{graphfig}     \usepackage{float}     \floatstyle{plaintop}     \restylefloat{table}      \usepackage{setspace}     \usepackage{booktabs}     \usepackage{tikz}      \usepackage[export]{adjustbox}      \usepackage[titletoc]{appendix}     \usepackage{listings}      \usepackage{color}      \definecolor{mygreen}{RGB}{28,172,0}      \definecolor{mylilas}{RGB}{170,55,241}     \input{gams.tex}%newly added 0803          \pagestyle{plain}     \setulcolor{red}     \bibpunct[, ]{(}{)}{;}{a}{,}{,}     \def\bibfont{\small}     \def\bibsep{\smallskipamount}     \def\bibhang{24pt}     \def\newblock{\ }     \def\BIBand{and}          \widowpenalty=10000     \clubpenalty=10000     \raggedbottom          \newtheorem{theorem}{Theorem}[chapter]     \renewcommand{\thetheorem}{\arabic{chapter}.\arabic{theorem}}       \newtheorem{acknowledgment}[theorem]{Acknowledgment}     \newtheorem{algorithm}[theorem]{Algorithm}     \newtheorem{axiom}[theorem]{Axiom}     \newtheorem{case}[theorem]{Case}     \newtheorem{claim}[theorem]{Claim}     \newtheorem{conclusion}[theorem]{Conclusion}     \newtheorem{conjecture}[theorem]{Conjecture}     \newtheorem{corollary}[theorem]{Corollary}     \renewcommand{\thecorollary}{\arabic{chapter}.\arabic{corollary}}     \newtheorem{criterion}[theorem]{Criterion}     \newtheorem{definition}[theorem]{Definition}     \newtheorem{example}[theorem]{Example}     \newtheorem{exercise}[theorem]{Exercise}     \newtheorem{lemma}[theorem]{Lemma}     \newtheorem{notation}[theorem]{Notation}     \newtheorem{problem}[theorem]{Problem}     \newtheorem{prop}{Proposition}[chapter]     \newtheorem{remark}[theorem]{Remark}     \newtheorem{solution}[theorem]{Solution}     \newtheorem{summary}[theorem]{Summary}     \renewenvironment{proof}{\bf Proof:}{}


title: Convention to express sets in math mode?

text: I need to express a set with a letter and its members also with that letter. Say I have my set `S` with members `S1, S2, ..., SN`. I have three ways in mind. Which one should be adopted in paper writing? Set `S`: `$S$` Members: `$S_1, S_2, ..., S_N$` OR Set `S`: `$\bm{S}$` Members: `$S_1, S_2, ..., S_N$` OR Set `S`: `$\{S\}$` Members: `$S_1, S_2, ..., S_N$`


title: Logic games using TeX

text: On my way to learn how to use LaTeX, I came across the `logicpuzzle` package and I found it really impressing how you can really generate all kinds of grids without including any picture. For instance : ![enter image description here](http://i.stack.imgur.com/VxmRz.png) ![enter image description here](http://i.stack.imgur.com/A57kk.png) ![enter image description here](http://i.stack.imgur.com/ijAUq.png) So I jumped happily in the source code right here (everything seems to be located in logicpuzzle.sty) and what I came across seems so obscure to me that I haven't learned a single thing. Where or how can you learn to do such advanced things in LaTeX ? Or, at least, how is this more **basically** done ?


title: Using bi-lingual entries with the glossaries package

text: I'm writing my PhD thesis in my mother language (Slovene). I would like to create a Glossary that would contain the slovene versions of the terms along with their english counterparts. The descriptions would be in slovene. What I would like to achieve is best demonstrated with a small example:               \documentclass{article}          \begin{document}          On its first use, the acronym would look something like: \textit{slovene     translation of the expanded acronym} (angl. \textit{expanded acronym in     english, ACR}), where \textit{ACR} is the english acronym.     On second use, it would look like: ACR.          For ordinary glossary entries, the first occurence would look like:     \textit{slovene translation of the term} (angl. \textit{english term}).     Further occurences would look like: slovene translation of the term.          \vspace*{24pt}          The Glossary would contain something along the lines below:          \section*{Glossary}          \textbf{ACR} \quad Expanded acronym in english. See: slovene translation of the     expanded acronym.          \vspace*{12pt}          \noindent\textbf{\textit{slovene translation of the expanded acronym} (angl.     \textit{expanded acronym in english}, ACR)} \quad Slovene description of the     acronym.          \vspace*{12pt}          \noindent\textbf{\textit{slovene translation of the term} (angl.     \textit{english term})}     \quad Slovene description of the term.          \end{document}      The above example produces: ![enter image description here](http://i.stack.imgur.com/m2PKX.png) Note that the entry for the acronym is listed twice: one occurrence lists the english acronym (e.g. ACR) with an expanded english version and a reference to the slovene entry, the other is an ordinary entry with slovene translation of the expanded acronym, expanded acronym in english and the english acronym itself. I would be happy to see even a partial answer.


title: Problem Solution Template

text: I want to create a Latex document like the following one:               1. This is the problem statement in      multiple line.          Solution:     This is the solution of the problem. When there is only on     solution, there is no need to numbering          2. This is another problem but two solution     multiple line.          Solution 1:     This is the first solution of the problem          Solution 2:     This is the second solution.      What do you suggest? PS: I'm not very familier with TeX environment.


title: how to reference problems by the text label in an exercise envioronment

text: I am using the exercise package, as illustrated in the following example:               \begin{Exercise}[     title={blah},     label={modernOpticsLecture2:pr2}     ]     foo     \end{Exercise}      I can put a reference to this problem by doing something like:               In \ref{modernOpticsLecture2:pr2} we show that      which shows up with a 2.2 hyperlink:               In 2.2 we show that      but would prefer the reference include a bit more text (i.e. prefixed by exercise) like so:               In Exercise 2.2 we show that      For now I've just prefixed by `\ref` with the text 'Exercise', but noticed that in my .aux file I have something like:               \newlabel{modernOpticsLecture2:pr2}{{2.2}{38}{Problems\relax }{Exercise.2.2}{}}      which seems to imply that there's probably a way to directly reference this by the `Exercise.2.2` name that's tucked away in the .aux file encoded using this `\newlabel` command. I was wondering how that would be done?


title: IEEEconf makes figures vanish through addtolength{\textheight}

text: I have to write a small paper in ieeeconf style. Everything works fine, except that my figures vanish. I have narrowed it down to the following: At the end of the document, there is a line saying               \addtolength{\textheight}{-12cm}   % This command serves to balance the column lengths                                       % on the last page of the document manually. It shortens                                       % the textheight of the last page by a suitable amount.                                       % This command does not take effect until the next page                                       % so it should come on the page before the last. Make                                       % sure that you do not shorten the textheight too much.      If I comment out this line, everything works fine, but as soon as I leave it in, my figures disappear. My guess is the following: The line limits the number of figures which can be present in one column. Additional figures are sent to the next page, which for some reason is cut off. My minimal working example:               \documentclass[letterpaper, 10 pt, conference]{ieeeconf}  % Comment this line out if you need a4paper          %% My packages:     \usepackage{graphicx}     \usepackage{subcaption}          %%          \title{\LARGE \bf     Very long title with lots of spoilers allowing to skip the actual paper     }          \author{Albert Author$^{1}$ and Bernard D. Researcher$^{2}$% <-this % stops a space     \thanks{*This work was not supported by any organization}% <-this % stops a space     \thanks{$^{1}$Albert Author is with Faculty of Electrical Engineering, Mathematics and Computer Science,             University of Twente, 7500 AE Enschede, The Netherlands             {\tt\small albert.author@papercept.net}}%     \thanks{$^{2}$Bernard D. Researcheris with the Department of Electrical Engineering, Wright State University,             Dayton, OH 45435, USA             {\tt\small b.d.researcher@ieee.org}}%     }          %     \begin{document}          \maketitle     \thispagestyle{empty}     \pagestyle{empty}          \begin{figure}     \centering         \begin{subfigure}{\columnwidth}             \includegraphics*[width=\columnwidth]{logo}             \caption{A}             \label{fig:c1}         \end{subfigure} \\         \begin{subfigure}{\columnwidth}             \includegraphics[width=\columnwidth]{logo}             \caption{B}             \label{fig:c2}         \end{subfigure} \\         \begin{subfigure}{\columnwidth}             \includegraphics[width=\columnwidth]{logo}             \caption{C}             \label{fig:c3}         \end{subfigure}         \caption{My overall caption}         \label{fig:main_label}     \end{figure}          %\addtolength{\textheight}{-12cm} % <-- IF I UNCOMMENT THIS LINE, THE FIGURES ABOVE DISAPPEAR          \end{document}      NOTE: If I delete the .aux file and compile it once, the figures are present. At the second compilation however, they disappear again. Unfortunately, I need to compile twice since the labels etc. are only set then.


title: Potential side-effects associated with a dash in a package/class name?

text: Common practice for naming packages and classes seems to be, using regex-like notation:               [a-z][a-z0-9]*      In other words, the name usually starts by a lowercase letter, followed by any sequence of lowercase letters and digits. However, some packages (e.g. `tikz-3dplot`) and classes (e.g. `revtex4-1`) contain a `-` in their name. I am myself tempted to use a dash in the name of one of my packages. Is that wise? Aside from perhaps inconveniencing some users by deviating from naming conventions... ... **Are there potential side-effects associated with using a dash in a package/class name?**


title: draw single pole double throw switch in circuitikz

text: I am new to circuitikz so this question may be too easy for some of you. I want to draw a single pole double throw switch in circuitikz. It can be done with "spdt". However I don't find any example of using it in the manual. I just don't know how to connect this 3-terminal component with the surrounding ones. Can anyone provide an example? Thanks.


title: Adjust vertical spacing in tabular containing \href

text: I seem to be stumped by what seems like a basic `tabular` spacing issue (when an `\href` is used). The obvious solution of tweaking `arraystretch` does not seem to work. What I want is that the output of the `tabular` to look like the output of `itemize`, in terms of vertical spacing between the lines. The first column below is the spacing that `itemize` produces and looks great. The next two columns are what `tabular` and `tabu` produce with default settings: ![enter image description here](http://i.stack.imgur.com/A9Ltg.png) As you can see, the lines in `tabular` and `tabu` are too close vertically. So I thought that increasing the `\arraystretch` in `tabular`, or setting `\tabulinesep` in `tabu` should work just fine. I wanted to avoid a manual solution of adding specifying the vertical space following a `\\`. But even that does not work! ![enter image description here](http://i.stack.imgur.com/KXYLF.png) The columns above are:   1. the desired vertical spacing produced by `itemize`,   2. `tabular` with `\renewcommand*{\arraystretch}{2.4}`,    3. `tabu` with `\tabulinesep=0.5ex`, and   4. manually added `\\[1.25ex]` at the end of the line: Basically, I do _not_ want the `\href` box to stretch, but do want the lines further apart. ## Notes:   * In only put these in `minipages` to make it easier to compare. In my really application they are below each other. Plus this makes one nice wide image. So, am _not_ trying to get the baseline's aligned here.   * Now that I put this the two figures above it appears that the overlap does not change. That seems to be a clue, but not sure how I can use that info. ## Code:               \documentclass{article}      \usepackage{enumitem}     \usepackage{tabu}          \usepackage{hyperref}          \newcommand*{\AddLinkToFile}[1]{\href{run:#1.pdf}{\strut#1}}               \begin{document}     \begin{minipage}{2.0cm}     \begin{itemize}         \item \AddLinkToFile{a} b          \item \AddLinkToFile{c} d     \end{itemize}     \end{minipage}     %     \begin{minipage}{2.0cm}     %\renewcommand*{\arraystretch}{2.4}     \begin{tabular}{ll}         \AddLinkToFile{e} & f \\         \AddLinkToFile{g} & h \\     \end{tabular}     \end{minipage}     %     \begin{minipage}{2.0cm}     %\tabulinesep=0.5ex     \begin{tabu}{ll}         \AddLinkToFile{i} & j \\         \AddLinkToFile{k} & l \\     \end{tabu}     \end{minipage}     %     \begin{minipage}{2.0cm}%            Manually adding space     \begin{tabular}{ll}         \AddLinkToFile{l} & m \\[1.25ex]         \AddLinkToFile{n} & o \\     \end{tabular}     \end{minipage}     \end{document}


title: $\overrightarrow{a} \otimes \overrightarrow{b}$ looks unpleasant

text: As the question says,               $\overrightarrow{a} \otimes \overrightarrow{b}$      looks rather unpleasant because the arrow over the a is so much lower than the arrow over the b. I'm not sure that just raising the arrow over the a would lead to a visually pleasing result... but I thought I'd ask if anyone had any suggestions. Edit: ![enter image description here](http://i.stack.imgur.com/uuNEM.png)


title: Latex font BrushScriptX and MiKTeX

text: I am a beginner in Latex. What I know is, how to type my papers. But recently I found out that I can change the fonts of Latex. Perhaps for you is nothing new but for me is really surprising. But there is a problem when I want to use these new fonts which I don't how to fix it. I would be most thankful to you if you could help me to figure out what to do. I am writing these lines               \documentclass{article}          \usepackage[T1]{fontenc}          \usepackage{pxfonts}          \usepackage{pbsi}          \renewcommand{\rmdefault}{pbsi}          \renewcommand{\mddefault}{xl}          \renewcommand{\bfdefault}{xl}          \usepackage[defaultmathsizes,noasterisk]{mathastext}          \begin{document}          Hello          \end{document}      and when I run it I get this: > Trying to make PK font pbsi8r at 720 DPI... Running miktex-makemf.exe... > miktex-makemf: The pbsi8r source file could not be found. Running > ttf2pk.exe... miktex-makepk: PK font pbsi8r could not be created. Process > exited with error(s) What does it means?


title: Making all my headings the same font size

text: Im currently finalizing my thesis in Latex and am having a problem making all my headings the same 12 point normal font. How can I make all chapter, section, table of contents and subsection headings normal 12 point un-bolded font?


title: Homework template

text: I've been using this homework template I found online that is pretty light. I am very new to using LaTeX, and although I find writing basic mathematical expressions easy, some of the cooler more complex LaTeX stuff seems way above me. The homework template I found has this in it:               \newcounter{prob}     \newenvironment{problem}[1]     {\begin{sloppypar}\stepcounter{prob}\noindent{\large\bfseries Problem %\arabic{prob}     } {\bfseries (#1)}     \begin{quote}}     {\end{quote}\end{sloppypar}}      and I have been using this in this way:               \begin{problem}{Problem 1}        ***Problem solution***     \end{problem}      However, when I want to include the problem statement, this code introduces too much space. How can I edit my template so that my final results will look like: **Problem 1** : problem statement _(not bold)_ problem solution


title: Simplest way to create a grid with colored squares and labels

text: I am trying to create a grid with colored squares, multi-line labels within the squares, and labels on the axes. Is there a simple and easy way to achieve this? This question is the closest I could find to the answer, but I'm not sure how to add the second line of text in each box, or whether there is an easy way to add the rotated y-axis label (or the other labels for that matter). For this reason I am wondering whether a **graph** might be more suited. This question is more along the lines of "is this easily possible and with what tool" rather than "what is the exact code to achieve this" (although that would be great as well). If the answer is "it's not easily possible" then that is fine, and I will look at alternative options. The following image depicts what I am trying to produce: ![enter image description here](http://i.stack.imgur.com/Ls1i3.png)


title: \Longrightarrow doesn't look good in 12pt

text: I'm using the standard CM fonts in 12pt (and amsmath if this is relevant). My problem is that `\Longrightarrow` gives something like this ![](http://i.stack.imgur.com/KwGvD.png) output, which I find a bit annoying. I know that it's a composed symbol, but in 10pt and in 11pt it looks perfect, so why doesn't it also work in 12pt? By the way, I produced the image by typing `\Huge\Longrightarrow` on mathurl.com, so it's not an artefact of my TeX system (and it tells us that mathurl uses 12pt ...). Moreover, it's not just something on the screen, I also see it on a printout (where I don't know which LaTeX distribution was used for typesetting). I think I've first seen this when I was still using LaTeX 2.09 a long time ago!


title: Script dialogues

text: I'm trying to write a script, and I have defined the following commands:               \newcommand{\SpeechText}[1]{      \vbox{\ignorespaces{\quotation{#1}}\par\duplines}     }     \newcommand{\ParagraphText}[1]{      %\paragraph{         \vspace{0.2in}         \vbox{\ignorespaces{#1}\par\duplines}         \vspace{0.2in}      %}     }      With them, I create a blur effect and a quote/paragraph style respectively. When I use them in the following text               \chapter{\RED{Nocturno}}     %     \ParagraphText{text text text ... text text}     %     \SpeechText{aaaaaaaaaaaaaaaaaaaaaaaaaaaa}     %     \SpeechText{bbbbbbbbbbbbbbbbbbbbbbbbbbb}     %     \SpeechText{cccccccccccccccccccccccccccccccccccc}     ....      I get this error: `LaTeX Error: Too deeply nested. [}]` Can you help me? Additionally, I would like a left and right padding in the `\SpeechText` command. How can I get it? Here is the whole code:               \documentclass[ms,a4paper]{memoir}     \usepackage[utf8x]{inputenc}          %\setstocksize{8.26in}{6.1in}     \settrimmedsize{8.26in}{6.1in}*     \fixpdflayout          \chapterstyle{dash} % try also reparticle     \usepackage{ulem}   % underline     \usepackage{xcolor} %     %\usepackage{lipsum} %dummy text     % All font size must be normal size      \renewcommand{\large}{\normalsize}     \renewcommand{\Large}{\normalsize}     \newcommand{\red}[1]{\textcolor{red!50!black}{#1}}     \newcommand{\RED}[1]{\textcolor{red!50!black}{\MakeUppercase{#1}}}     % font hyphenation      \usepackage{everysel}     \EverySelectfont{%         \fontdimen2\font=0.6em % interword space         \fontdimen3\font=0.2em % interword stretch         \fontdimen4\font=0.1em % interword shrink         \fontdimen7\font=0.9em % extra space         \hyphenchar\font=`\-% to allow hyphenation     }          %%%%%%%%%%%%%%%%%%%%%%%%%%%     %% Speech lines     %%%%%%%%%%%%%%%%%%%%%%%%%%%     \newcommand{\SpeechText}[1]{%         \vbox{\ignorespaces{\quotation{#1}}\par\duplines}     }          %%%%%%%%%%%%%%%%%%%%%%%%%%%     %% Paragraph lines     %%%%%%%%%%%%%%%%%%%%%%%%%%%     \newcommand{\ParagraphText}[1]{%             \vspace{0.2in}%             \vbox{\ignorespaces{#1}\par\duplines}%             \vspace{0.2in}%     }          \begin{document}          \chapter{Nocturno}          \ParagraphText{                 Las enormes gafas de sol apenas pueden ocultar su cara destrozada,                  la cicatriz desde casi el lacrimal del ojo hasta la comisura del lado derecho                  de la boca. Sonríe. Y los dientes que le faltan convierten su boca en un abismo,                  un agujero negro tragador de materia oscura.      }          \SpeechText{                 No es bueno contradecir al jefe     }          \SpeechText{                 Ese Jefe no es mi Jefe     }          .....               \end{document}


title: Can I \usepackage with a full path?

text: As the name suggests - can I do something like: `\usepackage{/home/nebffa/Desktop/maths/questions/fillwithlines.sty}` LaTeX is throwing errors at me when I try to do it.


title: How do I remove citation number from footcite

text: How can I display footnote citations with only the citation text without any footnote number (and also remove it in the text). For example, I would like to get the following footnote (MWE follows): > * * * > > Doe 2013, Public 2013               \documentclass{article}     \usepackage{filecontents}     \begin{filecontents}{\jobname.bib}         @article{Doe2013,             title   = {Lorem Ipsum},             volume  = {1},             journal = {J. Foo},             author  = {J. Doe},             year    = {2013},             pages   = {1--10},         }              @article{Public2013,             title   = {Dolor Sit Amet},             volume  = {1},             journal = {J. Foo},             author  = {J. Q. Public},             year    = {2013},             pages   = {11--20},         }     \end{filecontents}          \usepackage[         style=authoryear-icomp,         backend=biber     ]{biblatex}     \addbibresource{./test.bib}          \begin{document}         \footcite{Doe2013,Public2013}     \end{document}


title: How can I influence the spacing of mathematical functions by an own macro?

text: I would like to get a macro `\of` to define a function with an optional macro `\at` to define its restriction. The reason is, that I don't like the spacing for functions (as there is no spacing) and I would like to automate that. The idea is, to set functions like `f \of x` or `f\of x` which would be quick and handy. But I am not sure, if that is doable for syntax reasons. I think, something like `\func{f}{x}` would be much easier to provide, but that would be too much typing and quite a lot of change for already existing formulae. However, the reasons for this macro are the following properties which I would like to achieve. In future I want to expand this to all kind of derivatives or alike (total, partial, normal, increment, infinite element...). Here is the list:   * Always set argument (value behind `\of` in ()   * Recognize x, (x), and {x} as argument   * always set half space in front of the function when it is set behind a letter, number or bracket   * set half space behind the function, if followed by a (   * allow powers to the function and to the argument and set it properly    * allow nested functions   * allow `\at`-notation with three optional formats (this will get interesting later on for the derivatives...) And here are some examples:               \documentclass{article}     \usepackage{mathtools}     \usepackage[partial=upright]{unicode-math}          \begin{document}     \begin{verbatim}f \of x=x^2\end{verbatim}     $f(x)=x^2$     \begin{verbatim}f \of (x+y)=x+y\end{verbatim}     $f(x+y)=x+y$     \begin{verbatim}f \of (x+y)x+y\end{verbatim}     $f(x+y)x+y$     \begin{verbatim}f \of (x+y)(x+y)(x+y)\end{verbatim}     $f(x+y)\,(x+y)(x+y)$     \begin{verbatim}xf \of xx\end{verbatim}     $x\,f(x)x$     \begin{verbatim}zf \of xg \of yz\end{verbatim}     $z\,f(x)\,g(y)z$     \begin{verbatim}f^2 \of x\end{verbatim}     $f^2(x) \vee f(x)^2 \vee (f(x))^2 \quad \text{don't know which one is correct}$     \begin{verbatim}f \of x^2\end{verbatim}     $f(x^2)$     \begin{verbatim}f \of g \of x\end{verbatim}     $f(g(x))$     \begin{verbatim}\frac{a}{b}f\of x\end{verbatim}     $\dfrac{a}{b}f(x)$     \begin{verbatim}(a+b)f\of x\end{verbatim}     $(a+b)\,f(x)$     \begin{verbatim}\setFunctionAtBar \end{verbatim}     \begin{verbatim}f \of x \at a\end{verbatim}     $f(x)|_{x=a}$     \begin{verbatim}\setFunctionAtBracket\end{verbatim}     \begin{verbatim}f \of x \at {a+b}\end{verbatim}     $(f(x))_{x=(a+b)}$     \begin{verbatim}\setFunctionAtInline\end{verbatim}     \begin{verbatim}f \of x \at (a+b)\end{verbatim}     $f(a+b)$     \end{document}


title: How to make my contens

text: How to build my contens look like: ![enter image description here](http://i.stack.imgur.com/d4k6c.jpg) Please helpe me. Thanks so much.


title: Highlight some words of a beamer

text: If I want to highlight some words of following frame:               \begin{frame}     \frametitle{Paragraphs of Text}     Sed iaculis dapibus gravida. Morbi sed tortor erat, nec interdum arcu. Sed id lorem       lectus. Quisque viverra augue id sem ornare non aliquam nibh tristique. Aenean in ligula nisl. Nulla sed tellus ipsum. Donec vestibulum ligula non lorem vulputate fermentum accumsan neque mollis.\\~\\          Sed diam enim, sagittis nec condimentum sit amet, ullamcorper sit amet libero. Aliquam vel dui orci, a porta odio. Nullam id suscipit ipsum. Aenean lobortis commodo sem, ut commodo leo gravida vitae. Pellentesque vehicula ante iaculis arcu pretium rutrum eget sit amet purus. Integer ornare nulla quis neque ultrices lobortis. Vestibulum ultrices tincidunt libero, quis commodo erat ullamcorper id.     \end{frame}      what should I do?


title: Label and alignment with circuitikz

text: In the following circuit drawn with `circuitikz`, how can the ground and antenna vertical lines be aligned (that is, draw in the same abscissa)? Also, how to fix the labeling of the ground and antenna components, so that the labels stays at the left of the component?               \documentclass{standalone}     \usepackage[american voltages]{circuitikz}          \begin{document}          \begin{circuitikz}[]       \draw         (0,0.8) node [ground] (A) {}         to [short] (0,1)         to [short] (6,1)         to [R=$R$,v>=$V_R$] (6,4)         to [C=$C$] (3,4)         to [L=$L$] (1,4) node [antenna,xscale=-1,] (B) {}         (0,1) to [open,v>=$V_0$] (0,4)         (A) -- node [anchor=east] {Terra} (A)         (B) -- node [anchor=east] {Antena} (B)         ;     \end{circuitikz}          \end{document}      ![circuit](http://i.stack.imgur.com/4XsGA.png)


title: Dummies Guide to TeX as a programming language

text: There are a lot of answers that are using a somehow cryptic syntax that I am not familiar with. Is there any Not So Short Introduction to TeX (like Not So Short Introduction to LaTeX) ?!


title: Fixed table width with even alignment

text: I like to use a table layout where the width of the table is fixed to 7cm. I can do this using:               \documentclass{book}     \usepackage{array,tabularx}     \newcolumntype{+}{>{\global\let\currentrowstyle\relax}}     \newcolumntype{^}{>{\currentrowstyle}}     \newcommand{\rowstyle}[1]{\gdef\currentrowstyle{#1}%       #1\ignorespaces}          \makeatletter     \g@addto@macro\@floatboxreset{\centering\sffamily\small}     \makeatother               \begin{document}          \begin{table}          \begin{tabular*}{7cm}{@{\extracolsep{\fill}}|>{\bfseries}+l|^c|^c|}     \hline\rowstyle{\bfseries}%                 & property  & number    \\ \hline     Something   & yes       & 1554      \\     Item        & no        & 2         \\ \hline     \end{tabular*}\\     \vspace{.5cm}          \newcolumntype{;}{l@{}}% dummy column     \begin{tabular*}{7cm}{@{\extracolsep{\fill}}|;>{\bfseries}+l;|^c;|^c;|}     \hline\rowstyle{\bfseries}%     &            && property  && number  &  \\ \hline     &Something   && yes       && 1554    &  \\     &Item        && no        && 2       &  \\ \hline     \end{tabular*}\\     \vspace{.5cm}          \newcolumntype{;}{X@{}}% dummy column     \begin{tabularx}{7cm}{|+;>{\bfseries}l;|;^c;|;^c;|}     \hline\rowstyle{\bfseries}%     &            &&& property  &&& number   & \\ \hline     &Something   &&& yes       &&& 1554     & \\     &Item        &&& no        &&& 2        & \\ \hline     \end{tabularx}\\     \vspace{.5cm}          \setlength{\tabcolsep}{.52cm}     \begin{tabular}{|>{\bfseries}+l|^c|^c|}     \hline\rowstyle{\bfseries}%                 & property  & number    \\ \hline     Something   & yes       & 1554      \\     Item        & no        & 2         \\ \hline     \end{tabular}               \end{table}          \end{document}       In the code, the first table doesn't align nicely. The second and third table require the use complex code for formatting the table in the document. Where I'd rather separate the formatting from the contents. The fourth example works nicely, but requires manual tuning of tabcolsep. How should I define a tabular environment that dynamically increases the cell margins to obtain the desired table width?


title: Path From and To Same Node in tikz Flowchart

text: I'm working on creating flowcharts directly inside LaTeX documents using tikz. I am admittedly an extreme novice with tikz, although I have quite a bit of experience using LaTeX. My problem is when trying to show an endless loop with the flowchart, i.e., an edge or path that starts and ends at the same node. For example, ![this image](http://i.stack.imgur.com/wSQuR.png) is an example of what I want (right) and what I'm getting (left) using the following LaTeX code:               \usetikzlibrary{shapes.geometric,arrows}          \tikzstyle{decision} = [ diamond, draw, fill=blue!20, text width=4.5em, text badly centered, node distance=3cm, inner sep-0pt]       \tikzstyle{block} = [ rectangle, draw, fill=blue!20, text width=5em, text badly centered, rounded corners, minimum height=4em]       \tikzstyle{line} = [ draw, -latex']       \tikzstyle{terminator} = [ draw, ellipse, fill=red!20, node distance=3cm, minimum height=2em]            \begin{tikzpicture}[node distance=2cm, auto]         \node [terminator]           (puc)  {Power-Up Reset};         \node [block, below of=puc]  (wdt)  {Stop Watchdog};         \node [block, below of=wdt]  (port) {Setup Port Pins};         \node [block, below of=port] (loop) {Loop Forever};         \path [line] (puc)  -- (wdt);         \path [line] (wdt)  -- (port);         \path [line] (port) -- (loop);         \path [line] (loop) -- (loop);       \end{tikzpicture}      I assume I'm going to need something a bit more complex.