All Questions

2
votes
2answers
3k views

Long Right arrow appears broken

I am using \longrightarrow{} in my document. however in the PDF it appears in two pieces instead of a long line. I tried using \chemarrow but it produces very short arrow. The size of arrow thats ...
6
votes
1answer
4k views

Of parallel texts, lists and display equations

In previous question concerned about taking notes while reading journal articles, I received an excellent answer proposing the use of parallel, parcolumns, and ledpar packages. However, I have the ...
4
votes
1answer
3k views

XeLaTeX ttf font support

Watertank is some ttf font that I got from one of those cheap fonts CDs. I know it is installed in my system because I can use it in other programs; but when I use it in XeLaTeX (which works with ...
4
votes
1answer
3k views

How to prevent hyphenation in title (\maketitle)?

I want to have a \maketitle title page where every word in the title is not hyphenated. Elsewhere I wouldn't mind hyphenation of the title (e.g., in the Reference List), but on the title page it looks ...
15
votes
3answers
6k views

Background colour with minted package: code misplaced

With the following example \listfiles \documentclass{article} \usepackage{minted} \definecolor{bg}{rgb}{0.95,0.95,0.95} \begin{document} Some text \begin{minted}{latex} A test \end{minted} Some text ...
9
votes
2answers
4k views

Biblatex customization: author name format defined by hyphenation (localization)

I try to use biblatex (to be customized) with Hungarian babel language definition files. The babel language for Hungarian is called magyar (means: Hungarian). I am writing a text in which I cite ...
19
votes
3answers
28k views

Beamer vs. TikZ: uncover nodes step-by-step

I'm trying to uncover a TikZ image piece-by-piece like so: \documentclass{beamer} \usepackage{tikz} \usetikzlibrary{positioning} \begin{document} \begin{frame}{Linearity} \begin{center} \begin{...
36
votes
4answers
25k views

What is the right way to use the `\!` spacing command?

I have noticed that I hardly ever use the \negthinspace command \!. This is because I don't know how to use it properly (I do use other spacing commands quite a bit, because I can better understand ...
1
vote
2answers
282 views

t-vim: MTXrun using extra quotes

I'm trying to use the t-vim module for context installed from the TexLive 2010 basic package for Mac. The problem I'm running into is that MTXrun tries to quote too much when calling vim, for example:...
9
votes
2answers
580 views

How to determine the run time of a loop?

pdfTeX, provides two macros that can be used to determine the time elapsed from a run start. The first one determines the elapsed time in "scaled seconds", that means seconds divided by 65536. \...
8
votes
4answers
601 views

Subversion keyword string inside LaTeX document

I put a subversion keyword string inside my LaTeX document. It looks like: $LastChangedDate: 2011-01-16 18:09:33 +0100 (nie) $ and it gets replaced (simple textual substitution) every time I make a ...
2
votes
1answer
546 views

MetaUML — generate image as output

I'm planning to use MetaUML to automatically generate UML diagrams (as images) and display them. I found that there is an utility, mptopdf, that helps generating the output as a PDF file: mptopdf ...
4
votes
3answers
1k views

Draw tangents from point to ellipse using PSTricks

I'd like to create an ellipse (using psellipse, say). Call it E. And I'd like to specify a point P outside E. And then I'd like to construct, using PSTricks, the two rays starting at P and tangent ...
22
votes
5answers
21k views

How to translate and rotate the heading of landscaped pages?

Objective How to change the heading of landscaped pages from to ? Minimal Code \documentclass{book} \usepackage[a5paper,hmargin=3cm,vmargin=5cm]{geometry} \usepackage{lscape,lipsum} \begin{...
3
votes
2answers
1k views

ntheorem and mathdesign are incompatible

I want to use mathdesign fonts (namely bitstream-charter) and I also want to use the ntheorem package. However, it looks like ntheorem tries to load amssymb which is incompatible with mathdesign (it ...
86
votes
4answers
120k views

Large braces for specifying values of variables by condition

How do I typeset something like, X = 0 if a=1, 1 otherwise, using those huge left braces and specifying each condition in a line?
5
votes
1answer
4k views

Strange unrecognized control sequence error with beamer

I was trying to include bibliography in my presentation, but I get this error: ! Undefined control sequence. \beamer@sort #1#2->\long \def \beamer@todo {...
1
vote
1answer
613 views

Defining a custom cross referencing style

I want my cross reference links to look like: Chapter X: Chapter Title To achieve that I have created the following command: \newcommand{\fancyref}[1]{\autoref{#1}: \nameref{#1}} The problem is ...
11
votes
3answers
6k views

Best practice for control flow charts

I wanted to plot a flow chart graph which looks similar to this diagram: that comes from this source. Which package would be best for that? I don't want to use pstricks
7
votes
1answer
2k views

tikz parabola node position

I am trying to position nodes on a parabola curve. However, it seems tikz cannot calculate the midway positions. Neither of the following examples works: \begin{tikzpicture} \draw (-1,0) parabola[...
15
votes
1answer
2k views

Referencing a nested list item by only its most immediate bullet

I'd like to be able to reference a nested enumerated list item only by its inner-most identifying character. \begin{enumerate}[(1)] \item \begin{enumerate}[(a)] \item \label{mylabel} Referenced ...
15
votes
2answers
46k views

Should Greek letters inserted in text (using math mode, mostly) always be italic?

The least painful way I know of inserting a Greek letter in a text is to use the math mode and the corresponding command. This will produce an alpha letter : $\alpha$ But this always produces an ...
12
votes
1answer
6k views

How to create (1) a new Environment for LyX's Environment drop-down menu, (2) a new Text Style

My two part question pertains to LyX. How do you create a new "Environment" ("Paragraph Style") for LyX's Environment drop-down list (Standard, Itemize, Enumerate, Chapter, Section, Subsection, ...
12
votes
4answers
1k views

How to pass an optional argument to an environment with verbatim content?

This is an attempt to make clear what happened in this question of xport (now deleted, sorry). The now deleted question included code that tried to make my answer to this question of xport work for ...
4
votes
3answers
2k views

Curly Brackets - How to change the space between text and brackets

\documentclass[fleqn,12pt,a4paper]{article} \usepackage{amstext, amsmath} \newcommand{\lcurly}[1]{$\left\{\begin{array}{l} #1 \end{array} \right.$} \newcommand{\rcurly}[1]{$\left. \begin{array}{l} ...
7
votes
1answer
1k views

verbatim with black background and white text

How could I set up a verbatim-environment which has black background white text in scriptsize ?
13
votes
1answer
30k views

aligning split equation

I am new to Latex ;) I split my equation like this: \begin{equation} \begin{split} \tilde{m}=P\tilde{M} \\ \quad = K(R^1R^2R^3t) \begin{pmatrix} X \\ Y \\ 0 \\ 1 \end{pmatrix} \\ \quad= K(...
5
votes
2answers
1k views

two mathcal families in the same document

Is it possible to use two math fonts from the calligraphy families in the same document? Something like $\mathcal{P}$ from Zapfino and $\mathcal{T}$ from XITS math?
3
votes
6answers
2k views

Is there a program that allows to move sections and automatically adjusts the level of subsections?

How would one go about to move a [sub..]section to a different position in the document structure? The sectioning commands would have to be changed according to the new parent level. Is there a ...
11
votes
1answer
17k views

Equation var with apostrophes? [closed]

Hi I want to write this: So I wrote this: $\{m'_{i}\}$ Without success, (I get errors/warning) How do I write the apostrophe in Latex? Thanks;)
7
votes
3answers
1k views

Line break in lines with colons

I noticed that if I've got something like this: one::two::three::four one::two::three::four one::two::three::four something weird happen: % the right page margin would be here |...
2
votes
3answers
3k views

Twosided book with same page setup for every page (I want to use fancyhdr)

Here is my problem: Im writing my thesis using the book class. I want my thesis to be onesided (left and right margins of same size), but I would also like to use the fancyhdr package to give me ...
1
vote
1answer
269 views

How to make my unusual environment accept one argument?

I cannot find a good title to express my question. Therefore, please parse the following code first. Minimal Code \documentclass[dvips,dvipsnames,cmyk,table]{book} \usepackage[a5paper,margin=20mm]{...
1
vote
2answers
4k views

How to make the BibTeX reference list visible in a LaTeX document

Im very new at LaTeX and I would appreciate some help solving this problem. I have created a BibTeX file containing all references to a document. In this text file BibTeX items are inserted and no ...
12
votes
1answer
468 views

Simulate the % in a \newcommand

I want to automate quotation marks (not quotes) using a macro. Consider the following code: \newcommand{\mytext}[1]{``#1''} This one works fine: \mytext{This is a very long quote. Lorem ipsum dolor ...
3
votes
2answers
463 views

Using the lips package

How do I use the lips package? Having the following line in my preamble: \usepackage{lips} produces the following error: /usr/local/texlive/2010/texmf-dist/tex/latex/frankenstein/lips.sty:309: ...
6
votes
5answers
2k views

Taking notes while reading a journal paper

I'm reading journal papers in physics/electrical engineering. What is a suitable document class or package to help with taking notes? My idea would be having direct quotes on one side and my opinions/...
2
votes
3answers
1k views

Define a new environment to combine tikzpicture and lstlisting

I would like to define a new environment to combine the tikzpicture environment from package pgf/tikz and the lstlisting environment from package listings. The result would be to first produce the ...
17
votes
2answers
987 views

How do I discard a portion of an equation number when cross-referencing?

I am writing a LaTeX document in which I number equations within sections. Thus, in my preamble I have \makeatletter \@addtoreset {equation}{section} \renewcommand{\theequation}{\thesection.\...
6
votes
3answers
470 views

Retain side-effects but discard command output

The following code works, although I have a feeling my \settowidth method of discarding the output is not how it should be done: \documentclass{article} \newlength{\trashlength} \long\def\...
5
votes
1answer
1k views

TikZ: Creating stack with variable width

I am new to TikZ and want to draw a simple stack Diagram. The Diagram should look like: [a] [b] [c] [d] |-| |j| [f ] | | | | [g ] | | ...
13
votes
1answer
1k views

How to use lining figures in siunitx and fontspec?

I'm using XeTeX and fontspec, and I have selected old-style figures for my body text. Now I use the siunitx package, and have set it up to use text fonts instead of math fonts. For the siunitx values ...
31
votes
1answer
33k views

Is there a way to add a field to the title page in beamer? [duplicate]

I have to add a \supervisor field to the title page of my presentation. Is there a way to do that in beamer? I tried adding the supervisor information to the \author field, but the content of the ...
1
vote
1answer
201 views

How to Use Unicode Font with \polter command

\documentclass{article} \usepackage{holtpolt} \begin{document} $\polter{abc}{def}$ \end{document} Hi, I have a need to produce something thats shown in the above example however I want to use ...
1
vote
1answer
2k views

New command to insert a couple of red XXX as placeholder?

I seem to misunderstand the documentation, as \newcommand\ph{\textcolor{red}{XXX}} causes pdflatex to halt. I'm not sure if this is the error: ! Argument of \sf@@subfloat has an extra }. And I ...
13
votes
2answers
733 views

New lines and TeX: difference between ^^J and ^^M

What is a new line for TeX in the following contexts: When reading from a file. When writing to a file. After having read a % character. In a \scantokens. I am asking in particular because the ...
2
votes
2answers
158 views

How to assign a key of a package a key value of another package?

Scenario 1 Actually I can do like this: In mylistings.sty, I define \def\tabsize{3} \RequirePackage{listings} \lstset{tabsize=\tabsize} and in mytable.sty, I define \RequirePackage{mylistings} \...
2
votes
1answer
459 views

How to hide a verbatim-like environment in another environment?

I cannot find a good title to express my question. Therefore, please parse the following code first. Minimal Code \documentclass[dvips,dvipsnames,cmyk,table]{book} \usepackage[a5paper,margin=20mm]{...
21
votes
3answers
4k views

Table and multi-page

I'm writing some sort of book and i've got a very large table. I was wondering if there was a way to span a table not in the length but in the width. In the end, i would like to be able to divide ...
1
vote
1answer
385 views

On-Screen resolution deteriorates in pdflatex if figures are included

When I put a figure into my document (doesn't have to be bitmap, PS does the trick as well, I think the distinction is color vs no color), the on-screen resolution of the text changes at the default ...

15 30 50 per page