11
votes
2answers
2k views

Check for missing fonts/characters in XeLaTeX?

Because I began to use many Unicode characters (Japanese, some unusual diacritics, etc.) I switched from LaTeX to XeLaTeX to render my documents. Unfortunately, if a font is missing, the letters are ...
41
votes
2answers
11k views

Load fonts that are in a ./fonts directory

I'm new to TeX. I have the following problem: How can I load a font from a file in a directory, which is located in the root of the project? Say I have something like: /project /fonts ...
7
votes
1answer
858 views

Conditional compilation of beamer slides

I'm preparing a beamer slideshow, and I will have to print slides. I would rather use landscape mode slides, but it is possible that I need to use portrait mode ones. Sadly, I won't know until a few ...
7
votes
2answers
559 views

Missing glyph in TeXGyreTermes font

For Pinyin (Chinese romanization), I like very much the look of the font TeXGyreTermes-Regular that is installed with my TeX system. However, it seems to be missing a single Pinyin symbol that I need:...
6
votes
1answer
1k views

Proof Split Over Two Pages

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 ...
2
votes
1answer
1k views

pstricks and beamer compilation with xelatex results in xkeyval error

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,...
35
votes
3answers
4k views

Submitting a journal article as a single tex file

Although many academic journals readily accept submissions in some format of TeX, indeed some enlightened ones insist on it, it is rare that one can simply send exactly the same document that one has ...
17
votes
2answers
26k views

Changing default width of blocks in beamer

I use a custom Beamer theme for my presentations. In my presentations I'd like to use blocks (\begin{block}…\end{block}). These blocks are rendered slightly too wide to fit into my theme. Is there a ...
12
votes
3answers
2k views

Is it possible to add \chapter after a few \part's at the same level of hierarchy?

Consider the following code: \documentclass{scrbook} \usepackage[bookmarks, bookmarkstype=toc]{hyperref} \begin{document} \tableofcontents \chapter{Introduction} \part{First part} \chapter{...
1
vote
0answers
637 views

Multipage “dcases” environment [closed]

I am using the "dcases" environment of the "mathtools" package with nested other environments inside it. The whole expression does not fit on a single page and so I am wondering if it is possible to ...
31
votes
3answers
26k views

How can I make a horizontal dashed line?

How can I make a horizontal dashed line in LaTeX? Just writing lots of single dashes results in a continuous horizontal line.
3
votes
1answer
1k views

Stretching integral [duplicate]

Possible Duplicate: How can I have a bigger integral (\int) delimiter? Is there some way to "stretch" the integral symbol to cover a big math expression? I'm talking about a problem like this:
2
votes
2answers
2k views

TeXShop not finding Gnuplot

I'm working in TeXShop on my mac and I love it. There is one slight problem though. I use TikZ wich sometimes uses gnuplot to create it's plots. One would think that running TeXShop alone is enough (...
5
votes
1answer
2k views

What library do I have to use such that the document can render \lt and \gt as less than and greater than signs, respectively?

\documentclass{article} %\usepackage{amsmath} It does Not work ! \begin{document} \[ x\lt y \gt z \] \end{document} What library do I have to use such that the document can render \lt and \gt as ...
6
votes
2answers
2k views

Formatting each part/section/subsection

Are there some magic lines to be placed in the preamble that would, like in CSS, specify how each generic section or subsection in the whole document should be formatted?
5
votes
2answers
351 views

How to spread words in several lines uniformly?

In TeX, I can use \hbox to 1in{foo bar baz} to get Is it possible generalize the use, to get this result: by typing a paragraph foo bar baz test text only? I tried \break to break lines at ...
4
votes
2answers
2k views

\parbox “textwidth” for the combined width of a subset of table cells

I would like the parbox width of the text in a multicolumn to be calculated automatically from the combined width of the cells that the multicolumn spans. (Their width will vary in different copies of ...
8
votes
1answer
1k views

How to convert .bib generated by Mendeley for use with amsrefs

I'm using TeX live 2010. I have a .bib file generated from Mendeley, and I want to use that with amsrefs, but it's confusing and the amsrefs documentation is somewhat hard to follow: how do I ...
12
votes
2answers
996 views

How do I create custom “list of…”s on a section level?

I have a long document with frequent uses on an environment that needs to be indexed on a per-section basis. I know that the tocloft package allows creation of custom "list of..."s I also know that ...
13
votes
7answers
1k views

How to get the string with \

Apologized for my unclear description. I wish I could explain my problem more clearly. In document, I wish I can just write something as "how to use \cmd \mbox in xxx" or "what is \cmd minipage xxx"....
8
votes
3answers
8k views

Templates for NSF grant applications

Are there any good LaTeX templates or classes available which comply to NSF formatting requirements? In particular, I'm looking for a template for the "biographical sketch."
3
votes
1answer
339 views

How can I pass a shortcut to a `.pdf` to `\includegraphics{}`?

I'd like to pass shortcuts to \includegraphics. I have the following project structure /project/report/main.tex /project/report/myplotshortcut /project/code/r/output/myplot.pdf And file: % main....
14
votes
4answers
10k views

Configure TexnicCenter with something else than Adobe Reader X

My Adobe decided it should be version X now, and it misbehaves in so many ways. One way is that it is impossible to get it to open a pdf document from within TexnicCenter (or I missed something...) ...
8
votes
3answers
2k views

Where can I find vignettes to separate sections?

In traditional typesetting for books, there are often little figures called vignettes that serve as a separation between sections or subsections. One could always include the graphics as in a figure/...
4
votes
2answers
872 views

Memoir class — Displayed heading for subsubsection

I am trying to make a subsection heading with the memoir class. The problem is the following: I want to have a displayed heading for my subsubsection. The text should begin right after the subsubsec ...
11
votes
1answer
4k views

Url with fragments in bold

I need to write document containing a lot of URLs but some fragments of these URLs have to be in bold. How can I accomplished this? For urls I use \nolinkurl but I can't use \bf in it.
6
votes
2answers
1k views

How to center the TOC?

I would like to design the table of contents aligned to a vertical line near the center of the page. The chapter and section titles need to be flushright, the numbers flushleft, and between titles and ...
16
votes
3answers
1k views

Does `\noexpand` have to be a primitive?

Background: I'm trying to deepen my understanding of TeX and how the intricacies work (spurred a little by this place, I should say, and hoping one day to not be a "Cargo Cult Programmer" - see When ...
10
votes
2answers
2k views

How to break out of a loop

I have been trying to automate the production of stepped tables that contain conversion factors of all sorts. (See Protrusion of fractions in tabulars). As part of this I have a rather convoluted ...
12
votes
3answers
4k views

How can I save the bounding box of a TikZpicture and use in other TikZpicture

I need 2 different TikZpictures with the same bounding box (the one of the first TikZpicture) because I need a perfect vertical alignment of the subfigures side by side. Please, how can I handle this?...
6
votes
4answers
2k views

Elements of TOC styling using memoir class

I have yet another (baffling) question. Suppose I have the figure attached The question is how can I move the chapter numbers to align with the first line of the chapter title ? i.e using the ...
11
votes
2answers
8k views

Tabular, make a column or a row emphasized

I want to create a table and to make all cells of a column emphasized. Is there a simple way to do it, or do I have to emphasize every single cell?
15
votes
3answers
14k views

Extensible double angle, etc

I was wondering about an efficient way to generate an inner product symbol like \[ \langle\langle u, v \rangle\rangle \] (i.e., double angle brackets), or a norm symbol like \[ \lvert\lVert x \...
4
votes
2answers
5k views

Resize large images that exceed page margin whilst respecting existing scale

The solution posted here Scale (resize) large images (graphics) that exceed page margins works great. Just to summarise, Dave Jarvis suggested \usepackage{graphicx} % Determine if the image is too ...
0
votes
0answers
4k views

How to define the Heaviside function in LaTeX? [closed]

Commonly, in the mathematical literature, the Heaviside function it is not simply refereed as H(t-theta). The letter H is drawn with a different letter. My question is: How to define the Heaviside ...
10
votes
3answers
6k views

TikZ change reference point

In TikZ, picture is drew based on the point (0,0). if my whole picture is based on the point, e.g., (20,0)? how can i draw it easily? it is better to transform the reference point from (0,0) to (20.0)....
4
votes
2answers
1k views

texify: how to invoke bibtex8 instead of bibtex?

Suppose that I need to run bibtex8.exe -B -c cp1251.csf or something like that in order to produce correct bibliography list; cp1251.csf comes with the gost package but it makes no difference in the ...
5
votes
1answer
2k views

Scaling LaTeX output

I need to create 2 versions of a University dissertation. The main version has to be done on letter-sized paper with very strict specifications for most of the style elements. But I would also like to ...
8
votes
1answer
2k views

Optional but encouraged line break + \hfill

How would I write a macro (to be placed immediately before every URL in a bibliography) whose effect is to tell TeX This is a good place to insert a line break, but breaking the line here is not ...
6
votes
1answer
971 views

Problem about program code included in LaTeX

I have some Matlab code which I would like to include in my LaTeX document. I use fancyvrb package, based on which I define a new environment called code. An complete and minimum example is: \...
7
votes
2answers
2k views

Installing TeX Live from tug.org

I was trying to install TeX Live (on Ubuntu10.04) following the instructions contended in http://tug.org/texlive/quickinstall.html (c.f. thread Typesetting a document using Arabic script). I've ...
6
votes
2answers
266 views

incompatibilities between LuaLaTeX and \typein ?

The following ecm compiles fine with LaTeX and XeLaTeX, but doesn't work with LuaLaTeX : \documentclass{minimal} \begin{document} \typein{test} \end{document} And here is the error : Invalid \...
5
votes
1answer
3k views

pdflatex: fit-page-to-contents or scale-contents-to-fit-page

I have a problem which can be solved one of two ways: Typeset a given chunk of TeX in an "infinitely wide" space, then scale the result so that its width is the width of the page. Typeset a given ...
13
votes
1answer
746 views

Using ConTeXt Commercially …

This webpage, http://tex.loria.fr/formats/context/base/readme.pdf, and many others explicitly state that ConTeXt must not be used for some purposes; e.g. competing with Pragma ADE. However, the ...
9
votes
2answers
2k views

\tikzexternalize doesn't work with lua code

The following code from the pgf manual compiles fine with lualatex --shell-escape \documentclass{article} \usepackage{tikz} \usetikzlibrary{external} \tikzexternalize \begin{document} A simple image ...
31
votes
3answers
5k views

Code spanning over two pages with minted, inside listing with caption

I am trying using minted to display some code in my document, but the code is long and spans over two pages, this works fine, however when I place my code inside \begin{listing} \inputminted{java}{...
3
votes
1answer
151 views

Tools for project delivery?

This is another in a long line of Project directory organization questions of mine. I'm trying to build a project directory organization structure which follows best-practices. I'd like the structure ...
3
votes
1answer
631 views

Project directory organization: where does code output go?

I'm trying to build a project directory organization structure which follows best-practices. Adapting this structure, part of my project structure would look as follows: myproject myproject/code/r/...
1
vote
1answer
3k views

Use TikZ decoration in a scope

Rather than define a single decorator for all lines at the tikzpicture level, I'd like to use scopes to selectively apply certain decorations to certain parts of my drawing. As a minimal example: \...
9
votes
3answers
3k views

Texify and `--output-directory`

I'd like to tell texify to place compiled output (i.e., .pdf in my case) in the parent directory (I'm using MikTeX 2.8 on Vista32). I run the following: texify --pdf --clean --tex-option=--output-...

15 30 50 per page