title: Should I use a day= tag in my BiBTeX files?

text: I've seen some BiBTeX files that have a `day=` tag. The problem is, most `.bst` files I've seen don't honor it. For example, here is a BiBTeX entry:               @article{wsj-tjx,      title="How Credit-Card Data Went Out Wireless Door",      author="Joseph Pereira",      year=2007,      month=May,      day=4,      url="http://online.wsj.com/news/articles/SB117824446226991797",      journal="The Wall Street Journal"     }      I've traditionally done this as:               @article{wsj-tjx,      title="How Credit-Card Data Went Out Wireless Door",      author="Joseph Pereira",      year=2007,      month=May # " 4",      url="http://online.wsj.com/news/articles/SB117824446226991797",      journal="The Wall Street Journal"     }      What's the right thing to do? If having a `day=` tag is the right thing to do, how do I handle `.bst` files that don't have one? Sometimes they are easy to modify, sometimes hard, but forking everybody's `.bst` file seems like the wrong thing to do.


title: Undefined links in component pdf; resolved at pdfpages compile time

text: I am trying something ambitious and I hope there is a way to get it to work. I have a number of pdf documents that I will eventually pull together in one pdf. One of the documents, a cover page of sorts, to include links to other components in the final pdf. To do this, I set up three dummy documents:               % doc1     \documentclass{article}     \begin{document}     This is the first document.     \end{document}      * * *               % doc2     \documentclass{article}     \begin{document}     This is the second document.     \end{document}      * * *               % doc3     \documentclass{article}     \begin{document}     This is the third document.     \end{document}      * * * Then, I construct the coverpage document:               % coverpage     \documentclass{article}     \begin{document}     Here is the link to the first document, \ref{doc1.1}.          Here is the link to the second document, \ref{doc2.1}.          Here is the link to the third documents, \ref{doc3.1}.          \end{document}      * * * And finally, I construct the wrapper document, which calls all the component pdfs, and defines the links:               % main document     \documentclass{article}     \usepackage[final]{pdfpages}     \usepackage{url}     \usepackage{hyperref}          \title{Document set}     \begin{document}     \maketitle     %\tableofcontents          \includepdf[link=true]{coverpage.pdf}     \includepdf[link=true, linkname=doc1]{doc1.pdf}     \includepdf[link=true, linkname=doc2]{doc2.pdf}     \includepdf[link=true, linkname=doc3]{doc3.pdf}          \end{document}      I want the references in coverpage to show up when compiled within `main.tex`. Obviously, the references I want in the `coverpage.tex` file live in the `main.aux` file. I am wondering if there is a way to streamline this process so that it works, or indeed if there is an easier way to do this. I want to write the coverpage separately instead of within the main document, since it uses its own documentclass which is not how I want the main document to be typeset.


title: Aligning comments that break in several lines?

text: > **Possible Duplicate:**   >  How to align comments with lstlistings? I want to include Matlab code with long comments. The next MWE shows that it is achieved by using the `listings` package. However I would like these long comments to be aligned when they are split in several lines, i.e. I want to align all the `%` in my final output. Note that the comments need not to be aligned in the original listing!               \documentclass{article}          \usepackage{fullpage}          \newcommand\sample{Some text to experiment with line numbering. }          \usepackage{listings}     \lstset{language=Matlab}     \lstset{tabsize=2}     \lstset{       language={Matlab},       keepspaces=true,       basicstyle=\small,       xleftmargin=\parindent,       xrightmargin=\parindent,       frame=single,       framesep=2mm,       framerule=0pt,       frame=single,       columns=flexible}          \lstset{postbreak=\raisebox{0ex}[0ex][0ex]{\ensuremath{\%}}}     \lstset{breaklines=true, breakindent=10cm, breakatwhitespace=true}          \begin{document}          \sample \sample \sample \sample \sample           \begin{minipage}[c]{\textwidth}          \begin{lstlisting}[language=Matlab, linewidth=15cm]     clear all; clc; close all                                     % Clear all variables, close all figures and clear workspace     Data=randi([2 7], 1, 20)                                % Generate a random sample with 20 elements     Table = [DataValue', Frequency', RelFreq, CumRelFreq]   % Generate a table with the previous results          \end{lstlisting}          \end{minipage}          \end{document}      Could someone let me know if this is possible?


title: pgfplots - How can I fill the background to a "node near a coordinate"?

text: I'd like to have the nodes/values for each plot fill with `white`, so the grids get overdrawn, so to speak. Is this possible? (Note: I only activated the major grid for `x` for the sake of the thread.) ## Picture with numbers/nodes on grid ![](http://i.stack.imgur.com/iiZcW.png) ## MWE               \documentclass[     a4paper     ]{scrartcl}          \usepackage{     amsmath,     tikz,     pgfplots,     pgfplotstable     }          \usepackage{lmodern}     \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}          \begin{filecontents}{force-stats.txt}     Stats,Min,MinStdDev,MinCIP95,Max,MaxStdDev,MaxCIP95     Fx,-70.35,0.5,0.6,60,1,0.5     Fy,-40,0.5,0.6,50,1.91,1.5     Fz,-20,0.42,0.6,40,4,0.5     \end{filecontents}          \pgfplotstableread[col sep=comma]{force-stats.txt}{\tableabcdef}          \begin{document}     \begin{center}     \begin{tikzpicture}[font=\small]     \begin{axis}[     scale only axis=true,     width=5cm,     height=7cm,     %     xlabel={Force components},     ylabel={Force in N},     %     ybar,     %     xmajorgrids=true,     ymajorgrids=true,     %     enlarge x limits={0.3},     enlarge y limits={0.2},     %     symbolic x coords={Fx,Fy,Fz},     %     xtick=data,     nodes near coords,     xticklabels={{\(F_{x}\)},{\(F_{y}\)},{\(F_{z}\)}},     ]     \addplot+[nodes near coords align={above}] plot [error bars/.cd, y dir=both, y explicit] table [col sep=comma, x=Stats, y=Max, y error=MinCIP95] {\tableabcdef};     \addplot+[nodes near coords align={below}] plot [error bars/.cd, y dir=both, y explicit] table [col sep=comma, x=Stats, y=Min, y error=MinCIP95] {\tableabcdef};     \end{axis}     \end{tikzpicture}     \end{center}     \end{document}


title: Can you translate utf8 file to ascii with non-ascii characters replaced by tex-macro?

text: The title says it all. I have a unicode (utf-8) file which contains some non- ascii characters, e.g. "o" and translate it into an ascii-file where the non- ascii characters are replaced with tex-macros, in this case `\"o`. Any ideas? I found this converter but it's only to HTML.


title: Can't use fontspec with xelatex after tlmgr update

text: I updated my MacTeX 2011 installation yesterday. Now, compiling the following with xelatex fails:               \documentclass[xetex]{article}     \usepackage{fontspec}     \begin{document}     hello     \end{document}      The error is:               (/usr/local/texlive/2011basic/texmf-dist/tex/xelatex/xunicode/xunicode.sty     ! I can't find file `t3enc.def'.      Removing the fontspec line makes it compile OK. How can I get this working again?


title: How can I do a power electric system in Circuitikz?

text: I'm new in this and I want to do this circuit in LaTeX ![Power electric system](http://i.stack.imgur.com/e62Wr.jpg)


title: Can't type Hebrew with polyglossia

text: My ultimate goal is to create a `beamer` presentation in Hebrew. While toying with things, I got stuck with an error:               ! Package etoolbox Error: Toggle 'Hebrew@RL' undefined.      which is thrown on the line               \setmainlanguage{Hebrew}      On the following code:               \documentclass{article}          \usepackage{fontspec}     \usepackage{polyglossia}     \usepackage{bidi}          \setmainlanguage{Hebrew}          \begin{document}     שלום     \end{document}      How can I create a Hebrew beamer presentation then? Or even, how can I create a Hebrew LaTeX output? Thanks _Edit:_ Based on egreg's remark, I have edited my code (I can compile it in non-beamer format):               \documentclass{beamer}          \usepackage{fontspec}     \usepackage{polyglossia}     \usepackage{bidi}          \setmainfont{David CLM}     \newfontfamily\hebrewfont{David CLM}          \begin{document}          \begin{frame}{שלום}     \end{frame}          \end{document}      Now I get an error:               ! Package polyglossia Error:  The current roman font does not contain the Hebrew script! Please define \hebrewfont with \newfontfamily.          See the polyglossia package documentation for explanation. Type  H <return>  for immediate help.  ...                                                                                l.2 \select@language {hebrew}      David CLM however is a Hebrew font. How can I overcome this? _Edit:_ Following Alan's answer, I have added               \setsansfont{David CLM}      And now I get a blank document and some Warnings are printed:               ** WARNING ** Tried to end an annotation without starting one!       ** WARNING ** Interpreting special command eann (pdf:) failed.       ** WARNING ** >> at page="1" position="(2.83482, 1.99252)" (in PDF)       ** WARNING ** >> xxx "pdf:eann"       ** WARNING ** Can't begin an annotation when one is pending.       ** WARNING ** Interpreting special command bann (pdf:) failed.       ** WARNING ** >> at page="1" position="(24.1549, 1.99252)" (in PDF)       ** WARNING ** >> xxx "pdf:bann<</Type/Annot/Subtype/Link/Border[0 0 0]/C[.5 .5 .5]..."       ** WARNING ** >> Reading special command stopped around >>   <</Type/Annot/Subtype/Link/Border[0 0 0]/C[.5 .5 .5]/A<</S/G...<<       ** WARNING ** Tried to end an annotation without starting one!       ** WARNING ** Interpreting special command eann (pdf:) failed.       ** WARNING ** >> at page="1" position="(115.413, 1.99252)" (in PDF)       ** WARNING ** >> xxx "pdf:eann"       ** WARNING ** Can't begin an annotation when one is pending.       ** WARNING ** Interpreting special command bann (pdf:) failed.       ** WARNING ** >> at page="1" position="(123.383, 1.99252)" (in PDF)       ** WARNING ** >> xxx "pdf:bann<</Type/Annot/Subtype/Link/Border[0 0 0]/C[.5 .55.5]..."       ** WARNING ** >> Reading special command stopped around >>  <</Type/Annot/Subtype/Link/Border[0 0 0]/C[.5 .5 .5]/A<</S/G...<<        I get the same result even if the slide is in English _Edit:_ I have created a new file (mv the old file into a new name) and compiled with the same result. Here is the File :                *File List*       beamer.cls    2011/09/12 development version 3.12 A class for typesetting pre     sentations (rcs-revision 70f9d8411e54)     beamerbasercs.sty    2011/09/21 (rcs-revision 42a2c9debdc3)     beamerbasemodes.sty    2010/05/01 (rcs-revision efa082c6111d)     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 Switches for detecting VTeX and its modes (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        xetex.def    2009/11/22 v0.94 LaTeX color/graphics driver for XeTeX (RRM/JK)            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    2011/11/21 v6.82l Hypertext links for LaTeX     hobsub-hyperref.sty    2011/04/23 v1.4 Bundle oberdiek, subset hyperref (HO)     hobsub-generic.sty    2011/04/23 v1.4 Bundle oberdiek, subset generic (HO)       hobsub.sty    2011/04/23 v1.4 Subsetting bundle oberdiek (HO)     infwarerr.sty    2010/04/08 v1.3 Providing info/warning/message (HO)      ltxcmds.sty    2011/04/18 v1.20 LaTeX kernel commands for general use (HO)     ifluatex.sty    2010/03/01 v1.3 Provides the ifluatex switch (HO)      intcalc.sty    2007/09/27 v1.1 Expandable integer calculations (HO)     etexcmds.sty    2011/02/16 v1.5 Prefix for e-TeX command names (HO)     kvsetkeys.sty    2011/04/07 v1.13 Key value parser (HO)     kvdefinekeys.sty    2011/04/07 v1.3 Defining keys (HO)     pdftexcmds.sty    2011/04/22 v0.16 Utilities of pdfTeX for LuaTeX (HO)     pdfescape.sty    2011/04/04 v1.12 Provides string conversions (HO)     bigintcalc.sty    2011/01/30 v1.2 Expandable big integer calculations (HO)       bitset.sty    2011/01/30 v1.1 Data type bit set (HO)     uniquecounter.sty    2011/01/30 v1.2 Provides unlimited unique counter (HO)     letltxmacro.sty    2010/09/02 v1.4 Let assignment for LaTeX macros (HO)      hopatch.sty    2011/01/30 v1.0 Wrapper for package hooks (HO)     xcolor-patch.sty    2011/01/30 xcolor patch     atveryend.sty    2011/04/23 v1.7 Hooks at very end of document (HO)     atbegshi.sty    2011/01/30 v1.15 At begin shipout hook (HO)     refcount.sty    2010/12/01 v3.2 Data extraction from references (HO)      hycolor.sty    2011/01/30 v1.7 Color options of hyperref/bookmark (HO)     kvoptions.sty    2010/12/23 v3.10 Keyval support for LaTeX options (HO)       pd1enc.def    2011/11/21 v6.82l Hyperref: PDFDocEncoding definition (HO)     hyperref.cfg    2008/07/11 v1.2 hyperref configuration for XeLaTeX          url.sty    2006/04/12  ver 3.3  Verb mode for urls, etc.       hxetex.def    2011/11/21 v6.82l Hyperref driver for XeTeX        puenc.def    2011/11/21 v6.82l Hyperref: PDF Unicode definition (HO)     stringenc.sty    2010/03/01 v1.8 Converts strings between encodings (HO)     rerunfilecheck.sty    2011/04/15 v1.7 Rerun checks for auxiliary files (HO)     se-ascii-print.def    2010/03/01 v1.8 stringenc: Printable ASCII characters     beamerbaserequires.sty    2010/05/01  (rcs-revision efa082c6111d)     beamerbasecompatibility.sty    2010/07/12  (rcs-revision 6648c3177e4e)     beamerbasefont.sty    2010/10/26  (rcs-revision f39336aafb3c)      amssymb.sty    2009/06/22 v3.00     amsfonts.sty    2009/06/22 v3.00 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    2010/06/06  (rcs-revision bff0a9294b45)     beamerbasetwoscreens.sty    2010/05/01  (rcs-revision efa082c6111d)     beamerbaseoverlay.sty    2011/09/12  (rcs-revision 70f9d8411e54)     beamerbasetitle.sty    2010/09/21  (rcs-revision f0446ed0b6ae)     beamerbasesection.sty    2010/08/29  (rcs-revision e07e85b4cd4a)     beamerbaseframe.sty    2011/09/12  (rcs-revision 70f9d8411e54)     beamerbaseverbatim.sty    2011/09/12  (rcs-revision 70f9d8411e54)     beamerbaseframesize.sty    2011/09/12  (rcs-revision 70f9d8411e54)     beamerbaseframecomponents.sty    2011/09/12  (rcs-revision 70f9d8411e54)     beamerbasecolor.sty    2010/06/06  (rcs-revision d1a9b48be06d)     beamerbasenotes.sty    2010/05/01  (rcs-revision efa082c6111d)     beamerbasetoc.sty    2010/06/11  (rcs-revision 242ecaa6783b)     beamerbasetemplates.sty    2010/05/01  (rcs-revision efa082c6111d)     beamerbaseauxtemplates.sty    2010/05/01  (rcs-revision efa082c6111d)     beamerbaseboxes.sty    2010/05/01  (rcs-revision efa082c6111d)     beamerbaselocalstructure.sty    2010/09/19  (rcs-revision 9224c5f3ce70)     enumerate.sty    1999/03/05 v3.00 enumerate extensions (DPC)     beamerbasenavigation.sty    2010/05/01  (rcs-revision efa082c6111d)     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    2009/07/02 v2.20.1     beamerbasethemes.sty    2010/05/01  (rcs-revision efa082c6111d)     beamerthemedefault.sty    2010/06/17  (rcs-revision d02a7cf4d8ae)     beamerfontthemedefault.sty    2010/06/17  (rcs-revision d02a7cf4d8ae)     beamercolorthemedefault.sty    2010/06/17  (rcs-revision d02a7cf4d8ae)     beamerinnerthemedefault.sty    2010/06/17  (rcs-revision d02a7cf4d8ae)     beamerouterthemedefault.sty    2010/06/17  (rcs-revision d02a7cf4d8ae)     fontspec.sty    2011/09/18 v2.2a Advanced font selection for XeLaTeX/LuaLaTeX        expl3.sty    2011/11/19 v2966 L3 Experimental code bundle wrapper      l3names.sty    2011/11/11 v2944 L3 Experimental namespace for primitives     l3bootstrap.sty    2011/09/10 v2798 L3 Experimental bootstrap code         etex.sty    1998/03/26 v2.0 eTeX basic definition package (PEB)         calc.sty    2007/08/22 v4.3 Infix arithmetic (KKT,FJ)     l3basics.sty    2011/10/15 v2915 L3 Experimental basic definitions      l3expan.sty    2011/10/09 v2896 L3 Experimental argument expansion         l3tl.sty    2011/10/22 v2929 L3 Experimental token lists        l3seq.sty    2011/10/09 v2896 L3 Experimental sequences and stacks        l3int.sty    2011/10/22 v2928 L3 Experimental integers      l3quark.sty    2011/10/09 v2896 L3 Experimental quarks        l3prg.sty    2011/10/15 v2915 L3 Experimental control structures      l3clist.sty    2011/10/09 v2896 L3 Experimental comma separated lists      l3token.sty    2011/10/22 v2931 L3 Experimental token manipulation       l3prop.sty    2011/09/17 v2839 L3 Experimental property lists        l3msg.sty    2011/10/09 v2896 L3 Experimental messages         l3io.sty    2011/10/09 v2896 L3 Experimental input-output operations       l3file.sty    2011/10/09 v2896 L3 Experimental file operations       l3skip.sty    2011/11/14 v2959 L3 Experimental dimensions and skips       l3keys.sty    2011/09/10 v2800 L3 Experimental key-value interfaces         l3fp.sty    2011/09/26 v2857 L3 Experimental floating-point operations        l3box.sty    2011/11/15 v2960 L3 Experimental boxes     l3coffins.sty    2011/11/15 v2963 L3 Experimental coffin code layer      l3color.sty    2011/09/07 v2776 L3 Experimental colour support     l3luatex.sty    2011/09/10 v2798 L3 Experimental LuaTeX-specific functions       xparse.sty    2011/11/19 v2966 L3 Experimental document command parser     fontspec-patches.sty    2011/09/18 v2.2a Advanced font selection for XeLaTeX/Lu     aLaTeX     fixltx2e.sty    2006/09/13 v1.1m fixes to LaTeX     fontspec-xetex.sty    2011/09/18 v2.2a Advanced font selection for XeLaTeX/LuaL     aTeX      fontenc.sty       eu1enc.def    2010/05/27 v0.1h Experimental Unicode font encodings       eu1lmr.fd    2009/10/30 v1.6 Font defs for Latin Modern     xunicode.sty    2011/09/09 v0.981 provides access to latin accents and many oth     er characters in Unicode lower plane      eu1lmss.fd    2009/10/30 v1.6 Font defs for Latin Modern     fontspec.cfg     polyglossia.sty    2011/10/12 v1.2.0cc Babel replacement for XeLaTeX     etoolbox.sty    2011/01/03 v2.1 e-TeX tools for LaTeX     makecmds.sty    2009/09/03 v1.0a extra command making commands      xkeyval.sty    2008/08/13 v2.6a package option processing (HA)      xkeyval.tex    2008/08/13 v2.6a key=value parser (HA)         bidi.sty    2012/01/01 v11.150 Bidirectional typesetting in plain TeX and L     aTeX        iftex.sty    2010/07/25 v0.2 Provides if(tex) conditional for PDFTeX, XeTeX,      and LuaTeX     biditools.sty    2012/01/01 v0.1 Programming tools for bidi package     xetex-bidi.def    2012/01/01 v1.0.1 bidi adaptations for XeTeX engine     footnote-xetex-bidi.def    2010/07/25 v0.5 bidi footnote macros for XeTeX engin     e     amsmath-xetex-bidi.def    2010/07/25 v0.2 bidi adaptations for amsmath package      for XeTeX engine     amsthm-xetex-bidi.def    2010/07/25 v0.1 bidi adaptations for amsthm package fo     r XeTeX engine     color-xetex-bidi.def    2010/07/25 v0.1 bidi adaptations for color package for      XeTeX engine     xcolor-xetex-bidi.def    2010/07/25 v0.1 bidi adaptations for xcolor package fo     r XeTeX engine     graphicx-xetex-bidi.def    2012/01/01 v0.4 bidi adaptations for graphicx packag     e for XeTeX engine     hyperref-xetex-bidi.def    2012/01/01 v0.5 bidi adaptations for hyperref packag     e for XeTeX engine     loadingorder-bidi.def    2012/01/01 v0.8a making sure that bidi is the last pac     kage loaded     gloss-hebrew.ldf    polyglossia: module for hebrew     hebrewcal.sty    2008/07/01 v2.4 Hebrew calendar for polyglossia (adapted from      hebcal.sty in Babel)     cal-util.def     babel-hebrewalph.def    2010/03/02 Babel definitions for Hebrew numerals      Adapted from hebrew.ldf (2005/03/30 v2.3h)        t3cmr.fd    2001/12/31 TIPA font definitions      nameref.sty    2010/04/30 v2.40 Cross-referencing by name of section     gettitlestring.sty    2010/12/03 v1.4 Cleanup title references (HO)     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          ***********      Off to bed, be back tomorrow.


title: Vertical alignment of the `aligned` environment in table cells

text: I think most people will agree that the vertical alignment in the table cells below is less than ideal--especially if I want to remove the `\cmidrule` to be more in line with accepted "best practices" for tables. ![enter image description here](http://i.stack.imgur.com/itB3y.png) What I'd like is the following: For every cell in the lower two rows of the table, the content should be flush with the top of the cell. (Possible exception: I'm not entirely convinced this is right for the leftmost column.) The headings E1|C, etc. should remain vertically centered. Important note: ideally, all the columns except the leftmost column should have their width determined automatically. I would prefer not to have to specify the width of a `parbox` or similar (although if you can solve it using these, that is still better than I have been able to do so far). I'm sure the solution to this is contained somewhere in the labyrinth of related questions, but...well...the related questions are a labyrinth, and I was unable to find what I was looking for. Here's the code for this example:               \documentclass{article}     \usepackage{amsmath}     \usepackage{booktabs,array}          \newcommand*{\sheaf}[1]{\mathcal{#1}}          \begin{document}     \begin{tabular}{@{}>{\raggedright}m{10.5em} l l l l@{}}     \toprule     Rational curve: \\$[t,s] \mapsto$ & $\sheaf E_{1} |_C$ & $\sheaf E_{3} |_C$ & $\sheaf E_{4} |_C$ & $\sheaf E_{5} |_C$      \\ \midrule      $[-s t^{8}+2s^{8} t+2s^{9},\linebreak[0]-s^{4} t^{5},\linebreak[0]s^{5} t^{4}-s^{9},\linebreak[0]2t^{9}-s^{9}]$      & $\begin{aligned}&\sheaf O(-3)^{3}\end{aligned}$      & $\begin{aligned}&\sheaf O(-2)^{8}\\ &\oplus \sheaf O(-1)^{11}\end{aligned}$      & $\begin{aligned}&\sheaf O(-2)^{3}\\ &\oplus \sheaf O(-1)^{30}\\ &\oplus \sheaf O\end{aligned}$      & $\begin{aligned}&\sheaf O(-1)^{45}\\ &\oplus \sheaf O^{10}\end{aligned}$      %     \\      \cmidrule(l){2-5}     %     $[s t^{8}-s^{2} t^{7},\linebreak[0]2t^{9}-s^{8} t,\linebreak[0]-s^{9},\linebreak[0]t^{9}]$      & $\begin{aligned}&\sheaf O(-6)\\ &\oplus \sheaf O(-2)\\ &\oplus \sheaf O(-1)\end{aligned}$      & $\begin{aligned}&\sheaf O(-4)\\ &\oplus \sheaf O(-3)\\ &\oplus \sheaf O(-2)^{4}\\ &\oplus \sheaf O(-1)^{12}\\ &\oplus \sheaf O\end{aligned}$      & $\begin{aligned}&\sheaf O(-3)\\ &\oplus \sheaf O(-2)^{4}\\ &\oplus \sheaf O(-1)^{25}\\ &\oplus \sheaf O^{4}\end{aligned}$      & $\begin{aligned}&\sheaf O(-2)^{3}\\ &\oplus \sheaf O(-1)^{39}\\ &\oplus \sheaf O^{13}\end{aligned}$      \\ \bottomrule     \end{tabular}          \end{document}


title: Spacing in commands for math mode

text: I would like to define commands with semantics similar to e.g. + in math mode. For instance,               $(x+y)$      produces an equation with some spacing around +, whereas               $(+)$      produces an equation with less (or no) spacing around +. The reason is that I would like to write something like               $\token{repeat} \token{skip} \token{until} b$     $\token{skip}$      Where tokens are follwed by a space in the first case, but are not in the second. In a way, I'd like something similar to xspace, in math mode. Any suggestions?


title: Fonts for making a Latex beamer prettier

text: I will be giving a lecture in Mathematics. Please suggest some fonts so that the beamer look prettier ?


title: Usage of a saved dimension in another saved dimension in a \pgfdeclareshape command

text: I have a question about `\saveddimen` usage inside of a `\pgfdeclareshape` command. My code is as follows:               \documentclass{article}     \usepackage{tikz}     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     %     \makeatletter     \pgfdeclareshape{myshape}{        \savedanchor{\centerpoint}{\pgf@x=0pt\pgf@y=0pt}        \saveddimen{\mydima}{%           \pgf@x=20pt        }        \saveddimen{\mydimb}{%           \pgf@x=20pt  %% =\mydima           \pgf@x=-\pgf@x        }        %           \anchor{center}{\centerpoint}        \backgroundpath{%             \pgf@xa=\mydima \pgf@ya=\mydima             \pgf@xb=\mydimb \pgf@yb=\mydimb             \pgfpathmoveto{\pgfqpoint{\pgf@xa}{\pgf@ya}}             \pgfpathlineto{\pgfqpoint{\pgf@xb}{\pgf@ya}}             \pgfpathmoveto{\pgfqpoint{\pgf@xb}{\pgf@yb}}             \pgfpathlineto{\pgfqpoint{\pgf@xa}{\pgf@yb}}        }          }     \makeatother     \begin{document}     \begin{tikzpicture}        \draw[help lines] (0,0) grid (4,4);        \node[myshape,draw] at (2,2) {test};     \end{tikzpicture}     \end{document}      This produces a node, with top and bottom horizontal lines. In my real world example, I want to have a dimension `\dimenb` which is a function of `\dimena`. If I uncomment the `%%` in the `\saveddimen{\dimenb}` command the setting `\pgf@x=\dimmena` I get an error message. Question: Is it legal to use a saved dimension in the definition of another saved dimension, and if yes, how?


title: Bad horizontal alignment in pgfplots figure

text: If I try to horizontally align two nodes by giving the same y-coordinate, the text `$D_{\textrm{X-ray}}$` and `$D_{\textrm{C-ion}}$` is still not aligned properly, which has apparently to do with the letter height of the subscripts. Removing `[above]` tag does not change that behaviour. How do I align both nodes to the D? Correctly align vertical text on a baseline in pgfplots deals with a similar issue, but I don't know how to apply the solution to my example. ![enter image description here](http://i.stack.imgur.com/k7WfT.png) * * *               \begin{figure}[ht]     \centering     \begin{tikzpicture}     \begin{semilogyaxis}[samples=200,ymin=0.001,ymax=1,xmin=0,xmax=5,unbounded coords=discard,xlabel=Dose (Gy),     ylabel=Survival,     legend entries={X-rays, Carbon ions},     legend style={draw=none, nodes=right},     legend pos= north east]          \addplot [thick, dashed] plot  (\x,  {1*(exp((-0.8*\x)-(0.12*\x*\x)))});     \addplot [thick] plot  (\x,  {1*(exp((-2*\x)))});          \draw[semithick] (axis cs:0,0.01) -> (axis cs:2.302,0.01);     \draw (axis cs:0,0.0095) -- (axis cs:3.701,0.0095);          \node[above] at (axis cs:0.5,0.01) {\small $D_{\textrm{C-ion}}$};     \node[above] at (axis cs:2.8,0.01) {\small $D_{\textrm{X-ray}}$};          \draw[semithick] (axis cs:2.302,0.01) -- (axis cs:2.302,0.001);     \draw (axis cs:3.701,0.0095) -- (axis cs:3.701,0.001);          \node at (axis cs:1.15,0.003) {\small $\textrm{RBE} = \frac{3.7\textrm{ Gy}}{2.3\textrm{ Gy}} \approx 1.6$};          \end{semilogyaxis}     \end{tikzpicture}     \end{figure}


title: macports texlive can't find .sty file

text: I have `texlive-fonts-extra` installed:               $ port installed texlive-fonts-extra     The following ports are currently installed:       texlive-fonts-extra @22691_0+doc (active)      According to https://trac.macports.org/wiki/TeXLivePackages, `texlive-fonts- extra` has `doublestroke` However, while compiling (`$ pdflatex article.tex`) a .tex file containing               \usepackage{mathtools, doublestroke}      I get               ! LaTeX Error: File `doublestroke.sty' not found.      I am using the correct copy of latex since               $ which pdflatex     /opt/local/bin/pdflatex      What should I do to troubleshoot?


title: AMS align / Align multiple “=”, too much space

text: I asked this question at stackoverflow and have been kindly redirected here. I'd like to align some equations in Latex using the AMS packages. Each equation has two equal signs that need to be aligned. So something in the line of               A = B = C     D = E = F      I've tried using the align-environment like this               \begin{align}     A &= B &= C \\     D &= E &= F     \end{align}      This works in principle (it aligns), however it adds ridiculously large spaces before the second equal sign in each line. But I just want the line to runs as if there was no additional alignment tab. Only when I replace for example "B" by "BBB" I want the equal sign before "F" to shift to right the exact amount of space. Could anyone help me out on that one? It's kind of driving me crazy since I don't get the idea of that strange behavior and I just can't find any solution. Maybe alignat could help, but I don't really get how that environment works. Cheers, Oliver


title: Table captions are always placed below

text: I have a problem with table captions in LaTeX. They appear always below the tables instead of above as required by my editor. I've read lots of documentation and everybody says that if you place the `\caption` command before the begin-tabular like this:               \begin{figure}[h!]       \caption{This caption is supposed to be above the table}       \centering         \begin{tabular}          ...         \end{tabular}     \end{figure}      you get it above the table. And, if you place it after the tabular, like this:               \begin{figure}[h!]       \centering         \begin{tabular}          ...         \end{tabular}       \caption{This caption is supposed to be below the table}     \end{figure}      you get it below. Well. This is not working for me: my captions are ALWAYS placed below the table regardless of the position of my `\caption` command. I assume this is something wrongly defined in the document template (I'm using book document template) but I can not find the right key to fix it. Can anyone help with this? This is the preamble of my LaTeX document just in case it helps:               \documentclass[b5paper,11pt]{book}     \usepackage[total={14cm,21cm},top=1.5cm, left=1.5cm, includehead]{geometry}          \usepackage{epsfig}     \usepackage[ansinew]{inputenc}     \usepackage{harvard}     \usepackage{colortbl}     \usepackage{booktabs}     \usepackage{floatrow}     \usepackage{estilo}          \citationstyle{dcu}          \pagestyle{myheadings}     \markboth{Prefacio}{Mi manual}          \newfloat{definicion}{h!}{loa}[chapter]     \floatname{definicion}{Definici\'on}         \floatsetup[definicion]{framestyle=fbox,framearound=object,frameset={\fboxrule1pt \fboxsep10pt},framefit=yes}            \begin{document}          ...     etc.


title: Changing the alignment of chapter headings and quotes in quotchap

text: How can I change the alignment of chapter headings and quotes in `quotchap` without modifying the .sty file? More specifically, I would like left-align the chapter headings and right-align the quotes.


title: Adding symbols to glossary entry and limit to description field?

text: I used an answer provided by Geoffrey Jones regarding how to create a Lexicon of sorts (unmodified code):                   \documentclass{article}     \newcommand*{\glossaryname}{Dictionary}     \usepackage[nonumberlist]{glossaries}     \newcommand{\dictentry}[2]{%       \newglossaryentry{#1}{name=#1,description={#2}}%       \glslink{#1}{}%     }     \makeglossaries          \begin{document}     \dictentry{aardvark}{an animal}%     \dictentry{lion}{another animal, but with       a really long description that spills over many, many, many, many, many,        many, many, many, many, many, many, many, many, many, many, many, many,        many, many, many, many, many, many, many, many, many, many lines}     \dictentry{zebra}{yet another animal}%     \printglossary[style=list]%     \end{document}      My first question is: How would I add other fields (or is it possible), like the symbols field provided by glossaries in such a way that I only had to add a last bracket with the symbol, `\dictentry{concept}{description}{symbol}` (I'm not yet comfortable fiddling with the newcommand function, I tried but failed to add a symbol field) The second question is: Is there a length limit in the description field, when using the glossaries package? I ask because using the setup described above, the entry doesn't seem to be added to the gls file when it's too large (ca. 8-9 lines of text in the outputted document.


title: Span formula over multiple pages.

text: I've looked through the search but I couldn't find what I specifically want. I have the following               \begin{equation}     \begin{split}     Very long equation     \end{split}     \end{equation}      Now, I have half a page left where I want to place that equation, but it is a little bit longer. The result is that LaTeX places the formula on the next page. Is there a way so that LaTeX automatically splits the equation over the two pages?


title: Place image/figure beside text {Lyx}

text: Is it possible to place an image beside (right or left) my text in LyX ? something like that : ![image](http://i.stack.imgur.com/MB2hk.png) (The screenshot is not mine)


title: How to typeset a multiline text in math environment?

text: I am using lhs2TeX to render Haskell code in LaTeX. It preprocesses the code into complex LaTeX code which is rendered (in one mode of operation) in math environment. Now, I have in this code also comments which are longer than one line. And would like to render them in a way that LaTeX wraps correctly lines as they get to the edge of the page. So my question is, how can I insert a multiline text in math environment at a given current place (not just at the beginning of the line, but also indented, for example) so that it spans to the edge of the page automatically. minipage environment works nicely, but I have to manually specify its width. I would like to see this done automatically, based on the current location of the beginning of the minipage, to the edge of the page. Is this possible? How can I get current position on the page so that I could calculate needed height?


title: Why does TeX not have a proper Content Management System?

text: I am wondering why the Tex community does not have some sort of central Content Management System for version control and bug tracking, say, at CTAN. This community is surely large and mature enough for such an infrastructure, see TX.SX. It is embracing new technology when useful, see, again, TX.SX, or LuaTeX. I am aware that some packages use such CMS'. I also know that MiKTeX does have a bug tracker at sourceforge, while TexLive does not. Wouldn't it be great if these forces were to be joined? ### Background I have mixed experiences with bug reporting via personal email. Heiko Oberdiek was very responsive, providing a new version of `hyperref`. On the other hand, I have a bug report for `refcheck`, but the email address of the maintainer is dead (host does not resolve). Now I have this neat MWE here, and nowhere to post it.


title: Arranging a large number of letters on a page

text: I hope this is not too off topic here, since I cannot think of a place with more experts where I could ask. The background is, that I want to improve my ASCII-art algorithm which works fine (about 70k letters here) but I have some other ideas I want to implement: ![enter image description here](http://i.stack.imgur.com/Gx4Hn.png) Beside some details of the algorithm itself, I want to implement the following: # Postscript output I want to place say 500x500 letters in a way that the line-space is as big as the interletter space and that the font-size is calculated automatically so that this rectangle fits onto some (say A4) paper size. Here is a minimal postscript example I hacked up for testing               %!PS-Adobe-2.0     %%Creator: cpierce1@ford.com     %%EndComments     /Courier findfont 7.7 scalefont setfont     72 500 translate     0 0 moveto     (abcdefhikl) show     0 -5 moveto     (mnorstuvwx) show     0 -10 moveto     (zABCDEFGHI) show     0 -15 moveto     (JKLMNOPRS!) show     0 -20 moveto     (TUVWXYZ.=-) show     0 -25 moveto     showpage     %%Pages: 1      Which produces ![enter image description here](http://i.stack.imgur.com/j9VVK.png) Note that I just guessed the font-scaling and the `moveto` size. **Question:** If I only now how many letters nx*ny I have, is it possible to calculate the font-scaling the the `moveto` size so that the rectangle fits on the paper? # Font brightness calculation For a really good output, I need to calculate the brightness of the letters as precisely as possible. In the image of the ps-file above, you see that all letters are surrounded by a small white border. This border depends in x-direction on the inter-letter distance and in y-direction on the font- scale/`moveto` values. **Question:** Is it possible to create a high-resolution image (png, tiff, ..) of every letter? Note, for a correct calculation the white border in the images is required to be the same size as if the letter would be surrounded by other letters. # Further notes I decided not to take letters like "Qyg" which have a _sub-length_ because they are very rare and make the lines be more appart. This makes the calculation of the correct line-space maybe impossible. I'm always open for other suggestions. I chose the post-script output because I can transform the ascii-text really easy into the `(...) show; ... moveto` form. And, I have control over the letter scaling and distances. Maybe there is a better/easier way.


title: Set font in listings in XeLaTeX

text: I want to set specific font just for listings in XeLaTeX.               \newfontfamily\consolas{Consolas}          \lstdefinelanguage{MyLanguage}{         basicstyle=\ttfamily,         .... % my language definition     }     \lstnewenvironment{MyLanguage}[1][]{         \lstset{language=MyLanguage,#1}         \consolas  % do not work     }     {}          \begin{document}     \begin{MyLanguage}[caption={....}]     ...     \end{MyLanguage}     \end{document}      I know it is possible to set default mono-space font for whole document with               \setmonofont{Consolas}      and it is working but I do not want other mono-space things like URLs in that font. Maybe if it is possible to set mono-space font to its default and use this               \lstnewenvironment{MyLanguage}[1][]{         \lstset{language=MyLanguage,#1}         \setmonofont{Consolas}     }     {\setmonofont{??default??}}


title: tkz-linknodes, subfig problems of alignment

text: I don't succeed in managing the alignment among the various figures. How can I do? thanks                \documentclass[a4paper,11pt]{article}         \usepackage[utf8]{inputenc}         \usepackage[upright]{fourier}         \usepackage{amsmath,tkz-linknodes,tikz,subfig}         \begin{document}         \begin{figure}         \subfloat[][]{\label{fig:prodottopolinomiopolinomio}         \begin{minipage}{12cm}         \begin{tikzpicture}         \node (a) {$(A$};         \node (p1)[right of=a, node distance=15]{$+$};         \node (b)[right of=p1, node distance=15]{$B)^2$};         \node (R)[right of=b, node distance=15]{$=$};         \node (as)[right of=R, node distance=15]{$A^2$};         \node (s1)[right of=as, node distance=15]{$+$};         \node (bs)[right of=s1, node distance=15]{$B^2$};         \node (s2)[right of=bs, node distance=15]{$+$};         \node (dp)[right of=s2, node distance=15]{$2AB$};         \path (a.north) edge [bend left=45,-triangle 90](as.north);         \path (a.north) edge [bend left=45,-triangle 90](dp.north);         \path(b.south)edge [bend right=45,-triangle 90](bs.south);         \path(b.south)edge [bend right=45,-triangle 90](dp.south);              \end{tikzpicture}         \end{minipage}         }%         \subfloat[][]{\label{fig:polinomiquadratobinomio1}         \begin{minipage}{12cm}         \begin{NodesList}             \begin{align*}                 \left(a+2b\right)^2&\AddNode[1]\AddNode[2]\AddNode[3]\AddNode[4]\\                 +a^2&\AddNode[1]&\\                  +4b^2&\AddNode[2]&\\                 +4ab&\AddNode[3]\\                 \left(a+2b\right)^2=a^2+4b^2+4ab&\AddNode[4]             \end{align*}             \tikzset{LabelStyle/.style = {left=0.1cm,pos=0.5,text=red,fill=white}}             \LinkNodes[margin=2cm]{$a\cdot a$}%                 \LinkNodes[margin=2cm]{$2b\cdot 2b$}%             \LinkNodes[margin=2cm]{$2\cdot a \cdot 2b$}%             \LinkNodes[margin=2cm]{ottengo}%          \end{NodesList}         \end{minipage}         }%         \qquad%         \subfloat[][]{\label{fig:polinomiquadratobinomio2}         \begin{minipage}{12cm}%         \begin{NodesList}             \begin{align*}                 \left(2x-3y\right)^2&\AddNode[1]\AddNode[2]\AddNode[3]\AddNode[4]\\                 +4x^2&\AddNode[1]&\\                  +9y^2&\AddNode[2]&\\                 -12xy&\AddNode[3]\\                 \left(2x-3y\right)^2=4x^2+9y^2-12xy&\AddNode[4]             \end{align*}             \tikzset{LabelStyle/.style = {left=0.1cm,pos=0.5,text=red,fill=white}}             \LinkNodes[margin=2cm]{$2x\cdot 2x$}%                 \LinkNodes[margin=2cm]{$(-3y)\cdot (-3y)$}%             \LinkNodes[margin=2cm]{$2\cdot (2x) \cdot(-3y)$}%             \LinkNodes[margin=2cm]{ottengo}%          \end{NodesList}         \end{minipage}         }%         \subfloat[][]{\label{fig:polinomiquadratobinomio3}         \begin{minipage}{12cm}%         \begin{NodesList}             \begin{align*}             \left(2-z\right)^2&\AddNode[1]\AddNode[2]\AddNode[3]\AddNode[4]\\             +4&\AddNode[1]&\\              +z^2&\AddNode[2]&\\             -4z&\AddNode[3]\\             \left(2-z\right)^2=4+z^2-4z&\AddNode[4]         \end{align*}         \tikzset{LabelStyle/.style = {left=0.1cm,pos=0.5,text=red,fill=white}}         \LinkNodes[margin=2cm]{$2\cdot 2$}%             \LinkNodes[margin=2cm]{$(-z)\cdot (-z)$}%         \LinkNodes[margin=2cm]{$2\cdot (2) \cdot(-z)$}%         \LinkNodes[margin=2cm]{ottengo}%          \end{NodesList}         \end{minipage}         }              \caption{Quadrato Binomio}           \label{fig:QuadratobinomioG}         \end{figure}         \end{document}       I tried to get an alignment of the type AA AA. I didn't want an alignment of the type A A A A               enter code here     \documentclass[a4paper]{article}     \usepackage[utf8]{inputenc}     \usepackage[upright]{fourier}     \usepackage{amsmath,tkz-linknodes}     \usepackage{tikz}     \usepackage{subcaption}     \usepackage{subfig}     \begin{document}     \begin{figure}     \begin{minipage}[h]{7cm}     \centering     \begin{tikzpicture}     \clip (-0.3,-1) rectangle (4.6,1.4);     \node (a) {$(A$};     \node (p1)[right of=a, node distance=15]{$+$};     \node (b)[right of=p1, node distance=15]{$B)^2$};     \node (R)[right of=b, node distance=15]{$=$};     \node (as)[right of=R, node distance=15]{$A^2$};     \node (s1)[right of=as, node distance=15]{$+$};     \node (bs)[right of=s1, node distance=15]{$B^2$};     \node (s2)[right of=bs, node distance=15]{$+$};     \node (dp)[right of=s2, node distance=15]{$2AB$};     \path (a.north) edge [bend left=45,-triangle 90](as.north);     \path (a.north) edge [bend left=45,-triangle 90](dp.north);     \path(b.south)edge [bend right=45,-triangle 90](bs.south);     \path(b.south)edge [bend right=45,-triangle 90](dp.south);     \end{tikzpicture}     \subcaption{aaaaaa}\label{fig:QuadratobinomioGa}%     \end{minipage}     \begin{minipage}[h]{8cm}     \begin{NodesList}     \centering         \begin{align*}  \left(a+2b\right)^2&\AddNode[1]\AddNode[2]\AddNode[3]\AddNode[4]\\             +a^2&\AddNode[1]&\\              +4b^2&\AddNode[2]&\\             +4ab&\AddNode[3]&\\             \left(a+2b\right)^2=a^2+4b^2+4ab&\AddNode[4]         \end{align*}         \tikzset{LabelStyle/.style = {left=0.1cm,pos=0.5,text=red,fill=white}}         \LinkNodes[margin=1cm]{$a\cdot a$}%             \LinkNodes[margin=1cm]{$2b\cdot 2b$}%         \LinkNodes[margin=1cm]{$2\cdot a \cdot 2b$}%         \LinkNodes[margin=1cm]{ottengo}%      \end{NodesList}     \subcaption{bbbbbb}\label{fig:QuadratobinomioGb}%     \end{minipage}%     \qquad%     \begin{minipage}[h]{8cm}     \begin{NodesList}     \centering         \begin{align*}  \left(2x-3y\right)^2&\AddNode[1]\AddNode[2]\AddNode[3]\AddNode[4]\\             +4x^2&\AddNode[1]&\\              +9y^2&\AddNode[2]&\\             -12xy&\AddNode[3]\\             \left(2x-3y\right)^2 =4x^2+9y^2-12xy&\AddNode[4]         \end{align*}         \tikzset{LabelStyle/.style = {left=0.1cm,pos=0.5,text=red,fill=white}}         \LinkNodes[margin=0cm]{$2x\cdot 2x$}%             \LinkNodes[margin=0cm]{$(-3y)\cdot (-3y)$}%         \LinkNodes[margin=0cm]{$2\cdot (2x) \cdot(-3y)$}%         \LinkNodes[margin=0cm]{ottengo}%      \end{NodesList}     \subcaption{cccc}\label{fig:QuadratobinomioGc}%     \end{minipage}%     \begin{minipage}[h]{8cm}     \begin{NodesList}     \centering         \begin{align*}             \left(2-z\right)^2&\AddNode[1]\AddNode[2]\AddNode[3]\AddNode[4]\\             +4&\AddNode[1]&\\              +z^2&\AddNode[2]&\\             -4z&\AddNode[3]\\             \left(2-z\right)^2=4+z^2-4z&\AddNode[4]         \end{align*}         \tikzset{LabelStyle/.style = {left=0.1cm,pos=0.5,text=red,fill=white}}         \LinkNodes[margin=1cm]{$2\cdot 2$}%             \LinkNodes[margin=1cm]{$(-z)\cdot (-z)$}%         \LinkNodes[margin=1cm]{$2\cdot (2) \cdot(-z)$}%         \LinkNodes[margin=1cm]{ottengo}%      \end{NodesList}     \subcaption{ddddd}\label{fig:QuadratobinomioGd}%     \end{minipage}%     \caption{Quadrato Binomio}       \label{fig:QuadratobinomioG}     \end{figure}     \end{document}      it works


title: Example code of PSTricks in MikTeX

text: everyone, in the past one hour, I have been fighting with the PSTricks package in MikTeX. I found a lot of example code here. For example, I downloaded the gliding ball example tex and I ran it in Miktex, but it didn't compile even though I installed all kinds of pst packages. And I tried some other example tex code, and they didn't work in Miktex neither. Can someone help me modify one of the example code in the link above to make it work in MikTeX? I'll really appreciate that! Thank you very much!


title: Manually controlled size of delimiters in macros

text: I am using the `amsmath` package and I'd like to control the size of my delimiters manually, i.e. using the `\bigl`, `\Bigl`, ... , `\Bigr`, `\bigr` commands, instead of `\left`, `\middle`, `\right`. Now I want to create macros which include delimiters and I want to have the size as an argument. For example, if I have a `\set` macro:               \newcommand{\set}[2]{ \left\{ #1 \,\middle\vert\, #2\right\} }      I want to change it into a command, where I can give the size as an argument, i.e.               \set{A}{B}{Big}      should produce `\Bigl\\{ A \,\Big\vert\, B\Bigr\\}` or, even better, `\set{A}{B}{2}` produces this result. Is there any command like `\leftdelimitersize` to implement this kind of macros?


title: Disable Algorithm Label

text: I am using the `\usepackage{pseudocode}` in this code                \documentclass{article}      \textwidth=4.5in      \textheight=7.125in      \usepackage{pseudocode}      \begin{document}      \renewcommand{\thepseudocode}{}      \begin{pseudocode}{m3partition}{a, i, j}      \CALL {swap}{a[(i+j)/2] , a[j-1]} \\      \IF a[i] > a[j-1] \  \CALL {swap} {a[i], a[j-1]} \\      \IF a[i] > a[j] \  \CALL {swap} { a[i], a[j]} \\      \IF a[j-1] > a[j]  \  \CALL {swap} {a[j-1], a[j]} \\      \CALL {partition}{a, i+1, j-1}\\      \end{pseudocode}         \end{document}      ![enter image description here](http://i.stack.imgur.com/OfSUS.png) and when it renders it will have the `Algorithm` label which I want to remove, is there anyway to achieve this?


title: Underbrace problem

text: I have some problem to make the Underbrace partly for the equation like the picture shows. The unique part is the "b" is used twice. ![enter image description here](http://i.stack.imgur.com/1XbGA.jpg) Thanks !


title: How to add new packages to Texmaker?

text: How can I add a package, e.g., `program` into Texmaker in Ubuntu? I tried to include it as follows but it didn't work:               \usepackage{program}


title: KOMA-Script scrbook: How to change V-space between chapter prefix and title

text: My university has style requirements for my dissertation that seem to be tailored to users of MS Word and the like. In particular, the formatting of section headers differs only by use of caps/bold/italics from the rest of the text. What I need is to replicate chapter headings that in MS Word would result from the following input sequence:   * [entire document double-spaced]   * Chapter 1 [return]   * Chapter Title [return]   * This is the text of the chapter.... The only thing I haven't figured out is how to force the vertical space between the prefix and title to be a simple double-space just like everywhere else in the document. What am I missing?               \documentclass[12pt,letterpaper,oneside,chapterprefix=on]{scrbook}          %Margins     \usepackage[letterpaper,left=1.5in,top=1in,right=1in,bottom=1in]{geometry}          %Type     \usepackage{fontspec}     \setmainfont{Times New Roman}     \usepackage{unicode-math}     \setmathfont{xits-math.otf}     \usepackage[doublespacing]{setspace}     \setlength\parindent{0.5in}          \usepackage{microtype}     \usepackage{lipsum}          %Remove vertical space above/below chapter headings:     %http://tex.stackexchange.com/questions/43087/remove-space-before-chapter-title-with-koma-      script-scrbook     \renewcommand*{\chapterheadstartvskip}{\vspace*{-\baselineskip}}     \renewcommand*{\chapterheadendvskip}{\vspace*{0in}}          \setkomafont{disposition}{\normalcolor\rmfamily}     \setkomafont{chapter}{\centering\MakeUppercase}          \begin{document}          \frontmatter          \chapter*{Abstract Title Page}     \chapter*{Abstract}     \chapter*{Copright Page}     \chapter*{Title Page}          \tableofcontents     \listoffigures          \mainmatter          \chapter{Introduction}     \lipsum[1-2]     \appendix     \backmatter          \end{document}


title: Inconsistent footnote size in converting LaTeX to OpenOffice.org

text: When a LaTeX document containing 2 footnotes — footnote #1 is plain ASCII, but footnote #2 has diacritics or other extended characters — is converted to `odt` (OpenDocument Format), the number in footnote #1 is smaller than the number in footnote #2.   * Do you get the same output?   * How can I make the numbers be of the same size?  For example:               \documentclass{article}     \begin{document}     First sentence.\footnote{First footnote.}     Second sentence.\footnote{S{\' e}cond footnote.}     \end{document}      This is the output from `pdftex`: ![Imgur](http://i.imgur.com/GQL28.jpg?1) And this is the output from `$ mk4ht oolatex` ![output](http://i.imgur.com/8sBmq.jpg) TeX Live (2012), mk4ht (v1.1), OpenOffice.org (3.4.1)


title: Wrong hyperref link using biblatex and titlesec

text: I'm using `biblatex` together with `titlesec` (yes, I know that they don't work well together ...). When I include the `titlesec`-package the `hyperref` bookmarks link to the wrong page. Consider the following MWE:               \documentclass{article}          \usepackage{filecontents}          \begin{filecontents}{\jobname.bib}     @book {A,         author = {Doe, John},         title = {A title},         date = {2014},         location = {A},     }     \end{filecontents}          \usepackage[         style=authortitle,         backend=biber,     ]{biblatex}          \usepackage[         bookmarks,         bookmarksopen,     ]{hyperref}          \addbibresource{\jobname.bib}          %\usepackage{titlesec} % uncomment to see the undesired behaviour          \begin{document}          \pagenumbering{Roman}          \tableofcontents     \newpage          \printbibliography[         heading=bibintoc,     ]          \newpage     \pagenumbering{arabic}          \section{My Section}     \cite{A}          \end{document}      Any help is greatly appreciated.


title: Changing typesetting engine from pdfLaTeX to LuaTeX in TeXnicCenter

text: How does one change the typesetting engine from `pdfLaTeX` to `LuaTeX` in `TeXnicCenter`? Is it sufficient to just change the path to the `.exe` in `Build->Define Output Profiles`?


title: Using class and specific font in XeLaTeX throws error

text: I am trying to use xelatex with its own class and a font I found on another stackexchange site. Here's a minimum working example, the `Roboto` font is in the same folder in a subdirectory called `Roboto`. The content of `a.tex` is:               \documentclass[]{b}     \begin{document}     some text     \end{document}      and the content of `b.cls` is:               \LoadClass{article}     \RequirePackage[quiet]{fontspec}     \setmainfont[Mapping=tex-text, Color=textcolor]{Roboto/Roboto-Light.ttf}      Then I am running               xelatex a.tex      and get the following error:               LaTeX Font Warning: Font shape `EU1/Roboto/Roboto-Light.ttf(0)/m' undefined     (Font)              using `EU1/lmr/m/n' instead on input line 2.          ! Missing number, treated as zero.     <to be read again>                         n     l.2 ..., Color=textcolor]{Roboto/Roboto-Light.ttf}      Anyone can help me solving this? I am on Debian Wheezy and using texlive 2013


title: How to replace the "Go to ToC" with an image in this file?

text: In the following code, how can I replace the "Go to ToC" with this image in the output pdf?               \documentclass{article}     \usepackage[top]{background}     \usepackage{lipsum}     \pagestyle{empty}     \usepackage[]{hyperref}     \usepackage{blindtext}     \SetBgContents{\hyperlink{toc}{Go to ToC}}     \SetBgAngle{0}     \SetBgColor{black!40}     \SetBgScale{1}     \SetBgHshift{50}     \SetBgVshift{-9}     \begin{document}     \addtocontents{toc}{\protect\hypertarget{toc}{}}     \tableofcontents\newpage     \section{sec one}     \blindtext     \newpage     \section{sec two}     \blindtext     \end{document}      **Edit:**   Please note that the image should be created with something like tiKz. Because I want to send the output pdf to someone else.


title: Hyperref, Natbib: Curious backref behaviour

text: I have prepared the following MWE from the answer I found at formatting-back- references-in-bibliography. If the option `backref=page` is forwarded to `hyperref` with `\hypersetup` then the back references do not appear. But passing this option while calling the package works. Why is this? **MWE**               \documentclass{article}          \usepackage[numbers]{natbib}          %\usepackage[backref=page]{hyperref}          \usepackage{hyperref}     \hypersetup{       backref=page     }          \usepackage{filecontents}          \begin{filecontents}{\jobname.bib}     @misc{A01,       author = {Author, A.},       year = {2001},       title = {Alpha},     }     @misc{B02,       author = {Buthor, B.},       year = {2002},       title = {Bravo},     }     \end{filecontents}          \begin{document}          Some text \citep{A01,B02}.          \clearpage          Some more text \citep{A01}.          \bibliographystyle{plainnat}     \bibliography{\jobname}          \end{document}


title: TeXcount and biblatex

text: I have recently switched from BibTeX to the `biblatex` package (using the Biber back-end) and I can only subscribe what others have already said about its many virtues. This question is not so much about `biblatex` itself as about its interaction with the TeXcount scripting facilities for word counting in TeX-based documents. How can the settings of the latter script be tuned in order for it to work with `biblatex` (meaning, for TeXcount to be able to proceed as it does with BibTeX)?


title: Text sloped along regular polygon side

text: I would like to have text sloped along the sides of a `regular polygon` triangle, but `sloped` doesn't do the trick. I guess that's because the node is at a point, not on a path. How can I get `side 1` sloped? MWE:               \documentclass[margin=5mm]{standalone}     \usepackage{pgf,tikz}     \usetikzlibrary{shapes.geometric}     \tikzset{         buffer/.style={             draw,regular polygon,             regular polygon sides=3,             minimum height=4em         }     }     \begin{document}     \begin{tikzpicture}         \node[buffer] (triangle) {} ;         \node[sloped,font=\footnotesize] at (triangle.side 1) {Side 1};      \end{tikzpicture}     \end{document}      Producing ![enter image description here](http://i.stack.imgur.com/bO1mZ.png)


title: newcommand with optional superscript

text: In my thesis i need to use quite often the partial differential fraction like               \frac{\partial^\alpha x}{\partial y^\alpha }}      I therefore defined the command               \newcommand{\partialfrac}[3][]{\frac{\partial^ #1 #2}{\partial #3 ^ #1}}      That should be equal to the first one using               \partialfrac[\alpha]{x}{y}      That works if I define the optional #1 input. I would like to be able to skip the superscript if i want to (usually ^1 is not written...) but if I omit the optional input i receive an error. Is there a way to tell latex to "skip" the superscript somehow? Thankyou


title: Varying Page Lengths

text: How can I vary the vertical page length per page? I want to have the page breaks at essentially arbitrary locations in the document, specified by a command, like `\newpage` but not necessarily this command. Moreover, I want these page breaks to determine the vertical length of the page. (This must sound crazy!) Thanks!


title: PGFPlots: Axis dashed

text: How to configure axis dashed on PGFPlots?               \begin{axis}[grid=major]     %need grid=dashed     \end{axis}      ![enter image description here](http://i.stack.imgur.com/z3T3P.png)


title: How can I reset sectional counters in memoir class to avoid breaking ToC cross-referencing in a complex document?

text: I have already asked a similar question here: Incorrect ToC/Index cross-references when resetting memoir class counters and received a satisfactory answer. Now, I wish to apply the chapter counter reset (using `\counterwithin*`) to a more complex document, but this seems to fail. I simply wish to restart the chapter counter within each Part of a Book, and within each Book of my document structure, which goes like this:   * Book1     * Part1        * Chapter1       * ...     * Part2        * Chapter1       * ...     * ...   * Book2     * Chapter1     * ...   * Book3     * Chapter1     * ... I currently have the following MWE:               \documentclass[a4paper,12pt]{memoir}          \usepackage{hyperref}                  \hypersetup{         hypertexnames=true,                         linktocpage=false,         colorlinks=true,                                             }          \counterwithin*{chapter}{book}     \counterwithin*{chapter}{part}          \begin{document}          \tableofcontents*          \book{Book1}      \part{Part1}       \chapter{Chapter1}      \part{Part2}       \chapter{Chapter1}          \book{Book2}       \chapter{Chapter1}          \book{Book3}       \chapter{Chapter1}          \end{document}      I can't seem to get proper cross-referencing in my ToC for chapters in Book2 and Book3. Should I splice the `\counterwithin*` commands somehow throughout the sections?


title: Implied Double Space in Table of Contents Vs. Sections

text: I'm attempting to remove a double space that seems to be automatically put after the display of list of figures, table of contents, etc. What I mean visually is show as follows: ![Double space after List of Figures](http://i.stack.imgur.com/BJSBs.png) What I would like however, is something like this (without the double space) ![Single space after section](http://i.stack.imgur.com/1CTYT.png) In my document, displaying the list of figures/table of contents/etc. is automatically generated by the commands `\listoffigures` or `\tableofcontents` respectively. Is there anyway to remove this excess white space?


title: Including path diagram in Sweave

text: I use the following code to do sem analysis and draw path diagram with `sem R` package.               library(sem)          R.DHP <- readMoments(diag=FALSE, names=c('ROccAsp', 'REdAsp', 'FOccAsp',                      'FEdAsp', 'RParAsp', 'RIQ', 'RSES', 'FSES', 'FIQ', 'FParAsp'))         .6247                                                                       .3269  .3669                                                                 .4216  .3275  .6404                                               .2137  .2742  .1124  .0839                                         .4105  .4043  .2903  .2598  .1839                                   .3240  .4047  .3054  .2786  .0489  .2220                             .2930  .2407  .4105  .3607  .0186  .1861  .2707                       .2995  .2863  .5191  .5007  .0782  .3355  .2302  .2950                 .0760  .0702  .2784  .1988  .1147  .1021  .0931 -.0438  .2087            model.dhp <- specifyModel()         RParAsp  -> RGenAsp, gam11,  NA         RIQ      -> RGenAsp, gam12,  NA         RSES     -> RGenAsp, gam13,  NA         FSES     -> RGenAsp, gam14,  NA         RSES     -> FGenAsp, gam23,  NA         FSES     -> FGenAsp, gam24,  NA         FIQ      -> FGenAsp, gam25,  NA         FParAsp  -> FGenAsp, gam26,  NA         FGenAsp  -> RGenAsp, beta12, NA         RGenAsp  -> FGenAsp, beta21, NA         RGenAsp  -> ROccAsp,  NA,       1         RGenAsp  -> REdAsp,  lam21,  NA         FGenAsp  -> FOccAsp,  NA,       1         FGenAsp  -> FEdAsp,  lam42,  NA         RGenAsp <-> RGenAsp, ps11,   NA         FGenAsp <-> FGenAsp, ps22,   NA         RGenAsp <-> FGenAsp, ps12,   NA         ROccAsp <-> ROccAsp, theta1, NA         REdAsp  <-> REdAsp,  theta2, NA         FOccAsp <-> FOccAsp, theta3, NA         FEdAsp  <-> FEdAsp,  theta4, NA                    sem.dhp <- sem(model.dhp, R.DHP, 329,         fixed.x=c('RParAsp', 'RIQ', 'RSES', 'FSES', 'FIQ', 'FParAsp'))                    pathDiagram(sem.dhp, file="Path", min.rank=c("RIQ", "RSES", "RParAsp", "FParAsp", "FSES, FIQ"),                  max.rank=c("ROccAsp", "REdAsp", "FEdAsp", "FOccAsp"), same.rank=c("RGenAsp", "FGenAsp"),                 ignore.double=TRUE, edge.labels="values", size=c(8, 8), node.font=c("Helvetica", 10),                  edge.font=c("Helvetica", 10), rank.direction="LR", digits=3,  stdCoef=TRUE,                 output.type=c("graphics", "dot"), graphics.fmt="pdf")      This code produces the following path diagram: ![Path Diagram](http://i.stack.imgur.com/dw7t2.png) with this message:               Running  dot -Tpdf -o Path.pdf  Path.dot      When I try to include the code to draw path diagram in `.Rnw` file, this extra message cause problem. I wonder how to overcome this problem so that I can use the code to create path diagram in `Sweave`. Thanks in advance for your help and time.


title: Web links in the bibliographical labels

text: The class for the AIMS journals has one nice feature: In the bibliography, one can click over the label of a bib reference and the AMS' MathReview pops out in the browser. See an example. I used to put an \href{...} after the other bib data, but the AIMS way is more elegant. However, I don't like some other features of AIMS class (one of them is that it only allows numeric labels for bib references) and I don't want to use it. So, how can I emulate AIMS trick without creating a whole new document class? I tried to do the following (example):               \bibitem[\href{http://www.ams.org/mathscinet-getitem?mr=1464693}{Fu}]{Fulton} Fulton, W. Young tableaux. With applications to representation theory and geometry. Cambridge Univ.\ Press, 1997.      However this doesn't work as desired: if I click on a [Fu] link _in the middle of the PDF_ then I'd like to jump to the Bibliography section (as usual everywhere and also in AIMS class), not to open the browser. To summarize, the question is how to create those links for MR (or ArXiv or DOI or whatever) over the reference label _when it appears in the bibliography section_ , while links in the main text work as normal (namely, point to the bibliography section).


title: Error using glossaries package trying to compile with makeindex

text: I am having a trouble when I try running the `makeindex` command. I get the following error message:               Index style file Tesis.ist not found. Usage: makeindex [-ilqrcgLT] [-s sty] [-o ind] [-t log] [-p num] [idx0 idx1 ...]      I am using Texmaker, and suppose I have to change configuration but don't know how or where. How can I correct this error? Here is my code:                \documentclass[12pt]{BOOK}      \usepackage[T1]{fontenc}      \usepackage[utf8]{inputenc}      \usepackage{lmodern}      \usepackage[spanish]{babel}           \usepackage{glossaries}            \newglossaryentry{feromona} {name=feromona,  description={blablalb}}      \makeglossaries           \title{GLOSARIO}      \author{Eli}      \date{\today}           \begin{document}      \maketitle           \section{Ejemplo}           \gls{feromona}            \printglossaries           \end{document}


title: Italic letters are too loose in math mode

text: I want to type something like this page http://caml.inria.fr/pub/docs/manual- ocaml/expr.html. So I need to use `\begin{align*}` and `\end{align*}` which displays its contents math mode. Therefore italic font is needed. But when I type directly "value-path" for instance, its letters look very loose. Does anyone know how to make its letters tighter?


title: Redefining environment within a macro

text: Hel-lo, I am a LaTeX programming newbie. While formatting my document, I found that it will look nice if I can modify the theorem environment (with _amsthm_ package). So I tried the following code               \makeatletter     \newcount\@envcount     \newcommand{\enclosebox}[2]{%         % Create copies of old environments         \expandafter\let\expandafter\@old\csname #1\endcsname%         \expandafter\let\expandafter\@oldend\csname end#1\endcsname%         % Redefine environment using old ones.         \renewenvironment{#1}[1][]{%             \@nameuse{@old}[##1]%             \begin{#2}%         }{%             \end{#2}%             \@nameuse{@oldend}%         }%     }     \makeatother      This command inserts a new environment (with name #2) to the original environment (with name #1). With this, I can modify theorem environments like this:                \newtheorem{theorem}{Theorem}      \enclosebox{theorem}{<some box environment>}      The problem is, the token `\@old` and `\@oldend` are overwritten whenever I call `\enclosebox` command. For example,                \enclosebox{theorem}{shadebox}      \enclosebox{definition}{shadebox}      \enclosebox{example}{leftbar}      overwrites my old definition and theorem environment, resulting in something like: > ![enter image description here](http://i.stack.imgur.com/s6B07.png) So I tried using `\csname ~ \endcsname` to assign the name dynamically, but the compiler just spits out a bunch of errors. Of course I can resolve this problem by pasting multiple copy of the code and modifying each one by hands... but I am doing in this way just to avoid this clumsy solution. I have no idea how to fix my code. Can you help me?


title: Can I change \ref's output?

text: When I use `\ref` to cross reference a `\subsubsection`, I get the output `IV-B4` (at least using the `IEEEtran` document class).   Can I change the output to something like `IV-B.4)`?


title: How to set page number at right footer

text: I want to know how can i set the page number of documents at right footer i.e. bottom right of the page in the whole document even on the chapter heading page too. Please help me out on this.


title: LaTeX equation positioning problem

text: With this portion of code               \rm \setlength{\parindent}{1cm} Estimatorul nonparametric pentru functia de distributie cumulative, $F(x)$, in punctul $x$ este raportul de puncte intermediare care sunt mai mici sau egale cu $x$.     \begin{equation}     \mathop{F}\limits^{\wedge } (x)=\frac{\# \{ x^{t} \le x\} }{N}     \end{equation}      The equation appears in the middle of the page. ![enter image description here](http://i.stack.imgur.com/89dXl.jpg) Why? I want the equation to appear after that text, on a new line.


title: MikTex Packages Download Failure

text: I've just installed the Basic version of MikTex 2.9 When i compile a file using pdflatex , it attempts to download the package "miktex- zzdb1-2.9.tar.lzma" . It takes about 2-3 mins . Then it proceeds . ( After failing to download ). I know that Basic version will add packages when needed . But each time i compile , it attemps to download the same package and fails. I'm getting impatient . ( In Linux , same file compiles in 1 sec ) Do i need to configure anything ? My Internet connection is very active The commandline : > downloading http://mirror- > cybernet.lums.edu.pk/pub/ctan/systems/win32/miktex/tm/packages/miktex- > zzdb1-2.9.tar.lzma... pdflatex: A timeout was reached while receiving data > from the server.


title: Increasing dateplot's resolution to seconds

text: These three dots should be spread out over a period of 50 seconds, but for some reason they all appear at 13:00:30.               \documentclass{minimal}     \usepackage{pgfplots}     \usepgfplotslibrary{dateplot}          \begin{document}     \begin{tikzpicture}            \begin{axis}[         date coordinates in=x,         xtick=data,         xticklabel={\hour:\minute:\second},         scaled x ticks=false,          xticklabel style={anchor=east,rotate=45},         xticklabels={13:00:30,           13:00:40,           13:00:50}         ]         \addplot table [col sep=comma,trim cells=true,y=value1,scatter,only marks] {data.csv};       \end{axis}          \end{tikzpicture}     \end{document}      `data.csv` looks like this:               date,                   value1     2013-06-03 13:00:00,       2     2013-06-03 13:00:15,       3     2013-06-03 13:00:50,       14      If you change line 3 to e.g. `13:01:00` it works like a charm. So how do I increase `pgfplot`s "resolution"?


title: Middle height dot like `\vdots`

text: I am trying to make actually a "`\vdot`" instead of `\vdots`. What I am trying to achieve is something like that ![](http://i.imgur.com/AwSg0.jpg) I tried `\vdot`(within `$$`) in the sence of `\cdots` and `\cdot` but it's not recognised as a command. Is there a way to print this dot?


title: Text Wrapping in tikz node doesn't work

text: I would like have a few fixed nodes of size 1cm x 1cm. However, the text inside these nodes should wrap around. I used the following questions help to figure out about wrapping text. However it doesn't seem to work.               \documentclass{article}     \usepackage{tikz}     \begin{document}     \begin{tikzpicture}[node distance=1.75cm,auto   , font=\small]          \tikzstyle{block}=[draw, fill=white, text width=1cm, anchor=west,  minimum height=1cm]           \node [block] [minimum width=1.5cm, minimum height=1.5cm,align=center] (mb0) {MB};      \node [block] [right of=mb0] (dmem0) {dmem};      \node [block] [left of=mb0] (imem0) {imem};      \node [block] [below of=mb0,align=left] (cmemin0) {cmem\_in};      \node [block] [right of=cmemin0] (dma0) {DMA};      \node [block] [right of=dma0] (cmemout0) {cmem\_out};          \end{tikzpicture}     \end{document}      However you can see in the picture that the text flows outside the box instead of wrapping around. ![enter image description here](http://i.stack.imgur.com/FBFa9.png) How do I resolve this situation? Thanks !


title: Row colored with alternatingly with \taburowcolors is pink

text: I'm making a table with `tabu` having alternating row color, but I'm getting a pink row, which is not a color that I defined. The code:               \definecolor{lightb}{RGB}{217,224,250}     \begin{table}         \begin{tabu}{>{\bfseries}lX[l]}             \toprule             \taburowcolors{lightb..white}             Row1 & #1 \\             Row2 & #2 \\         Row3 & #3 \\             \bottomrule         \end{tabu}     \end{table}      And the result: ![output](http://i.stack.imgur.com/KGw4H.jpg)


title: Vertical spacing of framed environment

text: Here is an MWE that shows the problem:               \documentclass{article}     \usepackage{framed}     \setlength{\FrameSep}{3pt}     \setlength{\parindent}{0pt}     \begin{document}     \fbox{Foo}          \fbox{Foo}          \begin{framed}       Foo     \end{framed}     \begin{framed}       Foo     \end{framed}     \end{document}      ![vertical spacing problem](http://i.stack.imgur.com/Puisz.png) * * * The `framed` package puts more spacing around its argument than `\fbox` does. I can reduce the "cell padding" to its default by fixing `\FrameSep` but I don't know how to fix the horizontal spacing outside the frame. The documentation is... sparse. I don't read TeX fluently enough to understand `framed.sty` but it's a fairly small file, so I expect is it easy to do...


title: How to do such a figure in pgf

text: I am new to latex and pgf/tikz. My supervisor asked me to create such a figure below in pgf. I don't know where to begin. Could anybody help/lead me on this please? ![enter image description here](http://i.stack.imgur.com/KdMrD.jpg)


title: Alignment in Rotated Text

text: Does anyone have a workaround to this problem? I am working on my CV, and want to use some rotated text to improve the presentation. Here is a MWE.               \documentclass[10pt]{article}     \usepackage[a4paper,inner=1.5cm, outer=1.5cm, top=2.5cm, bottom=2.5cm]{geometry}          \usepackage[usenames,dvipsnames,svgnames,table]{xcolor}     \usepackage[T1]{fontenc}     \renewcommand{\familydefault}{\sfdefault}          \usepackage{rotating}     \usepackage{calligra}          \usepackage{helvet}     \usepackage{lipsum}     \usepackage[parfill]{parskip}     \usepackage{multicol}     \usepackage{titling}          %Set the format of tables.     \def\colMyBlue{NavyBlue}     \def\colMyGray{Grey}     \def\colMyDarkGray{white!25!black}     \def\colMyCalig{MidnightBlue}          \usepackage[compact]{titlesec}     \titleformat{\section}{\color{\colMyBlue}\Large\sc\bfseries}{\thesection}{}{}     \titleformat{\subsection}{\color{\colMyDarkGray}\sc}{\thesubsection}{}{}     \titlespacing\section{0pt}{0pt plus 0pt minus 0pt}{0pt plus 0pt minus 0pt}     \titlespacing\subsection{0pt}{0pt plus 0pt minus 0pt}{0pt plus 0pt minus 0pt}          \usepackage{lettrine}     \usepackage{graphicx, type1cm, blindtext} %The Lettrine Options.         \setcounter{DefaultLines}{3}         \setlength{\DefaultSlope}{0pt}         \setlength{\DefaultFindent}{2pt}         \setlength{\DefaultNindent}{0pt}         \renewcommand{\DefaultLoversize}{0.05}         \renewcommand{\DefaultLhang}{0}         \renewcommand{\LettrineFontHook}{\color{\colMyDarkGray}\fontfamily{ptm}\fontseries{m}\fontshape{n}}         \renewcommand{\LettrineTextFont}{\color{\colMyDarkGray}\scshape}          \newcommand\myHrule{\vspace{1em}{\color{\colMyGray}\hrule}\vspace{1em}}          \title{Resum\'{e}\normalfont{~/~Curriculum Vit\ae}.}     \author{John Smith}     \renewcommand{\today}{25\textsuperscript{th} December 2012}          %-------------------------------------------     %Create the document.     \begin{document}     \begin{minipage}{0.075\textwidth}         %\vspace{-8em} %TOP         %\vspace{8em}  %BOTTOM         \begin{turn}{90}             \calligra\Huge\color{\colMyCalig}\theauthor         \end{turn}     \end{minipage}     \begin{minipage}{0.925\textwidth}         \begin{flushleft}             \begin{minipage}{0.75\textwidth}                 \begin{flushleft}                     \Huge\color{\colMyDarkGray}\sc\thetitle\\[0.5em]                     \normalsize\color{\colMyDarkGray}\today                 \end{flushleft}             \end{minipage}         \end{flushleft}              \begin{multicols}{2}             \section*{Summary}                 \lettrine{L}{orem} Ipsum \lipsum[2]             \columnbreak             \section*{Personal Details}             \lipsum[2]         \end{multicols}     \end{minipage}          \myHrule          \section*{Education}     \lipsum[2-3]     \section*{Employment History}     \lipsum[2-3]          \end{document}      Which is producing the following output: ![Align Middle](http://i.stack.imgur.com/D9XWu.png) Where I am having trouble is in the alignment of the rotated text, which I would like to either appear like: ![Align Top](http://i.stack.imgur.com/zZ0aX.png) Or bottom aligned: ![Align Bottom](http://i.stack.imgur.com/eC0oh.png) The above desired outputs have been achieved via the \vspace{...} command, (in the negative and positive direction respectively). Whilst this does the job, it is fiddly, is there the equivalent to the raggedleft and raggedright, but in the rotated environment, in the rotated sense?


title: How to force a certain sorting of two .bib entries?

text: So there are two articles I'm citing in a paper, here are their BibTeX entries:               @incollection{ShapiroSI,         Author = {Stewart Shapiro},         Booktitle = {Identity and Modality},         Date-Added = {2014-01-21 01:26:30 +0000},         Date-Modified = {2014-01-21 01:27:50 +0000},         Pages = {109 -- 145},         Publisher = {Oxford University Press},         Title = {Structure and Identity},         Year = {2006}}          @incollection{ShapiroGI,         Author = {Stewart Shapiro},         Booktitle = {Identity and Modality},         Date-Added = {2014-01-21 04:24:06 +0000},         Date-Modified = {2014-01-21 04:24:54 +0000},         Pages = {164 -- 173},         Publisher = {Oxford University Press},         Title = {The Governance of Identity},         Year = {2006}}      Now, the article titled "Structure and Identity" is actually first chronologically, and the article "Governance and Identity" is a response to an article criticizing "Structure and Identity". Given that, I want "Structure and Identity" to be listed as Shapiro 2006a (i.e., be sorted before "Governance and Identity") even though it comes after "Governance and Identity" alphabetically. How can I accomplish this without adding extra information to the reference that gets printed (I don't want to, for instance, specify a month of publication; it's obviously fine to add more information to the .bib entry so long as this information isn't printed in my references section)? **EDIT:** Here is a complete MWE, (you can find `phil_review.bst` here)               \begin{filecontents}{test.bib}          @incollection{ShapiroSI,         Author = {Stewart Shapiro},         Booktitle = {Identity and Modality},         Date-Added = {2014-01-21 01:26:30 +0000},         Date-Modified = {2014-01-21 01:27:50 +0000},         Pages = {109 -- 145},         Publisher = {Oxford University Press},         Title = {Structure and Identity},         Year = {2006}}          @incollection{ShapiroGI,         Author = {Stewart Shapiro},         Booktitle = {Identity and Modality},         Date-Added = {2014-01-21 04:24:06 +0000},         Date-Modified = {2014-01-21 04:24:54 +0000},         Pages = {164 -- 173},         Publisher = {Oxford University Press},         Title = {The Governance of Identity},         Year = {2006}}          \end{filecontents}               \documentclass{article}     \usepackage{natbib}     \setcitestyle{aysep={}}     \bibpunct{(}{)}{,}{a}{}{,}          \begin{document}          Some text \citep{ShapiroSI} and another citation \citep{ShapiroGI}               \bibliographystyle{phil_review}     \bibliography{test}     \end{document}


title: memoir: different pagesizes

text: I am using the `memoir` class and have my textblock set to a value so there are about 11 words on one line. This is great for the mainmatter of the report. But for some other pages (list of acronyms for example) it would be nicer if I could just use the full page width (or at least have smaller margins than in my main text). Same for my bibliography. This way I would save some pages, and since it' s no real text that will be read, it doesn't matter if it has more than 11 words on one line. Of course the textblock size etc are set in the preamble. Is there some way to use a larger/wider textblock on some pages? And if yes how?


title: How to input characters into XeLaTeX

text: How do I input the non-keyboard characters into `TeXShop`? My minimum working example:               \documentclass{book}     % Font Settings     \usepackage{fontspec}     \newfontfamily\myfont{C64 Pro Mono}     \begin{document}     \myfont\huge     Commodore 64 Font\par     \normalfont     Normal Font\par % Book title     \end{document}      The text "Commodore 64 Font" appears in the C64 Pro Mono font like I want, but I can't figure out how to get the other characters (see picture) beyond what I can type on the keyboard. I'm using a Mac, so I can find the codes for the other characters through the Characters app, but I don't know how to get them into `TeXShop`. If I cut-and- paste, then I get strange characters. ![Paste character into TeXShop](http://i.stack.imgur.com/CsUb2.png) I'm assuming there is a way to put the Unicode in, but I can't figure out how. I've seen examples where non-English language is input - CJK, etc. - but `TeXShop` doesn't seem to allow it for me. ![Characters on Mac OS X](http://i.stack.imgur.com/6BiSi.png) **Edited to add:** I've found the glyph codes in Character viewer based on the answer below, so I'm adding a picture here in case anyone else is looking for a way to find the glyph numbers for use with `\XeTexglyph` : ![C64Glyphs](http://i.stack.imgur.com/c3vur.png)


title: Margin note beside heading

text: I would like to insert a hyperlink or two for each heading and I would like to have them inserted into the margin such that they are aligned with the header. I was hoping to create a command which would do this automatically, but this is proving to be harder than I expected. So to begin with, I simply had               \documentclass{article}          \usepackage{marginnote}          \newcommand\Hlink[1]{%         \marginnote{#1}[-1.9\baselineskip]%         \noindent}          \reversemarginpar          \begin{document}          \section{Section 1}          \Hlink{Sec 1 Link}     Lorem Ipsum          \subsection{Subsection 1.1}          \Hlink{Subsec 2 Link}     Lorem Ipsum          \end{document}      Where the `-1.9\baselineskip` was chosen by trial and error, but this no longer works for other headings (e.g. `\subsection`). Is there a command which defines the spacing after a heading? The `\noindent` preserves the un-indented paragraph, but requires that no lines separate `\Hlink` and the start of the text. Though this is a relatively minor issue, surely there is a way around it. This command has the additional problem that if the header is near the end of a page, it will most most likely cause a page break. I have tried inserting `\nobreak` before and after the command, but to no avail. An additional problem with this is that the margin changes sides depending on the page, though in print it probably looks better, in a PDF this may not be desirable (and the links are meant to be hyperlinks). Is it possible to modify `\Hlink` to always use the left side?


title: Unable to use systeme for a system of equations with \ldots and non-numeric coefficients

text: I just found in this answer: http://tex.stackexchange.com/a/35176/4011, that using the `systeme` package ist probably the best way to typeset a system of linear equations in LaTeX. Now I tried to generate a general system of linear equations like in this approach but it doesn't work:               \documentclass{article}          \usepackage[active,tightpage]{preview}     \usepackage{systeme}          \begin{document}          \sysdelim..     \systeme{%     a_11 x_1 + a_12 x_2 + \dots + a_1m x_m = b_1,      a_21 x_1 + a_22 x_2 + \dots + a_2m x_m = b_2,      %%Here I should add some vertical and diagonal dots     a_n1 x_1 + a_n2 x_2 + \dots + a_nm x_m  = b_n     }%          \end{document}      Any idea how to make this work without making the syntax too complex?


title: LaTeX macro for Wikipedia article link

text: I'd like to create a LaTeX macro that will auto-create a link to a Wikipedia page for me.                \usepackage{xstring}      \usepackage{hyperref}           % replaces the whitespace with '%20'      \newcommand{\urlwhitespacereplace}[1]{\StrSubstitute{#1}{ }{\%20}}           % takes an article name, replaces the whitespace, and concatenates to form the full URL       \newcommand{\wikipedialink}[1]{http://en.wikipedia.org/wiki/\urlwhitespacereplace{#1}}           % takes an article name and gives me a link called 'Wikipedia'      \newcommand{\anonymouswikipedialink}[1]{\href{\wikipedialink{#1}}{Wikipedia}}      Then I try calling it like this...                \urlwhitespacereplace{Charlie Bucket} %expected 'Charlie%20Bucket'           \wikipedialink{Charlie Bucket} %expected 'http://en.wikipedia.org/wiki/Charlie%20Bucket'           \namedwikipedialink{Charlie Bucket} %expected 'Wikipedia' (hyperlink)      The first two work, returning exactly what you'd expect. However, when I use the third, I get...               ! TeX capacity exceeded, sorry [input stack size=5000].     \Hy@href {->\hyper@normalise                               \href@ {     l.11 \namedwikipedialink{Charlie Bucket}      Could this have something to do with the the escaped % moving between the macros? Thanks for reading.


title: Can't increase spacing before section title

text: I'm having troubles with increasing spacing between the header and section title. As suggested in `titlesec` package documentation, I added the following line to my preamble: `\titlespacing{\section}{0pt}{4em}{3em}`. If I understand correctly, it should provide 4em space before the section title and 3em space after it. However, it does not: that space before the title is clearly smaller, as you can see: ![image1](http://i.stack.imgur.com/2kqa5.png) I figured one ugly workaround: if I write `\vspace*{0em}` right before the `\section{...}`, the gap increases, however this time it's definitely _bigger_ than 4em: ![image2](http://i.stack.imgur.com/lgi1f.png) The only way that could somehow solve my problem by far is to put there something like `\vspace*{-40em}`, but that's incredibly ugly and I would rather not do that by any means. Google didn't help much. In fact, some results showed that people have issues with _decreasing_ this size, but I didn't find much of a relevant info for my case. The code I used for this example:               \documentclass[a4paper,14pt]{extarticle}     \usepackage[cm-default]{fontspec}     \usepackage{xunicode}     \usepackage{xltxtra}     \usepackage{lipsum}     \usepackage[left=3cm,top=2.5cm,right=1cm,bottom=1.5cm]{geometry}          \usepackage{fancyhdr}     \fancyhead{}     \fancyhead[CH]{header}     \addtolength{\headheight}{\baselineskip}     \fancyfoot{}     \pagestyle{fancy}          \usepackage[compact]{titlesec}     \titleformat{\section}[block]{\filcenter\Large\bfseries}{\thesection}{1ex}{\uppercase}     \titlespacing{\section}{0pt}{4em}{3em}          \begin{document}         %\vspace*{0pt}         \section{Lorem ipsum}         \lipsum[1-3]     \end{document}      I would really appreciate any suggestions!


title: Is it possible to frame text using a graphic border

text: I've got a document where in a few cases I'm using the `framed` package and a single `\begin{framed} <text> \end{framed}` to visually separate text that is something akin to commentry on the main text. So far it works correctly, but I was wondering if there was any way to make it artistically interesting? Is there any package that would do something like a `framed` environment, but using a custom graphic for the frame instead of a simple line? I haven't actually chosen a graphic yet so it shouldn't be a problem if it requires a specific format, or if it only comes with a limited preselection of graphic borders.


title: Trollface package

text: Does anybody know if there is a package containing troll-faces similar to the `simpsons` package, where you just write the `\trollface` to insert a picture of a troll-face (e.g. `\Bart` for the `simpsons` package)?


title: Referencing governmental organization in LaTeX

text: I want to cite a company (governmental organization) as a reference. The organization name is : " _MeteoSwiss_ " under the control of " _Federal Department of Home Affairs FDHA Federal Office of Meteorology and Climatology MeteoSwiss_ " Plz help me how I can create the format in LaTeX.


title: index completely messed up in dtx file

text: I fight with the strange and useless entries of the index in dtx files. It can reproduced with               % \iffalse     %<*driver>     \ProvidesFile{dtxcode.tex}     %</driver>     %     %<*driver>     \documentclass{ltxdoc}     \EnableCrossrefs     \CodelineIndex     \RecordChanges     \listfiles          \begin{document}       \DocInput{dtxcode.tex}       \PrintIndex     \end{document}     %</driver>     % \fi     %%     % \DescribeMacro{\foobar} Prints out foobar     %      % \Finale     \endinput      the result is `foobar= \subitem *+\foobar+, \usage{1}` printed as shown here in the pdf. Anyway: I would like to switch of the index functionality of doc.sty completely and replace it with my own. It tries to add EVERY latex command used in the index. With my current code this is hundrets of entries which have nothing to do with any command defined by the package.


title: Mysterious behaviour of footnotes with hyperref package

text: I have an example, stripped to absolute minimum, showing the mysterious influence of switching `colorlinks=false` to `colorlinks=true` in the `hyperref` package on some footnotes. In this document, a footnote is called from one-column text on the top of the page. It is attached to "Author". `\onecolumngrid` or `{widetext}` give the same results. In case of `colorlinks=false`, everything is working properly; the mail address is active, but is boxed. If the `colorlinks=true` option is chosen, the footnote is not only invisible, but totally non-existent. Its place is filled with ordinary main text. The same is true when the footnote contains plain text, without link. How to solve this problem and get footnotes with coloured links?               \documentclass[A4paper,aps,twocolumn,article,nofootinbib,nobibnotes,twoside,titlepage     ]{revtex4}          \usepackage[pdftex,%pdftitle={},pdfauthor={},     colorlinks=false, pdfborder={1 0 1},     %colorlinks=true, pdfborder={0 0 1},     urlcolor=magenta, linkcolor=green, citecolor=green, raiselinks=false,     hyperfootnotes=false]{hyperref}     \begin{document}          \onecolumngrid     {\Huge wwwwwwwwwwww wwwwwwww wwwwwwwww wwwwwwwwwwww wwwwwwwwwwwww}\par\vspace*{0.5cm}           \large\textsc{Author\footnote{corresponding author; e-mail:\tt~\href      {mailto:ddd@mailer}{mail address}\\}}\\\baselineskip13pt{Afiliation}\par\vspace*{0.5cm}          \normalsize wwwwwwwwwwww wwwwwwwwwwwww wwwwwwwwwww wwwwwwwww wwwwwwwwwwww     wwwwwwwwwwwww wwwwwwwwwww wwwwwwwwwwwwwwwwwwwww wwwwwwwwwwwww wwwwwwwwwww      wwwwwwwwwwwww wwwwwwwwwww wwwwwwwwwwwwwwwwwwwww wwwwwwwwwwwww wwwwwwwwwww      wwwwwwwwwwwww wwwwwwwwwww wwwwwwwwwwwwwwwwwwwww wwwwwwwwwwwww wwwwwwwwwww      wwwwwwwwwwwwwwwwwwwww wwwwwwwwwwwww wwwwwwwwwww      \par\vspace*{1.5cm}          \twocolumngrid          \section{first chapter}     wwwwwwwwwwwww wwwwwwwwwww wwwwwwwwwwwwwwwwwwwww wwwwwwwwwwwww wwwwwwwwwww      wwwwwwwwwwwww wwwwwwwwwww wwwwwwwwwwwwwwwwwwwww wwwwwwwwwwwww wwwwwwwwwww      wwwwwwwwwwwww wwwwwwwwwww wwwwwwwwwwwwwwwwwwwww wwwwwwwwwwwww wwwwwwwwwww      wwwwwwwwwwwww wwwwwwwwwww wwwwwwwwwwwwwwwwwwwww wwwwwwwwwwwww wwwwwwwwwww      wwwwwwwwwwwww wwwwwwwwwww wwwwwwwwwwwwwwwwwwwww wwwwwwwwwwwww wwwwwwwwwww      wwwwwwwwwwwww wwwwwwwwwww wwwwwwwwwwwwwwwwwwwww wwwwwwwwwwwww wwwwwwwwwww      wwwwwwwwwwwww wwwwwwwwwww wwwwwwwwwwwwwwwwwwwww wwwwwwwwwwwww wwwwwwwwwww      wwwwwwwwwwwww wwwwwwwwwww wwwwwwwwwwwwwwwwwwwww wwwwwwwwwwwww wwwwwwwwwww      wwwwwwwwwwwww wwwwwwwwwww wwwwwwwwwwwwwwwwwwwww wwwwwwwwwwwww wwwwwwwwwww      wwwwwwwwwwwww wwwwwwwwwww wwwwwwwwwwwwwwwwwwwww wwwwwwwwwwwww wwwwwwwwwww           wwwwwwwwwwwww wwwwwwwwwww wwwwwwwwwwwwwwwwwwwww wwwwwwwwwwwww wwwwwwwwwww      wwwwwwwwwwwww wwwwwwwwwww wwwwwwwwwwwwwwwwwwwww wwwwwwwwwwwww wwwwwwwwwww      wwwwwwwwwwwww wwwwwwwwwww wwwwwwwwwwwwwwwwwwwww wwwwwwwwwwwww wwwwwwwwwww      wwwwwwwwwwwww wwwwwwwwwww wwwwwwwwwwwwwwwwwwwww wwwwwwwwwwwww wwwwwwwwwww      wwwwwwwwwwwww wwwwwwwwwww wwwwwwwwwwwwwwwwwwwww wwwwwwwwwwwww wwwwwwwwwww      wwwwwwwwwwwww wwwwwwwwwww wwwwwwwwwwwwwwwwwwwww wwwwwwwwwwwww wwwwwwwwwww      wwwwwwwwwwwww wwwwwwwwwww wwwwwwwwwwwwwwwwwwwww wwwwwwwwwwwww wwwwwwwwwww      wwwwwwwwwwwww wwwwwwwwwww wwwwwwwwwwwwwwwwwwwww wwwwwwwwwwwww wwwwwwwwwww      wwwwwwwwwwwww wwwwwwwwwww wwwwwwwwwwwwwwwwwwwww wwwwwwwwwwwww wwwwwwwwwww      wwwwwwwwwwwww wwwwwwwwwww wwwwwwwwwwwwwwwwwwwww wwwwwwwwwwwww wwwwwwwwwww     wwwwwwwwwwwww wwwwwwwwwww wwwwwwwwwwwwwwwwwwwww wwwwwwwwwwwww wwwwwwwwwww      wwwwwwwwwwwww wwwwwwwwwww wwwwwwwwwwwwwwwwwwwww wwwwwwwwwwwww wwwwwwwwwww      wwwwwwwwwwwww wwwwwwwwwww wwwwwwwwwwwwwwwwwwwww wwwwwwwwwwwww wwwwwwwwwww      wwwwwwwwwwwww wwwwwwwwwww wwwwwwwwwwwwwwwwwwwww wwwwwwwwwwwww wwwwwwwwwww      wwwwwwwwwwwww wwwwwwwwwww wwwwwwwwwwwwwwwwwwwww wwwwwwwwwwwww wwwwwwwwwww      wwwwwwwwwwwww wwwwwwwwwww wwwwwwwwwwwwwwwwwwwww wwwwwwwwwwwww wwwwwwwwwww      wwwwwwwwwwwww wwwwwwwwwww wwwwwwwwwwwwwwwwwwwww wwwwwwwwwwwww wwwwwwwwwww      wwwwwwwwwwwww wwwwwwwwwww wwwwwwwwwwwwwwwwwwwww wwwwwwwwwwwww wwwwwwwwwww      wwwwwwwwwwwww wwwwwwwwwww wwwwwwwwwwwwwwwwwwwww wwwwwwwwwwwww wwwwwwwwwww      wwwwwwwwwwwww wwwwwwwwwww wwwwwwwwwwwwwwwwwwwww wwwwwwwwwwwww wwwwwwwwwww           end{document}


title: Extending the width of caption for subfigure

text: The caption of the subfigure follows the size of the figure/table. Is it possible to stretch the width so that it does not follow the size.               \documentclass[11pt,a4paper]{report}     \usepackage{     subfigure,     }          \begin{document}     \begin{figure}[htb]     \small     \centering     \subfigure[\label{fig:sub1}This is the first subfigure.]     {     \centering     \small     \begin{tabular}{l}     First sub figure     \end{tabular}     }     \\     \centering     \small     \subfigure[\label{fig:sub2} Second subfigure.]     {     \centering     \small     \begin{tabular}{l c*{2}{p{0.2cm}}}     $a$& 1 & 1  \\     $b$  & 2& 2 \\     \end{tabular}      }     \\     \centering     \small     \subfigure[\label{fig:sub3} Third subfigure.]     {     \centering     \small     \begin{tabular}{l c*{2}{p{0.2cm}}}     $a$& 1 & 1  \\     $b$  & 2& 2 \\     \end{tabular}     }     \caption{\label{figure} This figure has 3 subfigures.}      \end{figure}     \end{document}      This figure has 3 subfigures.


title: Elsevier style citation for biblatex

text: I'm writing thesis and I'm forced to use citation format same as used Elsevier/ScienceDirect journals: > [#] Authors: Title, Editors: Booktitle, Publisher, volume(number)(year), > pages. ie.: > [`1`] P.K. Chu and L. Li: Characterisation of..., _Materials CHemistry and > Physics_ , 96(2-3)(2006), 253-277. There are `.bst` style files for BibTeX, but I'm using `biblatex`. The one from all Elsevier's `.bst` files is elsart-num, others are available there.   * Is there any `biblatex` style providing same citation style?   * Is there _easy_ way to create such that one or tune existing `biblatex` style?   * Is it possible to create command/macro providing output: "From {AUTHOR}:{Title}[{reference}]." using BibTeX? (in `biblatex` I'm using   `\newcommand\foo[1]{\Citeauthor{#1}: \citetitle{#1} \cite{#1}.}`) Thanks for any idea.


title: Use restricted-shell-escape with TexStudio on TexLive?

text: The package auto-pst-pdf.sty needs shell-escape to run, but shell escape is known to be seriously unsafe. Is there a possibility to tell auto-pst-pdf.sty to use restricted-shell-escape instead? I'm working on Linux Mint KDE 15 and I'm relatively new both to Linux and TeX, so be prepared for stupid questions on you answers.