title: Problem with newenvironment

text: I'm defining new environment and I'm trying to pass to it two arguments:               \newenvironment{ctable}[2]%     {%     \begin{center}%         \begin{tabular}{#1}%     }%     {%         \end{tabular}%      \captionof{table}{#2}%     \end{center}%     }      Problem is with a second parameter (`captionof`), it isn't working. Is there a nice way to make it work? I'm aware that `captionof` could/should be after `\begin{center}` or before it, but I need it to be below the table. In short: first argument defines table, second defines caption of the table. Thank you.


title: Text goes out the margins in paracol

text: I have an issue with the package paracol. I am using it for the Acknowledgements of my Master Thesis. I am writing them in two languages. The problem is that some words go out the margin. This does not happen with \lipsum, that is why I have pasted the actual text.               \setlength{\columnsep}{24pt}     \renewcommand{\baselinestretch}{1}\normalsize          \begin{paracol}{2}          First and foremost I will start with my supervisor, Alessandro. This Thesis is my most important educational achievement so far and I want to dedicate it to him. He has been a marvellous surprise, a positive exception to the rule, the most beautiful one. That is why just a "thanks" to him is definitely not enough. He has literally breathed this Thesis together with me. He supported me throughout my work with his patience and knowledge whilst allowing me the room to work in my own way. I had the possibility to grow in a remarkably professional environment and I attribute this achievement to his encouragement and effort. Being a student means having a significant gap between me and the people I was surrounded with in the department. Alessandro made me always feel like a team member, a colleague. Without him this thesis, too, would not have been completed. One simply could not wish for a better or more friendly supervisor. Without any overstatement, he behaved not just as a supervisor but I see him as a role model, always ready to share his outstanding combination of resources, experience and abilities.          \switchcolumn          Il primo ringraziamento va al mio supervisore, Alessandro. Questa Tesi \`e la mia pi\`u importante conquista accademica e voglio dedicarla a lui. Ecco perch\`e un semplice "grazie" \`e definitivamente non sufficiente. \`E stato una bellissima sorpresa, un'eccezione positiva alla regola, la pi\`u bella. Ha letteralmente respirato questa Tesi insieme a me. Mi ha supportato attraverso il mio lavoro con la sua pazienza e conoscenza, allo stesso tempo dandomi libert\`a di lavorare secondo i miei canoni. Ho avuto la possibilit\`a di lavorare in un ambiente significativamente professionale e attribuisco questo risultato al suo incoraggiamento e sforzo. Essere uno studente significa avere un gap tra me e le persone da cui ero circondato nel dipartimento. Alessandro mi ha dato l'opportunit\`a di sentirmi parte di una squadra, un collega. Senza di lui anche questa Tesi non sarebbe stata completata. Semplicemente non si potrebbe desiderare di avere un miglior e cos\`i amichevole supervisore. Senza esagerazioni, \`e stato per me non solo un supervisore, ma un modello da seguire, sempre pronto a condividere la sua notevole combinazione di risorse, esperienza e abilit\`a.          \end{paracol}


title: Subfigure captions appear too close together

text: Is there anyway to avoid what is observed below with the subfigure captions appearing too close together? I would rather not use the minipage environment as a solution.               \documentclass[]{article}     \usepackage{graphicx}          \usepackage{caption}          \usepackage{subcaption}     \usepackage{subfig}               \begin{document}          \begin{figure}[h!]       \begin{subfigure}[t]{.5\textwidth}       \centering         \includegraphics[width=50mm]{image1.png}         \caption{Test 1 - text filling out page so it is possible to view the how close the text regions get. I will keep going to show that in the second line.}       \end{subfigure}%       \begin{subfigure}[t]{.5\textwidth}       \centering         \includegraphics[width=50mm]{image2.png}         \caption{Test 2 - text filling out page so it is possible to view the how close the text regions get}       \end{subfigure}       \caption{Full caption}     \end{figure}          \end{document}      ![enter image description here](http://i.stack.imgur.com/8riDE.png)


title: How to automatically output page order to print 8 pages of a booklet on a single sheet of Letter paper?

text: Im new to tex so I'm sorry if this is something is actually easy to do but I cannot find a solution. I want to print a signature/booklet of my book by printing two separate parts of the sig on one piece of paper. Here's an example with a 16 page signature                  |  Page 1  A side  |  Page 1  B side  |  |  Page 2  A side  |  Page 2  B side  |        |                  |                  |  |                  |                  |        |   P        A     |     B       O    |  |   L         E    |   F         K    |        |                  |                  |  |                  |                  |        | Page 16  Page 1  |   Page 2 Page 15 |  | Page 12   Page 5 | Page 6   Page 11 |        |                  |                  |  |                  |                  |        |   N        C     |    D       M     |  |   J         G    |    H        I    |        |                  |                  |  |                  |                  |        | Page 14  Page 3  |  Page 4  Page 13 |  | Page 10   Page 7 |  Page 8   Page 9 |           I would then cut the pages in half and put the signatures together. Before I discovered TEX I would use a regular word processing program and output the pdfs by specifying the order by hand like this:               16,1,14,3,2,15,4,13,12,5,10,7,6,11,8,9      which is fine when it's something as small as this but figuring out the order and checking for typos for 40+ pages in each of the 8 signatures in a book takes a long time as you can imagine. What I'm asking is, Is there a way or a package to automatically preform this kind of page ordering when outputting a pdf in TEX? Many thanks in advance. **Edit:** I just wanted to add to add a quick bat code I use to quickly run a pdf through the tex code that Malipivo posted (thanks again!) without having to run each file one by one               ECHO          SET /P UserInput=Please Enter File Name(including path):          copy %UserInput% "c:\path to the tex files folder\Book.pdf"          cd "c:\path to the tex files folder\"          pdflatex order.tex          pdflatex order2.tex          pdflatex order3.tex          pdflatex order4.tex          %This part is optional but it's nice to automatically move the finished file out of the working folder     rename order4.pdf Signature.pdf          move Signature.pdf Signatures\


title: add (a little bit long) comment on the equal sign?

text: There are posts here explained how to Add a comment on top of "equal" and "approximate" symbols , the idea is to use `\stackrel{text}{=}`, however, if the text is a bit long, for example I'd like to right               LHS\stackrel{t=x^n}{=}RHS      then the text over the equal symbol is a bit too long. How could I make it more pretty?


title: Subtable with multiple tabulars inside does not vertically align properly

text: The minimal example below yields weird alignment behavior for me (shown in the attached image). I tried a couple of approaches: using minipages instead of subtables didn't work, using xtabs instead of tabular solved the alignment issue, but inside each xtabular the 13th and later rows were not properly aligned, using multicols also didn't result in the desired result. I also tried adding negative space in the first column, but that doesn't change anything as well. Is this just the completely wrong way to do this? Any help appreciated. ![alignment error](http://i.stack.imgur.com/dLzPH.png)               \documentclass[twocolumn]{report}     \usepackage{booktabs}     \usepackage{subcaption}     \usepackage{lipsum}          \begin{document}     \lipsum[1-4]          \begin{table}       \begin{subtable}[t]{0.45\linewidth}         \begin{tabular}{lr}           \toprule           Test & Count \\           \midrule           Test & 4 \\           Test & 4 \\           Test & 3 \\             Test & 3 \\           \bottomrule         \end{tabular}         \caption{Some caption}         \label{tbl:one}              \vspace{0.7cm}              \begin{tabular}{lr}           \toprule           Test & Count \\           \midrule           Test & 38 \\               Test & 30 \\           Test & 28 \\           Test & 28 \\           Test & 27 \\           Test & 24 \\         \end{tabular}       \end{subtable}\hfill       \begin{subtable}[t]{0.45\linewidth}         \begin{tabular}{lr}           \toprule           Test & Count \\           \midrule           Test & 11 \\           Test & 11 \\           Test & 10 \\           Test & 10 \\           Test & 10 \\           Test & 9 \\           Test & 9 \\           Test & 8 \\           Test & 8 \\           Test & 8 \\           Test & 8 \\           Test & 8 \\           Test & 8 \\           \bottomrule         \end{tabular}         \caption{Some caption}         \label{tbl:two}       \end{subtable}       \caption{Main caption}       \label{tbl:main}     \end{table}     \end{document}


title: pgfplots: problem with "non-smooth" intersection of two lines' ends

text: I have a problem like the one in this question concerning a `tikz` drawing but for a `pgfplots` plot. I want to create a plot that has one region filled without opacity and a neighboring one filled with opacity. The transparent region should be coated by a solid line. I managed to get pretty much what I want with this code:               \documentclass{standalone}          \usepackage{pgfplots}     \pgfplotsset{compat=1.3}          \usepackage{pgfplotstable} % For \pgfplotstableread     \usepgfplotslibrary{external}     \tikzexternalize          \usepackage{filecontents}          \begin{filecontents}{total.dos}     0  0  0  0  0        1  2 -2  2 -2       2  4 -4  4 -4       3  2 -2  2 -2       4  0  0  0  0      5  1 -1  0  0      6  2 -2  0  0      7  1 -1  0  0      8  0  0  0  0      THIS WAS: TOTAL     \end{filecontents}          \pgfplotstableread[comment chars={T}]{total.dos}\total          \begin{document}          % Set a filename for the next tikzpicture.     \tikzsetnextfilename{total_dos}           \begin{tikzpicture}     \begin{axis}[ymax=7, ymin=-7, xlabel={Energy [eV]}, ylabel={Intensity}, legend pos=north east]          \addplot [restrict x to domain=4:8, no markers, draw=red, fill=red, fill opacity=0.3] table [x=0, y expr=\thisrowno{2} - \thisrowno{4}] {\total}; \addlegendentry{$2-4$}          \addplot [restrict x to domain=4:8, no markers, draw=blue, fill=blue, fill opacity=0.3] table [x=0, y expr=\thisrowno{1} - \thisrowno{3}] {\total}; \addlegendentry{$1-3$}          \addplot [restrict x to domain=0:4, no markers, draw=blue , fill=blue] table [x=0, y=3] {\total}; \addlegendentry{$3$}          \addplot [restrict x to domain=0:4, no markers, draw=red, fill=red] table [x=0, y=4] {\total}; \addlegendentry{$4$}          \end{axis}     \end{tikzpicture}     \end{document}      This gives the following picture: ![enter image description here](http://i.stack.imgur.com/N6dlw.png) The problem is the intersections of the coating lines' ends (those that come from the `draw=<color>` options). They are not smooth, but look like this: ![enter image description here](http://i.stack.imgur.com/u1QNE.png) My question: How can I get these things smooth? Side note: I know that using the option `draw=none` gives the behaviour I want, but then I have no line surrounding the transparent region. **Edit:** I have stumbled upon something interesting: Adobe Acrobat X and SumatraPDF seem to handle the plots slightly differently. Acrobat cuts off the parts of the rightmost line endings that loom beyond the plotting domain (I don't know a better word for it) while SumatraPDF doesn't. Interestingly, this doesn't happen for the line endings on the left or in the middle (see picture above, which was made with Acrobat). ![enter image description here](http://i.stack.imgur.com/pKlIC.png) I'm not sure why this is so and whether it affects the possible solutions to my problems. Maybe this is an issue worth adressing in a different question? Or is this a mere PDF viewer question which shouldn't be asked here?


title: Tikz fit-library vs fill (overlaying nested node colors)

text: I am trying to figure out the best way of nesting `tikz` nodes having a different background color. I would like the "inner" nodes to "win" concerning the background color. Currently the "outer" node ("fit") always "wins". Is there maybe a better way to aproach this? A simple example: Nesting an inner node with background color red within an outer node with background color blue:               \documentclass{minimal}     \usepackage{tikz}     \usetikzlibrary{fit}     \begin{document}     % \begin{tikzpicture}%     %   \node (inner) [draw] {foo-inner};%     %   \node (outer) [draw,fit=(inner)] {};%     % \end{tikzpicture}%     % \begin{tikzpicture}%     %   \node (inner) [draw,fill=red] {foo-inner};%     %   \node (outer) [draw,fit=(inner)] {};%     % \end{tikzpicture}%     \begin{tikzpicture}%       \node (inner) [draw,fill=red] {foo-inner};%       \node (outer) [draw,fill=blue,fit=(inner)] {};%     \end{tikzpicture}%     \end{document}%


title: Adjusting \underbrace "cursor" at horizontal axis

text: Given is following formula:               \[     \begin{split}     \sum\limits_{k=-n}^k c_ke^{ikx}=\frac{a_0}{2}+&\underbrace{\sum\limits_{k=1}^n\left(c_ke^{ikx}+c_{-k}e^{-ikx}\right)}\\     &=\cos(kx)(c_n+c_{-n})+i\sin(kx)(c_k-c_{-k})\\     &=a_k\cos(kx)+b_k\sin(kx)     \end{split}     \]      ![rendered math formula](http://i.stack.imgur.com/po23R.png) The underbrace-command points to the next line, but it should point to the equal sign at the beginning of this line. Is it possible to either move the "cursor" of the underbrace-command to the equal sign or to move the equal sign to the underbrace-"cursor"?


title: How should I add visual indications of excerpted sections?

text: > **Possible Duplicate:**   >  Putting a bar in the margin   >  How to make continuous (but breakable) vertical rule along left side of > paragraph? I'm planning on including large excerpts of publications in my thesis. I would like to highlight these in some way that would make visually clear the distinction between these sections and my newly written thesis text. These excerpts are multi-page fully formatted sections replete with typeset math and figures. My thesis text references equations and figures in these excerpts and both share the same bibliography. What I'd like to do is to place a vertical line in the margin beside these excerpts. Is there any way to write an environment to do that in latex?


title: How to make continuous (but breakable) vertical rule along left side of paragraph?

text: I'm looking for a way in Plain TeX to make a continuous vertical rule along the left side of a paragraph (or arbitrary block of text), such that it observes normal page-break rules. I started with the following, which looks exactly how I want, except of course it has the undesirable side-effect of preventing page breaks for large runs of text, since it uses `\vbox`:               % Definition     \def\codeblock#1{%       \hbox{%         {\vrule width .6pt}%         \hskip 1em%         \vbox{\tt #1}%       }%     }          % Example     \codeblock{%     \hbox{void main(int argc, char *argv[]) \char123}%     \hbox{{\ }{\ }printf("Hello, world!{\char92}n");}%     \hbox{\char125}%     }      As a workaround, I'm currently resorting to breaking things into separate lines and a series of kludged non-continous-but-overlapping vertical rule segments:               % Definition     \def\codeline#1{%       \hbox{%         \vrule width .6pt height .85em depth .46em%         \hskip 1em%         \tt #1%       }%       \vskip -.11em%     }          % Example     \codeline{void main(int argc, char *argv[]) \char123}     \codeline{{\ }{\ }printf("Hello, world!{\char92}n");}     \codeline{\char125}      In a perfect world, I'd like to simply pass an arbitrary block of text to a macro and have it apply normal pagination rules to the block of text, while at the same time making a vertical rule down the left. I don't have much experience with TeX but I suspect the answer is that it's not trivial? While typing this question, a similar question appeared in the margin. I will definitely give that a try — and it looks really powerful and well thought out — but it also seems quite heavyweight for something that I would think ought to be reasonably straightforward. Also, not that I have anything against LaTeX, but I'd prefer to use a solution as close to Plain TeX as possible, so that I can have some hope of understanding it.


title: Make font size of numerator the same as denominator?

text: I have a simple question, I would like to make the font-size of the numerator the same as that of my denominator. For example, something like this:               e^{-j \frac{2 \pi n k}{K_F}}       gives me an ugly looking equation..., where the $K_F$ looks way bigger than the stuff on the top. Is there a way to make the top and bottom look 'nicer' together? Thanks.


title: Bold math inside of absolute value gives error

text: This code               \begin{equation}       \label{eq:test}       | \mathbf{v} |     \end{equation}      gives me the error:               ERROR: LaTeX Error: \mathbf allowed only in math mode.          --- TeX said ---          See the LaTeX manual or LaTeX Companion for explanation.     Type  H <return>  for immediate help.      ...                                                        l.430   | \mathbf                      {v} |      My question is simply why? Is not **equation** math mode??


title: LyX: Harvard Referencing using Natbib

text: I'm very new to TEX, i've been using LyX as a stepping stone. It's been going pretty well up until now. I've successfully managed to create citations and link them to the References I have created in the bibliography. However, I need to use the Harvard referencing system (author-date). I've switched to natbib style in document > settings > Bibliography and set it to author-year, however I'm unsure what format I should be entering for references so that it picks up the author & date. Any help would be much appreciated.


title: Bibtex reverse numbering

text: For my CV, I would like to reverse number publications (i.e., starting from the total number of publications all the way down to 1). Is this possible with plain LaTeX and BibTeX? This question is similar to that one here, except that in the other thread people used biblatex, which I would like to avoid because I am looking for a simple solution that requires only minor changes. http://tex.stackexchange.com/a/22770/15319


title: Generate a "blank" font using the metrics of another font

text: This question is in relation to one of my previous questions: How to replace a large block of text by an empty block of the same size? Is it possible to generate a "blank" font using the metrics of another font in LaTeX? Can this be done "on the fly", during the typesetting of the document?


title: negative entail symbol

text: I am looking for the **negative entail symbol** in latex where the positive is presented by `\models`. I tried `\nmodels` but it doesn't work (I want to have it in my beamer presentation file).


title: PGFPlots - shift marks

text: I'm plotting two lines, more or less on top of each other. This is fine when you can see the colors, but not on a black and white print. I have added marks, but due to the data points being take with the same interval the marks are also on top of each other. Is there a way to shift the markers of each added plot, so they are NOT on top on each other.


title: How to merge columns in a table?

text: I have this table, but wanted to format the first row. I like to match the two columns of first row, and last two columns of the same first row. Any suggestion on how to do that?               \begin{table}[!h]      \caption{Comparison of percentages.}     \begin{tabular}{lclclclclc}     \hline     \hline      Mode &  Var  &  Cum\\     \hline     {}       & EF   & CHF    & EF2   & CHF2\\     1   &  17.5 & 19.1   & 17.5  & 19.1\\     2   &  11.8 & 12.7   & 29.3  &  31.9\\     3   &  6.6  &  5.6         & 35.9    &  37.4\\     \hline     \end{tabular}     \end{table}


title: How to draw a slash into the line?

text: I wish to add a slash into the line as described in the following picture. ![enter image description here](http://i.stack.imgur.com/fWCpc.png) Here is my code,however, I don't know how to add the slash, may someone help me?:               \documentclass[tikz]{standalone}     \usetikzlibrary{         shapes.geometric,         positioning,         fit,         calc     }     \usepackage{tikz}     \begin{document}     \tikzset{       my box/.style = {draw, minimum width = 2em, minimum height=1em},     }     \begin{tikzpicture}[node distance=5mm]          \node[draw, diamond](condition){};     \node[my box,below= of condition](ru){};     \draw[->](condition)--(ru);          \end{tikzpicture}     \end{document}


title: Hyperref mouse over action on links

text: Using `hyperref` package, is it possible to have links that change their color when you hover over with the mouse similar to the HTML link behavior in browsers?


title: Automatically scale big and small graphics for beamer presentations

text: For the next few semesters I'll be making a lot of beamer presentations with a lot slides that are just a frame title and a figure. I am trying to make a command to make a lot faster to code and easier to read. Here is my first attempt:               \usepackage{graphicx}          \newcommand {\framedgraphic}[2] {     \begin{frame}{#1}         \begin{figure}             \begin{center}                 \includegraphics{#2}             \end{center}         \end{figure}     \end{frame}     }      In this past I've have scaled manually with something like               \includegraphics[height=0.7\textheight]{table3a.png}      Through trial and error I have to find the right scaling to make the figure fill the slide. Is there a way I can automatically do this scaling without adding more arguments to my command? Including covering both wide and tall figures? Thanks! BTW, here I'm using `graphicx` but I'm not really wed to it. I am just getting started in TeX and would love to learn any new ways of thinking of this problem.


title: How to black out a figure for confidential reasons?

text: I have a document, that contains critical parts. Now two documents should be generated. One version that is "balcked out" and one version that is all readable. For pure text I found some hints using the `soul` package. See http://latex- community.org/forum/viewtopic.php?f=44&t=18190 Now I have the problem, that there are also some figures (drawn with tikz) that should be hidden. Is there a way to handle this? Edit: I got two very good answers how to do it. Unfortunately I use the externalization library of tikz. The criticat pictures I of course do not export to avoid problems with the file numbers. But the on compiling the other pictures (after one in a `Btikzpicture` or a `ctikzpicture`) have problems to compile as latex finds the `\tikzpicture` but it seems not to see the `\enttikzpicture` and therefor runs into trouble. Have you here also a solution. I tried using `\NewEnviron` but this did not solve the problem as I think. Example:               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{external}     \tikzexternalize     \usepackage{adjustbox}     \newif\ifblackOut     % \blackOuttrue     \ifblackOut     \newenvironment{ctikzpicture}         {\tikzset{external/export next=false}         \adjustbox{precode=\phantom,bgcolor=black!10}         \bgroup\tikzpicture}         {\endtikzpicture\egroup}     \else     \newenvironment{ctikzpicture}         {\tikzset{external/export next=false}         \tikzpicture}         {\endtikzpicture}     \fi     \begin{document}     \begin{figure}[htbp]     \centering     \begin{tikzpicture}     \draw (0,0) circle (1cm);     \end{tikzpicture}     \end{figure}     %      \begin{figure}[htbp]     \centering     \begin{ctikzpicture}     \draw (0,0) rectangle (1,1);     \end{ctikzpicture}     \caption{}     \end{figure}     % Uncomment next lines for other error     % \begin{figure}[htbp]     % \centering     % \begin{tikzpicture}     % \draw (0,0) circle (2cm);     % \end{tikzpicture}     % \end{figure}     \end{document}


title: Precise back-reference target with hyperref and backref

text: The `backref` option and its variants in the `hyperref` package allow to include back-references in the bibliography to the _page(s)_ or _section(s)_ in which a given reference was cited. The target of the back-reference is the _beginning_ of the page (or of the section, depending on the option) in which the citation occurs (see backref manual). How can I get the back-reference links to point precisely at the line in which the citation key occurs in the text? Apparently, someone had a related issue with "runners" on the side of the page, but the solution hinges on the definition of the runners themselves. I am looking to obtain, in the back-reference, the same behavior of the link from in-text citation to reference (i.e., point to the line of the reference in question), just backwards. Any suggestion will be appreciated. **Edit** Below is a minimal working example: the in-text citations are evenly spaced in the page and the back-reference commands in the bibliography should point to them, instead to the top of page.               \documentclass[10pt,a4paper]{article}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}             \usepackage[pagebackref]{hyperref}             \begin{document}     Top of page     \vfill     \cite{Cleveland2007}     \vfill     \cite{Spence1999}          \newpage          \begin{thebibliography}{2}     \providecommand{\natexlab}[1]{#1}     \providecommand{\url}[1]{\texttt{#1}}     \expandafter\ifx\csname urlstyle\endcsname\relax       \providecommand{\doi}[1]{doi: #1}\else       \providecommand{\doi}{doi: \begingroup \urlstyle{rm}\Url}\fi          \bibitem[Cleveland(1984)]{Cleveland2007}     WS~Cleveland.     \newblock {Graphical perception: Theory, experimentation, and application to       the development of graphical methods}.     \newblock \emph{Journal of the American Statistical Association}, 79\penalty0       (387):\penalty0 531--554, 1984.          \bibitem[Spence et~al.(1999)Spence, Kutlesa, and Rose]{Spence1999}     I.~Spence, N.~Kutlesa, and D.L. Rose.     \newblock {Using color to code quantity in spatial analysis}.     \newblock \emph{Journal of Experimental Psychology: Applied}, 5:\penalty0 393,       1999.          \end{thebibliography}     \end{document}      I compile with Pdflatex, twice.


title: Nomenclature sorting: Sort by Number

text: How would I use the Nomenclature to display a list of symbols sorted by the page number rather than symbol letter. The code below was used to generate this List of Notations. However, I am trying to figure out how to sort by page number instead. ![enter image description here](http://i.stack.imgur.com/uQcCv.jpg) ===               \documentclass[11pt,oneside,a4paper,onecolumn]{article}       \usepackage[left=1.5in,top=1.25in,bottom=1.25in,right=1.25in,papersize={8.50in,11.00in}]{geometry} % Sets the proper margins.     \usepackage{amsmath, amssymb, amsthm,mathtools} % AMS packages     \usepackage{hyperref}     \usepackage{appendix}     \usepackage[refpage]{nomencl}     \renewcommand{\nomname}{List of Notations}     \renewcommand*{\pagedeclaration}[1]{\unskip\dotfill\hyperpage{#1}}     \makenomenclature          \usepackage{makeidx}     \makeindex          \begin{document}          %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     %%% Begin List of Notation Page     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \phantomsection % Create a phantom section such that the 'List of Notation' may be properly added to the table of contents.     \addcontentsline{toc}{section}{List of Notation}      \printnomenclature[1.5cm] % This command automatically generates the list of tables based on tables in the document.     \pagebreak[4]     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     %%% End List of Notation Page     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%                    \begin{equation*}     F=ma     \end{equation*}          $\nomenclature{$F$}{Force}     $\nomenclature{$a$}{Acceleration}          \pagebreak[4]          \begin{equation*}     E=MC^2     \end{equation*}          $\nomenclature{$E$}{Energy}     $\nomenclature{$M$}{Mass}     $\nomenclature{$c$}{Speed of Light}          \end{document}


title: Exam class: aligning outline marks within solution flush right

text: I would like to get the marks e.g. [1/2] within the solution to appear flush right in the same way as the overall mark for the question.               \documentclass[11pt,answers]{exam}     \RequirePackage{amssymb, amsfonts, amsmath, latexsym, verbatim, xspace, setspace, amsthm}     \RequirePackage{tikz, pgflibraryplotmarks, esint}          \begin{document}           \begin{questions}     \pointsdroppedatright     \bracketedpoints          \question[1]     Differentiate      \begin{equation*}     f(x)=x^3-2x     \end{equation*}     and evaluate at $x=0$ \droppoints          \begin{solution}     \begin{gather*}     f^{\prime}(x)=3x^2-2 \text{ [$\frac{1}{2}$]} \\     f^{\prime}(0)=-2 \text{ [$\frac{1}{2}$]}     \end{gather*}     \end{solution}          \end{questions}          \end{document}      ![enter image description here](http://i.stack.imgur.com/BYi4J.png) Thanks!


title: Center cell borders when using \multicolumn

text: MWE:               \documentclass{article}          \begin{document}              \begin{tabular}{|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|}             \hline             &\multicolumn{2}{|c|}{1} & \multicolumn{2}{|c|}{2} & \multicolumn{2}{|c|}{3} & \multicolumn{2}{|c|}{4} & \multicolumn{2}{|c|}{5} & \multicolumn{2}{|c|}{6} & \multicolumn{2}{|c|}{7} & \multicolumn{2}{|c|}{8}\\             \hline             \(f(x)\)&a&\multicolumn{2}{|c|}{b}&\multicolumn{2}{|c|}{c}&\multicolumn{2}{|c|}{d}&\multicolumn{2}{|c|}{e}&\multicolumn{2}{|c|}{f}&\multicolumn{2}{|c|}{g}&\multicolumn{2}{|c|}{h}&i\\             \hline             a&b&c&d&e&f&g&h&j&i&k&l&m&n&o&p&q\\             \hline         \end{tabular}          \end{document}      Note that the cell borders are perfectly centered: ![Screenshot of the MWE above](http://i.stack.imgur.com/OZM7B.png) Unfortunately, inserting (longer) formulas will destroy the layout:               % excerpt     &\multicolumn{2}{|c|}{\(-\frac{5}{4}\pi - \frac{1}{2}\)} & \multicolumn{2}{|c|}{\(-\frac{5}{4}\pi - \frac{1}{2}\)} &      ![Screenshot of the MWE above with longer formulas added](http://i.stack.imgur.com/huwzt.png) Questions: 1.) Is there any better way to achieve my tabular layout? 2.) If not, how can I resolve the layout problem? (3.) Removing the last row (a - q) also causes an incorrect layout. If this behavior can be corrected in any (easy) way (maybe as a side effect of choosing another way), I'd be glad to hear about it. Otherwise, I will probably ask another question.) * * * I've drawn a quick sketch in Word, maybe it helps to understand my problem: ![Sketch](http://i.stack.imgur.com/zHu34.png) It's not perfect, but you should get the very idea.


title: Difficulty reproducing LaTeX codes from the TUG India website

text: I am new to LaTeX. I downloaded all files listed in the TUG India website. I tried to `pdflatex` their code with no success. I wrote to them twice and received no response. Could someone help me `pdflatex` these files to reproduce their beautiful 17 chapters ?


title: Protect footnotemarks from selection in pdf

text: Inspired by this question i used `accsupp` to protect the headers of my pdf from being copied which works nicely so far. I tried to do the same thing for the footnotemarks which hasn't worked so far. Screenshot: ![enter image description here](http://i.stack.imgur.com/UcUQ4.jpg) I tried using:               \documentclass{article}     \usepackage{accsupp}     \renewcommand{\thefootnote}{%       \BeginAccSupp{ActualText={}}\arabic{footnote}\EndAccSupp{}%     }     \begin{document}     This is a test\footnote{This is a footnote}     \end{document}      An ideas? The actual text of the footnote should stay selectable.


title: Unwanted right indent in document

text: Super noob here, so please forgive any blunders! :) My problem is that in my document (example below), the paragraph starting from the second dingbat is getting indented automatically. I don't want this; I want all the left edges aligned perfectly. How can this be done?               \documentclass{article}     \usepackage{amsmath}     \usepackage{pifont} %For the very nice dingbats          \begin{document}          \section*{Elementary Algebra}          \ding{234} One amusing way to look at \textbf{irrational numbers} is to say that they don't behave rationally. The point is, given their non-terminating, non-repeating decimals, there's no `sane' way to work with them!          \ding{234} Here are some elementary but easily forgotten (and highly useful) algebraic identities:          \begin{itemize}              \item $a^3 - b^3 = (a-b)(a^2+ab+b^2)$          \end{itemize}          \end{document}


title: Making cut-out fliers in LaTeX

text: I'm creating fliers to hand out, but I don't want to use a full sheet of paper for each flier... I'd like to use my existing .pdf, shrink it down, and perhaps get 4-8 copies of it per page so I can cut them out to save paper. Are there any existing classes or ideas in this regard? Any help is appreciated.


title: $\vdash$ symbol with newtxmath package

text: I'm using the packages `newtxtext` and `newtxmath`.               \documentclass[12pt,a4paper]{report}     \usepackage{amssymb}     \usepackage{newtxtext}     \usepackage[noamssymbols]{newtxmath}          \begin{document}     $ \vdash \nvdash \vDash\nvDash$     \end{document}      This is what I got. ![enter image description here](http://i.stack.imgur.com/KQF4S.png) I want the `$\vdash$` symbol look the same as the others. What should I do?


title: No comma between location and year, year in parentheses in case of a journal

text: question: I need the following entry in the bibliography > Doe John, Title of Book, Location Year. or, if it's an article > Doe John, Title of Article, Journal Volume (Year) pages I have the following code:               \renewbibmacro*{publisher+location+date}{%             \iffieldundef{location}{%                 \printtext[parens]{%                     \printlist{year}\addspace%                     }}{%                 \printfield{location}\addspace%                 \printlist{year}\addspace%             }     }      however the output for this is:   1. Book: > Doe John, Title of Book, ( ).   1. Article: > Doe John, Title of Article Volume (Year). However, the book should be displayed as follows: > Doe John, Title of book, Location Year. Any help appreciated. MWE (complete):               \documentclass[10pt,twoside,headings=normal,headsepline=true,numbers=noenddot]{scrbook}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{helvet}     \usepackage{nomencl}     \usepackage{shorttoc}     \usepackage{tocloft}     \usepackage{hyperref}     \usepackage[left=4.5cm,right=4.5cm,top=5.5cm,bottom=5.5cm]{geometry}     \usepackage[backend=biber,sorting=nty,style=verbose,isbn=false,url=false,publisher=false]{biblatex}     \usepackage{nomencl}     \usepackage{makeidx}     \usepackage{filecontents}     \begin{filecontents}{MWE.bib}     @INCOLLECTION{Doe1999,       author = {John Doe},       title = {Title of Book},       publisher = {Kluwer Law International},       year = {1999},       volume = {25},       series = {Series},       shortauthor = {Doe},       shorttitle = {Title of Book}     }     \end{filecontents}     \renewcommand\thechapter{\arabic{chapter}.}     \renewcommand\thesection{§ \arabic{section}}     \renewcommand\thesubsection{\Roman{subsection}.}     \renewcommand\thesubsubsection{\arabic{subsubsection}.}     \renewcommand\theparagraph{\alph{paragraph})}     \renewcommand\thesubparagraph{\alph{paragraph}\alph{subparagraph})}     \newcommand\thesubsubparagraph{\alph{paragraph}\alph{subparagraph}\alph{subsubparagraph})}     \renewcommand{\mkbibnamelast}[1]{\textsc{#1}}     \renewcommand{\mkbibnamefirst}[1]{\textsc{#1}}     \renewcommand{\mkbibnameprefix}[1]{\textsc{#1}}     \renewcommand{\mkbibnameaffix}[1]{\textsc{#1}}     \renewcommand*{\revsdnamepunct}{}     \defbibheading{lit}{\chapter*{Lit}}     \defbibheading{mat}{\chapter*{Mat}}     \DeclareFieldFormat[article,inbook,incollection,inproceedings,patent,thesis,unpublished,shorttitle,journal]{title}{#1}     \renewbibmacro*{finentry}{                     \ifnameundef{shortauthor}                     {                         \iffieldundef{shorttitle}{%                         \adddot}{                         \printtext[parens]{%                         {cit.}\addspace                         \printfield{shorttitle}%                         }\adddot                         }                     }                     {                         \iffieldundef{shorttitle}                         {                             \printtext[parens]{%                             {cit.}\addspace                             \printnames{shortauthor}%                             }\adddot                         }                         {                             \printtext[parens]{%                             {cit.}\addspace                             \printnames{shortauthor}\addcomma\addspace                             \printfield{shorttitle}%                             }\adddot                         }                     }                     }\finentry     \renewbibmacro*{publisher+location+date}{%             \iffieldundef{location}{%                 \printtext[parens]{%                     \printlist{year}\addspace%                     }}{%                 \printlist{location}\addspace%                 \printlist{year}\addspace%             }     }     \AtEveryBibitem{\clearfield{publisher}}     \renewcommand{\newunitpunct}{\addcomma\addspace}     \ifpunct{\renewcommand*{\nameyeardelim}{\addspace}}{}     \addbibresource{MWE.bib}     \let\abk\nomenclature%     \makenomenclature     \makeindex     \dedication{\hfill You really reading this shit?}     \author{XYZ}     \title{XYZ}     \setlength{\parindent}{0in}     \setlength\overfullrule{50pt}     \begin{document}     \frontmatter     \pagenumbering{Roman}     \maketitle     \dedication     \thispagestyle{empty}     \renewcommand*{\dictumauthorformat}[1]{#1}     \renewcommand*{\dictumrule}{}     \dictum[Winston Churchill]{If you're going through hell, keep going.}     \newpage     \addcontentsline{ubs}{chapter}{Preface}     \chapter*{Vorwort}     \input{Preface}     \newpage     \addcontentsline{ubs}{chapter}{Overview}     \shorttoc{Overview}{1}     \newpage     \addcontentsline{ubs}{chapter}{ToC}     \tableofcontents     \addcontentsline{ubs}{chapter}{Nomenclature}     \printnomenclature     \printbibliography[title={Lit},heading=lit,notkeyword=mat]     \printbibliography[title={Mat},heading=mat,keyword=mat]     \mainmatter     Lorem ipsum\footcite[p. 1]{Doe1999}.     \backmatter     \addcontentsline{ubs}{chapter}{Index}     \printindex     \end{document}      Also, I would be grateful if someone could advice on how to use only the text in the (cit. shortauthor, shorttitle) in the actual footnote..


title: seealso package don't run with my index command

text: I built (with your help in this conversation) a command to have an index with historical dates & events, index in time order like a timeline. In this artisanal command, I have firstly only dates in chronological order with the page numbers, and secondly in alphabetic order: events items. Now, I would like to use the `seealso` package to see appear page numbers near events too. Apparently, it doesn't work. My command is detailed without `seealso` in this complete code. I use it in my text like that, for exemple ( _voir_ = _see_ in french) :   * french first abolition of slavery : `\qd[abolition de l'esclavage]{1}{7}{9}{4}{2}{4}`   * it run in the main text : abolition de l'esclavage    * in the index, first : 4 février 1794, 1   * in the index in the A lettre : abolition de l'esclavage, _voir_ le 4 février 1794 I'm using `xelatex`, `xindy` and this config with `seealso` :               % !TEX encoding = UTF-8 Unicode     % !TEX TS-program = arara     \documentclass{scrbook}     \usepackage[frenchb]{babel}      \usepackage[quiet]{fontspec}                         \usepackage[automark,headsepline]{scrpage2}              \usepackage[babel,french=guillemets*]{csquotes}          \usepackage{etoolbox}     \usepackage{ifthen}     \usepackage{ifmtarg}     \usepackage{fp}     \usepackage{siunitx}     \usepackage{filecontents}          \usepackage{seealso}          \usepackage[dayofweek]{datetime}     \usepackage[xindy={language=french, codepage=utf8}, style=altlist]{glossaries}     \usepackage[xindy, splitindex]{imakeidx}     \usepackage[itemlayout=singlepar]{idxlayout}          \setmainfont[Mapping=tex-text, Ligatures={Common, Rare}, Numbers={OldStyle}]{Adobe Garamond Pro}     \addtokomafont{disposition}{\normalfont}     \makeatletter\newcommand*{\sivide}{\@ifmtarg}\makeatother     \makeatletter\newcommand*{\sistar}{\@ifstar}\makeatother      \def\makeampletter{\catcode`\&11\relax}                  \def\makeampcolsep{\catcode`\&4\relax}           % datetime     \renewcommand{\fmtord}[1]{\up{#1}}%      \makeatletter\patchcmd{\@ordinalMfrench}{eme}{ème}{}{}\makeatother     %\fmtcountsetoptions{abbrv}%           \makeglossaries     \def\xindylangopt{-M lang/french/utf8-lang -M style1.xdy}     \indexsetup{othercode=\small}     \makeindex[name=can, title=Index des dates, options=\xindylangopt, columnseprule=true]      \sisetup{round-mode=places, round-precision=1} %      & some other commands I'll detail in this complete code. So, I show you the clean index result without using `seealso` here : clean And, using the package `seealso` & fonction! (zoom on my events, the problem) : ![seealso](http://i.stack.imgur.com/XobIw.png) And, I show you too a detail of one of .log blocking :               (./Dateindex-can.ind     ! You can't use `macro parameter character #' in math mode.     <recently read> ##          l.71 ...rdinalnum {11}~siècle avant notre ère}{}          ?      ! Missing } inserted.     <inserted text>                      }     l.71 ...rdinalnum {11}~siècle avant notre ère}{}          ?      ! Argument of \@firstoftwo has an extra }.     <inserted text>                      \par      l.71 ...rdinalnum {11}~siècle avant notre ère}{}          ?      Runaway argument?     ! Paragraph ended before \@firstoftwo was complete.     <to be read again>                     \par      l.71 ...rdinalnum {11}~siècle avant notre ère}{}          ?      ! Extra }, or forgotten \endgroup.     <recently read> }      Sorry, it like a debugging, but I stuck. I suspect that it may be an incompatibility between my command `\qd` & the running way of `seealso` package, an argument problem. Take a look ! Thank you for your help.


title: Problem with the dropping package?

text: I have a problem using the `dropping` package. It says that the file `dropping.sty` is not found. What should I do to solve this problem? Is there another package, instead of the `dropping` one, performs the same task as the `dropping` package?


title: Multiple bibliographies with BibTeX

text: I have a document with a bibliography and would like to print part of the bibliography twice. My *.tex file is:               \documentclass{article}     \begin{document}     Some Text...~\cite{doc1}          Here I would like to print some of bibliography, with possibly the same style as the normal bibliography.     Let's say I'd like to show here doc1 and doc2, i.e. some cited and some uncited ones.          Some more text...     \bibliography{texFiles/bibliography}     \end{document}      My *.bib file is               @misc{doc1,         url = "http://tex.stackexchange.com/questions",     }     @misc{doc2,         url = "http://tex.stackexchange.com/tags",     }     @misc{doc3,         url = "http://tex.stackexchange.com/users",     }      How can I do that? I tried to have a separate *.bib file with all the files that I like to print, but then I need to define `\nocite{*}` and all other documents get printed in the normal bibliography as well. Note that I cannot use `biblatex`, since I have a *.bst file I have to follow.


title: Changing font and using amsmath

text: I've read several threads about this, but none solves my problem. When I try to change font, it won't compile. Is there an other way to change font, that will still allow me to write stuff like: `$\mu$` ? Minimal working example:               \documentclass[10pt,twocolumn]{article}      \usepackage[swedish,english]{babel}      \usepackage[applemac]{inputenc} %Endast för mac. Om PC, ta bort.     \usepackage{graphicx}     \usepackage{amsmath}     \usepackage{appendix}     \setcounter{secnumdepth}{1}     \usepackage[a4paper, top=1.5cm, bottom=1.5cm, left=1.5cm, right=1.5cm]{geometry}     \usepackage{todonotes}     \usepackage[super]{nth}     \usepackage{sectsty}     \usepackage{csquotes} %Engelsk version.     \MakeOuterQuote{"}     \sectionfont{\fontsize{14}{1}\selectfont}     \subsectionfont{\noindent\fontsize{10}{1}\selectfont\normalfont\textit}     \setlength{\parindent}{0.5cm}     \setlength{\columnsep}{0.6cm}     \usepackage[MnSymbol]{mathspec}     \setallmainfonts{Times New Roman}     \newcommand{\hs}{\,\hspace{0.8mm}}     \usepackage{caption}     \DeclareCaptionFormat{myformat}{\fontsize{9}{1}\selectfont#1#2#3}     \captionsetup{format=myformat}     \begin{document}     This is a greek letter: $\pi$     \end{document}


title: Using one group separator for integer part and another for decimal part (siunitx)

text: I thought I was able to do something like this before, but I can't find my solution. I would like to format my large numbers as follows:                12,504.3124 2359 3      I know I can use `siunitx` to partially set this up, but I'm not getting the results I want:               \documentclass{article}     \usepackage{siunitx}          \newcommand\aenumA[1][4]{%%       \num[group-separator={,},            group-digits=integer,            ]}          \newcommand\aenumB[1][4]{%%       \num[group-digits=decimal,            ]}          \pagestyle{empty}     \begin{document}            \aenumA{12504.312423593}            \aenumB{12504.312423593}          \end{document}      I would like a hybrid solution (commas in the integer part and spaces in the decimal). I would actually also like to be able to group differently between the two: every three digits in the integer part, every four digits in the decimal part. Is there a straight-forward way to do this with `siunitx`? Or, do I need to split the number at the decimal and treat the two parts separately and then _glue_ them back together?


title: Latex - set row height for a part of a tabular

text: I am trying to write a table. The table has 3 parts: header, body, footer. The rows of the body must have a fixed height regardless of their content. The last column should extend until there is space for it. With the code following I have a fixed height but it apply on all the rows, it is not specific for the body. I'd like to specify different heights for the header and the footer rows. Can you help? Thanks               \newcolumntype{M}[1]{%      >{\vbox to 5ex\bgroup\vfill}%      m{#1}%      <{\egroup}}          \begin{table}[h]         \begin{tabular}{|M{3cm}|>{\centering}p{0.7cm}|>{\centering}p{0.7cm}|>{\centering}p{0.7cm}|>{\centering}p{0.7cm}|m{7cm}|}          \hline             & \multicolumn{4}{c}{Evaluations} &  \\          \cline{2-5}              Cours & Elève  & Classe & Min & Max & Appréciations \\ \hline                   Français & 15 & 15 & 15 & 15 & Lorem ipsum dolor sit amet, consectetur   \\         \arrayrulecolor[gray]{.70}\hline              Mathématiques &15 & 15 & 15 & 15 & Lorem ipsum dolor sit amet, consectetur   \\         \hline              Géographie & 15 & 15 & 15 & 15 & Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod  \\          \hline             Histoire & 15 & 15 & 15 & 15 & Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod  \\          \arrayrulecolor{black}\hline              Average Rate &15 & 15 & 15 & 15 & Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore  \\          \hline         \end{tabular}


title: How to typeset Chinese from word dictionary in tone colors?

text: I have installed MDBG Word dictionary which is using CC-CEDict database. I've installed Windows version but we can try the dictionary online, I am using word `sleep` as a test case. How could we typeset the search result in TeX? There are two major issues:   * They are using tone colors when dealing with Chinese characters.   * If glyph is idential in traditional vs. simplified Chinese, they use en dash instead. I enclose two screenshots, the first picture is taken from the Windows version, the second picture is taken from the Internet version. ![windows version: result of searching a term](http://i.stack.imgur.com/DYneW.png) ![web version: result of searching a term](http://i.stack.imgur.com/sHsRz.png)


title: Problem with xticks when importing Matlab figures using matlab2tikz

text: When importing the following figure ![enter image description here](http://i.stack.imgur.com/MWD4Q.jpg) using the **Matlab2Tikz** , I obtain the following output ![enter image description here](http://i.stack.imgur.com/7joqD.jpg) , with the xticks strangely exported . Does any one have an idea how I can prevent this? Maybe by passing an extra inut to the matlab2tikz function? Hier is a simple Matlab Code :               close all     x=linspace(5*10^-2,10*10^-2);     y1=-4*10^5*x+2;     y2=-4*10^5*x+1;     figure;         subplot(121);plot(x,y1);xlabel('x');ylabel('y')         subplot(122);plot(x,y2);xlabel('x');ylabel('y')     matlab2tikz('Test.tikz','standalone', true,'extraAxisOptions','label style={font=\Large}')       The obtained *.Tikz file without the data:               \documentclass[tikz]{standalone}     \usepackage{pgfplots}     \pgfplotsset{compat=newest}     \usepackage{amsmath}     \begin{document}     \begin{tikzpicture}          \begin{axis}[%     width=1.95217803030303in,     height=3.565625in,     scale only axis,     xmin=0.04,     xmax=0.1,     xlabel={x},     ymin=-40000,     ymax=-15000,     ylabel={y},     name=plot1,     label style={font=\Large}     ]     \addplot [     color=blue,     solid,     forget plot     ]     table[row sep=crcr]{


title: Aligned two headerbox at the bottom

text: I am preparing my conference poster. I have three `\headerbox` that I need to align it at the bottom. Sorry, I can post just a part of the code.               \headerbox{Results}{name=Results,column=2,span=2,row=1,below=…}{     }          \headerbox{FUTURE RESEARCH}{name=FUTURE RESEARCH,column=0,above=bottom,below=…}{     }     \headerbox{Contact}{name= Contact,column=1,span=1,aligned=FUTURE RESEARCH,below=...,above=bottom}{          }      see this results: ![enter image description here](http://i.stack.imgur.com/s8vta.png) I need to align the three box at the bottom. thanks to help me!


title: Change the page number of slides in notes when using | handout: command

text: I have some slides where I will print out as different pages for the handouts. I am using the command `\onslide<1 | handout:1> {}` and so on. Is it possible to show on the handout as 5(a) , 5(b) and 5(c) where a, b, c represents the handout page for that particular slide. I will put the same minimal code from my previous question: How to handle only overlays while printing a latex beamer notes               %\documentclass[mathserif]{beamer}          \documentclass[arial,handout]{beamer}          \usepackage{pgf,pgfpages}     \usepackage{graphicx}     %\usepackage{units}     %\usepackage[utf8]{inputenc}     \usepackage{mathtools}     %\usepackage{amsmath}     \usepackage{animate}               \usepackage{booktabs}     \usepackage{tikz}     \usetikzlibrary{arrows,shapes}           \tikzset{         invisible/.style={opacity=0},         visible on/.style={alt=#1{}{invisible}},         alt/.code args={<#1>#2#3}{%           \alt<#1>{\pgfkeysalso{#2}}{\pgfkeysalso{#3}} % \pgfkeysalso doesn't change the path         },       }          \mode<presentation>     {       \usetheme{ift}       \setbeamertemplate{items}[square]     }          \usefonttheme[onlymath]{serif}     \setbeamerfont{frametitle}{size=\LARGE,series=\bfseries}          \definecolor{uibred}{RGB}{170, 0, 0}     \definecolor{uibblue}{RGB}{0, 84, 115}     \definecolor{uibgreen}{RGB}{119, 175, 0}     %\definecolor{uibgreen}{RGB}{50, 105, 0}     \definecolor{uiborange}{RGB}{217, 89, 0}          %% Create a new command called redub for underbraces     \newcommand\redub[2]{%         \colorlet{currentcolor}{.}%         \color{red}%         \underbrace{\color{currentcolor}#1}_{\color{red}#2}%         \color{currentcolor}%     }               %Beamer block template     \setbeamertemplate{blocks}[rounded][shadow=true]          \setbeamercolor{block title}{bg=uibblue,fg=white}     \setbeamercolor{item projected}{fg=white,bg=green}          \beamertemplatenavigationsymbolsempty               %\include{macros}          %\includeonlyframes{current}               \defbeamertemplate{enumerate item}{mycircle}     {       %\usebeamerfont*{item projected}%       %\usebeamercolor[bg]{item projected}%       \begin{pgfpicture}{0ex}{0ex}{1.5ex}{0ex}         %\pgfcircle[fill]{\pgfpoint{0pt}{.75ex}}{1.25ex}         \pgfbox[center,base]{\color{uibblue}\insertenumlabel.}       \end{pgfpicture}%     }     [action]     {\setbeamerfont{item projected}{size=\scriptsize}}     \setbeamertemplate{enumerate item}[mycircle]          \begin{document}          %\setbeamertemplate{background}     % {\includegraphics[width=\paperwidth,height=\paperheight]{slide_bg1}}     %\setbeamertemplate{footline}[ifttheme]          \mode<presentation>          \begin{frame}         \frametitle{Eulerian Salt Flux Decomposition}              \only<1-2 | handout:1>{\begin{itemize}             \item Subtidal Volume discharge rate $Q_f$: through a cross=section A  \\             $Q_f = \langle\int u.dA \rangle$             \item Salt transport rate $F_s$ through a cross-section A \\             $F_s = \langle \int uS.dA \rangle$         \end{itemize}}             \onslide<2->Sub-tidal salt flux decomposed into three parts               \onslide<2->\begin{align*}             F  & = \langle \int(u_0+u_E+U_T)(s_0+s_E+s_T)dA \rangle \\                 & \approx \langle \int(u_0s_0+u_Es_E+u_Ts_T)dA \rangle \\                 & = \redub{Q_fs_0}{\mathclap{\text{     River flow     }}} +                   \redub{F_E}{\substack{\text{Exchange}\\\text{shear dispersion}}} +                   \redub{F_T}{\substack{\text{tidal osciallatory}\\\text{salt transport}}}         \end{align*}              \onslide<3- | handout:2>\begin{itemize}             \item $u_0$ and $s_0$ tidally and cross-sectionally averaged             \item $u_E$ and $s_E$ tidally averaged and cross-sectionally varying              \item $u_T$ and $s_T$ tidally and cross-sectionally varying         \end{itemize}          \end{frame}          \begin{frame}     \frametitle{Age of Water under dye from all Rivers}              \only<1-3>{\begin{tikzpicture}         \centering             \node [](0,0)(start){ hello2};     %       \draw [step=0.5cm,thin,dotted] (-5,-4) grid(5,4);     %       \node [circle]at (-4.5,0){0};     %       \node [circle,radius=0.9cm,fill=red!30,] at (-4.5,0)(a){};             \draw [red,fill=red!30](-4.3,-0.2)circle(0.1cm);             \draw [red,fill=red!30](-3.3,0)circle(0.1cm);             \draw [red,fill=red!30](-2.5,-0.7)circle(0.1cm);             \draw [red,fill=red!30](-4.,-0.8)circle(0.1cm);             \draw [red,fill=red!30](-4.,-1.2)circle(0.1cm);             \draw [red,fill=red!30](4.3,1.6)circle(0.1cm);             \draw [red,fill=red!30](3.3,2.7)circle(0.1cm);             \draw [red,fill=red!30](1.6,3.5)circle(0.1cm);             \draw [red,fill=red!30](1.3,3.5)circle(0.1cm);                   \node [rectangle,text width=4cm,red] at (5.5,3) (return) {$Q_2 = 169 A^{0.616}$     \linebreak Mason et. al. 1998};             \node [rectangle,text width=4cm,red,visible on =<2->] at (5,0) (return) {Smaller near the source     \linebreak Increases away from the source};             \draw [red,visible on =<3->](-3.3,-1.5) circle(0.7cm);%wolf bay small age         \end{tikzpicture}}                  \only<4-5>{\begin{tikzpicture}             \node [](0,0)(start){hello1};     %   \draw [step=0.5,dotted](-5,-4) grid (5,4);          \node [rectangle,text width=4cm,red] at (5,0) (return) {Scale different from    \linebreak 2 year inflows};          \node [rectangle, text width =4cm, red,visible on =<5->] at (5,-2) {Maximum age of 120 days};          \draw [red] (1.5,-1) ellipse(1cm and 0.6cm);          \node [rectangle, text width=4cm, red] at (5,3) {Minimum 7 day flow over 10 yr. interval};         \end{tikzpicture}}                    %             \only<6-7>{\begin{tikzpicture}             \node [](0,0)(start){hello};             \node [rectangle, text width=4cm, red, visible on =<7->] at (5,3) {Mean inflows over 10 yr. interval};             \end{tikzpicture}}     \end{frame}          \end{document}      **Added the output** ![enter image description here](http://i.stack.imgur.com/T3RSu.gif) **IFT THEME ADDED** The beamer ift theme can be found on the following location: https://www.dropbox.com/sh/ewkklsys1zp9xhs/J4msUp2Wbe


title: semiverbatim with tikz in beamer

text: I'm using `semiverbatim` with `tikz` in `beamer`. My following MWE throws error: > ! Package tikz Error: Sorry, some package has redefined the meaning of the > math-mode dollar sign. This is incompatible with tikz and its calc library > and might cause unrecoverable errors. Any idea to resolve this issue. Thanks in advance.               \documentclass{beamer}          \usepackage{csed}          \usepackage{tikz}     \usetikzlibrary{shapes}          \newif\ifshowanimation     % The slides with animations take a long time to process.     % They are omitted in handout mode.     \showanimationfalse          \newenvironment<>{exercise}{\begin{block}#1{Exercise}}{\end{block}}          \newenvironment<>{notes}{\begin{alertblock}#1{Notes}}{\end{alertblock}}          \newcommand*{\menu}[1]{\textbf{#1}}     \newcommand*{\menuitem}[1]{\,$\to$\,\textbf{#1}}          \definecolor{highlight1}{named}{yellow}     \definecolor{highlight2}{named}{pink}     \definecolor{highlight3}{named}{green}     \definecolor{highlight4}{named}{orange}     \definecolor{Red}{named}{red}     \definecolor{Blue}{named}{blue}          \pgfdeclareimage[width=0.95\textwidth]{backdrop}{images/background.jpg}     \pgfdeclareimage[width=1mm]{pointer}{images/pointer.png}     \pgfdeclareimage[width=0.18\textwidth]{startmenu}{images/startMenu.jpg}     \pgfdeclareimage[width=0.34\textwidth]{programsmenu}{images/programsMenu.jpg}     \pgfdeclareimage[width=0.495\textwidth]{submenu}{images/subMenu.jpg}     \pgfdeclareimage[width=0.608\textwidth]{latexmenu}{images/latexMenu.jpg}     \pgfdeclareimage[width=0.591\textwidth]{latexmenu2}{images/latexMenu2.png}     \pgfdeclareimage[width=0.591\textwidth]{cmd1}{images/cmd1.jpg}     \pgfdeclareimage[width=0.591\textwidth]{cmd2}{images/cmd2.jpg}     \foreach \x in {1,...,46}     {       \pgfdeclareimage[width=0.84\textwidth]{tmkwin\x}{images/tmkwin-\x.jpg}     }     \pgfdeclareimage[width=0.75\textwidth]{saveAs1}{images/tex-28.jpg}     \pgfdeclareimage[width=0.75\textwidth]{saveAs2}{images/tex-30.jpg}     \pgfdeclareimage[width=0.75\textwidth]{saveAs3}{images/tex-32.jpg}     \pgfdeclareimage[width=0.75\textwidth]{saveAs4}{images/tex-35.jpg}     \pgfdeclareimage[width=0.75\textwidth]{saveAs5}{images/tex-36.jpg}     \pgfdeclareimage[width=0.75\textwidth]{saveAs6}{images/tex-37.jpg}               \begin{document}          \begin{frame}[fragile]       \frametitle{A Simple Document}          \begin{example}         \begin{semiverbatim}             \textcolor<2>{Red}{\cs{documentclass}\annote<5-7>[offset=0.5in,voffset=1cm,pos=br,bg=highlight2]{[a4paper,12pt]}{Class options}\annote<4-7>[pos=br,bg=highlight1]{\marg{article}}{The class name.}}             \vspace{-2\baselineskip}\alt<7>{\colorbox{highlight4}{\rmfamily Preamble}}{\strut}             \textcolor<2>{Red}{\cs{begin}\marg{document}}             \textcolor<3>{Blue}{\% This is a comment}             \annote<6-7>[pos=cr,bg=highlight3,offset=0.4in]{\begin{tabular}{@{}l}             This is   a simple\\             document\cs{footnote}\marg{with a footnote}.\\             \\             This is a new paragraph.             \end{tabular}}{The document.}             \textcolor<2>{Red}{\cs{end}\marg{document}}         \end{semiverbatim}     \end{example}          \end{frame}               \end{document}      * * * **Edited** * * * `csed` can be obtained from here.


title: Set author's name in small caps the first time it appears in the text

text: I would like to set author names in small caps the first time they appear in the text.               \documentclass{article}     \usepackage[T1]{fontenc}     \newcommand{\authorname}{?}          \begin{document}     When the name \authorname{Newton} appears in the text for the first time,     it should be set in small caps. Should the name \authorname{Newton} appear     again, it should look like normal text.     \end{document}      > When the name NEWTON appears in the text for the first time, it should be > set in small caps. Should the name Newton appear again, it should look like > normal text. Any ideas how I could achieve this behaviour?


title: How to improve this text highlighting?

text: I want to highlight some letters which represent an amino acid sequence of a protein using different colors. The below code works fine, but the highlighted box is not fitting exactly the letters, as you can see in the MWE output it is slightly shifted toward the bottom of letters and not centered, so how to justify this to make it in the center of letters? **MWE Code**               \documentclass{scrartcl}     \usepackage[T1]{fontenc}     \usepackage{fontspec}          \setmonofont[Scale=MatchLowercase]{Inconsolata}     \usepackage{xcolor,graphicx}     \definecolor{set1}{RGB}{200,200,200}     \definecolor{set2}{RGB}{102,255,102}     \usepackage{soul} % for highlighting       \newcommand{\hlc}[2][yellow]{{\sethlcolor{#1}\hl{#2}}}     \newfontfamily\myfont[Scale=MatchUppercase]{Inconsolata} % monospace font      \newenvironment{protseq}{\myfont}{\par}           \begin{document}     \begin{protseq}     \begin{tabular}{lr}     \hlc[set2]{MLGSRAVMLL LLLPWTAQG}R AVPGGSSPAW TQCQQLSQ\hlc[set1]{K}L CTLAWSAHPL & 50\\     VGHMDLREEG DEETTNDVPH IQCGDGCDPQ GLRDNSQFCL QRIHQGLIFY & 100\\     E\hlc[set1]{K}LLGSDIFT GEPSLLPDSP VGQLHASLLG LSQLLQPEGH HWETQQIPSL &    150\\     SPSQPWQRLL LRF\hlc[set1]{K}ILRSLQ AFVAVAARVF AHGAATLSP & 189\\     \end{tabular}     \end{protseq}     \end{document}      **MWE Output** ![enter image description here](http://i.stack.imgur.com/C0UOD.png) **Update**   Using Stephan Lehmke's answer, problem was solved even when using `Inconsolata` font plus alignment is preserved, just amazing! ![enter image description here](http://i.stack.imgur.com/mmZHd.png)


title: Equation line break up

text: \documentclass[12pt,a4paper]{article}     \usepackage{amsmath}\usepackage{amssymb}     \textwidth=16.5cm  \oddsidemargin=-0.10cm \evensidemargin=-0.10cm  \topmargin=-1.0cm \textheight=24.5cm          \newcommand{\piRsquare}{\pi r^2}                  \title{The small amplitude expansion: The class of theoritical considered}     \author{Md. X }          \date{January 26, 2013}                      \begin{document} \baselineskip=18pt     \section{Introduction}         \begin{align}         \left(\nabla p_1\right){}^2 g_2-\frac{1}{3} \text{Cos}[2 \tau ] \left(\nabla p_1\right){}^2 g_2-\frac{1}{24} \lambda  \text{Cos}[2 \tau ] g_2 p_1^4-\frac{1}{24} \lambda  \text{Cos}[4 \tau ] g_2 p_1^4+\frac{19}{72} g_2^3 p_1^4-\frac{1}{9} \text{Cos}[2 \tau ] g_2^3 p_1^4+\frac{5}{72} \text{Cos}[4 \tau ] g_2^3 p_1^4 \\         & \qquad -\frac{5}{8} g_2 g_3 p_1^4-\frac{1}{2} \text{Cos}[2 \tau ] g_2 g_3 p_1^4+\frac{1}{8} \text{Cos}[4 \tau ] g_2 g_3 p_1^4+\frac{3}{8} g_4 p_1^4+\frac{1}{2} \text{Cos}[2 \tau ] g_4 p_1^4+\frac{1}{8} \text{Cos}[4 \tau ] g_4 p_1^4-\frac{5}{2} \text{Cos}[\tau ] g_2^2 p_1^2 p_2+\frac{1}{2} \text{Cos}[3 \tau ] g_2^2 p_1^2 p_2 \\         & \qquad +\frac{9}{4} \text{Cos}[\tau ] g_3 p_1^2 p_2+\frac{3}{4} \text{Cos}[3 \tau ] g_3 p_1^2 p_2+\frac{1}{2} g_2 p_2^2+\frac{1}{2} \text{Cos}[2 \tau ] g_2 p_2^2+g_2 p_1 p_3+\text{Cos}[2 \tau ] g_2 p_1 p_3-\frac{5}{6} \text{Sin}[\tau ] g_2^2 p_1^2 q_2+\frac{1}{2} \text{Sin}[3 \tau ] g_2^2 p_1^2 q_2 \\         & \qquad +\frac{3}{4} \text{Sin}[\tau ] g_3 p_1^2 q_2+\frac{3}{4} \text{Sin}[3 \tau ] g_3 p_1^2 q_2+\text{Sin}[2 \tau ] g_2 p_2 q_2+\frac{1}{2} g_2 q_2^2-\frac{1}{2} \text{Cos}[2 \tau ] g_2 q_2^2+\text{Sin}[2 \tau ] g_2 p_1 q_3+g_2 p_1 \text{$\Delta $p}_1\\         & \qquad -\frac{1}{3} \text{Cos}[2 \tau ] g_2 p_1 \text{$\Delta $p}_1-\text{Cos}[\tau ] \text{$\Delta $p}_2-\text{Sin}[\tau ] \text{$\Delta $q}_2-\frac{2}{3} \text{Cos}[2 \tau ] g_2 p_1^2 \omega _2-\text{Cos}[\tau ] p_2 \omega _2-\text{Sin}[\tau ] q_2 \omega _2-\text{Cos}[\tau ] p_1 \omega _3+\phi _4[\tau ]+\phi _4''[\tau ] =0         \end{align}     \end{document}      I tried to split the equation but I couldn't. I could do for other equation but this is not taking several equations. I have used & \qquad but it is not working. Can anyone help me?


title: new quote-based environment end spacing

text: In order to insert quotations, the document uses a `quote`-based `\newenvironmentx`               \newenvironmentx{QUOTE}[1][1=.]{%       \begin{quote}%       \tiny\noindent%       \gdef\parQ{#1}``%     }{\parQ''%       \normalsize%       \end{quote}%     }      The quotations should occur within `LaTex` quotes, and, by default, the last paragraph ends with dot. Otherwise, when a citation is pointed out using `\cite`, the quotations are typeset as follows:               \begin{QUOTE}[~--~(\cite{etc}, pp.~2).]%     ... is mainly implemented by means of ... systems%     \end{QUOTE}      so that I would expect `"... systems - ([1], pp. 2)."`, with just a space around the dash, hence the extra care to end lines with percent, to comment- out the newlines; instead, more spaces are put, and the result is something like `"... systems` `` `` `` `\- ([1], pp. 2)."` How can I avoid the `\newenvironmentx{QUOTE}` not have the last character in its last paragraph immediately followed by (either default dot or) the binding space (tilde)? **EDITED** OK, this is the `mwe.dtx` wherefrom `mwe.cls` results by `latex mwe.ins`:               % \iffalse    (METACOMMENT)     %%     %% ---------------------------------------------------------------------     %%     %% Document class `mwe' to use with LaTeX 2e.     %%     %% ---------------------------------------------------------------------     %%     % \fi     %     % \CheckSum{370}     %% \CharacterTable     %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z     %%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z     %%   Digits        \0\1\2\3\4\5\6\7\8\9     %%   Exclamation   \!     Double quote  \"     Hash (number) \#     %%   Dollar        \$     Percent       \%     Ampersand     \&     %%   Acute accent  \'     Left paren    \(     Right paren   \)     %%   Asterisk      \*     Plus          \+     Comma         \,     %%   Minus         \-     Point         \.     Solidus       \/     %%   Colon         \:     Semicolon     \;     Less than     \<     %%   Equals        \=     Greater than  \>     Question mark \?     %%   Commercial at \@     Left bracket  \[     Backslash     \\     %%   Right bracket \]     Circumflex    \^     Underscore    \_     %%   Grave accent  \`     Left brace    \{     Vertical bar  \|     %%   Right brace   \}     Tilde         \~}     %%     % ^^A \MakeShortVerb{\|}     % \section{Internals}     %     %    \begin{macrocode}     %<class>\NeedsTeXFormat{LaTeX2e}[1995/12/01]     %    \end{macrocode}     %     % \iffalse (Don't show this in the doc).     %<*driver>              \ProvidesFile{mwe.drv}     %</driver>     % \fi     %    \begin{macrocode}     %<class>\ProvidesClass{./mwe}             [2013/03/29 v1.01     %<class>        MWE tex.stackexchange.com class]     %    \end{macrocode}     % \iffalse (Omitted from the doc)     %<*driver>     ]     %</driver>     % \fi     %     % \subsection{Driver for this document}     %     % The \dst{} program will extract the following driver from this file:     %    \begin{macrocode}     %<*driver>     \documentclass{ltxdoc}     \EnableCrossrefs     %\DisableCrossrefs % Say \DisableCrossrefs if index is ready     \RecordChanges     %\OnlyDescription % Comment out for implementation details     \CodelineIndex     \begin{document}     \end{document}     %</driver>     %    \end{macrocode}     % \raggedbottom     %    \begin{macrocode}     \IfFileExists{suffix.sty}{%       \RequirePackage{suffix}}{%       \ClassError{./mwe}{%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%         The suffix package was not found.}{%%%%%%%%%%%%%         The suffix package allows for starred commands.%       }}     \IfFileExists{tokenizer.sty}{%       \RequirePackage[trim]{tokenizer}}{%       \ClassError{./mwe}{%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%         The tokenizer package was not found.}{%%%%%%%%         The tokenizer package allows list processing.%       }}     \IfFileExists{xkvltxp.sty}{%       \RequirePackage{xkvltxp}}{%       \ClassError{./mwe}{%%%%%%%%%%%%%%%%%%%%%%%%%%         The xkvltxp package was not found.}{%%%%%         The xkvltxp package is bound to xkeyval.%       }}     \IfFileExists{xkeyval.sty}{%       \RequirePackage{xkeyval}}{%       \ClassError{./mwe}{%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%         The xkeyval package was not found.}{%%%%%%%%%%%%%%%%%%         The xkeyval package will anyway be loaded implicitly.%       }}     \IfFileExists{xargs.sty}{%       \RequirePackage{xargs}}{%       \ClassError{./mwe}{%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%         The xargs package was not found.}{%%%%%%%%%%%%%%%%%%%%%%%%%%%%%         The xargs package is mandatory with commands and environments.%       }}     \IfFileExists{xifthen.sty}{%       \RequirePackage{xifthen}}{%       \ClassError{./mwe}{%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%         The xifthen package was not found.}{%%%%%%%%%%%%%%%%%%%%         The xifthen package is needed for labels, references...%       }}     %    \end{macrocode}     %    \begin{macrocode}     % \begin{macro}{\mwe@lst@nul}     % \begin{macro}{\mwe@def@nul}     % \begin{macro}{\mwe@lst@set}     % \begin{macro}{\mwe@def@set}     % \begin{macro}{\mwe@lst@add}     % \begin{macro}{\mwe@lst@rem}     % \begin{macro}{\mwe@lst@r@m}     % \begin{macro}{\mwe@lst@pop}     % \begin{macro}{\mwe@lst@p@p}     % initialize an empty list     \newcommandx\mwe@lst@nul[2][2=mwe@]{\mwe@lst@set{}{#1}[#2]}     % initialize empty definition macros     \let\mwe@def@nul\mwe@lst@nul     % create an empty list from a given list     \newcommandx%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \mwe@lst@set[3][addprefix=\global,3=mwe@]{%%%%%%%%%%%     \expandafter\protected@xdef\csname#3#2\endcsname{#1}}     % initialize definition macros     \let\mwe@def@set\mwe@lst@set     % add item to the top of the list (replacement for \in@)     \newcommandx\mwe@lst@add[3][3=mwe@]{%       \ifx\\#1\\\else\mwe@empt@if*{\@nameuse{#3#2}}{\@expandtwoargs%         \mwe@lst@set{#1}{#2}[#3]}{\@expandtwoargs%%%%%%%%%%%%%%%%%%%         \mwe@lst@set{#1,\@nameuse{#3#2}}{#2}[#3]}\fi%%%%%%%%%%%%%%%%     }     % remove specified item #1 from the in/out list #2     \newcommandx\mwe@lst@rem[3][3=mwe@]{%       \ifx\\#1\\\else\mwe@NOT@empt@if{\@nameuse{#3#2}}{%         \mwe@lst@r@m{#1}{#2}[#3]}\fi%%%%%%%%%%%%%%%%%%%%     }     % helper for both above and below (employment of \@removeelement)     \newcommandx\mwe@lst@r@m[3][3=mwe@]{\@expandtwoargs%%%%%%%%%%%%%       \@removeelement{#1}{\@nameuse{#3#2}}{\mwe@v@r}\@expandtwoargs%       \mwe@lst@set{\mwe@v@r}{#2}[#3]%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     }     % remove first item from the list #2 and save the item in command #1     \newcommandx\mwe@lst@pop[3][3=mwe@]{%       \mwe@empt@if*{\@nameuse{#3#2}}{%         \mwe@def@nul{#1}[#3]}{\@expandtwoargs%%%%%%%%%%%         \mwe@lst@p@p{\@nameuse{#3#2}}{,}\@expandtwoargs%         \mwe@lst@r@m{\mwe@var}{#2}[#3]\@expandtwoargs%%%         \mwe@def@set{\mwe@var}{#1}[#3]}%     }     % helper for \mwe@lst@pop above (employment of \GetTokens)     \newcommand\mwe@lst@p@p[2]{\mwe@lst@get{#1#2}}     % get tokens from a list: head is \mwe@var; tail is \mwe@v@r     \newcommandx\mwe@lst@get[4]%%%%%%%%%%%%%%%%%%%%%     [2=var,3=v@r,4=mwe@]{\GetTokens{#4#2}{#4#3}{#1}}     % \end{macro}     % \end{macro}     % \end{macro}     % \end{macro}     % \end{macro}     % \end{macro}     % \end{macro}     % \end{macro}     % \end{macro}     %    \end{macrocode}     % \begin{macro}{\mwe@empt@}     %    \begin{macrocode}     % positive \equal{}     \newtest\mwe@empt@[1]{\equal{#1}{}}     %    \end{macrocode}     % \end{macro}     % \begin{macro}{\mwe@NOT@if}     % \begin{macro}{\mwe@NOT@empt@if}     % \begin{macro}{\mwe@empt@if}     % \begin{macro}{\mwe@empt@if*}     %    \begin{macrocode}     % negative \ifthenelse to have it work with the above     \newcommand\utt@NOT@if[2]{\ifthenelse{#1}{}{#2}}     % derived \NOT if \equal{}     \newcommand\mwe@NOT@empt@if[2]{\mwe@NOT@if{\mwe@empt@{#1}}{#2}}     % positive \ifthenelse through \equal{}     \newcommand\mwe@empt@if[2]{\mwe@empt@if*{#1}{#2}{}}     % positive \ifthenelse through \equal{} (two branches)     \WithSuffix%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \newcommand\mwe@empt@if*[3]{\ifthenelse{\mwe@empt@{#1}}{#2}{#3}}     % positive \ifthenelse through \equal     %    \end{macrocode}     % \end{macro}     % \end{macro}     % \end{macro}     % \end{macro}     %    \begin{macrocode}     \LoadClass[a4paper,10pt,twoside,openright]{report}[2007/10/19]     \IfFileExists{fontenc.sty}{%       \RequirePackage[T1]{fontenc}}{%       \ClassError{./mwe}{%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%         The fontenc package was not found.}{%%%%%%%%%%%%         The fontenc package is required for some fonts.%       }}     \IfFileExists{inputenc.sty}{%       \RequirePackage[utf8]{inputenc}}{%       \ClassError{./mwe}{%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%         The inputenc package was not found.}{%%%%%%%%         The inputenc package provides UTF-8 unicode.%       }}     \IfFileExists{multicol.sty}{%       \RequirePackage{multicol}}{%       \ClassError{./mwe}{%%%%%%%%%%%%%%%%%%%%%%%%%%%%%         The multicol package was not found.}{%%%%%%%         The multicol package is required in tables.%       }}     \IfFileExists{multirow.sty}{%       \RequirePackage{multirow}}{%       \ClassError{./mwe}{%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%         The multirow package was not found.}{%%%%%%%%         The multirow package is required for tables.%       }}     %    \end{macrocode}     %    \begin{macrocode}     % discern "enumerate" environments (true) from the rest (false)     \newif\if@mwe@some@that@\@mwe@some@that@false     % list of true|false values implemented as stack for \begin|\end     \mwe@lst@nul{some@bels}     % temporary store false or true popped off the \mwe@some@bels     \mwe@def@nul{some@bebl}     % save command \begin original (\LaTeX) definition     \let\mwe@begin\begin     % redefine \begin but invoke previous code     \def\begin{\mwe@some@mark\mwe@begin}     % save command \end original (\LaTeX) definition     \let\mwe@end\end     % redefine \end but invoke previous code     \def\end{\mwe@some@m@rk\mwe@end}     % push boolean value gotten from flag onto the "begin/end" stack-list     \newcommandx\mwe@some@mark[7][1=true,2=bels%%%%%%%%     ,3=that,4=some@,5=mwe,6=@,7=false]{\@expandtwoargs%     \mwe@lst@add{\if@mwe@some@that@#1\else#7\fi}{#4#2}%     \expandafter\global\csname#6#5#6#4#3#6#7\endcsname}     % pop boolean value from the "begin/end" stack-list and set flag     \newcommandx\mwe@some@m@rk[6]%%%%%%%%%%%%%%%     [1=bebl,2=bels,3=that,4=some@,5=mwe,6=@]{%%%     \mwe@lst@pop{#4#1}{#4#2}\expandafter\global%     \csname#6#5#6#4#3#6\mwe@some@bebl\endcsname}     %    \end{macrocode}     % \end{macro}     % \end{macro}     % \end{macro}     % \end{macro}     % \end{macro}     % \end{macro}      and this is `mwe.tex` wherefrom `mwe.pdf` results by `pdflatex -shell-escape mwe.tex`:               \documentclass{./mwe}          \newenvironment{QUOTE}[1][1=.]{%       \begin{quote}%       \tiny\noindent       \def\parQ{#1}``\ignorespaces     }{\parQ''%       \end{quote}%     }          \begin{document}          MAIN TEXT: quotation          \begin{QUOTE}[~--~(\ldots, pp.~2).]%%%%%%%%%%%%%%%     ... is mainly implemented by means of ... systems%     \end{QUOTE}          CONTINUES          \begin{table}[htb]       \begin{center}\begin{tabular}{|c|l|c|c|c|}         \hline \multirow{4}{*}{1}          &&&& \\ %%%%%%%%%%%%%%%%%%%%%%           & A text spanning on two rows     & May &          &  seven  \\           &  and centered in four rows      &     & December &    7    \\         &&&& \\ \hline %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%       \end{tabular}\end{center}       \caption{Projected timelines}     \end{table}          \end{document}      Not just `QUOTE`, but all other environments are affected: `tabular` with left/right lines in the pattern `{|...|}` always adds two parallel unfinished lines to the left. The `tabular` is affected when redefining `\begin/\end`, while `QUOTE` works with the latter redefines, but does not like the `\mwe@some@mark/\mwe@some@m@rk` expansions. I did not insert `mwe.ins` and `ltxdoc.cfg`. Thanks and appreciate if you look further on this. Sebastian               %%     %% This is file `mwe.cls',     %% generated with the docstrip utility.     %%     %% The original source files were:     %%     %% mwe.dtx  (with options: `class')     %%      %% IMPORTANT NOTICE:     %%      %% For the copyright see the source file.     %%      %% Any modified versions of this file must be renamed     %% with new filenames distinct from mwe.cls.     %%      %% For distribution of the original source see the terms     %% for copying and modification in the file mwe.dtx.     %%      %% This generated file may be distributed as long as the     %% original source files, as listed above, are part of the     %% same distribution. (The sources need not necessarily be     %% in the same archive or directory.)     %%     %% ---------------------------------------------------------------------     %%     %% Document class `mwe' to use with LaTeX 2e.     %%     %% ---------------------------------------------------------------------     %%     %% \CharacterTable     %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z     %%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z     %%   Digits        \0\1\2\3\4\5\6\7\8\9     %%   Exclamation   \!     Double quote  \"     Hash (number) \#     %%   Dollar        \$     Percent       \%     Ampersand     \&     %%   Acute accent  \'     Left paren    \(     Right paren   \)     %%   Asterisk      \*     Plus          \+     Comma         \,     %%   Minus         \-     Point         \.     Solidus       \/     %%   Colon         \:     Semicolon     \;     Less than     \<     %%   Equals        \=     Greater than  \>     Question mark \?     %%   Commercial at \@     Left bracket  \[     Backslash     \\     %%   Right bracket \]     Circumflex    \^     Underscore    \_     %%   Grave accent  \`     Left brace    \{     Vertical bar  \|     %%   Right brace   \}     Tilde         \~}     %%     \NeedsTeXFormat{LaTeX2e}[1995/12/01]     \ProvidesClass{./mwe}     [2013/03/29 v1.01      MWE tex.stackexchange.com class]     \IfFileExists{suffix.sty}{%       \RequirePackage{suffix}}{%       \ClassError{./mwe}{%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%         The suffix package was not found.}{%%%%%%%%%%%%%         The suffix package allows for starred commands.%       }}     \IfFileExists{tokenizer.sty}{%       \RequirePackage[trim]{tokenizer}}{%       \ClassError{./mwe}{%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%         The tokenizer package was not found.}{%%%%%%%%         The tokenizer package allows list processing.%       }}     \IfFileExists{xkvltxp.sty}{%       \RequirePackage{xkvltxp}}{%       \ClassError{./mwe}{%%%%%%%%%%%%%%%%%%%%%%%%%%         The xkvltxp package was not found.}{%%%%%         The xkvltxp package is bound to xkeyval.%       }}     \IfFileExists{xkeyval.sty}{%       \RequirePackage{xkeyval}}{%       \ClassError{./mwe}{%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%         The xkeyval package was not found.}{%%%%%%%%%%%%%%%%%%         The xkeyval package will anyway be loaded implicitly.%       }}     \IfFileExists{xargs.sty}{%       \RequirePackage{xargs}}{%       \ClassError{./mwe}{%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%         The xargs package was not found.}{%%%%%%%%%%%%%%%%%%%%%%%%%%%%%         The xargs package is mandatory with commands and environments.%       }}     \IfFileExists{xifthen.sty}{%       \RequirePackage{xifthen}}{%       \ClassError{./mwe}{%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%         The xifthen package was not found.}{%%%%%%%%%%%%%%%%%%%%         The xifthen package is needed for labels, references...%       }}     \newcommandx\mwe@lst@nul[2][2=mwe@]{\mwe@lst@set{}{#1}[#2]}     \let\mwe@def@nul\mwe@lst@nul     \newcommandx%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \mwe@lst@set[3][addprefix=\global,3=mwe@]{%%%%%%%%%%%     \expandafter\protected@xdef\csname#3#2\endcsname{#1}}     \let\mwe@def@set\mwe@lst@set     \newcommandx\mwe@lst@add[3][3=mwe@]{%       \ifx\\#1\\\else\mwe@empt@if*{\@nameuse{#3#2}}{\@expandtwoargs%         \mwe@lst@set{#1}{#2}[#3]}{\@expandtwoargs%%%%%%%%%%%%%%%%%%%         \mwe@lst@set{#1,\@nameuse{#3#2}}{#2}[#3]}\fi%%%%%%%%%%%%%%%%     }     \newcommandx\mwe@lst@rem[3][3=mwe@]{%       \ifx\\#1\\\else\mwe@NOT@empt@if{\@nameuse{#3#2}}{%         \mwe@lst@r@m{#1}{#2}[#3]}\fi%%%%%%%%%%%%%%%%%%%%     }     \newcommandx\mwe@lst@r@m[3][3=mwe@]{\@expandtwoargs%%%%%%%%%%%%%       \@removeelement{#1}{\@nameuse{#3#2}}{\mwe@v@r}\@expandtwoargs%       \mwe@lst@set{\mwe@v@r}{#2}[#3]%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     }     \newcommandx\mwe@lst@pop[3][3=mwe@]{%       \mwe@empt@if*{\@nameuse{#3#2}}{%         \mwe@def@nul{#1}[#3]}{\@expandtwoargs%%%%%%%%%%%         \mwe@lst@p@p{\@nameuse{#3#2}}{,}\@expandtwoargs%         \mwe@lst@r@m{\mwe@var}{#2}[#3]\@expandtwoargs%%%         \mwe@def@set{\mwe@var}{#1}[#3]}%     }     \newcommand\mwe@lst@p@p[2]{\mwe@lst@get{#1#2}}     \newcommandx\mwe@lst@get[4]%%%%%%%%%%%%%%%%%%%%%     [2=var,3=v@r,4=mwe@]{\GetTokens{#4#2}{#4#3}{#1}}     \newtest\mwe@empt@[1]{\equal{#1}{}}     \newcommand\utt@NOT@if[2]{\ifthenelse{#1}{}{#2}}     \newcommand\mwe@NOT@empt@if[2]{\mwe@NOT@if{\mwe@empt@{#1}}{#2}}     \newcommand\mwe@empt@if[2]{\mwe@empt@if*{#1}{#2}{}}     \WithSuffix%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     \newcommand\mwe@empt@if*[3]{\ifthenelse{\mwe@empt@{#1}}{#2}{#3}}     \LoadClass[a4paper,10pt,twoside,openright]{report}[2007/10/19]     \IfFileExists{fontenc.sty}{%       \RequirePackage[T1]{fontenc}}{%       \ClassError{./mwe}{%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%         The fontenc package was not found.}{%%%%%%%%%%%%         The fontenc package is required for some fonts.%       }}     \IfFileExists{inputenc.sty}{%       \RequirePackage[utf8]{inputenc}}{%       \ClassError{./mwe}{%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%         The inputenc package was not found.}{%%%%%%%%         The inputenc package provides UTF-8 unicode.%       }}     \IfFileExists{multirow.sty}{%       \RequirePackage{multirow}}{%       \ClassError{./mwe}{%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%         The multirow package was not found.}{%%%%%%%%         The multirow package is required for tables.%       }}     \newif\if@mwe@some@that@\@mwe@some@that@false     \mwe@lst@nul{some@bels}     \mwe@def@nul{some@bebl}     \let\mwe@begin\begin     \def\begin{\mwe@some@mark\mwe@begin}     \let\mwe@end\end     \def\end{\mwe@some@m@rk\mwe@end}     \newcommandx\mwe@some@mark[7][1=true,2=bels%%%%%%%%     ,3=that,4=some@,5=mwe,6=@,7=false]{\@expandtwoargs%     \mwe@lst@add{\if@mwe@some@that@#1\else#7\fi}{#4#2}%     \expandafter\global\csname#6#5#6#4#3#6#7\endcsname}     \newcommandx\mwe@some@m@rk[6]%%%%%%%%%%%%%%%     [1=bebl,2=bels,3=that,4=some@,5=mwe,6=@]{%%%     \mwe@lst@pop{#4#1}{#4#2}\expandafter\global%     \csname#6#5#6#4#3#6\mwe@some@bebl\endcsname}     \endinput     %%     %% End of file `mwe.cls'.


title: Caption package error redux

text: I'm using the `caption` package, but it's not affecting the captions within my tables and figures. I've pasted my sample code below. How can it be fixed?               \documentclass{article}     \usepackage[format=hang, justification=raggedright]{caption}     \begin{document}     \begin{figure}         \caption{Test 1 \\ Test again}         \caption*{\textit{Notes:} Here's a figure.}     \end{figure}          \begin{table}         \caption{Test 2 \\ Test again}         \caption*{\textit{Notes:} Here's a table.}     \end{table}          \end{document}


title: biblatex/biber: using strings macros from one file in multiple refsections

text: I have a `@string` definition stored in a file `abrv.bib`. I would like to combine this abbreviations file with a bib file 'entry.bib' containing an entry to create a list of references for a particular section of my document. I have been able to do this successfully with `biblatex` for one section, but am finding it quite difficult to do for multiple sections. I have included a small example that illustrates my problem. My `@string` definition in `abrv.bib` is being used in `entry1.bib` and `entry2.bib`. The output from `biber` indicates that `abrv.bib` is found when processing section 1, but not for section 2. The resulting document will contain correct references for section 1, but contains the references with section 2 with blanks where the `@string` macros are supposed to expand. How can I get `abrv.bib` to be used for both references sections? Am I doing something wrong? Is this a bug? I am using pdflatex from TeX Live 2012, biber v1.6, and biblatex 2.6. file.tex:               \documentclass{article}          \usepackage[backend=biber]{biblatex}          \addsectionbib[datatype=bibtex]{./abrv.bib}     \addsectionbib[datatype=bibtex]{./entry1.bib}     \addsectionbib[datatype=bibtex]{./entry2.bib}          \begin{document}          \section{Section 1}          \begin{refsection}[abrv,entry1]       \nocite{*}     \end{refsection}     \printbibliography[section=1,title=\null]          \section{Section 2}          \begin{refsection}[abrv,entry2]       \nocite{*}     \end{refsection}     \printbibliography[section=2,title=\null]          \end{document}      abrv.bib               @string{AUTHOR = "Author"}      entry1.bib               @book{ key1,       author = AUTHOR,       title = "Title1",       publisher = "Publisher",       year = 2013     }      entry2.bib               @book{ key2,       author = AUTHOR,       title = "Title2",       publisher = "Publisher",       year = 2013     }      Biber output:               INFO - This is Biber 1.6     INFO - Logfile is 'file.blg'     INFO - Reading 'file.bcf'     INFO - Found 0 citekeys in bib section 0     INFO - Using all citekeys in bib section 1     INFO - Found 0 citekeys in bib section 0     INFO - Using all citekeys in bib section 2     INFO - Found 0 citekeys in bib section 0     INFO - Processing section 1     INFO - Looking for bibtex format file 'abrv.bib' for section 1     INFO - Found BibTeX data source 'abrv.bib'     INFO - Looking for bibtex format file 'entry1.bib' for section 1     INFO - Found BibTeX data source 'entry1.bib'     INFO - Overriding locale 'en_US.UTF-8' default tailoring 'variable = shifted' with 'variable = non-ignorable'     INFO - Sorting 'entry' list 'nty' keys     INFO - No sort tailoring available for locale 'en_US.UTF-8'     INFO - Processing section 2     INFO - Looking for bibtex format file 'abrv.bib' for section 2     INFO - Looking for bibtex format file 'entry2.bib' for section 2     INFO - Found BibTeX data source 'entry2.bib'     WARN - BibTeX subsystem: /var/folders/q5/gq1zmtqd46b4fvqx73m25hw00000gn/T/SZ8HSBpKix/entry2.bib_8957.utf8, line 2, warning: undefined macro "AUTHOR"     WARN - The field 'author' in entry 'key2' cannot be null, deleting it     INFO - Overriding locale 'en_US.UTF-8' default tailoring 'variable = shifted' with 'variable = non-ignorable'     INFO - Sorting 'entry' list 'nty' keys     INFO - No sort tailoring available for locale 'en_US.UTF-8'     INFO - Writing 'file.bbl' with encoding 'ascii'     INFO - Output to file.bbl     INFO - WARNINGS: 2


title: Glossaries: How to determine in which glossary an entry is defined?

text: I use the Glossaries package to create both an glossary and a list of acronyms. Now I need a way to determine whether a given term is defined in the glossary (`\newglossaryentry {term} ...`) or in the acronym list (`\newacronym {term} ...`). The package does provide `\ifglsentryexists` but it only checks for general existence of the entry. MWE:               \documentclass[english]{article}          \usepackage{babel}     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{glossaries}          \makeglossaries          \newglossaryentry{foo} {name = {Foo}, description = {``foo'' glossary entry}}     \newacronym{bar} {BAR} {``bar'' acronym}          \begin{document}          If \gls{foo} is a normal glossary entry a ``X'' should follow, if     its an acronym we want its long form (\\glsentrylong{foo}) instead: ???          \printglossary          \end{document}


title: Apa6 biblatex: only shows et. al at first cite

text: I got a problem with my .bib file I think. I have to references, where one works perfectly and the other doesn't. First time citing one of these references, I would like to see first name and last name for all of the authors. This only works for my second reference, here is an MWE.               \RequirePackage{filecontents}     \begin{filecontents*}{\jobname.bib}     @book{Wohlin2000,     address = {Norwell, MA, USA},     author = {Wohlin, Claes and Runeson, Per and H\"{o}st, Martin and Ohlsson, Magnus C and Regnell, Bj\"{o}orn and Wessl\'{e}n, Anders},     isbn = {0-7923-8682-5},     publisher = {Kluwer Academic Publishers},     title = {{Experimentation in Software Engineering: An Introduction}},     year = {2000}     }          @book{Rogers2011,     abstract = {.....},     author = {Rogers, Yvonne and Sharp, Helen and Preece, Jenny},     isbn = {0470665769},     publisher = {John Wiley \& Sons, Ltd.},     title = {{Interaction Design: Beyond Human - Computer Interaction}},     volume = {6},     year = {2011}     }          \end{filecontents*}          \documentclass{article}      \usepackage[%      % backend=bibtex   % use BibTeX      backend=biber    % Use biber     ]{biblatex}      \addbibresource{\jobname.bib}     \begin{document}      Hello \textcite{Wohlin2000}. How are you? And Hello to you, \textcite{Rogers2011}.     \printbibliography      \end{document}


title: How to use the translator package with beamer?

text: I'd like to have my headers like Theorem, Definition etc. in a `beamer` presentation translated to Polish. After skimming through the last pages of `beamer` user guide, I tried `\usepackage[polish]{translator}`, but it resulted in "Option clash for package translator". Any ideas what I can do?


title: Remapping fonts in unicode-math has no effect on e.g. `\mscrC`

text: For some reason, in this setup, `\mathscr{C}` and `\mscrC` produce different results:               \documentclass[12pt,a4paper]{article}     \usepackage{unicode-math}     \unimathsetup{math-style=TeX}      \setmathfont{Cambria Math}     \setmathfont[range={\mathscr,\mathbfscr},StylisticSet=0]{xits-math.otf}     \begin{document}     \[     \mathscr{C}, \mscrC     \]     \end{document}      In the result, `\mathscr{C}` respects the remapping, but `\mscrC` does not. I was under the impression that `unicode-math` translates the former to the latter, but it seems as if `\mathscr` here contains some additional processing that "knows" about fonts. A literal `` behaves like `\mscrC`. The only thing that seems to work is _redefining_ `\mscrC` after `\begin{document}` to force it to go through `\mathscr`.   1. What is `unicode-math` really doing?   2. How do I work around this?


title: Providing Arguments to a Start-Stop

text: Mostly for the sake of doing so, I am writing a presentation in ConTeXt. I thought that defining a start-stop would be a good way to split up slides. So I have something like:               \definestartstop[Slide][after={\break}]     ...     \startSlide       \subject{Title}       \subsubject{Subtitle}     \stopSlide      My question is, given that every slide will have a title and a subtitle, is there a way to wrap the `\subject` and `\subsubject` up in the `\definestartstop` and provide the values when the start-stop begins? I haven't found anything that is related to this and I know start-stops don't take arguments, so how might you do something like that? If I am going about the problem wrong, what would be the ConTeXt way?


title: TextField Multiline Form allows text larger than box

text: What i'm worried about is printing out a filled out Form where simple multiline TextFields have been filled out but most of the content is invisible because the box was too small. Ideally the height of the box would automatically adjust. My quickfix was using maxlen=100 to limit the number of letters - but if the user chooses to hit return a few times, this wont work. any ideas?


title: How to share a modifed moderncvclassic.sty file and give credits the right way?

text: I have tweaked the moderncvstyleclassic.sty file from the moderncv package and implemented more commands to comply with the belgian/french layout rules for official mail. All of my modifications are in a new moderncvfrench.sty file and rely on moderncv.cls and other files bundled with the moderncv package. I would like to share it (presumably via github ?) but I don't know how I should phrase the header of the file regarding the LPPL. I don't want to infringe on the original author's copyright but I also need to state I am the one responsible for the modified style so that people won't bother him with support for something he isn't responsible for. I asked at launchpad but my question was expired because it remained in the 'Open' state too long. How should I proceed ?


title: Shortcut for inserting matching \end{something} in VIM

text: I remember some time ago I always used a shortcut in VIM that allowed me to type this (`<X>` is indication of the location of the cursor):               ... rest of document ...          \begin{<ENVIRONMENT>}       some text       more text     <X>          ... document continues ....      and then I would key in some shortcut at the location of `<X>` and the matching `\end{<ENVIRONMENT>}` would be inserted:               ... rest of document ...          \begin{<ENVIRONMENT>}       some text       more text     \end{<ENVIRONMENT>}          ... document continues ....      Here, of course, `<ENVIRONMENT>` can be anything, like `align` or `itemize`. I know about VIM's `<C-x> \+ <C-p>`, `<C-x + <C-n>` and `<C-x> \+ <C-o>`. The last one works very well for closing HTML tags, but it doesn't work in LaTeX. I forgot what it was and I hope someone here knows it. It might have been a plugin but I don't think so. If anyone can tell me what it is, I will be forever grateful. EDIT: Of course I _am_ using LaTeX-Suite (or vim-latex, wish they'd stick to a name).


title: Either remove the footer or make it go down

text: I use the Ilmenau theme and spruce color theme. Code is given below               \title{Study of Gapped Cantilever Structure and its Applications}          \author{Gaurav Kumar Singh \vskip0.5cm Instrumentation and Control Engineering \\ NIT Trichy \vskip1cm Under Supervision of \\ Prof. Dr. M. Umapathy}