# All Questions

538 views

### The font of operator names

What is the correct way of having all operator names be set in, say, sans serif? Saying \documentclass{article} \usepackage{amsmath} \makeatletter \def\operator@font{\sf} \makeatother ...
1k views

### Error with \newcommand and \section

369 views

### Error of “missing \item” in enumerate when using custom bullets?

I'm using enumerate to type up homework solutions, based on the following MWE. When I remove the [(a)] from the enumerate, there isn't an error, but when I add it, I get the "perhaps a missing \item" ...
868 views

### Improved kerning in fractions?

Question How can I apply selective kerning within the numerator and denominator of an inline fraction? Specifically, I'd like to: Tighten kerning after the numerator if it ends in 7 Loosen kerning ...
347 views

### Content page, page numbers and few images missing after converting from LaTeX to HTML using htlatex [closed]

I am trying to make a User Manual in both PDF and HTML format. I have generated the HTML file using htlatex but my content page, page numbers and few of my images are missing from it. My images are ...
366 views

### Pass TeX macro to gnuplot environment - gnuplottex

I want to pass a TeX macro to the gnuplottex environment gnuplot. The example here is rather trivial but help solving would be appreciated. The end goal is to adapt the gnuplottex code to call ...
112 views

### amslatex plus endnotes

I have a document that uses \usepackage{endnotes}. When the document class is book it works fine but when the document class is amsbook, I exceed TeX capacity with stack_size, save_size and param_size ...
482 views

### Wrong abstract page number and spaces between LoF and LoT with \addcontentsline

How to correct two things in ToC: Page number of abstract - should be "vii" Spaces above LOF,LOT and Abstract are big. Not like above chapters ? Currently: Contents List of Figures iii ...
5k views

### texlive does not find sty file

I am on Ubuntu 8.04 and just install TeX Live with : sudo apt-get install texlive-full. I tried to compile my .tex file with TexMaker. I get : xcolor.sty not found titlesec.sty not found How ...
2k views

### Change \headheight for a \pagestyle

I have a document class that auto generates header from some user input. The problem is the first page should have a different page header than the others and the headline can be multi line. So ...
1k views

### How to subtract two equations?

I am trying to subtract one equation from another but I can't get it to display the way that I want. This is what I have right now. \begin{align*} &y&=2x+5\\ -&&\\ ...
350 views

### TikZ arrowheads to match xy-pic?

I’d like to make arrow tips in TikZ that match with xy-pic’s standard arrowheads. The methods from this similar question look appropriate, but I thought I’d check first: has anyone else already ...
183 views

### From postscript through pgfmath

I don't understand the next syntax also I would like (if possible) a traduction of the next function with pgfmath /fct {dup 1 gt {pop 90}{dup 1 neg lt {pop 90 neg}{asin} ifelse} ifelse} def
508 views

### graphics - dynamic image placement

This is a follow up to my post here: Graphics - Images off the page in multicolumn environment Using C#, XML, SQL, and LaTeX, I've managed to create a system which retrieves database information and ...
1k views

### Remove space before chapter title - with KOMA script (scrbook)

I am using the KOMA script document class scrbook. Is there any way to make the chapter headings appear exactly at the top of the page body just by using KOMA (without using titlesec, fancyhdr, ...
428 views

### BibTeX: where to write Sir in author's name?

My bibtex style outputs Newton, S. I. Opticks, or a treatise of the reflections, refractions, inflections and colours of light [Text] / Sir Isaac Newton. [S. l.], 1730. 382 p. Google Books : ...
413 views

### Proper margins in custom enumeration/itemize environements

I am using two custom list environments (itemize-compact and descriptionhang), which work fine on their own, but not when I nest them. Please consider this MWE: \documentclass[a4paper]{article} ...
1k views

### (Author, year, abbr. journal name) as citation style

I'm using bibtex and natbib in beamer (by defining the newblock command). I would like to have citations in the slides in the format (Author, year, abbr. journal name) instead of just (Author, year), ...
131 views

### How to check invalid \cite{ENTRY} entries?

When I reference to non exiting bibliography entry See \cite{NON EXISTING} Instead of error, I result in document with See [?] How to do \cite{} checking ? I'd like to prevent citing non-exiting ...
215 views

### Definining a new enviroment depending on a parameter

I want to create a new environment which depend if a parameter exists or not. The basic definition, which works fine, is: \newrgbcolor{bcolor}{1. 1. 1.}% \newenvironment{pbox} ...
513 views

### How to order barplots in aligned rows and columns?

I am making xbar plots with pgfplots. Within different age groups ("Agen interval") of men a single winner is choosen (Winner), based on some test, and on this winner two different variables are ...
1k views

### How to replace a large block of text by an empty block of the same size?

I know there exists the \phantom command, but does it work on large blocks of text (containing several paragraphs or even several pages)? What I want is to have some commands, call them \hide and ...
2k views

### How to create a table that spans over multiple pages, breaking single rows

With the longtable package one can create a table that spans over multiple pages. The problem is that it will never break a row in two: either it stays entirely in the current page or it is moved ...
1k views

### Tool to visualize connections between bibtex entries

I'm searching a tool to visualize connections between bibtex entries, for example same autor, references, same conference etc. The Visual Explorer from Microsoft has this feature, but I want to create ...
6k views

### matrices too big to fit the width of a page

When I type matrices in beamer class, they are often too big to fit the width of a page. What is the way to make the matrices smaller? I also want to make the font of the entries of these matrices ...
5k views

### MacOSX PDF viewer: Automatic reload on file modification

Is there a PDF viewer out there for MacOSX that support automatic reload of (in my case LaTex generated) PDFs when they're modified by another application?
485 views

### Why won't my glossaries print?

I have a look around online and at other posts however I haven't been able to find a solution to this problem. Here is the code I'm using: \documentclass[a4paper,final]{report} \usepackage{epsfig} ...
1k views

### Aligning columns in tabularx with multicolumn

I'm trying to set up a table to use in my CV, where by I list my qualifications and the date achieved (two separate columns), and under it the list of grades achieved. I want two separate sets of ...
215 views

### Token for full path in Texmaker

I am configuring custom commands in Texmaker, I can use % as a token for the name of the file (minus the extension) but I cannot find an equivalent for the full path.
1k views

### Converting ConTeXt document to HTML

For LaTeX, I used to rely on htlatex, latex2html, or more rarely tth. I know that we can use XML with ConTeXt, although I have no experience with this, and that Pandoc let us use Markdown syntax and ...
6k views

### Why my printnomenclature not working?

This is my Script: In my class file i added the following entry: \usepackage[intoc]{nomencl} \renewcommand{\nomname}{\large \textbf{Mathematical Notation}} \makenomenclature \usepackage{datatool} ...
512 views

### Beamer: content in box register does not survive \end{frame}

Consider the following example (I edited the example to include LaTeX lrbox environment): \documentclass{beamer} \newsavebox\mybox \newsavebox\myboxb \begin{document} \frame{ \sbox\mybox{Hello ...
199 views

### Is there a way to tell listings what to do immediately after escaping?

What I want to do is having two or more possibilities when escaping from normal code formatting. For instance, if I give the option escapechar=\⠶ I would like to avoid saying something like this: ...
273 views

### Missing 'pi'-Symbol from euler font in sans serif?

I want to set one formula in my document in a sans serif font. As a math font I use the eulervm-Package. Unfortunately, the \pi is missing (instead a small line appears). Here is a minimal example: ...
637 views

### Make hyphenated words in PDF searchable

Is there a way to make hyphenated words in a PDF generated by LuaTeX searchable? If the MWE below is converted to a PDF, searching for "lexicon" (in Acrobat X for example) will not find the word since ...
2k views

### kpathsea/fontspec does not recognize a font whose name has a space in it

Using XeLaTeX and the fontspec package, I am experiencing problems using fonts whose name includes the space character. Here is a simple example: \documentclass{article} \usepackage{fontspec} ...
4k views

### How to make the moderncv templates from CTAN work in Ubuntu 11.10

I am trying to use moderncv on Ubuntu 11.10. The class is in texlive-latex-extra but it seems to be an old version and it does not recognize some new commands. I would like to either upgrade the ...
495 views

### marginpar infobox

I apologize for not knowing the correct term for this, but I want to put some kind of a infobox at the beginning of each section. What I want to ask about is for example on Wikipedia: you have this ...
2k views

### Section numbering

I'm having a bit of trouble with section numbering. When I use \section{} it starts at 0.1 rather than 1.0. Here's my preamble: \documentclass[12pt]{report} \usepackage{hyperref} ...
228 views

### How to add quotation marks to fractions?

As the title says I want to add quotation marks around a fraction in \displaystyle mode. My first try looks very unnatural, as you can see ^{}\frac{1}{0^-}^" The problem is with the first ...
420 views

### How to automatically add parentheses around fractions?

Is there any way to make LaTeX automatically put parentheses around a \frac if it is followed by a superscript expression?
182 views

### Why does tikz change the behavior of \vfil on my first page?

Note the way this renders when using pdftex. \input eplain \beginpackages \usepackage{url} \usepackage{color} \endpackages % comment in the following 4 lines % \input tikz % \enablehyperlinks % ...
260 views

### \show for Lua commands

TeX (and all newer engines) has the primitive \show which helps me probe macros, and most of the time is enough to understand/remember the implementation (rather than having to go back to the source ...
3k views

### How to build and combine sophisticated layouts in figures

How can I get a layout like the one below in my document?                 With this question, I am looking for: An ...
72k views

### Absolute Value Symbols

What is the "best LaTeX practices" for writing absolute value symbols? Are there any packages which provide good methods? Some options include |x| and \mid x \mid, but I'm not sure which is best...
437 views

### Why is \input not expandable?

In latex.ltx I found \def\input{\@ifnextchar\bgroup\@iinput\@@input} where \@@inputis expandable. I would like to know if there is an expandable version of \input. The problem comes from an example ...
1k views

### How to preserve the same parskip in minipage

I have following structure: \begin{document} Paragraph1. Paragraph2. \begin{minipage} Some paragraph1. Some paragraph2. \end{minipage} \end{document} How can I make the same spacing between ...
687 views

### makeglossaries hangs waiting for input on mac

I'm very new to Latex so apologies if this is a newbie question. However I have looked around online and can't find an answer. I'm trying to compile my file in TeXShop (on mac) using the following ...