title: fancyhdr package: changing header from uppercase to lowercase

text: I need to change my headers from uppercase to lowercase using `fancyhdr`. How do I do that?               \documentclass[10pt,cleardoublepage=empty,twoside]{book}     \usepackage{fancyhdr}     \pagestyle{fancy}     \renewcommand{\headrulewidth}{0pt}     \fancyhf{}     \fancyhead[lo]{\slshape\nouppercase{\rightmark}}     \fancyhead[re]{\slshape\nouppercase{\leftmark}}     \fancyhead[ro,le]{\thepage}     \fancyhead{}     \fancyhead[C]{{My Header Title}}          \renewcommand{\chaptermark}[1]{%     \markboth{\MakeUppercase{%     \chaptername}\ \thechapter.%     \ #1}{}}     \pagestyle{headings}     \usepackage{setspace}     \usepackage{array}     \usepackage{amsmath}     \usepackage{covington}     \usepackage[danish,english]{babel}     \usepackage{tipa}     \usepackage{natbib}     \usepackage{float}     \usepackage{graphicx}     \usepackage{titlesec}     \usepackage{typearea}     \usepackage[a5paper]{geometry}     \usepackage{tocbibind}           \newcolumntype{L}[1]{>{\raggedright\arraybackslash}p{#1}}%per allineamento a sx delle colonne          \renewcommand{\bibname}{References}      \usepackage[toc,page]{appendix}     \usepackage{longtable}     \usepackage{caption}          \hyphenation{Boont-ling}               \usepackage[bitstream-charter]{mathdesign}     \usepackage[T1]{fontenc}      \usepackage{microtype}     \usepackage{multirow}          \usepackage{morefloats}     \usepackage{booktabs}     \newcolumntype{R}{>{\raggedleft\arraybackslash}p{2cm}}     \usepackage[bottom,norule]{footmisc}     \setlength\belowcaptionskip{1\baselineskip}      \usepackage{lscape}      \usepackage[hidelinks]{hyperref}      \usepackage{bookmark}               \begin{document}          \frontmatter          Something here.          \tableofcontents     \listoffigures     \listoftables          \mainmatter            \chapter{Lorem}          Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem. Investigationes demonstraverunt lectores legere me lius quod ii legunt saepius. Claritas est etiam processus dynamicus, qui sequitur mutationem consuetudium lectorum. Mirum est notare quam littera gothica, quam nunc putamus parum claram, anteposuerit litterarum formas humanitatis per seacula quarta decima et quinta decima. Eodem modo typi, qui nunc nobis videntur parum clari, fiant sollemnes in futurum.                    \chapter{Ipsum}          Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem. Investigationes demonstraverunt lectores legere me lius quod ii legunt saepius. Claritas est etiam processus dynamicus, qui sequitur mutationem consuetudium lectorum. Mirum est notare quam littera gothica, quam nunc putamus parum claram, anteposuerit litterarum formas humanitatis per seacula quarta decima et quinta decima. Eodem modo typi, qui nunc nobis videntur parum clari, fiant sollemnes in futurum.                    \chapter{dolor}          Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem. Investigationes demonstraverunt lectores legere me lius quod ii legunt saepius. Claritas est etiam processus dynamicus, qui sequitur mutationem consuetudium lectorum. Mirum est notare quam littera gothica, quam nunc putamus parum claram, anteposuerit litterarum formas humanitatis per seacula quarta decima et quinta decima. Eodem modo typi, qui nunc nobis videntur parum clari, fiant sollemnes in futurum.                    \end{document}


title: Utility to Strip Comments from LaTeX Source

text: I've a LaTeX source.     I'm ready %for submission     %But first I would like     to strip its comments.          So I hope there are     100\% auto     ways to get this done.          \begin{comment}        Because there are subtle ways to mess it up.     \end{comment}      Is there a utility which will eliminate all these comments? Yes, I could do it by hand, but that seems needlessly laborious, has the potential for mistakes, and makes maintenance difficult. I could also use `sed`, but there's a potential for mistakes. Besides, it is an axiom of the whole GNU/Linux thing that if you can think of it, someone's probably already made a utility for it.


title: Indent text after line 1

text: How can I accomplish something like this: ![enter image description here](http://i.stack.imgur.com/RxCkU.jpg) Basically, I want my text to be "indented" after the first line. It would be great if somebody knew an answer. Ideally I would like to do this, because I want my theorems/proofs to look like this: ![enter image description here](http://i.stack.imgur.com/LMv5I.jpg) In my opinion, it makes the whole format much clearer.


title: Modify width of main text block in tufte-handout

text: Is it possible to increase the size of the main text in the `tufte-handout` class to 80% of the paper width?


title: pgfplots stacked bar plot: distance to axis, padding between bars

text: I have the following chart:               \documentclass{article}          \usepackage{xcolor}     \usepackage{tikz}     \usepackage{pgfplots}          \definecolor{transfertoserver}{HTML}{D7191C}     \definecolor{database}{HTML}{FDAE61}     \definecolor{transfertoclient}{HTML}{ABDDA4}     \definecolor{rendering}{HTML}{2B83BA}               \begin{document}          \begin{figure}     \centering     \begin{tikzpicture}     \begin{axis}[xbar stacked,     legend style={legend columns=4,at={(0,-0.35)},anchor=north west,draw=none},     ytick={0,1},     axis y line*=none,     axis x line*=bottom,     tick label style={font=\footnotesize},     legend style={font=\footnotesize},     label style={font=\footnotesize},     xtick={0,5,10,15,20,25},     width=.8\textwidth,     height=4cm,     bar width=6mm,     xlabel={Time in Seconds},     yticklabels={Database Optimizations, Reference Timing},     xmin=0,     xmax=25,     area legend,     enlarge y limits=0.3,     ]     \addplot[transfertoserver,fill=transfertoserver] coordinates     % Transfer     {(0.38,0) (0.38,1)};     \addplot[database,fill=database] coordinates     % Database     {(2.4,0) (9.66,1)};     \addplot[transfertoclient,fill=transfertoclient] coordinates     % Transfer     {(0.23,0) (0.23,1)};     \addplot[rendering,fill=rendering] coordinates     % Rendering     {(14.66,0) (14.66,1)};     \legend{Transfer,Database,Transfer,Rendering}     \end{axis}     \end{tikzpicture}     \caption{Performance Benefit by Database Optimizations}     \label{fig:performance:database}     \end{figure}     \end{document}      However I would like to have a few milimeters between the x axis and the bottom bar. I can get this with enlarge y limits=0.2. But then I have to find a matching factor for every figure. I want to define an absolute measure. The other thing is how can I get the bars closer to each other? Doing this in one question to not spam too much. ![Screenshot of the PDF, showing the huge space](http://i.stack.imgur.com/EmsRS.png)


title: Minimal code to support table of contents in custom class

text: I'm trying to create a custom class to replace the class `book` and need to include ToC functionality. Placing the command `\tableofcontents` leads to error "Undefined control sequence". Using packages like `minitoc` or `tocloft` doesn't help. What should I write to my custom class to let ToC work?


title: Beamer and isomath

text: I would like to use the package `isomath` (to force slanted capital Greek letters in mathmode) in `beamer` slides. Beamer replaces the standard mathmode font with a sans-serif one. However, when using `isomath` with it, the slanted capital Greek letters appear with the same Serif font used in normal TeX documents. How can I obtain slanted sans-serif capital Greek letters that match the rest of the mathmode font used in Beamer? MWE:               \documentclass{beamer}     \usepackage{isomath}     \begin{document}     \begin{frame}     I like $\Pi$     \end{frame}     \end{document}      Result: ![enter image description here](http://i.stack.imgur.com/7KndP.png) The \Pi here is rendered using a serif font that does not match the rest of the document.


title: LaTeX Beamer: Enumerate with manual numbers

text: I'd like to do the following enumeration in beamer;               1. First Item     2. Second Item     3. Third Item     3'. Alternative Version of Third Item.      However, if I do this:                 \begin{enumerate}         \item First Item         \item Second Item         \item Third Item         \item[3'] Alternative Third Item       \end{enumerate}      then the last item doesn't appear with the usual bullet style. ![enter image description here](http://i.stack.imgur.com/3Nq0o.jpg) Help? Thanks!


title: -job-name and BibTeX do not work together?

text: I have a problem using the `%& -job-name=` command together with the bibliography. If I compile the file without the `-job-name` command, the bibliography appears normally, with that command, instead, I have no bibliography. By looking into the folder, I have seen that the `.bbl` is not created in the second case. I am using Texworks with the pdfLaTeX+MakeIndex+BibTeX option. (sorry if this is not the approrpiate name) MWE:               %& -job-name=MWE          \documentclass[english]{scrreprt}          %%% PAGE DIMENSIONS     \usepackage{geometry}      \geometry{verbose,a4paper,tmargin=3.5cm,bmargin=2.5cm,lmargin=2.6cm,rmargin=2.6cm,headheight=1.3cm,headsep=1cm}     \pagestyle{headings}          %%% PACKAGES     \usepackage{array}      \usepackage{paralist}      \usepackage{verbatim}      \usepackage{subfig}      \usepackage{amsmath, amsthm, amssymb, url}     \usepackage{enumitem}     \usepackage{mathrsfs}     \usepackage[english]{babel}     \usepackage[T1]{fontenc}     \usepackage[latin9]{inputenc}     \usepackage{tabu,longtable,booktabs,caption}     \usepackage[pdftex]{graphicx,color}     \usepackage{scrpage2,datetime,tikz}          %%% OPTIONS     \setcounter{secnumdepth}{3}     \setlength{\parindent}{1em}     \tabulinesep=^1.5mm_1.5mm          %%% DEFINITIONS     \renewcommand{\dateseparator}{.}          \begin{document}          I want to cite \cite{Slotine91}.\\          \bibliographystyle{abbrv}     \bibliography{*yourpath*/biblio}          \end{document}      And in the `biblio.bib` file I have               @book{Slotine91,       title={Applied nonlinear control},       author={Slotine, J.J.E. and Li, W. and others},       year={1991},       publisher={Prentice-Hall Englewood Cliffs, NJ}     }      Does anyone knows what I am doing wrong and/or how I can fix this? Thanks


title: How to create local variables to upload document in LaTeX?

text: I want to create relative directories to load multiple documents into a LaTeX and compile it. For example, I have the following:               \input{F:/HILDA/STATA/Writing/Paper1/CTDtables/wbw/CasualPermOC1genderwbwf.tex}%1     \input{F:/HILDA/STATA/Writing/Paper1/CTDtables/wbw/FTPTOC1genderwbwf.tex}%2     \input{F:/HILDA/STATA/Writing/Paper1/CTDtables/wbw/CasualOC1genderwbwf.tex}%3     \input{F:/HILDA/STATA/Writing/Paper1/CTDtables/wbw/PermOC1genderwbwf.tex}%4     \input{F:/HILDA/STATA/Writing/Paper1/CTDtables/wbw/FTOC1genderwbwf.tex}%5     ......%N      and I want to create a local variable to term this               "F:/HILDA/STATA/Writing/Paper1/CTDtables/wbw/"      because I move to multiple sites and want to change the directories. I try               \newcommand          \newcommand{\Toadhomedesktop}[1]{F:/HILDA/STATA/Writing/Paper1/}     \newcommand{\Delllaptop}[2]{F:/HILDA/STATA/Writing/Paper1/CTDtables/wbw/}     \newcommand{\Crawford}[3]{F:/HILDA/STATA/Writing/Paper1/CTDtables/wbw/}     \newcommand{\tables}[4]{CTDtables/}     \newcommand{\charts}[5]{F:/HILDA/STATA/Writing/Paper1/CTDtables/wbw/}     \newcommand{\Wavebywave}[6]{wbw/}     \newcommand{\Allwaves}[7]{F:/HILDA/STATA/Writing/Paper1/CTDtables/wbw/}     \newcommand{\XXX}[8]{F:/HILDA/STATA/Writing/Paper1/CTDtables/wbw/}     \newcommand{\ToadhomedesktoptablesAllwaves}[9]{{#1}{#4}{#6}}          \include{wbwCTDtablesinsertcopyfordesktop}     \XYZ{CasualPermOC1genderwbwf.tex}%1      It seems that the local variable newcommand cannot be use in loading directories. Please help.               \renewcommand{\newsubimport}[10]{\subimport}          \newcommand{\XYZ}{{#10}{{#9}}}strong text


title: Apply floatrow style to align and glossary

text: I use the `booktabs` package and the `floatrow` package with the float style `ruled`. For consistency I would like to apply this look (example) to the glossary I use as nomenclature and an `amsmath` enviornment. So far I use the `caption` technic described in the `floatrow` manual, using `captionsetup` and `caption`. I wonder if there is any easy way to trick `floatrow` into handling a minipage like a float and adding the appropiate rules. Here is a not so minimal example. It includes a `table` and a `figure` that look like I want them too. And a not correctly formated `glossary` and `align` environment.               \documentclass{report}     \usepackage{amsmath}     \usepackage{booktabs}     \usepackage[demo]{graphicx}          \usepackage{caption}     \usepackage[list=on]{subcaption}     \usepackage{glossaries}          \usepackage{floatrow}          \floatsetup{style=ruled, footposition=caption, capposition=bottom, heightadjust=object}   %make graphics look like booktables     \floatsetup[table]{style=plain, footposition=bottom}     \captionsetup[table]{labelfont=bf}          \newglossaryentry{demo}{                         name        =modulo,                         symbol      =\ensuremath{\protect \bmod},                         description ={modulo operator}}          \glsaddall          \begin{document}     \chapter{needs work}     \begin{center}%vertical spacing     \begin{minipage}{\linewidth}%group caption and content on same page         \centering         \captionsetup{type=table}         \begin{align}             1+2=3         \end{align}         \caption{Align}     \end{minipage}     \end{center}          \begin{center}%vertical spacing     \begin{minipage}{\linewidth}%group caption and content on same page         \centering         \captionsetup{type=table}         \renewcommand{\glossarysection}[2][]{}         \printglossary         \caption{Nomenclature glossary}     \end{minipage}     \end{center}          \chapter{should be look}     \begin{table}     \begin{tabular}{lrrp{5cm}}         \toprule         %name & lines per set & sets & pros/cons\\          & hea &der \\         \midrule         con & ten & t \\         con & ten & t \\         \bottomrule     \end{tabular}     \caption{Table}     \end{table}          \begin{figure}     \includegraphics[height=2in, width=4in]{}     \caption{Figure}     \end{figure}     \end{document}


title: Repeat scaled version of slide, \savebox and \usebox in multi-slide frame?

text: I have a frame where I uncover a `tikz`-diagram in 12 slides. In the next frame, I want to repeat a scaled-down version of the full diagram (slide 12). I've tried to use a combination of `\savebox`, `\usebox`, `\scalebox`, but can't get the overlay specifications to work with saving and using boxes. A trimmed-down example of what I'm trying to achieve is like this:               \documentclass{beamer}     \usepackage{tikz}     \usepackage{graphicx}     \begin{document}          \newsavebox{\mybox}     \savebox{\mybox}{     \begin{overprint}     \begin{tikzpicture}     \onslide<1->{\node (A) at (0, 0) {Spam};}     \onslide<2->{\node (S) at (1, 1) {Eggs};}     \end{tikzpicture}     \end{overprint}     }          \begin{frame}     \usebox{\mybox} % here, I want to show ALL slides in the frame     \end{frame}          \begin{frame}     \scalebox{2}{\usebox{\mybox}} % here, I want only the LAST slide in the frame     \end{frame}          \end{document}      This appears to store only the first slide of the frame into `\mybox`. However, I want to have all slides in the first `\usebox` and only the last slide in the second `\usebox`. I've also tried compiling the first frame as usual and then something like `\savebox{\mybox}{\againframe<2>{myframe}}`, but this resulted in an error message `Missing \endgroup inserted.`. And anyway, I don't want to repeat the full frame, but only the `tikzpicture`. So, my question:   * How do I repeat a scaled-down version of a specific overlay of a `tikzpicture` from a previous frame?


title: How to return back from reference page to referring page in beamer after seeing the reference?

text: We can go to reference page by clicking on the citation number in beamer. Is their a way to return back on referring slide after seeing the reference?


title: Quotations spanning multiple paragraphs in csquotes with french guillemets under LyX

text: This question was already raised and answered here for american:               \documentclass{article}     \usepackage{csquotes}     \usepackage[american]{babel}     \DeclareQuoteStyle[american]{english}% verified       {\textquotedblleft}       [\textquotedblleft]       {\textquotedblright}       [0.05em]       {\textquoteleft}       {\textquoteright}     \MakeOuterQuote{"}     \begin{document}          "This is a quotation," he said.  "It continues onto the next paragraph.          Here is the continuation of my quote.  As per literary convention,     there is no end-quote at the end of the previous paragraph."          \end{document}      But I need to adapt it for french. Normally, in a LyX document, putting the first part before `\begin{document}` in the preambule, and the rest except `\begin` and `\end` in the LyX editor should work (except document class is declared in the LyX interface, and LyX declares `\language`). **First problem:** in the pdf produced, I don't have the middle quote (the one which begins the intermediate paragraphs. **Second problem:** I have tried to adapt the code for french, but without success:               %\documentclass{article}     \usepackage{csquotes}     \usepackage[frenchle]{babel}     %\usepackage[american]{babel}     \DeclareQuoteStyle[french]{guillemets}     %\DeclareQuoteStyle[american]{english}% verified       {\guillemotleft}       [\guillemotleft]       {\guillemotright}       [0.05em]       {\guillemotleft}       {\guillemotright}     \MakeOuterQuote{"}      The pdf output is exactly the same. But I assume it is linked to point 1. So, here is the full LyX code (`\language` shall be edited by hand in a text editor, otherwise, LyX proposes français in its interface, but then it issues an error):               #LyX 2.1 created this file. For more info see http://www.lyx.org/     \lyxformat 474     \begin_document     \begin_header     \textclass article     \begin_preamble     %\documentclass{article}     \usepackage{csquotes}     \usepackage[frenchle]{babel}     %\usepackage[american]{babel}     \DeclareQuoteStyle[french]{guillemets}     %\DeclareQuoteStyle[american]{english}% verified       {\guillemotleft}       [\guillemotleft]       {\guillemotright}       [0.05em]       {\guillemotleft}       {\guillemotright}     \MakeOuterQuote{"}     %\MakeAutoQuote{«}{»}     \end_preamble     \use_default_options true     \maintain_unincluded_children false     \language frenchle     \language_package default     \inputencoding utf8     \fontencoding global     \font_roman default     \font_sans default     \font_typewriter default     \font_math auto     \font_default_family default     \use_non_tex_fonts false     \font_sc false     \font_osf false     \font_sf_scale 100     \font_tt_scale 100     \graphics default     \default_output_format default     \output_sync 0     \bibtex_command default     \index_command default     \paperfontsize default     \spacing single     \use_hyperref false     \papersize default     \use_geometry false     \use_package amsmath 1     \use_package amssymb 1     \use_package cancel 1     \use_package esint 1     \use_package mathdots 1     \use_package mathtools 1     \use_package mhchem 1     \use_package stackrel 1     \use_package stmaryrd 1     \use_package undertilde 1     \cite_engine basic     \cite_engine_type default     \biblio_style plain     \use_bibtopic false     \use_indices false     \paperorientation portrait     \suppress_date false     \justification true     \use_refstyle 1     \index Index     \shortcut idx     \color #008000     \end_index     \secnumdepth 3     \tocdepth 3     \paragraph_separation indent     \paragraph_indentation default     \quotes_language english     \papercolumns 1     \papersides 1     \paperpagestyle default     \tracking_changes false     \output_changes false     \html_math_output 0     \html_css_as_file 0     \html_be_strict false     \end_header          \begin_body          \begin_layout Verbatim          \end_layout          \begin_layout Verbatim     "This is a quotation," he said.       "It continues onto the next paragraph.     \end_layout          \begin_layout Verbatim          \end_layout          \begin_layout Verbatim     Here is the continuation of my quote.       As per literary convention,     \end_layout          \begin_layout Verbatim     there is no end-quote at the end of the previous paragraph."     \end_layout          \begin_layout Verbatim          \end_layout          \begin_layout Verbatim     blabla     \end_layout          \begin_layout Verbatim          \end_layout          \begin_layout Verbatim     «This is a quotation,» he said.       «It continues onto the next paragraph.     \end_layout          \begin_layout Verbatim          \end_layout          \begin_layout Verbatim     Here is the continuation of my quote.       As per literary convention,     \end_layout          \begin_layout Verbatim     there is no end-quote at the end of the previous paragraph.»     \end_layout          \begin_layout Verbatim          \end_layout          \end_body     \end_document      **Third point:** I wonder if I could use `\MakeAutoQuote{«}{»}` with `\DeclareQuoteStyle` to be able to type `«some text»` in the LyX editor instead of `"some text"`. I want to use `«some text»` instead of `« some text »`, but of course still output `« some text »` when french style is selected in the preambul.


title: How do you override formatting of PDF with Pandoc and an external template

text: I'm using an external template with Pandoc to customise the title page, headers, footers, etc. when generating PDF's from Markdown. However, I have not been able to adjust the way quotations look, and neither have I been able to make grid tables draw vertical lines. If anyone can give an example on this, I will greatly appreciate it.


title: Sorting a list based on the length of each entry

text: Is there a way to sort an itemized list based on the length of each item? Something like               \begin{Itemize}     \item a     \item aaaaaa     \item aaaa     \item aaa     \item aaaaa     \item aa     \end{Itemize}      which results in > a   >  aa   >  aaa   >  aaaa   >  aaaaa   >  aaaaaa


title: Words under sum that's in a denominator

text: if I try this;               Substituting the expression for \(\Psi\) in to the above and rearranging we derive an expression for the vacuum field \(\Psi'\) as a function of \(\mu \),          \begin{equation}     \Psi' = \frac{\Phi_t}{\mu ab\left[1+ \frac{4}{\pi^2}\sum_{m,n \mbox{ odd }} \frac{\alpha_{mn}}{mn}\right]} \\[1ex]     \end{equation}          with the sum being over odd \(m,n\). The total magnetic flux is defined as just the sum of the flu      Then it's weird because the {m,n \mbox{ odd }} is forced to the right of the summation instead of under it. This is because it's on the denominator. How do I fix this?


title: Wrap text around wide figure in two column

text: ![enter image description here](http://i.stack.imgur.com/17tq7.png)I need to insert a figure into a two column document such that the figure partially spans both columns, and the text wraps around it. It seems `wrapfig` does not work for this in two column, `pullquote` does not seem to either be exactly what I need. I've tried using `minipage` with no luck. I tried to post an example of what I need to accomplish but since I am new this forum I cannot. I'd be happy to send an image if this helps. Any suggestions would be fantastically helpful!


title: list of symbols with glossaries package: space between symbol and description

text: I am using the `glossaries` package to make a list of symbols. Is there a simple way to manipulate the space between the symbol and the description?               \documentclass{scrreprt}          \usepackage{glossaries}     \usepackage{glossary-mcols}     \newglossary[slg]{symbolslist}{syi}{syg}{List of Symbols}     \makeglossaries     \renewcommand*{\glspostdescription}{}          \newglossaryentry{symb:band_energy}{     name=\ensuremath{\epsilon_k},     description={Band energy in momentum space.},     type=symbolslist     }          \begin{document}          We will refer to the band structure as \gls{symb:band_energy}.          \printglossary[type=symbolslist, nonumberlist]          \end{document}      ![](http://i.stack.imgur.com/hWj4T.png)   I like to increase the space between `\epsilon_k` and the description.


title: \pageref and hyperref

text: Please can anyone tell me the source of the following error? I simply entered               \label{xlastpage} on last page      and the call               \setkeys[KV]{fam}{lhead={Page \thepage of \pageref{xlastpage}}}      gave the following funny errors.               %%%%%%%%% Trace log %%%%%%%%%%          \T@pageref #1->\NR@setref {#1}\@secondoffive {#1}     #1<-xlastpage          \NR@setref #1->\begingroup \@safe@activestrue \expandafter \endgroup \expandaft     er \NR@@setref \csname r@#1\endcsname     #1<-xlastpage     {\begingroup}     {entering semi simple group (level 19) at line 141}          \@safe@activestrue ->\let \if@safe@actives \iftrue     {\let}     {changing \if@safe@actives=\iffalse}     {into \if@safe@actives=\iftrue}     {\expandafter}     {\expandafter}     {\csname}     {\endgroup}     {restoring \if@safe@actives=\iffalse}     {leaving semi simple group (level 19) entered at line 141}          \NR@@setref #1->\ifx \@undefined #1\let #1\relax \fi \@setref #1     #1<-\r@xlastpage     {\ifx}     {false}          \@setref #1#2#3->\ifx #1\relax \protect \G@refundefinedtrue \nfss@text {\reset@     font \bfseries ??}\@latex@warning {Reference `#3' on page \thepage \space undef     ined}\else \expandafter \Hy@setref@link #1\@empty \@empty \@nil {#2}\fi     #1<-\r@xlastpage     #2<-\@secondoffive     #3<-xlastpage     {\ifx}     {false}     {\expandafter}          \r@xlastpage ->{2}{4}          \Hy@setref@link #1#2#3#4#5#6\@nil #7->\begingroup \toks 0={\hyper@@link {#5}{#4     }}\toks 1=\expandafter {#7{#1}{#2}{#3}{#4}{#5}}\edef \x {\endgroup \the \toks 0      {\the \toks 1 }}\x     #1<-2     #2<-4     #3<-\@empty     #4<-\@empty     #5<-\@nil     ! Argument of \Hy@setref@link has an extra }.     <inserted text>                     \par     <to be read again>


title: When do we still need the table and figure environments when we don't want the enclosed objects to float?

text: The LaTeX Wikibook writes: > Please understand: you do not _have to_ use floating tables. It only looks > more professional. If you want to place your tables where they lie in your > source code, do not use `table` at all! This is a very common > misunderstanding among newcomers. LaTeX works with an intricate table placement algorithm, but I often prefer immediate placement with the `H` placement specifier (enabled by the `float` package). My understanding is that captions and table/figure numbering require the `table`/`figure` environments. Is this really so, or are there ways around that? What other reasons are there for using `table`/`figure` if we know that we don't want a particular object to float?


title: Add a marker to the left of the text

text: I want to mark certain points in my text by adding a marker 0.5cm outside the left margin of the text (at the hight of the point that is to be marked out). The marker is drawn with tikz but could in princilpe be anything, such as an asterisk. How can this be done without influencing the text in any way? Eg:               This is a part of my long text.  In it      there is something interesting \mark that      should be easy to find by locating the      marker to the left of the text.       This should produce something like this: ※ This is a part of my long text. In it there is something interesting that should be easy to find by locating the marker to the left of the text. (imagine that ※ is outside the left margin and that the text flows as if nothing had happened)


title: Compile a region in auctex with import package

text: Consider the three following (see below) files: `test.tex` is in the main directory, `test1.tex` is in the subdirectory `./test1/` and `test11.tex` is in the subsubdirectory `./test1/test11/` (see the directory structure below). When I compile with auctex (`C-c C-c`) from the buffer where I read `test11.tex`, the file is compiled correctly: no problem. However, if I want to compile only the region (see screenshot below) where the figure environement is (`C-c C-r`), it fails. The `_region_.tex` produced by auctex in the directory where the master-file is is reproduced at the end of the question. This happens because no `import`-related command is issued in the `_region_.tex` file: thus the `graphicspath` is not adjusted. Is there a workaround? Note: I can add the directory of the imported and subimported files in the `Local Variables` section it if can help. ![emacs screenshot](http://i.stack.imgur.com/9udct.png)               ├── _region_.aux     ├── _region_.log     ├── _region_.pdf     ├── _region_.tex     ├── test1     │   ├── test11     │   │   ├── KnuthAtOpenContentAlliance.jpg     │   │   ├── test11.log     │   │   └── test11.tex     │   └── test1.tex     ├── test.aux     ├── test.log     ├── test.pdf     ├── test-pics.pdf     └── test.tex      * * *               % This is ./test.tex     \documentclass{article}     \usepackage{graphics}     \usepackage{import}     \begin{document}          \import{./test1/}{test1.tex}          \end{document}      * * *               % This is ./test1/test1.tex     \subimport{test11/}{test11.tex}          % Local Variables:     % TeX-master: "../test.tex"     % End:      * * *               % This is ./test1/test11/test11.tex     % http://commons.wikimedia.org/wiki/File:KnuthAtOpenContentAlliance.jpg          \begin{figure}     \includegraphics{KnuthAtOpenContentAlliance}     \end{figure}          Test...          % Local Variables:     % TeX-master: "../../test.tex"     % End:      * * * This is the file `_region_.tex` produced by auctex.               \message{ !name(../../test.tex)}% This is ./test.tex     \documentclass{article}     \usepackage{graphics}     \usepackage{import}     \begin{document}          \message{ !name(test1/test11/test11.tex) !offset(-4) }     \begin{figure}     \includegraphics{KnuthAtOpenContentAlliance}     \end{figure}          Test...          \message{ !name(../../test.tex) !offset(-7) }          \end{document}


title: PGFplots: dashed lines

text: How can I do to draw vertical dashed lines which connect markers of one serie with the respective one of the other serie? X axes for both plot is the same. # MWE: ![enter image description here](http://i.stack.imgur.com/Ue49n.png)               \documentclass[]{standalone}     \usepackage[T1]{fontenc}     \usepackage{textcomp}     \usepackage[utf8]{inputenc}     \usepackage[italian]{babel}     \usepackage[output-decimal-marker={,}]{siunitx}     \usepackage[]{pgfplots}     \usepackage{pgfplotstable}     \usepgfplotslibrary{dateplot}     \pgfplotsset{/pgf/number format/use comma,compat=newest}     \begin{document}     \begin{tikzpicture}         \pgfplotsset{title style={at={(0.5,1.07)}}}         \pgfplotsset{every axis legend/.append style={at={(0.5,1.01)},anchor=south}}         \begin{axis} [  scale only axis,                         ymin = 0, ymax = 8.1,                         axis y line*=left,                         grid=major,                         xlabel={Data e ora},                         ylabel={Velocità down-load (Mib)},                         title={\textbf{Rilievo velocità internet}},                         width=10cm, height=7cm,                         date coordinates in=x,                         xticklabel style=                         {rotate=90,anchor=near xticklabel},                         xticklabel=\day-\month-\year,                         date ZERO=2014-02-03]                      ]             \addplot+             [thick,cyan,smooth]             coordinates {             (2014-02-03 09:15,  7.93)             (2014-02-03 14:24,  3.11)             (2014-02-03 15:22,  6.22)             (2014-02-03 21:05,  4.41)             (2014-02-04 08:53,  6.26)             (2014-02-04 17:13,  5.94)             (2014-02-04 22:00,  1.15)             (2014-02-05 09:12,  6.87)             (2014-02-05 15:01,  6.72)             (2014-02-06 09:28,  7.05)             (2014-02-06 21:34,  1.2)             (2014-02-06 23:14,  2.96)             (2014-02-07 18:01,  6.84)             (2014-02-08 10:18,  6.77)             (2014-02-09 14:38,  6.65)             (2014-02-09 21:14,  1.79)             (2014-02-10 09:35,  6.33)             (2014-02-10 21:26,  2.35)             (2014-02-11 19:56,  3.70)             (2014-02-12 17:17,  6.51)             (2014-02-13 15:32,  5.55)             (2014-02-14 09:13,  6.30)             (2014-02-14 21:33,  6.24)};             \label{Dplot}         \end{axis}         \begin{axis} [  scale only axis,                         ymax = 0.43,                         axis y line*=right,                         ylabel={Velocità up-load (Mib)},                         width=10cm, height=7cm,                         legend style={draw=none},                         legend cell align=left,                         legend columns={2},                         date coordinates in=x,                         xticklabel style=                         {rotate=90,anchor=near xticklabel},                         xticklabel=\day-\month-\year,                         date ZERO=2014-02-03,                         axis x line=none                      ]             \addlegendimage{/pgfplots/refstyle=Dplot}\addlegendentry{Down-load}             \addplot+             [thick,orange,smooth,mark=*,mark options={fill=red}]             coordinates {             (2014-02-03 09:15,  0.35)             (2014-02-03 14:24,  0.36)             (2014-02-03 15:22,  0.36)             (2014-02-03 21:05,  0.36)             (2014-02-04 08:53,  0.37)             (2014-02-04 17:13,  0.34)             (2014-02-04 22:00,  0.34)             (2014-02-05 09:12,  0.33)             (2014-02-05 15:01,  0.36)             (2014-02-06 09:28,  0.37)             (2014-02-06 21:34,  0.36)             (2014-02-06 23:14,  0.37)             (2014-02-07 18:01,  0.36)             (2014-02-08 10:18,  0.36)             (2014-02-09 14:38,  0.37)             (2014-02-09 21:14,  0.34)             (2014-02-10 09:35,  0.37)             (2014-02-10 21:26,  0.35)             (2014-02-11 19:56,  0.35)             (2014-02-12 17:17,  0.36)             (2014-02-13 15:32,  0.37)             (2014-02-14 09:13,  0.36)             (2014-02-14 21:33,  0.37)};             \addlegendentry{Up-load}         \end{axis}     \end{tikzpicture}     \end{document}


title: figcaps and page breaks

text: I'm using `figcaps` to place floats at the end of an article prior to copyediting. The journal asks for each figure/table on a separate page. But `figcaps` puts as many figures as possible on each page. How do I override this? (Not even ugly manual hacks, like inserting `\newpage` at the start or end of the `figure`/`table` environment, work). If you compile the MWE below, you'll see that both figures are located on p3, not on subsequent, separate pages. (I've tried using `endfloat` but I get error messages that suggest adverse interactions. Fixing these may take some work, so I'd rather get `figcaps` to work if possible.)               \documentclass{article}          \usepackage{figcaps}     \printfigures     \figmarkon          \usepackage{lipsum}          \begin{document}          \lipsum[1]          \begin{figure}         \caption{A floating figure}         \label{float}     \medskip \em \footnotesize \lipsum[1]     \end{figure}          Check out figure \ref{float}.          \lipsum [2]          \end{document}


title: fitting arrays on

text: How can I get two matrices to fit side by side, centred on the page? Is there a way of automatically printing to 2 decimal places? ![enter image description here](http://i.stack.imgur.com/7qaAb.png)               \documentclass{article}     \usepackage{graphicx,amsmath}          \begin{document}     %\makebox[\textwidth]{     \begin{align}     CI_{\text{lower} 5\%}=\begin{pmatrix}         0.0286 &   0.4167 &   0.2353 &   0.0345 &   0.0286\\         0.1296  &  0.0196 &   0.0196 &   0.4506 &   0.0164\\         0.0962 &   0.0192 &   0.2564  &  0.0208 &   0.3217\\         0.0472  &  0.1399&    0.1358 &   0.3708&    0.0465\\         0.0383 &  0.0383&    0.1429 &   0.2308&    0.0383     \end{pmatrix}\quad&\quad CI_{\text{upper} 5\%}=\begin{pmatrix}         0.0588&    0.5714  &  0.4195 &   0.2471&    0.0588\\         0.3671&    0.2402  &  0.0921  &  0.7736 &   0.0236\\         0.3454&    0.0270 &   0.3995 &   0.1332  &  0.4695\\         0.1690&    0.2554 &   0.2421  &  0.5266 &   0.1334\\         0.1000&    0.1000&    0.5714  &  0.7029 &   0.1000     \end{pmatrix}     \end{align}          \end{document}


title: Lyx Moving Pagination to Top Right in an Inserted PDF

text: I am preparing a thesis that includes a publication after the appendix. I have been able to correctly insert the PDF of the publication as well as number it. However, the page numbers appear in the middle of the bottom of the PDF's pages. I would like to be able to move these to the top right of the page. Thanks in advance.


title: Setting exact margins

text: I am writing a document for which I need the margin to be exactly as follows: left, right, top and bottom text margin all equal to 1in, distance from bottom of the paper to page number equal to 0.75in (I don't have any footnote or header to set). I tried to use the `fullpage` package in LaTeX but it does not give me the 0.75in to the page number. Is there a way to force that? I tried to set manually the margins for a 8.5x11 paper but I am not succeeding. * * * I tried but after writing:               \documentclass[PhD]{class_file}     \usepackage[margin=1in,footskip=0.25in]{geometry}      I get the error message `\paperwidth (0.0pt) too short`. I don't see the `\paperwidth` is set to 0.0pt anywhere though.. Also it seems to me that depending on which machine I use to compile my `tex` file, I get different margins, even when I set them up manually (without using geometry). Is it possible? * * * Using the geometry package things seem to work a bit better now (I changed machine and the problem with the paper width previously mentioned disappeared).               \usepackage[margin=1in,footskip=0.25in]{geometry}      gives me without problem upper, right and left margin of 1in. But the lower margin is 1.2in and I can't change it to be 1in even by using `bottom=1in` or `bottom=0.8in`. I really don't see how this can happen. Maybe a problem with the spacing between lines? The class files I am using can be fund at http://www.math.ucla.edu/help/tex/uclathes/ I erased the margin settings of `uclath12.clo` as the margin I need are different from the ones that this file gives. Thank you.


title: How to edit the length of margins

text: I want to decrease the length of margins, which are denoted on the picture (because i fint them too long). How can i do that? ![a picture with margins](http://oi59.tinypic.com/2modthg.jpg)               \documentclass[12pt]{article}     \usepackage[utf8]{inputenc}     \usepackage[english,russian]{babel}     \usepackage[T1]{fontenc}     \usepackage{graphicx, graphics}     \usepackage{epsfig}     \usepackage{stmaryrd}     \usepackage{amssymb}     \usepackage{amsthm}     \usepackage{amsmath}     \pagestyle{empty}          \begin{document}     \title{ticket9}     \author{myname}          \section{introduction}     \vskip 0.1 cm     Some text          \end{document}


title: How can I change the margins in LaTeX?

text: How do I change the margin of all pages? I want the latex page be .25 in margin around all the pages.


title: Need help to adjust horizontal spaces in a table

text: I am making a table but i am not able to adjust it. Here is a screen shot.![enter image description here](http://i.stack.imgur.com/HGBJ9.png) i have used following tex code               \begin{table}[ht]          \centering          \begin{tabular}{c c c c c c c}          \hline\hline          Methods &computing time & iterative times & $\|A X_k A - A\|_2$ & $\|X_k A X_k - X_k\|_2$  & $\|(A X_k)^* - A X_k\|_2$ & $\|(A X_k)^* - A X_k\|_2$ \\ [0.5ex]          \hline          method() & &  &  &  &  & \\          proposed method &  &  &  &  &  &  \\          \hline          \end{tabular}          \end{table}      Could anybody help me. I would be very much thankful to you.


title: Answers package modification

text: I'm using answers package and 2 levels of enumerate environment. Sample:   1. (a) Excercise 1a (b) Excercise 1b   2. (a) Excercise 2a (b) Excercise 2b Inside the answers file I want to get the first level number only for the first instance like this: Answers:   1. (a) answer 1a; (b) answer 1b.   2. (a) answer 2a;  (b) answer 2b. Is there any possibility to modify the package to get this result? Here is my .tex file.               \documentclass[10pt, a4paper, openany]{report}     \usepackage[utf8]{inputenc}     \usepackage{answers}     \begin{document}          \Newassociation{otv}{Otvet}{ans}     \renewcommand{\Otvetlabel}[1]{#1}     \renewenvironment{Otvet}[1]{\textbf{#1}}{}     \Opensolutionfile{ans}[\jobname.ans]          \begin{enumerate}     \item        \begin{enumerate}       \item Excercise 1a         \begin{otv}         answer 1a    \end{otv}       \item Excercise 1b         \begin{otv}         answer 1b    \end{otv}       \end{enumerate}     \item        \begin{enumerate}       \item Excercise 2a         \begin{otv}         answer 2a   \end{otv}       \item Excercise 2b         \begin{otv}         answer 2b    \end{otv}       \end{enumerate}     \end{enumerate}          \Closesolutionfile{ans}          Answers:          \input{\jobname.ans}          \end{document}


title: CSV Table Overflow with CSV Simple?

text: I have a large CSV data set (240 rows - 4 columns ). When I try to embed the data using csvsimple the table overflows instead of flowing to the next page. How can I get the table to flow onto the next page, ideally repeating the initial header values for clarity?               \documentclass[a4paper]{article}     \usepackage{csvsimple}     \begin{document}     \section{Appendices}         \subsection{Raw Data}         \csvautotabular{data.csv}       \end{document}      Where data.csv is:               Time ( s ),Voltage ( V ),Sound Level ( dBA ),Frequency     0,0.03,56,183.3333333     0.5,0.04,56,366.6666667     1,0.03,56,550     1.5,0.03,56,733.3333333     2,0.03,56,916.6666667     2.5,0.03,56,1100     3,0.03,56,1283.333333     3.5,0.03,74,1466.666667     4,0.04,93,1650     4.5,0.03,96,1833.333333     5,0.3,96,2016.666667     5.5,0.39,98,2200     6,0.94,99,2383.333333     6.5,0.35,100,2566.666667     7,1.47,100,2750     7.5,1.48,100,2933.333333     8,1.47,100,3116.666667     8.5,1,100,3300     9,1.06,100,3483.333333     9.5,1,100,3666.666667     10,1.15,100,3850     10.5,1.23,100,4033.333333     11,1.35,100,4216.666667     11.5,1.36,100,4400     12,1.35,100,4583.333333     12.5,1.38,100,4766.666667     13,1.39,100,4950     13.5,1.37,100,5133.333333     14,1.31,100,5316.666667     14.5,1.37,100,5500     15,1.37,100,5683.333333     15.5,1.38,100,5866.666667     16,1.38,100,6050     16.5,1.41,100,6233.333333     17,1.45,100,6416.666667     17.5,1.34,100,6600     18,1.44,100,6783.333333     18.5,1.3,100,6966.666667     19,1.45,100,7150     19.5,1.24,100,7333.333333     20,1.31,100,7516.666667     20.5,1.22,100,7700     21,1.21,100,7883.333333     21.5,1.05,100,8066.666667     22,1,100,8250     22.5,1.16,100,8433.333333     23,1.15,100,8616.666667     23.5,1.25,100,8800     24,1.22,100,8983.333333     24.5,1.26,100,9166.666667     25,1.27,100,9350     25.5,1.28,100,9533.333333     26,1.25,100,9716.666667     26.5,1.23,100,9900     27,1.29,100,10083.33333     27.5,1.29,100,10266.66667     28,1.37,100,10450     28.5,1.44,100,10633.33333     29,1.43,100,10816.66667     29.5,1.42,100,11000     30,1.43,100,11183.33333     30.5,1.34,100,11366.66667     31,1.38,100,11550     31.5,1.36,100,11733.33333     32,1.39,100,11916.66667     32.5,1.42,100,12100     33,1.47,100,12283.33333     33.5,1.47,100,12466.66667     34,1.43,100,12650     34.5,1.43,100,12833.33333     35,1.42,100,13016.66667     35.5,1.4,100,13200     36,1.42,100,13383.33333     36.5,1.42,100,13566.66667     37,1.4,100,13750     37.5,1.33,100,13933.33333     38,1.24,98,14116.66667     38.5,1.11,93,14300     39,1.16,93,14483.33333     39.5,1.11,93,14666.66667     40,0.75,95,14850     40.5,0.83,95,15033.33333     41,1.18,95,15216.66667     41.5,1.19,95,15400     42,1.19,94,15583.33333     42.5,1.18,94,15766.66667     43,1.2,93,15950     43.5,1.18,93,16133.33333     44,1.23,92,16316.66667     44.5,1.23,92,16500     45,1.24,92,16683.33333     45.5,1.24,92,16866.66667     46,1.25,92,17050     46.5,1.25,92,17233.33333     47,1.2,91,17416.66667     47.5,1.22,91,17600     48,1.14,90,17783.33333     48.5,0.39,88,17966.66667     49,0.2,88,18150     49.5,0.14,88,18333.33333     50,0.12,86,18516.66667     50.5,0.07,85,18700     51,0.11,84,18883.33333     51.5,0.08,84,19066.66667     52,0.08,84,19250     52.5,0.11,83,19433.33333     53,0.09,84,19616.66667     53.5,0.07,84,19800     54,0.05,84,19983.33333     54.5,0.03,84,20166.66667     55,0.03,85,20350     55.5,0.03,85,20533.33333     56,0.02,83,20716.66667     56.5,0.03,82,20900     57,0.03,82,21083.33333     57.5,0.03,83,21266.66667     58,0.03,82,21450     58.5,0.03,83,21633.33333     59,0.04,83,21816.66667     59.5,0.03,84,22000     60,0.04,84,22183.33333     60.5,0.02,83,22366.66667     61,0.03,83,22550     61.5,0.04,82,22733.33333     62,0.03,81,22916.66667     62.5,0.03,81,23100     63,0.03,80,23283.33333     63.5,0.03,80,23466.66667     64,0.03,81,23650     64.5,0.03,82,23833.33333     65,0.02,82,24016.66667     65.5,0.03,83,24200     66,0.03,84,24383.33333     66.5,0.03,83,24566.66667     67,0.03,84,24750     67.5,0.03,84,24933.33333     68,0.03,82,25116.66667     68.5,0.03,80,25300     69,0.03,79,25483.33333     69.5,0.02,78,25666.66667     70,0.04,79,25850     70.5,0.03,80,26033.33333     71,0.03,80,26216.66667     71.5,0.03,81,26400     72,0.03,81,26583.33333     72.5,0.02,81,26766.66667     73,0.03,81,26950     73.5,0.03,82,27133.33333     74,0.03,83,27316.66667     74.5,0.03,84,27500     75,0.03,85,27683.33333     75.5,0.03,85,27866.66667     76,0.03,85,28050     76.5,0.03,85,28233.33333     77,0.03,84,28416.66667     77.5,0.03,83,28600     78,0.03,81,28783.33333     78.5,0.02,79,28966.66667     79,0.02,76,29150     79.5,0.03,74,29333.33333     80,0.03,74,29516.66667     80.5,0.03,74,29700     81,0.03,77,29883.33333     81.5,0.04,79,30066.66667     82,0.03,80,30250     82.5,0.03,80,30433.33333     83,0.03,81,30616.66667     83.5,0.03,82,30800     84,0.03,82,30983.33333     84.5,0.03,82,31166.66667     85,0.03,82,31350     85.5,0.03,80,31533.33333     86,0.03,80,31716.66667     86.5,0.03,81,31900     87,0.03,83,32083.33333     87.5,0.03,84,32266.66667     88,0.03,85,32450     88.5,0.03,85,32633.33333     89,0.03,85,32816.66667     89.5,0.03,85,33000     90,0.03,85,33183.33333     90.5,0.03,85,33366.66667     91,0.03,85,33550     91.5,0.04,85,33733.33333     92,0.02,83,33916.66667     92.5,0.04,81,34100     93,0.04,79,34283.33333     93.5,0.03,79,34466.66667     94,0.03,78,34650     94.5,0.03,78,34833.33333     95,0.02,78,35016.66667     95.5,0.02,78,35200     96,0.03,78,35383.33333     96.5,0.03,77,35566.66667     97,0.03,76,35750     97.5,0.03,75,35933.33333     98,0.04,73,36116.66667     98.5,0.02,73,36300     99,0.03,73,36483.33333     99.5,0.02,70,36666.66667     100,0.03,71,36850     100.5,0.02,71,37033.33333     101,0.03,72,37216.66667     101.5,0.03,72,37400     102,0.03,72,37583.33333     102.5,0.03,73,37766.66667     103,0.03,72,37950     103.5,0.03,73,38133.33333     104,0.03,74,38316.66667     104.5,0.03,75,38500     105,0.03,75,38683.33333     105.5,0.02,76,38866.66667     106,0.03,76,39050     106.5,0.03,76,39233.33333     107,0.03,76,39416.66667     107.5,0.03,76,39600     108,0.03,76,39783.33333     108.5,0.02,76,39966.66667     109,0.03,76,40150     109.5,0.03,75,40333.33333     110,0.03,75,40516.66667     110.5,0.03,74,40700     111,0.03,74,40883.33333     111.5,0.03,74,41066.66667     112,0.03,73,41250     112.5,0.03,73,41433.33333     113,0.03,73,41616.66667     113.5,0.03,73,41800     114,0.04,72,41983.33333     114.5,0.03,72,42166.66667     115,0.03,72,42350     115.5,0.03,72,42533.33333     116,0.03,72,42716.66667     116.5,0.03,71,42900     117,0.03,72,43083.33333     117.5,0.03,72,43266.66667     118,0.03,75,43450     118.5,0.03,77,43633.33333     119,0.02,78,43816.66667     119.5,0.03,79,44000     120,0.03,78,44183.33333


title: How to add label on arc of this graph?

text: In a previous question I enjoyed a beautifull graph How improve tikZ graphs arrows rendering? How can I add label on arcs produced by:               \draw[arrow] (NodeName)--(OtherNodeName);


title: \write18 encoding

text: I wrote a `bash` script osmimage (source for tests), that downloads a map given by an address. I want to write a package that calls this script with `\write18`, but there are a few problems. The following example works with `lualatex`:               \documentclass{article}     %\usepackage[latin1]{inputenc}     %\usepackage[T1]{fontenc}     \usepackage{graphicx}     \def\loc{Bergheimer Straße 110A, 69115 Heidelberg, Germany}     %\def\loc{Rathausmarkt 1, 20095 Hamburg, Deutschland}     \newcommand*\getmap%     {%       %\immediate\write18{osmimage -l "\loc"}       \immediate\write18{osmimage -l "\unexpanded\expandafter{\loc}"}     }%     \begin{document}     \section{Example}     Did you ever wanted to visit the Dante e.V. office? Here we go:          \getmap     \begin{center}     \includegraphics[width=10cm]{osmimage}     \end{center}     \end{document}      **Code edited** after Ulrike's comment. Still a problem with `pdflatex` and other encoding than `utf-8`! ![map wuth Dante e.V. office](http://i.stack.imgur.com/tJSHZ.png) If i run this file with `pdflatex` (with `inputenc` and `fontenc`) the transfer of the address no longer works. Without `inputenc` or `fontenc` i get all kinds of strange output in the URL (see log). If i use an ASCII-only address like the Hamburg town hall, it also works with `pdflatex`! ![map Hamburg town hall](http://i.stack.imgur.com/mkH4S.png) So there seems to be some kind of encoding problem as the script expects `UTF-8` or maybe url-encoding. Any idea? It wouldn't be very nice to limit the package to ~~`lualatex` or maybe `xelatex` (not tested yet)~~ `utf-8` encoding


title: Alignment Problem in Table environment

text: Regarding to the following question Problem with subcaptions in subtables I created the following. There appears three problems: in the header starting from "Mean" to "Max." The alignment seems not to work properly. Also for integers there appears the problem because they are aligned by an "invisible decimal point". And lastly, the numbers in column 4 5nd 5 "overwrite" each other. I tried to overwrite (as suggested in the question link) with `\mc{}` (`\multicolumn{1}{c}{}`) but could not make it work.               \begin{table}[ht!]     \setlength\tabcolsep{0.1pt}  % default value: 6.0pt          \begin{threeparttable}          \caption{Summary Statistics}     \label{tab:SummaryStatistics}          \begin{tabular*}{\textwidth}%       { @{\extracolsep{\fill}} l *{3}{d{5.0}} *{3}{d{2.4}}            *{2}{d{5.0}} *{2}{d{2.4}} @{} }          \toprule     Variable      & \multicolumn{1}{c}{N} & \multicolumn{1}{c}{Mean} & \multicolumn{1}{c}{Std. Dev.} & \multicolumn{1}{c}{Min.} & \multicolumn{1}{c}{Q1} & \multicolumn{1}{c}{Median} & \multicolumn{1}{c}{Q3} & \multicolumn{1}{c}{Max.} \\     \midrule     \multicolumn{9}{l}{Earnings Surprise}                                                                  \\     \noindent\hspace*{3mm} SUE1 & 14070 & -0.001 & 0.182 & -7.450 & -0.003 & 0.001 & 0.005 & 6.240 \\     \noindent\hspace*{3mm} SUE2 & 14081 & 0.000 & 0.154 & -7.440 & -0.002 & 0.001 & 0.005 & 6.250 \\     \noindent\hspace*{3mm} SUE3 & 12604 & -0.001 & 0.134 & -8.180 & 0.000 & 0.001 & 0.002 & 7.090 \\     \multicolumn{9}{l}{Firm Characteristic} \\     %\noindent\hspace*{5mm} CASC (in bps)                                                                      & 12309 & 2.492  & 0.016     & -6199 & -9.790 & 0.000  & 9.770 & 6078 \\     \noindent\hspace*{3mm} CASC & 12309 & 0.000 & 0.016 & -0.620 & -0.001 & 0.000 & 0.001 & 0.608 \\     \noindent\hspace*{3mm} BHAR & 13885 & 0.006 & 0.143 & -0.874 & -0.066 & 0.002 & 0.070 & 2.530 \\     \noindent\hspace*{3mm} DVOLA & 13866 & 0.000  & 0.004 & -0.043 & -0.001 & 0.000 & 0.001 & 0.104 \\     \noindent\hspace*{3mm} \begin{tabular}[c]{@{}l@{}}Market Value of\\ \noindent\hspace*{2mm}Equity (in mio)\end{tabular} & \multicolumn{1}{c}{14012}& \multicolumn{1}{c}{21467} & \multicolumn{1}{c}{40919} & \multicolumn{1}{c}{52} & \multicolumn{1}{c}{3329} & \multicolumn{1}{c}{8082} & \multicolumn{1}{c}{20408} & \multicolumn{1}{c}{510201} \\     \noindent\hspace*{3mm} LEVERAGE & 12756 & 0.299 & 0.203     & 0.000 & 0.144 & 0.252 & 0.420 & 1.000 \\     \noindent\hspace*{3mm} DLEVERAGE & 12107 & 0.001 & 0.042 & -0.274 & -0.017 & -0.002 & 0.015 & 0.461 \\     \noindent\hspace*{3mm} UPGRADE & 14094 & 0.022 & 0.148 &  0.000 & 0.000 & 0.000 & 0.000 & 1.000 \\     \noindent\hspace*{3mm} DOWNGRADE & 14094 & 0.036 & 0.186 & 0.000 & 0.000 & 0.000 & 0.000 & 1.000 \\     \multicolumn{9}{l}{Macroeconomic Factors} \\     \noindent\hspace*{3mm} SPOT & 14058 & 0.029 & 0.014 & 0.006 & 0.019 & 0.030 & 0.041 & 0.052 \\     \noindent\hspace*{3mm} DSPOT & 13489 & -0.001 & 0.004     & -0.016 & -0.003 & 0.000 & 0.002 & 0.013 \\     \noindent\hspace*{3mm} SLOPE & 14058 & 0.014 & 0.010 & -0.002 & 0.003 & 0.016 & 0.023 & 0.029 \\     \noindent\hspace*{3mm} DSLOPE & 13489 & 0.000 & 0.003     & -0.011 & -0.003 & -0.001 & 0.002 & 0.012 \\ [1ex]     \bottomrule     \end{tabular*}     \begin{tablenotes}     \footnotesize     \item This is where authors provide additional information about the data, including whatever notes are needed.     \end{tablenotes}     \end{threeparttable}     \end{table}      Additionally, I get an error "Badbox" (`Overfull \hbox ...`). Is that because the table is actually "too big" for the page? BTW, the row "Market Value of equity" was an attempt to wrap the text within the column. I am not sure if this is a "smart" way to handle such things :)


title: Automatic cell colouring using cellcolor: Undefined Control Sequence

text: I am trying to produce a table, using `tabularx`, where the cells are coloured automatically depending upon their value. I want to use the `\cellcolor` command as it will fill the whole cell, rather than `colorbox` command which seems to only fill the area around the numbers, and one has to fiddle with `\fboxsep` to get a suitable fill. Here is a MWE, with the `Value 1` column coloured manually, the `Value 2` column should look the same, but there is an error in passing the numerical value to `\cellcolor`, which says I have an `Undefined Control Sequence`               \documentclass[11pt]{book}% openany     \usepackage{color}     \usepackage[usenames,dvipsnames,svgnames,table]{xcolor}     \usepackage{mathtools}     \usepackage{pgfplots}     \pgfplotsset{compat=1.10}     \usepackage{tabularx}      \usepackage{collcell}     \colorlet{LightSpringGreen}{white!70!lime}     \colorlet{LightRed}{white!70!red}     \newcommand{\MinNumber}{0}%     \newcommand{\MaxNumber}{0}%     \newcommand{\ApplyGradient}[1]{%     \pgfmathsetmacro{\PercentColor}{100.0*(#1-\MinNumber)/(\MaxNumber-\MinNumber)}         \cellcolor{LightSpringGreen!\PercentColor!LightRed}{#1}     }     \newcolumntype{H}{>{\collectcell\ApplyGradient}X<{\endcollectcell}}     \begin{document}     \begin{table}     \renewcommand{\MinNumber}{0}%     \renewcommand{\MaxNumber}{1}%     \begin{tabularx}{\textwidth}{l|l|H}     \hline     Name & Value 1 & \multicolumn{1}{c}{Value 2} \\     \hline     a & \cellcolor{LightSpringGreen!20!LightRed}0.2 & 0.2\\     b & \cellcolor{LightSpringGreen!50!LightRed}0.5 & 0.5\\     c & \cellcolor{LightSpringGreen!60!LightRed}0.6 & 0.6\\     d & \cellcolor{LightSpringGreen!80!LightRed}0.8 & 0.8\\     \end{tabularx}     \end{table}     \end{document}      The problem appears to be associated with the way the number is passed. In a test run, if I put `\num{20}` in the 2nd column, 2nd row then the same error comes up. Can anyone tell me where I am going wrong?


title: Create spreadsheet corresponding to \item's

text: I am writing a mathematics book. For each example, I would like to store a few attributes, including: -The source -Whether I have checked the problem -The difficulty of the problem (etc.) Normally, I would just create a spreadsheet that would do this, but I frequently rearrange the examples, making it cumbersome to update the spreadsheet. Is it possible to create a database that stores these attributes for each \item (each example), that can be conveniently printed, and dynamically updated when the \item's are rearranged? Here's a tangible example of what I want.               \section{Chapter 1}          \begin{enumerate}          %Source: X     %Checked: No     %Difficulty: Easy     \item (Example goes here)          %Source: Y     %Checked: Yes     %Difficulty: Hard     \item (Example goes here)     \end{enumerate}      And the output would be a .PDF, something like               Example 1.1          Source: X     Checked: No     Difficulty: Easy          Example 1.2     Source: Y     Checked: Yes     Difficulty: Hard      where the above is formatted in a table of some sort. Thanks in advance for the help! Please let me know if I should clarify the question.


title: Customize TOC (colors) of classicthesis

text: I am using `classicthesis` as a template for my thesis. The thing is that I want to put a different color for the chapters on the table of contents. Example: > CONTENTS > > 1 Introduction (on color red) > > 1.1 Motive > > 1.2 Anything Thanks! I hope you can help me.


title: how to change the size of one block in beamer

text: I am preparing a presentation of proposal thesis and I need to know how I can change the size of one block in beamer. I can not use this command. I need to personalize the size for each block               \addtobeamertemplate{block begin}{%      \setlength{\textwidth}{0.9\textwidth}%     }{}


title: Itemize list like table of contents

text: I would like to create a list of items that looks like a table of contents:               Item 1 ......................... Item 1 price     Item 2 ......................... Item 2 price     Item 3 ......................... Item 3 price      etc. How do I reproduce the dotted line inside an `itemize` environment? Or is there a better tool for this task (like a table, maybe)?


title: Multiple equations and underbrace environment

text: I would like to have the same result that the figure below (with others variables of course): ![enter image description here](http://i.stack.imgur.com/4zXpg.jpg) I tried this code and it worked well, but for me it is not the right way to do because I need the numbering for each equation as it is possible to have with an align environment. The code I used is as follows and as you can see, the code is too huge. I was wondering if it is possible to reduce it to an align environment or another simple way to work with \underbrace {}? ..               \documentclass{article}     \usepackage{amsmath}     \usepackage{mathtools}          \begin{document}     \[     \underbrace{     \begin{array}{c}     z_1 \\[0.2cm]     z_2 \\[0.2cm]     z_3 \\[0.2cm]      z_4     \end{array}}_\text{Measurements}     \begin{array}{c}     = \\[0.2cm]      = \\[0.2cm]      = \\[0.2cm]     =     \end{array}     \underbrace{     \begin{array}{c}     h_1\left(x_1, x_2, x_3, x_4\right) \\[0.2cm]      h_2\left(x_1, x_2, x_3, x_4\right) \\[0.2cm]      h_3\left(x_1, x_2, x_3, x_4\right) \\[0.2cm]      h_4\left(x_1, x_2, x_3, x_4\right)      \end{array}}_\text{True values from system model}     \begin{array}{c}     + \\[0.2cm]      + \\[0.2cm]      + \\[0.2cm]      +     \end{array}     \underbrace{     \begin{array}{c}     e_1 \\[0.2cm]      e_2 \\[0.2cm]      e_3 \\[0.2cm]      e_4     \end{array}}_\text{Errors}     \]     \end{document}      Thank you, in advance for your helps.


title: Enumerate \item with a decimal value

text: I'm using enumerate to create an outline that already exists. (As in, I'm copying an existing list, and I get no say in the numbers that are already picked.) My problem is that occasionally the outlines have a fractional value thrown in. One of the sections proceeds like: 1, 2, 2.5, 3. I tried using `\setcounter{enumi}{1.5}` before where 2.5 goes, but LaTeX didn't like that at all. This works, but is a little clunky:               \setcounter{enumi}{1}     \renewcommand{\labelenumi}{(\theenumi.5)}     \item This is item number 2.5.     \setcounter{enumi}{2}     \renewcommand{\labelenumi}{(\theenumi)}      Is there a better way to have a decimal value?


title: pstricks and beamer compilation with xelatex results in xkeyval error

text: I'm creating some slides and need to include a pstricks image. I'd like to compile the file via `xelatex`. My minimal example reads               \documentclass[ngerman,xcolor=pst]{beamer}     \usepackage{fontspec,babel}     \usepackage{pst-solides3d,pst-3dplot,pst-eucl,pstricks}%     \title{Test}     \begin{document}     \begin{frame}     \begin{center}     \psset{unit=2}     \begin{pspicture}(-1.9,-0.7)(3,2.1)     \psset{viewpoint=3 -10  3,Decran=20,lightsrc=viewpoint}     \defFunction[algebraic]{sphere}(u,v){cos(u)*cos(v)} {sin(u)*cos(v)} {sin(v)}     \psSolid[object=surfaceparametree,base=pi neg pi 0 1,hue=0.3 0.3,function=sphere,linewidth=0.2pt,opacity=0.6,ngrid=0.1]     \axesIIID(1,3.5,.75)(1.25,5,1)     \psSolid[object=vecteur,args=0.707 -0.5 0.5,label=n](0.707,-0.5,0.5)     \psellipticarc{<-}(0,1.6)(1,0.2){300}{400}     \psellipticarc{->}(0,-0.1)(1.82,0.575){200}{340}     \end{pspicture}     \end{center}     \end{frame}     \end{document}      and it results in the error               ! Package xkeyval Error: `label' undefined in families `,pstricks,pst-node,pst-     solides3d,pst-3d,pst-plot,pst-3dplot,pst-eucl'.          See the xkeyval package documentation for explanation.     Type  H <return>  for immediate help.      ...                                                        l.19 \end{frame}      It was done with `xelatex --version`:               XeTeX 3.1415926-2.2-0.9997.4 (TeX Live 2010)     kpathsea version 6.0.0     Copyright 2010 SIL International and Jonathan Kew.     There is NO warranty.  Redistribution of this software is     covered by the terms of both the XeTeX copyright and     the Lesser GNU General Public License.     For more information about these matters, see the file     named COPYING and the XeTeX source.     Primary author of XeTeX: Jonathan Kew.     Compiled with ICU version 4.4 [with modifications for XeTeX]     Compiled with zlib version 1.2.3; using 1.2.3     Compiled with FreeType2 version 2.3.11; using 2.3.11     Compiled with fontconfig version 2.7.3; using 2.8.0     Compiled with libpng version 1.2.40; using 1.2.40     Compiled with xpdf version 3.02pl4      I have no hint, how to fix this. Who can help?   Of course I looked in the xkeyval documentation: The explanation `The keyname is not defined in the families. Probably you mistyped name.` is not helpful.   Thanks in advance.


title: How to split long expression inside left brace?

text: Please find below the equation I want to write on my Latex document but unfortunately i can't split the 2 expressions inside the left brace because they are too long               \begin{equation}     \begin{split}     &F\left(\lambda,\alpha,\beta,c\right) \triangleq \int_0^{\infty}\int_{-\infty}^{\frac{\lambda}{2\gamma_{rd}}} p\left(\gamma_{rd}\right)p\left(y_{rd}\mid \gamma_{rd},c\right)dy_{rd}d\gamma_{rd}= \\     &\left\lbrace     \begin{array}{ll}     1 + \displaystyle{\frac{1}{2}.\{\frac{\mu\left[c\right]\left(\exp\left(-\alpha\beta\right)-1\right) - \sqrt{B_{rd}}}{\sqrt{B_{rd}}}     + \sqrt{\frac{\pi}{2}}.\exp\left(-\alpha\beta\right).\left(\frac{\lambda}{2\sqrt{\alpha}} - \mu\left[c\right].\sqrt{\alpha}\right).\exp\left(\iota_{\alpha,\beta}\left(\lambda\right)^{2}\right)erfc\left(\iota_{\alpha,\beta}^{+}\left(\lambda\right)\right)\}.\exp\left(\beta_{rd}^{+}\left(c\right)\lambda\right)} & \mbox{if }\lambda\geq0\\     \displaystyle{\frac{1}{2}.\{\frac{\mu\left[c\right]\left(\exp\left(-\alpha\beta\right)-1\right) + \sqrt{B_{rd}}}{\sqrt{B_{rd}}}     + \sqrt{\frac{\pi}{2}}.\exp\left(-\alpha\beta\right).\left(\frac{\lambda}{2\sqrt{\alpha}} - \mu\left[c\right].\sqrt{\alpha}\right).\exp\left(\iota_{\alpha,\beta}\left(\lambda\right)^{2}\right)erfc\left(\iota_{\alpha,\beta}^{+}\left(\lambda\right)\right)\}.\exp\left(\beta_{rd}^{-}\left(c\right)\lambda\right)} & \mbox{if } \lambda<0     \end{array}\right.     \end{split}     \label{F function}     \end{equation}      Could you please help, I tried to put another split inside the array but without success? Thanks in advance


title: How to write some texts in this picture?

text: I have a file               \documentclass[10pt]{article}     \usepackage{pstricks-add}     \usepackage{esvect}     \pagestyle{empty}     \begin{document}     \psset{xunit=1.0cm,yunit=1.0cm,algebraic=true,dotstyle=o,dotsize=3pt 0,linewidth=0.8pt,arrowsize=3pt 2,arrowinset=0.25}     \begin{pspicture*}(-1,-1)(10,4)     \psline{->}(1,1)(0,0)     \psline{->}(1,1)(3,1)     \psline{->}(1,1)(0,3)     \psline{->}(7,1)(5,0)     \psline{->}(7,1)(9,0)     \psline{->}(7,1)(7,3)     \rput[tl](0.61,0.59){$\vv{a}$}     \rput[tl](1.72,1.5){$\vv{b}$}     \rput[tl](0.68,2.38){$\vv{c}$}     \rput[tl](8.14,0.78){$\vv{a}$}     \rput[tl](5.47,0.82){$\vv{b}$}     \rput[tl](6.4,1.97){$\vv{c}$}     \end{pspicture*}     \end{document}      I want to write some texts like the picture. How to get them? ![enter image description here](http://i.stack.imgur.com/aZaRW.gif)


title: Proof Split Over Two Pages

text: I have a proof that should take up only just over half a page; however, when I compile it, only the first few sentences appear in the bottom half of the page where my proof starts, and the rest is moved to the next page. I rather would want text to only appear on the next page after the available white space has been used (as is usually the case). Here is the proof:               \documentclass{article}     \usepackage{amsthm}     \usepackage{amsmath}     \usepackage{lipsum}     \begin{document}          \lipsum[1-3]     \begin{enumerate}             \item Show Rank($A$) = Rank($B$), for $A = {^S}B$.                 \begin{proof}                         For $S^{-1}AS$ to be defined, $A$ must be $n \times n$ for S $n \times n$, and as $S^{-1}AS = B$, $B$ is also $n \times n$. By the Rank-Nullity theorem, Rank($A$) = n $-$ Null($A$). Hence, it suffices to show Null($A$) = Null($B$), as both $A$ and $B$ have $n$ columns.                          \begin{align*}                                 \mathbf{0} & = B\mathbf{x} = S^{-1}AS\mathbf{x},\ \mathbf{x} \in \mathrm{Ker}(B) \\                                 & = SS^{-1}AS\mathbf{x},\ \text{as}\ S\mathbf{0} = \mathbf{0} \\                                 & = I_{n \times n}AS\mathbf{x} \\                                 & = AS\mathbf{x} \\                                 & \Rightarrow S\mathbf{x} \in \mathrm{Ker}(A) \tag{71.a.1} \\                                 \mathbf{0} & = A\mathbf{x} = SBS^{-1}\mathbf{x},\ \mathbf{x} \in \mathrm{Ker}(A) \\                                 & = S^{-1}SBS^{-1}\mathbf{x},\ \text{as}\ S^{-1}\mathbf{0} = \mathbf{0} \\                                 & = I_{n \times n}BS^{-1}\mathbf{x} \\                                 & = BS^{-1}\mathbf{x} \\                                 & \Rightarrow S^{-1}\mathbf{x} \in \mathrm{Ker}(B) \tag{71.a.2} \\                                 \mathbf{0} & = c_1\mathbf{v_1} + \dotsb + c_p\mathbf{v_p} \Rightarrow c_i = 0\ \text{for}\ \bigl\{v_i \vert i \in \{1,\dotsc,p\}\bigr\}\ \text{a basis of $B$} \\                                 & = c_1S\mathbf{v_1} + \dotsb + c_nS\mathbf{v_p},\ \text{as $S$ is linear} \\                                 & \Rightarrow S\mathbf{v_i}\ \text{are linearly independent} \bigl(\text{in}\ \mathrm{Ker}(A)\ \text{by (71.a.1)}\bigr),\ \text{as $c_i$ are unchanged and all zero} \\                                 & \Rightarrow \mathrm{dim}\bigl(\mathrm{Ker}(A)\bigr) \geq \mathrm{dim}\bigl(\mathrm{Ker}(B)\bigr) = p \tag{71.b.1} \\                                 \mathbf{0} & = c_1\mathbf{w_1} + \dotsb + c_q\mathbf{w_q} \Rightarrow c_i = 0\ \text{for}\ \bigl\{w_i \vert i \in \{1,\dotsc,q\}\bigr\}\ \text{a basis of $A$} \\                                  & = c_1S^{-1}\mathbf{w_1} + \dotsb + c_qS^{-1}\mathbf{w_q},\ \text{as $S^{-1}$ is linear} \\                                 & \Rightarrow S^{-1}\mathbf{w_i}\ \text{are linearly independent}\ \bigl(\text{in}\ \mathrm{Ker}(B)\ \text{by (71.a.2)}\bigr),\ \text{as $c_i$ are unchanged and all zero} \\                                 & \Rightarrow \mathrm{dim}\bigl(\mathrm{Ker}(B)\bigr) \geq \mathrm{dim}\bigl(\mathrm{Ker}(A)\bigr) = q \tag{71.b.2}                         \end{align*}                         Combining (71.b.1) and (71.b.2), as $p \geq q$ and $q \geq p$, by the antisymmetric property of the order relation, $p = q$, and Nul($A$) = Nul($B$).                 \end{proof}     \end{enumerate}     \end{document}      This is being used within an enumerate environment with many other questions, though I checked, and the problem still persists even without the enumerate environment. Thanks for any suggestions anyone can provide. My full code (using the afterpage package suggested here) is here: http://pastebin.com/HZhB5x4i


title: Line with arrowhead in PGFPLOT

text: How can I add a line ending with an arrowhead in pgfplot?               \begin{tikzpicture}     \begin{axis}[grid=major,axis x line=middle,                  axis y line=middle]          \addplot[domain=0:1, no markers] {(x^2)*(3-2*x)};          \addplot[] coordinates                {(0,0) (0.5,0)};          \end{axis}     \end{tikzpicture}      I want the above line to end with an arrow but I can't figure out what to put in the brackets. Probably that's a dumb question but neither google nor the manual helped me:(


title: Is it possible to create a \newcolumntype-like macro accepting more than one arguments where one of them is an optional argument?

text: Is it possible to create a `\newcolumntype`-like macro accepting more than one argument and one of them is an optional argument? * * * I want to create a column type `A` that can accept more than 1 argument such that I can create a tabular as follows:               \begin{tabular}{|A[2cm]{1cm}{5cm}|c|l|r|}     ...     \end{tabular}      **Note:** the column type `A` accepts 3 arguments in this example.


title: How to specify text location for a title page?

text: I'm trying to specify text within certain locations of a title page, such as title of essay a quarter down the page, my name half way down, etc. Here's my MWE:               \documentclass[letterpaper,12pt]{article}     \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage{lmodern, outlines,tensor,amssymb,amsmath,wasysym,ulem,cancel,textcomp,fancyhdr,xfrac,multicol,hyperref,setspace}     \usepackage[top=2.54cm, left=2.54cm, bottom=2.54cm,right=2.54cm]{geometry}          \begin{document}     \begin{titlepage}          \begin{center}       Insert Witty Title Here: Witty Subtitle Here\\[3.81cm]            Jane Doe\\[7.62cm]                 \doublespacing       {A Class\\        Dr. Some Body\\       13 November 2012}\\[22.86cm]     \end{center}          \end{titlepage}          \end{document}      As y'all can see, I have tried to specify the locations relative to a letter size page, but it's not rendering the way I would like it to, and neither does changing the size do anything. Any advice, I would very much appreciate. Thanks! Just as an aside: I don't know if anyone is looking at how many packages I have and thinking, "Wow, that's sure alot" or maybe not because it's reasonably normal... but yes I do use lots of packages.


title: How can I highlight Java bytecode?

text: I usually use minted to display highlighted source code. But it seems as if minted would not support Java bytecode (see list of supported languages). How can I insert highlighted java bytecode? (Is there perhaps another "language" that has a similar instruction set? Does listings have an option for bytecode? Has somebody manually created a highlighting file for minted/listings?)


title: Tikz: how to create a new shape type: comment

text: I want to create a flowchart diagram with a comment:               \documentclass{article}     \usepackage[utf8]{inputenc}     \usepackage[english]{babel}     \usepackage{tikz}     \usetikzlibrary{shapes,backgrounds,calc}     \begin{document}          \begin{tikzpicture}[node distance = 1.7cm, auto]     \tikzset{             line/.style = {draw},             comment/.style = {rectangle, draw, text centered, rounded corners, minimum height=2em,fill=white},             terminator/.style = {shape=rounded rectangle, draw, inner sep=2mm},     }          \node[terminator] (node-1) {begin};          \node [comment, below of=node-1] (node-2) {comment comment comment};          \begin{scope}[on background layer]       \draw[fill=gray!40] ($(node-2.south west)+(-2mm,-2mm)$) rectangle ($(node-2.north east)+(2mm, 2mm)$);     \end{scope}          \path [line] (node-1) -- ($(node-2.north)+(0mm,+2mm)$);          \node[terminator, below of=node-2, node distance=1.5cm] (node-3) {end};          \path [line] ($(node-2.south)+(0mm,-2mm)$) -- (node-3);          \end{tikzpicture}     \end{document}      It gives this: ![enter image description here](http://i.stack.imgur.com/GbjBX.png) But comment is not a block, but 2 elements: background layer and a rounded rectangle. How to make new shape from it with anchors?


title: Forcing a Document into a Single page

text: I've been using `TeX` for a while, so when I suggested my company compile its daily newsletter using LaTex, rather than an hour and a half of someone's time, I got tasked with actual implementation. I'm near done, but because the data is generated dynamically - I'm not sure exactly how much text is going to be generated an placed into each article. I've use `\vspace{\fill}` to strategically deal with an undersized newsletter - but I can't figure out what to do in the case of an oversized one. Is there a way to force `TeX` to compile into a single page, every time? I mean, I'd rather (honest to god) just have the text cut off the way it does horizontally. I found this this incredibly similar question, and tried everything listed there. I've looked into `samepage`, but that environment just breaks the page anyway after a while. Additionally, `\parbox` was suggested - but when I wrapped the whole document in that, an overfull box it just caused it to break the page before. `needspace` will do the same thing. I've been developing this process over the last few days, periodically breaking to spend hours searching the Google Box or StackExchange for answers, to no avail. Anyone?


title: otf sans serif math only in figures

text: I was going to use a serif font (TG Pagella) for most of the text (including captions) and a sans serif font (Candara) for my (tikz) figures. For text this works nice, but not for maths. First I used only `unicode-math` with the `version` key to switch to the sans version via `\mathversion{...}`. The problem is that `unicode-math` expects an otf math font which does not exists for Candara. Using the normal Candara font results in up-right math, but I want it to be italic. With the italic font everything in math becomes italic even numbers. So next I tried to use mathspecs. There the sans math works nice. The problem is that I don't know how to switch between sans and serif, because there is no `version` option for `\setmathsfont` and `\setmathsfont` can only be called from the preamble. So I only used the `version` key for Pagella and tried to switch to the sans font via `\mathversion{normal}` but this does not really work. Some how the math font is then always Candara (see below). Is there any way to get that work?               \documentclass[a5paper]{memoir}          \usepackage{tikz}     \usepackage{pgfplots}     \usepgfplotslibrary{units}     \pgfplotsset{compat=1.8}          \usepackage{mathspec}          \usepackage{unicode-math}     \setmainfont[Numbers=OldStyle]{TeX Gyre Pagella}     \setmathfont[version=tgp]{TeX Gyre Pagella Math}     \setsansfont[Scale=MatchUppercase]{Candara}     \setmathsfont(Digits,Latin,Greek)[Scale=MatchUppercase]{Candara}          \usepackage{siunitx}     \SendSettingsToPgf          \tikzstyle{every picture}+=[font=\small\sffamily,                     execute at begin picture=\mathversion{normal}                     ]     \pgfplotsset{unit code/.code 2 args={                         \sisetup{detect-family}                         \si{#1#2}}}     \pgfplotsset{general plot/.style={              xtick pos=left,             ytick pos=left,             enlarge x limits=false,             minor x tick num=1,             every x tick/.style={color=black, thin},             every y tick/.style={color=black, thin},             tick align=outside,             xlabel near ticks,             ylabel near ticks,             unit markings=parenthesis         }      }          \usepackage{blindtext}     \parindent=0pt     \mathversion{tgp}     \begin{document}         $V_{\textup{DS}}$ in \si{V}\\         1234567890\\         \textsf{1234567890}         \begin{figure}             \begin{tikzpicture}                 \begin{axis}[                     general plot,                     xlabel=Voltage $V_{\text{DS}}$,                     x unit=\volt,                     change y base=true,                     y SI prefix=micro,                     ylabel=Current $I$,                     y unit=\ampere]                 \addplot {1.3E-6*x};                 \end{axis}             \end{tikzpicture}             \caption{The current $I$ in \si{\micro\ampere} versus the voltage $V_\textup{DS}$ in \si{\volt}}         \end{figure}     \end{document}      ![enter image description here](http://i.stack.imgur.com/aGpzt.png) **Edit:** Following the comments of Khaled Hosny I tried to use only `unicode- math`. There was one problem the `range` option does not work for `version`-tagged fonts. So I made two commands to switch between the settings. And indeed this works fine for math in the body. But if I use them in conjunction with the tikz key `execute at begin picture` I get building errors:               I can only handle fonts at positive sizes that are     less than 2048pt, so I've changed what you said to 10pt.          LaTeX Font Info:    Font shape `EU1/CandaraItalic(0)/m/n' will be     (Font)              scaled to size 0.0pt on input line 57.     ! Improper `at' size (0.0pt), replaced by 10pt.     <to be read again>                     relax      l.57 ^^I^^I^^I\end{axis}      One other error message is:               *************************************************     * fontspec warning: "script-not-exist-latn"     *      * Font 'Candara' does not contain script 'Math'.     * 'Latin' script used instead.     *************************************************     ! Font \nullfont has only 7 fontdimen parameters.     <recently read> \font       And here the source code for that:               \documentclass[a5paper]{memoir}          \usepackage{tikz}     \usepackage{pgfplots}     \usepgfplotslibrary{units}     \pgfplotsset{compat=1.8}          \usepackage{unicode-math}     \setmainfont{TeX Gyre Pagella}     \newcommand{\rmmath}{\setmathfont{TeX Gyre Pagella Math}}     \rmmath     \setsansfont[Scale=MatchUppercase]{Candara}          \newcommand{\sfmath}{         \setmathfont[Numbers=Lining, Scale=MatchUppercase]{Candara}         \setmathfont[range=\mathit, Scale=MatchUppercase]{Candara Italic}     }          \usepackage{siunitx}     \sisetup{detect-family}     \SendSettingsToPgf          \tikzstyle{every picture}+=[font=\small\sffamily,     % This does not compile:                     execute at begin picture=\sfmath,                     execute at end picture=\rmmath                     ]     \pgfplotsset{unit code/.code 2 args={                         \si{#1#2}}}     \pgfplotsset{general plot/.style={              xtick pos=left,             ytick pos=left,             enlarge x limits=false,             minor x tick num=1,             every x tick/.style={color=black, thin},             every y tick/.style={color=black, thin},             tick align=outside,             xlabel near ticks,             ylabel near ticks,             unit markings=parenthesis         }      }          \parindent=0pt          \begin{document}         \begin{figure}             \begin{tikzpicture}                 \begin{axis}[                     general plot,                     xlabel=Voltage $V_{\text{DS}}$,                     x unit=\volt,                     change y base=true,                     y SI prefix=micro,                     ylabel=Current $I$,                     y unit=\ampere]                 \addplot {1.3E-6*x};                 \end{axis}             \end{tikzpicture}             \caption{The current $I$ in \si{\micro\ampere} versus the voltage $V_\textup{DS}$ in \si{\volt}}         \end{figure}         {\sffamily V    \sfmath $5 V_{\mathrm{DS}}$ in \si{V}}\\         V \rmmath $5 V_{\textup{DS}}$ in \si{V}\\     \end{document}


title: The % symbol overlaps inside a listing with MatLab code

text: I'm using the `listings` package to insert MatLab routines that I've created for some papers I need to write. Everything works awesome, except the symbol `%` (comment in MatLab) which overlaps with the next character. Below there's an image that shows this phenomenon. ![enter image description here](http://i.stack.imgur.com/5n5Ji.png) And the MWE showing the problem is attached below:               \documentclass[letterpaper,12pt,openany,final]{memoir}     \usepackage[utf8x]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{lmodern}     \usepackage{graphicx} %Gráficos     \usepackage[top=4cm,right=2.5cm,left=3cm, bottom=3cm]{geometry}     \usepackage{ucs}     \usepackage{xcolor}     \usepackage{color,calc,graphicx,soul}     \usepackage{float}      \usepackage{rotating}      \usepackage{parskip}     \usepackage{mathptmx}%Fuente     \usepackage{epstopdf}          \setlength{\evensidemargin}{\oddsidemargin}          \title{Lorem Ipsum}     \author{DOlor Sit amet}          \usepackage{textcomp}     \usepackage{listingsutf8}     \renewcommand\lstlistingname{Código}     \renewcommand\lstlistlistingname{Índice de Códigos Fuente}          \lstset{         backgroundcolor=\color{white},         tabsize=4,         rulecolor=,         literate={ó}{{\'o}}1              {á}{{\'a}}1              {é}{{\'e}}1              {º}{{\textdegree}}1              {ú}{{\'u}}1,         escapeinside={\%*}{*)},         language=octave,             basicstyle=\scriptsize,             numberstyle=\tiny,             upquote=true,             aboveskip={1.5\baselineskip},             columns=fixed,             showstringspaces=false,             extendedchars=true,             breaklines=true,             prebreak = \raisebox{0ex}[0ex][0ex]{\ensuremath{\hookleftarrow}},             frame=single,             showtabs=false,             name=Feedservoplot             showspaces=false,             texcl=false,             inputencoding=latin1,             numbers=left,             firstnumber=auto,         showstringspaces=false,             identifierstyle=\ttfamily,             keywordstyle=\color[rgb]{0,0,1},             commentstyle=\color[rgb]{0.133,0.545,0.133},             stringstyle=\color[rgb]{0.627,0.126,0.941},             escapeinside={(*@}{@*)}     }          \usepackage[protrusion=true,expansion=true]{microtype}  %Alineado óptico     \usepackage{amssymb}     \usepackage{amsmath}          \usepackage[activeacute,spanish] {babel}     \renewcommand\shorthandsspanish{}     \renewcommand{\arraystretch}{1.2}     \clubpenalty=10000     \widowpenalty=10000     \setcounter{tocdepth}{2}     \setcounter{secnumdepth}{2}     \setcounter{lofdepth}{2}     \usepackage[]{hyperref}     \usepackage{memhfixc}     \begin{document}     \setcounter{chapter}{1}          \setlength{\evensidemargin}{\oddsidemargin}          \chapter{Lorem ipsum}          Lorem ipsum dolor sit amet:          \begin{lstlisting}     a%     \end{lstlisting}          \begin{equation}     \frac{d}{dt} \frac{\partial \mathcal{L}}{\partial \dot{q_i}}     \end{equation}      \begin{equation}      a<0     \end{equation}           \end{document}      Any suggestions? Thanks in advance. Best regards, Charlie PS: I must say that I don't know if this happens with other prog. languages.


title: How to tell which package is defining \ifpdf?

text: I'm experiencing a problem similar to this one: Package ifpdf Error After upgrading to a more recent version of TeX Live, my pre-existing documents stopped compiling, with complaints that `\ifpdf` was already defined. My project is large and pulls in a lot of packages, so I don't know which one is defining `\ifpdf`. Using `\let\ifpdf\relax` after the `\documentclass`, as suggested in the answers to the other question, fixes the problem on the newer TeX Live. However, this breaks the document on older versions of TeX Live, where I still need it to compile for various reasons. (I think I'm getting malformed PDFs from pdfTeX 3.1415926-2.4-1.40.13, but that's another topic.) Is there any simple, straightforward way of finding out which package is defining `\ifpdf` when it shouldn't be? I could presumably figure it out by trial and error, by bisection, but this is a large, complicated project, and that would be a lot of work. If that worked, would knowing this allow me to make my file compile on both versions of TeX Live? Is there some other way of making a more robust fix? Can I somehow test somewhere to see whether `\ifpdf` has been defined, and then define it conditionally at that point? [EDIT] I figured out the problem. It wasn't another package, it was some code in my own .cls file, which I'd cut and pasted from somewhere probably 15 years ago:               \newif\ifpdf     \ifx\pdfoutput\undefined     \pdffalse % we are not running PDFLaTeX     \else     \pdfoutput=1 % we are running PDFLaTeX     \pdftrue     \fi          \ifpdf     \usepackage[pdftex]{graphicx}     \else     \usepackage{graphicx}     \fi     \AtBeginDocument{             \ifpdf             \DeclareGraphicsExtensions{.pdf,.jpg,.png}             \else             \DeclareGraphicsExtensions{.eps,.jpg,.png}             \fi     }      I was able to make it run on both (modern) versions of texlive by shortening this to the following:               \usepackage{graphicx}     \AtBeginDocument{             \DeclareGraphicsExtensions{.pdf,.jpg,.png}     }      This probably breaks compatibility with dvi-flavored tex, but I don't care about that.


title: \titleformat does not seem to work when used within a class file

text: The following block of code doesn't seem to do anything when I define it in a custom class. But when I use the class but put this block in my preamble, it works as expected.               \titleformat{\chapter}       {\normalfont\sffamily\Huge\scshape}       {}{0pt}       {\begin{tikzpicture}[remember picture,overlay]         \node[yshift=-3cm] at (current page.north west)           {\begin{tikzpicture}[remember picture, overlay]             \draw[fill=cyan] (0,-1) rectangle               (\paperwidth,3cm);             \node[anchor=west,xshift=.21\paperwidth,yshift=-.01\paperheight,rectangle]                   {\color{white}\LARGE CHAPTER \Huge\thechapter};             \node[anchor=west,xshift=.21\paperwidth,yshift=-.065\paperheight,rectangle]                   {\color{cyan}\Huge\MakeUppercase{#1}};            \end{tikzpicture}           };        \end{tikzpicture}       }      Here's my class file:               \LoadClass[10pt,letterpaper,oneside]{book}     \let\cleardoublepage\clearpage          \RequirePackage[left=2.25in,right=0.75in,top=1.5in,bottom=1.5in]{geometry}     \RequirePackage{graphicx}     \RequirePackage[hidelinks]{hyperref}     \RequirePackage{amsthm, amsfonts, amsmath}     \RequirePackage{thmtools}     \RequirePackage{paralist}     \RequirePackage{tikz}     \RequirePackage[explicit]{titlesec}     \RequirePackage{blindtext, xcolor}     \RequirePackage[T1]{fontenc}     \RequirePackage{mdframed}     \RequirePackage{DejaVuSansCondensed}     \RequirePackage[normalem]{ulem}          \titleformat{\chapter}       {\normalfont\sffamily\Huge\scshape}       {}{0pt}       {\begin{tikzpicture}[remember picture,overlay]         \node[yshift=-3cm] at (current page.north west)           {\begin{tikzpicture}[remember picture, overlay]             \draw[fill=cyan] (0,-1) rectangle               (\paperwidth,3cm);             \node[anchor=west,xshift=.21\paperwidth,yshift=-.01\paperheight,rectangle]                   {\color{white}\LARGE CHAPTER \Huge\thechapter};             \node[anchor=west,xshift=.21\paperwidth,yshift=-.065\paperheight,rectangle]                   {\color{cyan}\Huge\MakeUppercase{#1}};            \end{tikzpicture}           };        \end{tikzpicture}       }     \titlespacing*{\chapter}{0pt}{50pt}{0pt}{}          \titleformat{\section}{\color{cyan}\itshape\LARGE}{\llap{\thesection} #1}{1em}{}     \titleformat{\subsection}{\color{cyan}\normalfont\Large}{\; #1}{1em}{}          \renewcommand*\familydefault{\sfdefault}          % Custom Theorem - Example     \declaretheoremstyle[%       within=section,%       spaceabove=5mm,%       spacebelow=0mm%,       headfont=\bfseries,%       headpunct={},%       postheadspace=\newline,%       notefont=\normalfont\itshape,%       notebraces={--~}{},% punctuation before and after the note     ]{examplestyle}     \declaretheorem[style=examplestyle,name=Example]{myex}          % Alter spacing after chapter title     \titleformat{\chapter}[display]         {\normalfont\huge\bfseries}{\chaptertitlename~\thechapter}{20pt}{\Huge}     \titlespacing*{\chapter}{0pt}{50pt}{40pt}     \titlespacing*{name=\chapter,numberless}{0pt}{50pt}{40pt}          \declaretheoremstyle[         within=section,         spaceabove=10mm,         spacebelow=3mm,         headfont=\color{cyan}\normalfont,         notefont=\normalfont,         bodyfont=\itshape,         headpunct=\newline\newline,         %postheadspace={10pt},         notebraces={}{},         headformat={%             \makebox[-15pt][r]{\normalfont\large\NAME\ \NUMBER\;\;\;\;}\setbox0\hbox{\ }\hspace{-\the\wd0}\large\NOTE%         },     ]{theorem}     \declaretheorem[style=theorem]{theorem}     \declaretheorem[style=theorem]{definition}     \declaretheorem[style=theorem]{example}          \declaretheoremstyle[         within=section,         spaceabove=10mm,         spacebelow=3mm,         headfont=\color{cyan}\normalfont,         notefont=\normalfont,         bodyfont=\itshape,         headpunct=\newline\newline,         %postheadspace={10pt},         notebraces={}{},         headformat={%             \makebox[-10pt][r]{}\setbox0\hbox{\ }\hspace{-\the\wd0}\large\NAME%         },     ]{proof}     \let\proof\relax     \declaretheorem[style=proof,qed=\qedsymbol,name=Proof]{proof}     \declaretheorem[style=proof,qed=\qedsymbol,name=Solution]{solution}


title: How to practice LaTeX?

text: With many programming languages, you have the opportunity of practicing the language by doing problems or developing programs that will do certain things. With LaTeX, however, you can't exactly do that because it is a typesetting language and therefore, requires some sort of material to be practiced with. I understand there is the `lipsum` package but what are somethings that a person can do to practice their LaTeX skills without having the need for material? For example, practice for building various tables, practice for doing tricky math equations etc.


title: brackets around multiline columns of a table

text: I am trying to reproduce the table of kinds of dreams in an early-modern philosophical encyclopedia. Preserving the lineation within each column isn't necessary, but I would like to have the brackets align properly. The following code handles everything except for the vertical alignment of the fourth columns. The point on the bracket enclosing Externis/Internis should align with "physicum ortum," and there's a similar problem with Mediate/Immediate. (It would also be nice if the line spacing in the columns were tighter.) Suggestions?               \documentclass[12pt]{article}     \usepackage[polutonikogreek,latin,english]{babel}     \usepackage{ucs}     \usepackage[utf8x]{inputenc}     \usepackage{mathtools}          \begin{document}          \[     \mbox{Somnium proprie dictum}     \begin{dcases}       \mbox{Ordinarium}         \begin{dcases}\mbox{Vulgare seu commune}\\\mbox{physicum ortum}\\              \mbox{ex principiis}\\[2\jot]\mbox{Proprium                aliquibus.}\\\mbox{Præsagiens}\end{dcases}            \begin{dcases}\mbox{Externis}\\\mbox{Internis}\end{dcases}\\[2\jot]        \mbox{Extraordinarium}        \begin{dcases}\mbox{\greektext θεῖον\latintext }\mbox{ diuinum}\\          \mbox{\greektext θεόπεμπτον\latintext}\\\mbox{immissum à            Deo}\\[2\jot]\mbox{Diabolicum}\\\mbox{\greektext            Δαιμονιόπεμπτον\latintext}\end{dcases}              \begin{dcases}\mbox{Mediate per}\\\mbox{bonos                angelos}\\[2\jot]\mbox{Immediate}\end{dcases}      \end{dcases}     \]     \end{document}


title: Beamer: highlighting text with colored background through which surrounding text can be seen

text: On some slides I'd like to highlight some text by using a colored background, like so: ![text with some words highlighted](http://i.stack.imgur.com/UeXaE.png) I've exaggerated the width of the border around the text in this example to indicate the effect I want. I produced this example manually. I'd like to have a macro `\highlighton` so that I can produce the effect by writing `\highlighton<1>{`to protrude out'}`. The wonderful package `tcolorbox` provides macros that almost do the trick. Here's an example.               \documentclass{beamer}     \usepackage{etex}     \setbeamertemplate{navigation symbols}{}     \usepackage{tcolorbox}     \tcbuselibrary{skins}     \usepackage{times}     \def\highlighton<#1>#2{%       \alt<#1>{\tcbox[enhanced,boxrule=0pt,colback=red!50,interior style=       {opacity=0.7},frame style={opacity=0.5},nobeforeafter,tcbox raise base,shrink       tight,extrude by=5mm]{#2}}{#2}%     }          \begin{document}     \begin{frame}          \textbf{Extrude}, \textit{v}.\ trans. \textbf{1}.\ To thrust (a person) out or forth;     to urge or force out; to expel.  \textbf{a}.\ with obj.\ a person.  \textbf{b}.\ with     obj.\ a material thing; in mod.\ use esp.\ to exclude (an embryo, ova, etc.). Also      occas.\ with sense \highlighton<1>{`to protrude out'}.  \textbf{c}. with an immaterial      thing as obj. \textbf{d}.\ To shape (metals, plastics, etc.)\ by forcing them through      dies. \textbf{2}.\ intr.\ for refl. To protrude out. rare.          \pause          \end{frame}     \end{document}      This code (in which `extrude by 5mm` generates the border) produces the following output. Text _before_ the highlighted text is "dimmed", but text _after_ the highlighted text isn't. Is there a way to produce exactly the effect I want? ![enter image description here](http://i.stack.imgur.com/Zj9Xk.png)


title: Changing the paper size

text: I have been using the `currvita.tex` template located here with TeXShop. Unfortunately, the output is not 8.5" by 11". Is there some way I can change either TeXShop settings or the TeX document to adjust the page size?