8
votes
1answer
535 views

Fix math mode kerning of “C”

I am trying to set a sequence of atom packing symbols. I want to use math mode italics for this, as I think that their width fits this purpose. The problem is that the C has a bad kerning for this. ...
3
votes
1answer
121 views

alignment of symbols [duplicate]

I tried to align the equation and have some text on the equal sign. But it turns out that the equal sign that has text over it is no longer aligned to previous one anymore (I believe it is the text ...
11
votes
4answers
1k views

Replacing Unicode non-breakable spaces by normal spaces

I am using the Neo keyboard layout, which uses all kinds of modifier keys to input all kinds of characters (e.g. Greek letters and mathematical symbols). It also has shift+Mod3+space mapped to Unicode ...
7
votes
1answer
5k views

How to put symbol around the equal sign?

In the question Latex Math Symbol: Vitanyi puts a tiny plus symbol over his equals. How do I do that?, there was an answer to how to place additional sign over the equal sign. And my question is, ...
9
votes
1answer
1k views

Diagrams package that allows to draw computer buffers (memory diagrams)

I'm writing a document that explains internals of memory buffers and computers and I'm looking for a LaTeX package that would allow me to create diagrams similar to the following: Circular buffer: ...
3
votes
2answers
5k views

Closing file problem when opening FoxitReader with TexnicCenter

I use the FoxitReader instead of Acrobat Reader to see the pdf files. I defined it when I installed TeXnicCenter. When a new file is compiled, it does not automatically closes off the old one. So in ...
14
votes
1answer
2k views

Plotting an implicit function using pgfplots

What is the correct way to plot an implicit function using pgfplots? Consider the following example: \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=newest} \begin{document} ...
1
vote
1answer
916 views

Koma Script header-footer on chapter start page

The scrbook class omits the header footer on the page where a new chapter starts. How to add them on those pages?
5
votes
1answer
1k views

Matrix of nodes column style inconsistency

For the following code: \begin{tikzpicture} \matrix [matrix of nodes, column 2/.style={red}] { 8 & 1 & 6 \\ 3 & 5 & 7 \\ 4 & 9 & 2 \\ }; \end{tikzpicture} This picture is ...
2
votes
2answers
2k views

How can I load a true type font in luatex? [duplicate]

Possible Duplicate: Load fonts that are in a ./fonts directory I have a TTF file zapf-chancery.ttf in the same folder as my LaTeX document. How do I make this font available in my document? ...
6
votes
2answers
1k views

Alternatives or Successor for TeX [duplicate]

Possible Duplicate: Why are there no alternatives to TeX, or, why is TeX still used? My problem with the current version of (La-)TeX is that it's pretty brittle. Some documents run well on ...
7
votes
1answer
806 views

Shortcut for arrows on curves in TikZ

If I want to draw a curve with an arrow somewhere along its length (say 40% along), I can write this: \draw [decoration={ markings, mark=at position 0.4 with \arrow{>}} ...
5
votes
2answers
479 views

Correct sorting of \index entries containing macros

I use \index in classical way, but also with some macros as content. More precisely, I have some macros like \def\foo{BAR}, and I use then \index{\foo}. Unfortunately, the index is then order by the ...
10
votes
3answers
15k views

Change FORALL to FOREACH in algorithms package

\FORALL gives a "for all" loop, i would like to redefine it so that it shows "for each" instead. Any way to do that? By the way, foreach is more often used in real programming languages than forall, ...
5
votes
3answers
170 views

LaTeX3: \dim_eval:n and e-TeX dimension expression

Why does the following code not yield the expected result 264pt? Are non-integers not allowed as factors in e-TeX dimension expressions? \documentclass{article} \usepackage{expl3} \begin{document} ...
7
votes
1answer
156 views

Can maths adornments know the “type” of their contents?

By "maths adornments" I mean things like \widehat (from the ams) and their ilk. Perhaps the following best illustrates what I mean: Code to reproduce: \documentclass{standalone} ...
51
votes
9answers
6k views

LaTeX/Math jokes [closed]

Lighten up a bit guys. How about the following \documentclass{article} \usepackage{graphicx} \begin{document} If~~$\displaystyle\lim_{x\rightarrow8}\frac{1}{x{-}8}=\infty$ ...
3
votes
2answers
6k views

Disable the numbering of algorithms

My problem is that I do not know how to disable the numbering for algorithms. I have created an algoritm and its number is "Algorithm 1", but I want to have "Algorithm". \documentclass{article} ...
3
votes
1answer
961 views

Default bibliography database path in reftex

I just discovered reftex and am very happy with it, including the manual. However, I am not too happy with how the path to the bibliography file is set and would like to change it, but haven't found ...
3
votes
1answer
3k views

using fancyvrb Verbatim environment from within newenvironment

As with this question, I want to use a verbatim environment from within an environment definition, but I want the listings to be numbered, so I think I need to use fancyvrb. It appears that fancyvrb ...
1
vote
2answers
433 views

Make \infty symbol horizontal align with 8 EXACTLY

as image \newlength{\abc} \settoheight{\abc}{$\infty$} \raisebox{.5\abc}{\infty}8 doesn't get desired thing.
9
votes
3answers
5k views

How to put a big dot (and circle) over a variable?

where one can see a big dot (and circle) over W. I am using \dot{W} and \mathring{W} but seems not big enough.
0
votes
0answers
183 views

Table of contents [duplicate]

Possible Duplicate: Table of contents How will i create a table of contents to have an output look like this? hope you can help me. Sorry for the incomplete data of my question last time. ...
6
votes
2answers
672 views

Forcing tikz/pgf to expand macros within commands

I would like to use simple macros within tikz commands, but it seems tikz doesn't expand them in the ways I would expect. For instance, the code ...
29
votes
1answer
1k views

What are the valid names as labels?

What are the valid characters to use in labels? I thought that only alphabetic characters were valid, but I tested ' and ! and they work. What are the restrictions to these names?
6
votes
2answers
595 views

Biblatex: Format the date of an article differently for different journals

I am trying to develop a Biblatex style for English (academic) legal citations. For the moment I am not trying to deal with the citation of cases (which is going to be very tough), but just with the ...
5
votes
2answers
758 views

How can I set columns=fixed for lstinline globally?

I typeset my listings using listings with a proportional font. This looks good for the lstlisting environment. However, when I use \lstinline|code|, the spacing reverts to variable-width. I would like ...
15
votes
1answer
14k views

Double square braces like these ⟦exp⟧?

How do I create mathematical equation double square braces like these ⟦exp⟧ in latex? I failed to find it on google (I created these using word 2010 equation editor). I would like these to be of ...
8
votes
1answer
2k views

Listings code snippet has white horizontal lines across it

I'm using the listings package to typeset my code examples. I've set the background color to slightly off white color and I'm noticing strange white horizontal lines across the snippet. They seem to ...
8
votes
1answer
1k views

How do I set global lengths in TikZ?

I am stumped by the following problem. I'm not sure if this is a bug in TikZ, or if I misunderstand the way that lengths work in TeX and in TikZ. I'd like to define a length called \mywidth, and use ...
30
votes
4answers
13k views

Prevent line breaking in inline math, but allow flexible spacing

How can I easily tell Latex to prevent line-breaks inside a part of an inline formula, without affecting inter-word spacing? Writing something like $ab(c+d)$ in Latex is bad: Latex might put a line ...
9
votes
2answers
378 views

“and” in Author Name

I was sure to find the answer to this rightaway, but somehow it didn't show up. I'm trying to add an organization as an author with "and" inside the name. Like: @MISC{secfindings, author = ...
20
votes
2answers
1k views

Accessing the logic values of a TikZ coordinate

In TikZ accessing the coordinate values of a node can be done using the let syntax of the calc library or using the PGF command \pgfpointanchor. However, this values are dimensions/lengths in points ...
5
votes
1answer
3k views

How to add references to images in beamer

I need to add references to some images included in my beamer presentation (via pgfuseimage) as these images are not mine but taken from some other sources. Which ways are there to do this, what would ...
3
votes
2answers
1k views

Custom .sty directory with OSX 10.5 and pdfTeXk

I have a tex project using a custom .cls which builds in Windows 7 with TeXlipse + MikTeX. The .cls has a number of CTAN LaTeX contrib package dependencies, which I installed one-by-one with MikTeX ...
2
votes
3answers
1k views

add vdots to a listing without breaking the box

I have a problem when I try to add \vdots in an escaped string inside of a listing environment. The box is cut. How can I avoid the break of the box? The code is this: ...
0
votes
1answer
518 views

Align normal text inside a listing

I need a way to correctly align the escaped strings that I put inside of this listing. The problem is that they are presented right aligned. I want that this lines keep the indentation of the previous ...
3
votes
1answer
587 views

Visual separation when using linerange in listings

I have read through the listings documentation and couldn't find an answer to the following question: How do I insert some sort of visual feedback in a listings listing when using the linerange ...
2
votes
0answers
544 views

Problem with mk4ht [closed]

I'm trying to compile my .tex file to html, suitable for conversion to an ebook. I'm using the following command: C:\...\write-up>mk4ht htlatex diss.tex 'xhtml,charset=utf-8,pmathml' ' -cunihtf ...
3
votes
3answers
727 views

Tikz rectangle hiding text!

Using this code to achieve an effect as in the question Page border coloured. \usepackage{tikz} \usetikzlibrary{calc} \newcommand{\pageframe}{% \begin{tikzpicture}[remember picture,overlay] ...
4
votes
2answers
744 views

Include binary data

How do I include binary data (e.g. the contents of a binary file) in a LaTeX generated PDF-document? If I just copy and paste them into a verbatim environment it results in garbage.
9
votes
2answers
275 views

Changing citation delimiters

The default citation delimiter is ,. For instance, \cite{John96, Doe78, White05} generates something like [8, 2, 4], where the citation numbers (8, 2, and 4) are separated by a comma (,). This is ...
16
votes
3answers
3k views

Drawing a circle in the complex plane.

I would like to draw the set of points in the complex plane that satisfies $|z-1+i| <= 3$ using LaTeX (with TikZ, or some related system). I would want to fill this circle with say dashed lines, or ...
3
votes
2answers
527 views

Graphics lines too thin

I use PCTEX 5.1. When I print from a DVI window my embedded graphics line plots are too thin and almost fade out. When I export the document to a PDF and print it the graphics line weights are much ...
4
votes
1answer
461 views

How to adjust macro to respect current \linewidth?

I'm having issues with text going past the end of the specified \textwidth. I posted this question about why text was being placed beyond the specified line width. The MWE provided there produced ...
2
votes
1answer
8k views

Force \addtocontents to be placed in the correct order

I have something like this: \tableofcontents* \chapter{chap1} \chapter{chap2} \addtocontents{toc}{test} \chapter{chap3} and the ToC is produced like this chap1 chap2 chap3 test I was wondering ...
2
votes
1answer
219 views

Help with report writing

I'm new to LaTeX and I'm creating a report for my project, the problem is that the font is not equivalent in all the PDF, and I inserted a PDF file containing a plot but it's not appearing in the ...
2
votes
3answers
24k views

latex two column layout set figure to load on single column

this is the double column code \begin{multicols}{2} \begin{figure*}[!ht] \centering \includegraphics[height=60mm]{CC.jpg} \caption{AA \cite{BB}} \end{figure*} \end{multicols} But the ...
8
votes
1answer
690 views

biblatex-ieee and supra note

I know this is sort of short notice (I'd posted a similar cry for help at LaTeX Community), but I have a thesis due Monday and the one thing standing between me and being ready (layout-wise) is this: ...
22
votes
3answers
8k views

How to scale Tikz drawings and text together?

I'm trying to build a diagram (a logo, actually) that I can scale easily through a parameter. I'd like to be able to scale both drawing and fonts through a single parameter. Here's my current MWE, ...

15 30 50 per page